@wocker/core 1.0.17 → 1.0.18-dev.1
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
|
-
import { Container, ImageInfo } from "dockerode";
|
|
1
|
+
import { Container, ImageInfo, VolumeCreateResponse } from "dockerode";
|
|
2
2
|
import { Duplex } from "node:stream";
|
|
3
|
-
declare namespace DockerServiceParams {
|
|
3
|
+
export declare namespace DockerServiceParams {
|
|
4
4
|
type CreateContainer = {
|
|
5
5
|
name: string;
|
|
6
6
|
image: string;
|
|
@@ -44,10 +44,13 @@ declare namespace DockerServiceParams {
|
|
|
44
44
|
src: string;
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
declare abstract class DockerService {
|
|
47
|
+
export declare abstract class DockerService {
|
|
48
48
|
abstract createContainer(params: DockerServiceParams.CreateContainer): Promise<Container>;
|
|
49
49
|
abstract getContainer(name: string): Promise<Container | null>;
|
|
50
50
|
abstract removeContainer(name: string): Promise<void>;
|
|
51
|
+
abstract createVolume(name: string): Promise<VolumeCreateResponse>;
|
|
52
|
+
abstract hasVolume(name: string): Promise<boolean>;
|
|
53
|
+
abstract rmVolume(name: string): Promise<void>;
|
|
51
54
|
abstract buildImage(params: DockerServiceParams.BuildImage): Promise<any>;
|
|
52
55
|
abstract imageExists(tag: string): Promise<boolean>;
|
|
53
56
|
abstract imageLs(options?: DockerServiceParams.ImageList): Promise<ImageInfo[]>;
|
|
@@ -57,4 +60,3 @@ declare abstract class DockerService {
|
|
|
57
60
|
abstract attachStream(stream: NodeJS.ReadWriteStream): Promise<void>;
|
|
58
61
|
abstract exec(name: string, command?: string[], tty?: boolean): Promise<Duplex>;
|
|
59
62
|
}
|
|
60
|
-
export { DockerService, DockerServiceParams };
|