UNPKG

@wocker/ws

Version:

Docker workspace for web projects

45 lines (44 loc) 2.85 kB
import { ProjectType, AppConfigService, EventService, LogService, ProcessService } from "@wocker/core"; import { DockerService } from "../modules/docker"; import { ProjectService, ProjectRepository } from "../modules/project"; export declare class ProjectController { protected readonly appConfigService: AppConfigService; protected readonly processService: ProcessService; protected readonly eventService: EventService; protected readonly projectService: ProjectService; protected readonly projectRepository: ProjectRepository; protected readonly logService: LogService; protected readonly dockerService: DockerService; constructor(appConfigService: AppConfigService, processService: ProcessService, eventService: EventService, projectService: ProjectService, projectRepository: ProjectRepository, logService: LogService, dockerService: DockerService); protected getProjectNames(): Promise<string[]>; getScriptNames(): Promise<string[]>; init(name: string, type: ProjectType): Promise<void>; destroy(name?: string): Promise<void>; projectList(all: boolean): Promise<string>; 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): 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): Promise<string>; configGet(keys: string[], name: string, global: boolean): Promise<string>; configSet(variables: string[], name: string, global: boolean): Promise<void>; configUnset(configs: string[], name?: string, global?: boolean): Promise<void>; buildArgsList(name?: string): Promise<string>; buildArgsGet(args: string[], name?: string): Promise<string>; buildArgsSet(args: string[], name: string): Promise<void>; buildArgsUnset(args: string[], name: 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>; attach(name?: string): Promise<void>; run(script: string, args?: string[], name?: string): Promise<void>; logs(name?: string, global?: boolean, detach?: boolean, follow?: boolean, clear?: boolean): Promise<void>; }