forked from PDMLab/docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
69 lines (43 loc) · 2.94 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
export declare function upAll(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function upMany(services: String[], options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function upOne(service: String, options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function kill(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function down(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function stop(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function restartAll(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function restartMany(services: String[], options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function restartOne(service: String, options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function rm(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function exec(container: String, command: String, options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function logs(container: String, command: String, options: IDockerComposeLogOptions): Promise<IDockerComposeResult>;
export declare function run(service: String, command: String, options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function buildAll(options: IDockerComposeBuildOptions): Promise<IDockerComposeResult>;
export declare function buildMany(services: String[], options: IDockerComposeBuildOptions): Promise<IDockerComposeResult>;
export declare function buildOne(service: String, options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function config(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function configServices(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function configVolumes(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function ps(options: IDockerComposeOptions): Promise<IDockerComposeResult>;
export declare function push(options: IDockerComposePushOptions): Promise<IDockerComposeResult>;
export declare function port(service: String, containerPort: String | Number, options: IDockerComposeOptions): Promise<IDockerComposeResult>;
interface IDockerComposeOptions {
cwd: string;
config?: string | string[];
log?: boolean;
composeOptions?: string[] | Array<string | string[]>;
commandOptions?: string[] | Array<string | string[]>;
}
interface IDockerComposeLogOptions extends IDockerComposeOptions {
follow: boolean;
}
interface IDockerComposeBuildOptions extends IDockerComposeOptions {
parallel?: boolean;
}
interface IDockerComposePushOptions extends IDockerComposeOptions {
ignorePushFailures?: boolean;
}
interface IDockerComposeResult {
exitCode: ?number;
out: string;
err: string;
}