@pulumi/docker 4.6.0-beta.4 → 4.6.0
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.
- package/config/vars.d.ts +6 -8
- package/config/vars.js.map +1 -1
- package/container.d.ts +46 -57
- package/container.js +22 -21
- package/container.js.map +1 -1
- package/getLogs.d.ts +1 -1
- package/getLogs.js +14 -1
- package/getLogs.js.map +1 -1
- package/getNetwork.d.ts +2 -2
- package/getNetwork.js +4 -1
- package/getNetwork.js.map +1 -1
- package/getPlugin.d.ts +27 -9
- package/getPlugin.js +32 -9
- package/getPlugin.js.map +1 -1
- package/getRegistryImage.d.ts +9 -9
- package/getRegistryImage.js +13 -9
- package/getRegistryImage.js.map +1 -1
- package/getRemoteImage.d.ts +9 -1
- package/getRemoteImage.js +12 -1
- package/getRemoteImage.js.map +1 -1
- package/image.d.ts +8 -6
- package/image.js +7 -4
- package/image.js.map +1 -1
- package/index.d.ts +1 -2
- package/index.js +1 -3
- package/index.js.map +1 -1
- package/network.d.ts +19 -19
- package/network.js +13 -13
- package/package.json +4 -3
- package/plugin.d.ts +3 -20
- package/plugin.js +0 -17
- package/plugin.js.map +1 -1
- package/provider.d.ts +11 -14
- package/provider.js.map +1 -1
- package/registryImage.d.ts +3 -20
- package/registryImage.js +0 -17
- package/registryImage.js.map +1 -1
- package/remoteImage.d.ts +44 -16
- package/remoteImage.js +32 -4
- package/remoteImage.js.map +1 -1
- package/secret.d.ts +1 -1
- package/secret.js +1 -1
- package/service.d.ts +23 -30
- package/service.js +23 -30
- package/service.js.map +1 -1
- package/serviceConfig.d.ts +13 -13
- package/serviceConfig.js +13 -13
- package/types/enums/index.d.ts +0 -2
- package/types/enums/index.js +1 -4
- package/types/enums/index.js.map +1 -1
- package/types/input.d.ts +3 -767
- package/types/input.js +0 -116
- package/types/input.js.map +1 -1
- package/types/output.d.ts +4 -769
- package/types/output.js +0 -115
- package/types/output.js.map +1 -1
- package/volume.d.ts +16 -16
- package/volume.js +13 -13
- package/buildx/image.d.ts +0 -916
- package/buildx/image.js +0 -558
- package/buildx/image.js.map +0 -1
- package/buildx/index.d.ts +0 -7
- package/buildx/index.js +0 -42
- package/buildx/index.js.map +0 -1
- package/buildx/index_.d.ts +0 -140
- package/buildx/index_.js +0 -130
- package/buildx/index_.js.map +0 -1
- package/package.json.bak +0 -28
- package/types/enums/buildx/index.d.ts +0 -72
- package/types/enums/buildx/index.js +0 -74
- package/types/enums/buildx/index.js.map +0 -1
package/types/output.js
CHANGED
|
@@ -2,119 +2,4 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.buildx = void 0;
|
|
6
|
-
const outputs = require("../types/output");
|
|
7
|
-
const utilities = require("../utilities");
|
|
8
|
-
var buildx;
|
|
9
|
-
(function (buildx) {
|
|
10
|
-
/**
|
|
11
|
-
* cacheFromProvideDefaults sets the appropriate defaults for CacheFrom
|
|
12
|
-
*/
|
|
13
|
-
function cacheFromProvideDefaults(val) {
|
|
14
|
-
return Object.assign(Object.assign({}, val), { gha: (val.gha ? outputs.buildx.cacheFromGitHubActionsProvideDefaults(val.gha) : undefined), s3: (val.s3 ? outputs.buildx.cacheFromS3ProvideDefaults(val.s3) : undefined) });
|
|
15
|
-
}
|
|
16
|
-
buildx.cacheFromProvideDefaults = cacheFromProvideDefaults;
|
|
17
|
-
/**
|
|
18
|
-
* cacheFromGitHubActionsProvideDefaults sets the appropriate defaults for CacheFromGitHubActions
|
|
19
|
-
*/
|
|
20
|
-
function cacheFromGitHubActionsProvideDefaults(val) {
|
|
21
|
-
var _a, _b, _c;
|
|
22
|
-
return Object.assign(Object.assign({}, val), { scope: (_a = (val.scope)) !== null && _a !== void 0 ? _a : (utilities.getEnv("buildkit") || ""), token: (_b = (val.token)) !== null && _b !== void 0 ? _b : (utilities.getEnv("ACTIONS_RUNTIME_TOKEN") || ""), url: (_c = (val.url)) !== null && _c !== void 0 ? _c : (utilities.getEnv("ACTIONS_RUNTIME_URL") || "") });
|
|
23
|
-
}
|
|
24
|
-
buildx.cacheFromGitHubActionsProvideDefaults = cacheFromGitHubActionsProvideDefaults;
|
|
25
|
-
/**
|
|
26
|
-
* cacheFromS3ProvideDefaults sets the appropriate defaults for CacheFromS3
|
|
27
|
-
*/
|
|
28
|
-
function cacheFromS3ProvideDefaults(val) {
|
|
29
|
-
var _a, _b, _c, _d;
|
|
30
|
-
return Object.assign(Object.assign({}, val), { accessKeyId: (_a = (val.accessKeyId)) !== null && _a !== void 0 ? _a : (utilities.getEnv("AWS_ACCESS_KEY_ID") || ""), region: (_b = (val.region)) !== null && _b !== void 0 ? _b : (utilities.getEnv("AWS_REGION") || ""), secretAccessKey: (_c = (val.secretAccessKey)) !== null && _c !== void 0 ? _c : (utilities.getEnv("AWS_SECRET_ACCESS_KEY") || ""), sessionToken: (_d = (val.sessionToken)) !== null && _d !== void 0 ? _d : (utilities.getEnv("AWS_SESSION_TOKEN") || "") });
|
|
31
|
-
}
|
|
32
|
-
buildx.cacheFromS3ProvideDefaults = cacheFromS3ProvideDefaults;
|
|
33
|
-
/**
|
|
34
|
-
* cacheToProvideDefaults sets the appropriate defaults for CacheTo
|
|
35
|
-
*/
|
|
36
|
-
function cacheToProvideDefaults(val) {
|
|
37
|
-
return Object.assign(Object.assign({}, val), { azblob: (val.azblob ? outputs.buildx.cacheToAzureBlobProvideDefaults(val.azblob) : undefined), gha: (val.gha ? outputs.buildx.cacheToGitHubActionsProvideDefaults(val.gha) : undefined), local: (val.local ? outputs.buildx.cacheToLocalProvideDefaults(val.local) : undefined), registry: (val.registry ? outputs.buildx.cacheToRegistryProvideDefaults(val.registry) : undefined), s3: (val.s3 ? outputs.buildx.cacheToS3ProvideDefaults(val.s3) : undefined) });
|
|
38
|
-
}
|
|
39
|
-
buildx.cacheToProvideDefaults = cacheToProvideDefaults;
|
|
40
|
-
/**
|
|
41
|
-
* cacheToAzureBlobProvideDefaults sets the appropriate defaults for CacheToAzureBlob
|
|
42
|
-
*/
|
|
43
|
-
function cacheToAzureBlobProvideDefaults(val) {
|
|
44
|
-
var _a, _b;
|
|
45
|
-
return Object.assign(Object.assign({}, val), { ignoreError: (_a = (val.ignoreError)) !== null && _a !== void 0 ? _a : false, mode: (_b = (val.mode)) !== null && _b !== void 0 ? _b : "min" });
|
|
46
|
-
}
|
|
47
|
-
buildx.cacheToAzureBlobProvideDefaults = cacheToAzureBlobProvideDefaults;
|
|
48
|
-
/**
|
|
49
|
-
* cacheToGitHubActionsProvideDefaults sets the appropriate defaults for CacheToGitHubActions
|
|
50
|
-
*/
|
|
51
|
-
function cacheToGitHubActionsProvideDefaults(val) {
|
|
52
|
-
var _a, _b, _c, _d, _e;
|
|
53
|
-
return Object.assign(Object.assign({}, val), { ignoreError: (_a = (val.ignoreError)) !== null && _a !== void 0 ? _a : false, mode: (_b = (val.mode)) !== null && _b !== void 0 ? _b : "min", scope: (_c = (val.scope)) !== null && _c !== void 0 ? _c : (utilities.getEnv("buildkit") || ""), token: (_d = (val.token)) !== null && _d !== void 0 ? _d : (utilities.getEnv("ACTIONS_RUNTIME_TOKEN") || ""), url: (_e = (val.url)) !== null && _e !== void 0 ? _e : (utilities.getEnv("ACTIONS_RUNTIME_URL") || "") });
|
|
54
|
-
}
|
|
55
|
-
buildx.cacheToGitHubActionsProvideDefaults = cacheToGitHubActionsProvideDefaults;
|
|
56
|
-
/**
|
|
57
|
-
* cacheToLocalProvideDefaults sets the appropriate defaults for CacheToLocal
|
|
58
|
-
*/
|
|
59
|
-
function cacheToLocalProvideDefaults(val) {
|
|
60
|
-
var _a, _b, _c, _d, _e;
|
|
61
|
-
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ignoreError: (_d = (val.ignoreError)) !== null && _d !== void 0 ? _d : false, mode: (_e = (val.mode)) !== null && _e !== void 0 ? _e : "min" });
|
|
62
|
-
}
|
|
63
|
-
buildx.cacheToLocalProvideDefaults = cacheToLocalProvideDefaults;
|
|
64
|
-
/**
|
|
65
|
-
* cacheToRegistryProvideDefaults sets the appropriate defaults for CacheToRegistry
|
|
66
|
-
*/
|
|
67
|
-
function cacheToRegistryProvideDefaults(val) {
|
|
68
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
69
|
-
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ignoreError: (_d = (val.ignoreError)) !== null && _d !== void 0 ? _d : false, imageManifest: (_e = (val.imageManifest)) !== null && _e !== void 0 ? _e : false, mode: (_f = (val.mode)) !== null && _f !== void 0 ? _f : "min", ociMediaTypes: (_g = (val.ociMediaTypes)) !== null && _g !== void 0 ? _g : true });
|
|
70
|
-
}
|
|
71
|
-
buildx.cacheToRegistryProvideDefaults = cacheToRegistryProvideDefaults;
|
|
72
|
-
/**
|
|
73
|
-
* cacheToS3ProvideDefaults sets the appropriate defaults for CacheToS3
|
|
74
|
-
*/
|
|
75
|
-
function cacheToS3ProvideDefaults(val) {
|
|
76
|
-
var _a, _b, _c, _d, _e, _f;
|
|
77
|
-
return Object.assign(Object.assign({}, val), { accessKeyId: (_a = (val.accessKeyId)) !== null && _a !== void 0 ? _a : (utilities.getEnv("AWS_ACCESS_KEY_ID") || ""), ignoreError: (_b = (val.ignoreError)) !== null && _b !== void 0 ? _b : false, mode: (_c = (val.mode)) !== null && _c !== void 0 ? _c : "min", region: (_d = (val.region)) !== null && _d !== void 0 ? _d : (utilities.getEnv("AWS_REGION") || ""), secretAccessKey: (_e = (val.secretAccessKey)) !== null && _e !== void 0 ? _e : (utilities.getEnv("AWS_SECRET_ACCESS_KEY") || ""), sessionToken: (_f = (val.sessionToken)) !== null && _f !== void 0 ? _f : (utilities.getEnv("AWS_SESSION_TOKEN") || "") });
|
|
78
|
-
}
|
|
79
|
-
buildx.cacheToS3ProvideDefaults = cacheToS3ProvideDefaults;
|
|
80
|
-
/**
|
|
81
|
-
* exportProvideDefaults sets the appropriate defaults for Export
|
|
82
|
-
*/
|
|
83
|
-
function exportProvideDefaults(val) {
|
|
84
|
-
return Object.assign(Object.assign({}, val), { docker: (val.docker ? outputs.buildx.exportDockerProvideDefaults(val.docker) : undefined), image: (val.image ? outputs.buildx.exportImageProvideDefaults(val.image) : undefined), oci: (val.oci ? outputs.buildx.exportOCIProvideDefaults(val.oci) : undefined), registry: (val.registry ? outputs.buildx.exportRegistryProvideDefaults(val.registry) : undefined) });
|
|
85
|
-
}
|
|
86
|
-
buildx.exportProvideDefaults = exportProvideDefaults;
|
|
87
|
-
/**
|
|
88
|
-
* exportDockerProvideDefaults sets the appropriate defaults for ExportDocker
|
|
89
|
-
*/
|
|
90
|
-
function exportDockerProvideDefaults(val) {
|
|
91
|
-
var _a, _b, _c, _d, _e;
|
|
92
|
-
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ociMediaTypes: (_d = (val.ociMediaTypes)) !== null && _d !== void 0 ? _d : false, tar: (_e = (val.tar)) !== null && _e !== void 0 ? _e : true });
|
|
93
|
-
}
|
|
94
|
-
buildx.exportDockerProvideDefaults = exportDockerProvideDefaults;
|
|
95
|
-
/**
|
|
96
|
-
* exportImageProvideDefaults sets the appropriate defaults for ExportImage
|
|
97
|
-
*/
|
|
98
|
-
function exportImageProvideDefaults(val) {
|
|
99
|
-
var _a, _b, _c, _d, _e;
|
|
100
|
-
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ociMediaTypes: (_d = (val.ociMediaTypes)) !== null && _d !== void 0 ? _d : false, store: (_e = (val.store)) !== null && _e !== void 0 ? _e : true });
|
|
101
|
-
}
|
|
102
|
-
buildx.exportImageProvideDefaults = exportImageProvideDefaults;
|
|
103
|
-
/**
|
|
104
|
-
* exportOCIProvideDefaults sets the appropriate defaults for ExportOCI
|
|
105
|
-
*/
|
|
106
|
-
function exportOCIProvideDefaults(val) {
|
|
107
|
-
var _a, _b, _c, _d, _e;
|
|
108
|
-
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ociMediaTypes: (_d = (val.ociMediaTypes)) !== null && _d !== void 0 ? _d : true, tar: (_e = (val.tar)) !== null && _e !== void 0 ? _e : true });
|
|
109
|
-
}
|
|
110
|
-
buildx.exportOCIProvideDefaults = exportOCIProvideDefaults;
|
|
111
|
-
/**
|
|
112
|
-
* exportRegistryProvideDefaults sets the appropriate defaults for ExportRegistry
|
|
113
|
-
*/
|
|
114
|
-
function exportRegistryProvideDefaults(val) {
|
|
115
|
-
var _a, _b, _c, _d, _e, _f;
|
|
116
|
-
return Object.assign(Object.assign({}, val), { compression: (_a = (val.compression)) !== null && _a !== void 0 ? _a : "gzip", compressionLevel: (_b = (val.compressionLevel)) !== null && _b !== void 0 ? _b : 0, forceCompression: (_c = (val.forceCompression)) !== null && _c !== void 0 ? _c : false, ociMediaTypes: (_d = (val.ociMediaTypes)) !== null && _d !== void 0 ? _d : false, push: (_e = (val.push)) !== null && _e !== void 0 ? _e : true, store: (_f = (val.store)) !== null && _f !== void 0 ? _f : true });
|
|
117
|
-
}
|
|
118
|
-
buildx.exportRegistryProvideDefaults = exportRegistryProvideDefaults;
|
|
119
|
-
})(buildx = exports.buildx || (exports.buildx = {}));
|
|
120
5
|
//# sourceMappingURL=output.js.map
|
package/types/output.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
|
package/volume.d.ts
CHANGED
|
@@ -11,36 +11,36 @@ import * as outputs from "./types/output";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as docker from "@pulumi/docker";
|
|
13
13
|
*
|
|
14
|
-
* const sharedVolume = new docker.Volume("
|
|
14
|
+
* const sharedVolume = new docker.Volume("shared_volume", {name: "shared_volume"});
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
17
|
* ## Import
|
|
18
18
|
*
|
|
19
19
|
* ### Example
|
|
20
20
|
*
|
|
21
|
-
*
|
|
21
|
+
* Assuming you created a `volume` as follows
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* #!/bin/bash
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* docker volume create
|
|
26
26
|
*
|
|
27
|
-
*
|
|
27
|
+
* prints the long ID
|
|
28
28
|
*
|
|
29
|
-
*
|
|
29
|
+
* 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
|
30
30
|
*
|
|
31
|
-
*
|
|
31
|
+
* you provide the definition for the resource as follows
|
|
32
32
|
*
|
|
33
|
-
*
|
|
33
|
+
* terraform
|
|
34
34
|
*
|
|
35
|
-
*
|
|
35
|
+
* resource "docker_volume" "foo" {
|
|
36
36
|
*
|
|
37
|
-
*
|
|
37
|
+
* name = "524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d"
|
|
38
38
|
*
|
|
39
|
-
*
|
|
39
|
+
* }
|
|
40
40
|
*
|
|
41
|
-
*
|
|
41
|
+
* then the import command is as follows
|
|
42
42
|
*
|
|
43
|
-
*
|
|
43
|
+
* #!/bin/bash
|
|
44
44
|
*
|
|
45
45
|
* ```sh
|
|
46
46
|
* $ pulumi import docker:index/volume:Volume foo 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
|
@@ -70,7 +70,7 @@ export declare class Volume extends pulumi.CustomResource {
|
|
|
70
70
|
* Options specific to the driver.
|
|
71
71
|
*/
|
|
72
72
|
readonly driverOpts: pulumi.Output<{
|
|
73
|
-
[key: string]:
|
|
73
|
+
[key: string]: string;
|
|
74
74
|
} | undefined>;
|
|
75
75
|
/**
|
|
76
76
|
* User-defined key/value metadata
|
|
@@ -105,7 +105,7 @@ export interface VolumeState {
|
|
|
105
105
|
* Options specific to the driver.
|
|
106
106
|
*/
|
|
107
107
|
driverOpts?: pulumi.Input<{
|
|
108
|
-
[key: string]:
|
|
108
|
+
[key: string]: pulumi.Input<string>;
|
|
109
109
|
}>;
|
|
110
110
|
/**
|
|
111
111
|
* User-defined key/value metadata
|
|
@@ -132,7 +132,7 @@ export interface VolumeArgs {
|
|
|
132
132
|
* Options specific to the driver.
|
|
133
133
|
*/
|
|
134
134
|
driverOpts?: pulumi.Input<{
|
|
135
|
-
[key: string]:
|
|
135
|
+
[key: string]: pulumi.Input<string>;
|
|
136
136
|
}>;
|
|
137
137
|
/**
|
|
138
138
|
* User-defined key/value metadata
|
package/volume.js
CHANGED
|
@@ -15,36 +15,36 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as docker from "@pulumi/docker";
|
|
17
17
|
*
|
|
18
|
-
* const sharedVolume = new docker.Volume("
|
|
18
|
+
* const sharedVolume = new docker.Volume("shared_volume", {name: "shared_volume"});
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
21
21
|
* ## Import
|
|
22
22
|
*
|
|
23
23
|
* ### Example
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* Assuming you created a `volume` as follows
|
|
26
26
|
*
|
|
27
|
-
*
|
|
27
|
+
* #!/bin/bash
|
|
28
28
|
*
|
|
29
|
-
*
|
|
29
|
+
* docker volume create
|
|
30
30
|
*
|
|
31
|
-
*
|
|
31
|
+
* prints the long ID
|
|
32
32
|
*
|
|
33
|
-
*
|
|
33
|
+
* 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|
|
34
34
|
*
|
|
35
|
-
*
|
|
35
|
+
* you provide the definition for the resource as follows
|
|
36
36
|
*
|
|
37
|
-
*
|
|
37
|
+
* terraform
|
|
38
38
|
*
|
|
39
|
-
*
|
|
39
|
+
* resource "docker_volume" "foo" {
|
|
40
40
|
*
|
|
41
|
-
*
|
|
41
|
+
* name = "524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d"
|
|
42
42
|
*
|
|
43
|
-
*
|
|
43
|
+
* }
|
|
44
44
|
*
|
|
45
|
-
*
|
|
45
|
+
* then the import command is as follows
|
|
46
46
|
*
|
|
47
|
-
*
|
|
47
|
+
* #!/bin/bash
|
|
48
48
|
*
|
|
49
49
|
* ```sh
|
|
50
50
|
* $ pulumi import docker:index/volume:Volume foo 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d
|