@wocker/ws
Version:
Docker workspace for web projects
50 lines (49 loc) • 3.32 kB
TypeScript
import { AppConfigService, AppFileSystemService, ProcessService, ProjectType, EventService, DockerService, LogService } from "@wocker/core";
import { PresetService } from "../../preset";
import { ProjectService } from "../services/ProjectService";
export declare class ProjectController {
protected readonly appConfigService: AppConfigService;
protected readonly fs: AppFileSystemService;
protected readonly processService: ProcessService;
protected readonly projectService: ProjectService;
protected readonly presetService: PresetService;
protected readonly eventService: EventService;
protected readonly dockerService: DockerService;
protected readonly logService: LogService;
constructor(appConfigService: AppConfigService, fs: AppFileSystemService, processService: ProcessService, projectService: ProjectService, presetService: PresetService, eventService: EventService, dockerService: DockerService, logService: LogService);
protected getProjectNames(): Promise<string[]>;
getScriptNames(): Promise<string[]>;
init(name: string, type: ProjectType): Promise<void>;
destroy(name?: string): Promise<void>;
start(name?: string, restart?: boolean, build?: boolean, attach?: boolean): Promise<void>;
stop(name?: string): Promise<void>;
projectList(all: boolean): Promise<string>;
buildArgsList(name?: string, service?: string): Promise<string>;
buildArgsGet(args: string[], name?: string): Promise<string>;
buildArgsSet(args: string[], name?: string, service?: string): Promise<void>;
buildArgsUnset(args: string[], name?: string, service?: string): Promise<void>;
domains(name?: string): Promise<string>;
addDomain(addDomains: string[], name?: string): Promise<void>;
setDomains(domains: string[], name?: string): Promise<void>;
removeDomain(removeDomains: string[], name?: string): Promise<void>;
clearDomain(name?: string): Promise<void>;
ports(name?: string, service?: string): Promise<string>;
addPort(hostPort: string, containerPort: string, name?: string): Promise<void>;
removePort(hostPort: string, containerPort: string, name?: string): Promise<void>;
clearPorts(name?: string): Promise<void>;
configList(name?: string, global?: boolean, service?: string): Promise<string>;
configGet(keys: string[], name: string, global: boolean): Promise<string>;
configSet(variables: string[], global: boolean, name: string, service?: string): Promise<void>;
configUnset(configs: string[], global?: boolean, name?: string, service?: string): Promise<void>;
volumeList(name?: string): Promise<string>;
volumeMount(volumes: string[], name: string): Promise<void>;
volumeUnmount(volumes: string[], name: string): Promise<void>;
extraHostList(name?: string): Promise<string>;
addExtraHost(extraHost: string, extraDomain: string, name?: string): Promise<void>;
removeExtraHost(extraHost: string, name?: string): Promise<void>;
eject(name?: string): Promise<void>;
attach(name?: string): Promise<void>;
run(script: string, args: string[], name?: string, service?: string): Promise<void>;
exec(command?: string[], name?: string): Promise<void>;
logs(name?: string, global?: boolean, detach?: boolean, follow?: boolean, clear?: boolean): Promise<void>;
}