@wocker/core 1.1.2-beta.1 → 1.1.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type Docker from "dockerode";
|
|
2
|
-
import type { Container, ContainerInfo, ImageInfo, VolumeCreateResponse } from "dockerode";
|
|
3
|
-
import { Duplex } from "
|
|
2
|
+
import type { Container, ContainerInfo, ImageInfo, VolumeCreateOptions, VolumeCreateResponse } from "dockerode";
|
|
3
|
+
import { Duplex } from "stream";
|
|
4
4
|
import { ContainerService } from "./ContainerService";
|
|
5
5
|
export declare abstract class DockerService {
|
|
6
6
|
abstract get docker(): Docker;
|
|
@@ -8,7 +8,7 @@ export declare abstract class DockerService {
|
|
|
8
8
|
abstract getContainer(name: string | string[]): Promise<Container | null>;
|
|
9
9
|
abstract listContainer(params: DockerService.ListContainerParams): Promise<ContainerInfo[]>;
|
|
10
10
|
abstract removeContainer(name: string): Promise<void>;
|
|
11
|
-
abstract createVolume(name: string): Promise<VolumeCreateResponse>;
|
|
11
|
+
abstract createVolume(name: string, options?: DockerService.CreateVolumeOptions): Promise<VolumeCreateResponse>;
|
|
12
12
|
abstract hasVolume(name: string): Promise<boolean>;
|
|
13
13
|
abstract rmVolume(name: string): Promise<void>;
|
|
14
14
|
abstract buildImage(params: DockerService.BuildImageParams): Promise<any>;
|
|
@@ -50,13 +50,5 @@ export declare namespace DockerService {
|
|
|
50
50
|
};
|
|
51
51
|
type ContainerOrName = ContainerService.ContainerOrName;
|
|
52
52
|
type LogsParams = ContainerService.LogsParams;
|
|
53
|
-
|
|
54
|
-
export declare namespace DockerServiceParams {
|
|
55
|
-
/** @deprecated */
|
|
56
|
-
type CreateContainer = DockerService.CreateContainerParams;
|
|
57
|
-
/** @deprecated */
|
|
58
|
-
type ImageList = DockerService.ImageLSOptions;
|
|
59
|
-
type BuildImage = DockerService.BuildImageParams;
|
|
60
|
-
/** @deprecated */
|
|
61
|
-
type Exec = DockerService.ExecParams;
|
|
53
|
+
type CreateVolumeOptions = Omit<VolumeCreateOptions, "Name">;
|
|
62
54
|
}
|