@wocker/core 1.1.7-beta.0 → 1.1.7-beta.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.
|
@@ -9,6 +9,15 @@ export declare abstract class ContainerService {
|
|
|
9
9
|
}
|
|
10
10
|
export declare namespace ContainerService {
|
|
11
11
|
type ContainerOrName = string | Container;
|
|
12
|
+
type DeviceRequest = {
|
|
13
|
+
driver?: string;
|
|
14
|
+
count?: number;
|
|
15
|
+
deviceIds?: string[];
|
|
16
|
+
capabilities: string[][];
|
|
17
|
+
options?: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
12
21
|
type CreateParams = {
|
|
13
22
|
name: string;
|
|
14
23
|
labels?: {
|
|
@@ -21,6 +30,7 @@ export declare namespace ContainerService {
|
|
|
21
30
|
tty?: boolean;
|
|
22
31
|
memory?: number;
|
|
23
32
|
memorySwap?: number;
|
|
33
|
+
deviceRequests?: DeviceRequest[];
|
|
24
34
|
ulimits?: {
|
|
25
35
|
[key: string]: {
|
|
26
36
|
hard?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type Docker from "dockerode";
|
|
2
|
-
import type { Container, ContainerInfo, ImageInfo,
|
|
2
|
+
import type { Container, ContainerInfo, ImageInfo, Volume, VolumeCreateOptions } from "dockerode";
|
|
3
3
|
import { Duplex } from "stream";
|
|
4
4
|
import { ContainerService } from "./ContainerService";
|
|
5
5
|
export declare abstract class DockerService {
|
|
@@ -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, options?: DockerService.CreateVolumeOptions): Promise<
|
|
11
|
+
abstract createVolume(name: string, options?: DockerService.CreateVolumeOptions): Promise<Volume>;
|
|
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>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wocker/core",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "1.1.7-beta.
|
|
4
|
+
"version": "1.1.7-beta.1",
|
|
5
5
|
"author": "Kris Papercut <krispcut@gmail.com>",
|
|
6
6
|
"description": "Core of the Wocker",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/docker-modem": "^3.0.6",
|
|
40
|
-
"@types/dockerode": "^4.0.
|
|
40
|
+
"@types/dockerode": "^4.0.2",
|
|
41
41
|
"@types/jest": "^30.0.0",
|
|
42
42
|
"@types/node": "^24.5.2",
|
|
43
43
|
"jest": "^30.1.3",
|