@pulumi/docker-build 0.0.1-alpha.100

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/index_.d.ts ADDED
@@ -0,0 +1,152 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * A wrapper around `docker buildx imagetools create` to create an index
6
+ * (or manifest list) referencing one or more existing images.
7
+ *
8
+ * In most cases you do not need an `Index` to build a multi-platform
9
+ * image -- specifying multiple platforms on the `Image` will handle this
10
+ * for you automatically.
11
+ *
12
+ * However, as of April 2024, building multi-platform images _with
13
+ * caching_ will only export a cache for one platform at a time (see [this
14
+ * discussion](https://github.com/docker/buildx/discussions/1382) for more
15
+ * details).
16
+ *
17
+ * Therefore this resource can be helpful if you are building
18
+ * multi-platform images with caching: each platform can be built and
19
+ * cached separately, and an `Index` can join them all together. An
20
+ * example of this is shown below.
21
+ *
22
+ * This resource creates an OCI image index or a Docker manifest list
23
+ * depending on the media types of the source images.
24
+ *
25
+ * ## Example Usage
26
+ * ### Multi-platform registry caching
27
+ *
28
+ * ```typescript
29
+ * import * as pulumi from "@pulumi/pulumi";
30
+ * import * as docker_build from "@pulumi/docker-build";
31
+ *
32
+ * const amd64 = new docker_build.Image("amd64", {
33
+ * cacheFrom: [{
34
+ * registry: {
35
+ * ref: "docker.io/pulumi/pulumi:cache-amd64",
36
+ * },
37
+ * }],
38
+ * cacheTo: [{
39
+ * registry: {
40
+ * mode: docker_build.CacheMode.Max,
41
+ * ref: "docker.io/pulumi/pulumi:cache-amd64",
42
+ * },
43
+ * }],
44
+ * context: {
45
+ * location: "app",
46
+ * },
47
+ * platforms: [docker_build.Platform.Linux_amd64],
48
+ * tags: ["docker.io/pulumi/pulumi:3.107.0-amd64"],
49
+ * });
50
+ * const arm64 = new docker_build.Image("arm64", {
51
+ * cacheFrom: [{
52
+ * registry: {
53
+ * ref: "docker.io/pulumi/pulumi:cache-arm64",
54
+ * },
55
+ * }],
56
+ * cacheTo: [{
57
+ * registry: {
58
+ * mode: docker_build.CacheMode.Max,
59
+ * ref: "docker.io/pulumi/pulumi:cache-arm64",
60
+ * },
61
+ * }],
62
+ * context: {
63
+ * location: "app",
64
+ * },
65
+ * platforms: [docker_build.Platform.Linux_arm64],
66
+ * tags: ["docker.io/pulumi/pulumi:3.107.0-arm64"],
67
+ * });
68
+ * const index = new docker_build.Index("index", {
69
+ * sources: [
70
+ * amd64.ref,
71
+ * arm64.ref,
72
+ * ],
73
+ * tag: "docker.io/pulumi/pulumi:3.107.0",
74
+ * });
75
+ * export const ref = index.ref;
76
+ * ```
77
+ */
78
+ export declare class Index extends pulumi.CustomResource {
79
+ /**
80
+ * Get an existing Index resource's state with the given name, ID, and optional extra
81
+ * properties used to qualify the lookup.
82
+ *
83
+ * @param name The _unique_ name of the resulting resource.
84
+ * @param id The _unique_ provider ID of the resource to lookup.
85
+ * @param opts Optional settings to control the behavior of the CustomResource.
86
+ */
87
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Index;
88
+ /**
89
+ * Returns true if the given object is an instance of Index. This is designed to work even
90
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
91
+ */
92
+ static isInstance(obj: any): obj is Index;
93
+ /**
94
+ * If true, push the index to the target registry.
95
+ *
96
+ * Defaults to `true`.
97
+ */
98
+ readonly push: pulumi.Output<boolean | undefined>;
99
+ /**
100
+ * The pushed tag with digest.
101
+ *
102
+ * Identical to the tag if the index was not pushed.
103
+ */
104
+ readonly ref: pulumi.Output<string>;
105
+ /**
106
+ * Authentication for the registry where the tagged index will be pushed.
107
+ *
108
+ * Credentials can also be included with the provider's configuration.
109
+ */
110
+ readonly registry: pulumi.Output<outputs.Registry | undefined>;
111
+ /**
112
+ * Existing images to include in the index.
113
+ */
114
+ readonly sources: pulumi.Output<string[]>;
115
+ /**
116
+ * The tag to apply to the index.
117
+ */
118
+ readonly tag: pulumi.Output<string>;
119
+ /**
120
+ * Create a Index resource with the given unique name, arguments, and options.
121
+ *
122
+ * @param name The _unique_ name of the resource.
123
+ * @param args The arguments to use to populate this resource's properties.
124
+ * @param opts A bag of options that control this resource's behavior.
125
+ */
126
+ constructor(name: string, args: IndexArgs, opts?: pulumi.CustomResourceOptions);
127
+ }
128
+ /**
129
+ * The set of arguments for constructing a Index resource.
130
+ */
131
+ export interface IndexArgs {
132
+ /**
133
+ * If true, push the index to the target registry.
134
+ *
135
+ * Defaults to `true`.
136
+ */
137
+ push?: pulumi.Input<boolean>;
138
+ /**
139
+ * Authentication for the registry where the tagged index will be pushed.
140
+ *
141
+ * Credentials can also be included with the provider's configuration.
142
+ */
143
+ registry?: pulumi.Input<inputs.RegistryArgs>;
144
+ /**
145
+ * Existing images to include in the index.
146
+ */
147
+ sources: pulumi.Input<pulumi.Input<string>[]>;
148
+ /**
149
+ * The tag to apply to the index.
150
+ */
151
+ tag: pulumi.Input<string>;
152
+ }
package/index_.js ADDED
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Index = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * A wrapper around `docker buildx imagetools create` to create an index
10
+ * (or manifest list) referencing one or more existing images.
11
+ *
12
+ * In most cases you do not need an `Index` to build a multi-platform
13
+ * image -- specifying multiple platforms on the `Image` will handle this
14
+ * for you automatically.
15
+ *
16
+ * However, as of April 2024, building multi-platform images _with
17
+ * caching_ will only export a cache for one platform at a time (see [this
18
+ * discussion](https://github.com/docker/buildx/discussions/1382) for more
19
+ * details).
20
+ *
21
+ * Therefore this resource can be helpful if you are building
22
+ * multi-platform images with caching: each platform can be built and
23
+ * cached separately, and an `Index` can join them all together. An
24
+ * example of this is shown below.
25
+ *
26
+ * This resource creates an OCI image index or a Docker manifest list
27
+ * depending on the media types of the source images.
28
+ *
29
+ * ## Example Usage
30
+ * ### Multi-platform registry caching
31
+ *
32
+ * ```typescript
33
+ * import * as pulumi from "@pulumi/pulumi";
34
+ * import * as docker_build from "@pulumi/docker-build";
35
+ *
36
+ * const amd64 = new docker_build.Image("amd64", {
37
+ * cacheFrom: [{
38
+ * registry: {
39
+ * ref: "docker.io/pulumi/pulumi:cache-amd64",
40
+ * },
41
+ * }],
42
+ * cacheTo: [{
43
+ * registry: {
44
+ * mode: docker_build.CacheMode.Max,
45
+ * ref: "docker.io/pulumi/pulumi:cache-amd64",
46
+ * },
47
+ * }],
48
+ * context: {
49
+ * location: "app",
50
+ * },
51
+ * platforms: [docker_build.Platform.Linux_amd64],
52
+ * tags: ["docker.io/pulumi/pulumi:3.107.0-amd64"],
53
+ * });
54
+ * const arm64 = new docker_build.Image("arm64", {
55
+ * cacheFrom: [{
56
+ * registry: {
57
+ * ref: "docker.io/pulumi/pulumi:cache-arm64",
58
+ * },
59
+ * }],
60
+ * cacheTo: [{
61
+ * registry: {
62
+ * mode: docker_build.CacheMode.Max,
63
+ * ref: "docker.io/pulumi/pulumi:cache-arm64",
64
+ * },
65
+ * }],
66
+ * context: {
67
+ * location: "app",
68
+ * },
69
+ * platforms: [docker_build.Platform.Linux_arm64],
70
+ * tags: ["docker.io/pulumi/pulumi:3.107.0-arm64"],
71
+ * });
72
+ * const index = new docker_build.Index("index", {
73
+ * sources: [
74
+ * amd64.ref,
75
+ * arm64.ref,
76
+ * ],
77
+ * tag: "docker.io/pulumi/pulumi:3.107.0",
78
+ * });
79
+ * export const ref = index.ref;
80
+ * ```
81
+ */
82
+ class Index extends pulumi.CustomResource {
83
+ /**
84
+ * Get an existing Index resource's state with the given name, ID, and optional extra
85
+ * properties used to qualify the lookup.
86
+ *
87
+ * @param name The _unique_ name of the resulting resource.
88
+ * @param id The _unique_ provider ID of the resource to lookup.
89
+ * @param opts Optional settings to control the behavior of the CustomResource.
90
+ */
91
+ static get(name, id, opts) {
92
+ return new Index(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
93
+ }
94
+ /**
95
+ * Returns true if the given object is an instance of Index. This is designed to work even
96
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
97
+ */
98
+ static isInstance(obj) {
99
+ if (obj === undefined || obj === null) {
100
+ return false;
101
+ }
102
+ return obj['__pulumiType'] === Index.__pulumiType;
103
+ }
104
+ /**
105
+ * Create a Index resource with the given unique name, arguments, and options.
106
+ *
107
+ * @param name The _unique_ name of the resource.
108
+ * @param args The arguments to use to populate this resource's properties.
109
+ * @param opts A bag of options that control this resource's behavior.
110
+ */
111
+ constructor(name, args, opts) {
112
+ var _a;
113
+ let resourceInputs = {};
114
+ opts = opts || {};
115
+ if (!opts.id) {
116
+ if ((!args || args.sources === undefined) && !opts.urn) {
117
+ throw new Error("Missing required property 'sources'");
118
+ }
119
+ if ((!args || args.tag === undefined) && !opts.urn) {
120
+ throw new Error("Missing required property 'tag'");
121
+ }
122
+ resourceInputs["push"] = (_a = (args ? args.push : undefined)) !== null && _a !== void 0 ? _a : true;
123
+ resourceInputs["registry"] = args ? args.registry : undefined;
124
+ resourceInputs["sources"] = args ? args.sources : undefined;
125
+ resourceInputs["tag"] = args ? args.tag : undefined;
126
+ resourceInputs["ref"] = undefined /*out*/;
127
+ }
128
+ else {
129
+ resourceInputs["push"] = undefined /*out*/;
130
+ resourceInputs["ref"] = undefined /*out*/;
131
+ resourceInputs["registry"] = undefined /*out*/;
132
+ resourceInputs["sources"] = undefined /*out*/;
133
+ resourceInputs["tag"] = undefined /*out*/;
134
+ }
135
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
136
+ super(Index.__pulumiType, name, resourceInputs, opts);
137
+ }
138
+ }
139
+ exports.Index = Index;
140
+ /** @internal */
141
+ Index.__pulumiType = 'docker-build:index:Index';
142
+ //# sourceMappingURL=index_.js.map
package/index_.js.map ADDED
@@ -0,0 +1 @@
1
+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epage": "https://pulumi.com",
11
+ "repository": "https://github.com/pulumi/pulumi-docker-build",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "install": "node scripts/install-pulumi-plugin.js resource docker-build 0.0.1-alpha.100"
16
+ },
17
+ "dependencies": {
18
+ "@pulumi/pulumi": "^3.142.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/node": "^14",
22
+ "typescript": "^4.3.5"
23
+ },
24
+ "pulumi": {
25
+ "resource": true,
26
+ "name": "docker-build",
27
+ "version": "0.0.1-alpha.100"
28
+ }
29
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@pulumi/docker-build",
3
+ "version": "0.0.1-alpha.100",
4
+ "keywords": [
5
+ "docker",
6
+ "buildkit",
7
+ "buildx",
8
+ "kind/native"
9
+ ],
10
+ "homepage": "https://pulumi.com",
11
+ "repository": "https://github.com/pulumi/pulumi-docker-build",
12
+ "license": "Apache-2.0",
13
+ "scripts": {
14
+ "build": "tsc"
15
+ },
16
+ "dependencies": {
17
+ "@pulumi/pulumi": "^3.142.0"
18
+ },
19
+ "devDependencies": {
20
+ "@types/node": "^14",
21
+ "typescript": "^4.3.5"
22
+ },
23
+ "pulumi": {
24
+ "resource": true,
25
+ "name": "docker-build",
26
+ "version": "0.0.1-alpha.100"
27
+ }
28
+ }
package/provider.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ export declare class Provider extends pulumi.ProviderResource {
4
+ /**
5
+ * Returns true if the given object is an instance of Provider. This is designed to work even
6
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
7
+ */
8
+ static isInstance(obj: any): obj is Provider;
9
+ /**
10
+ * The build daemon's address.
11
+ */
12
+ readonly host: pulumi.Output<string | undefined>;
13
+ /**
14
+ * Create a Provider resource with the given unique name, arguments, and options.
15
+ *
16
+ * @param name The _unique_ name of the resource.
17
+ * @param args The arguments to use to populate this resource's properties.
18
+ * @param opts A bag of options that control this resource's behavior.
19
+ */
20
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
21
+ }
22
+ /**
23
+ * The set of arguments for constructing a Provider resource.
24
+ */
25
+ export interface ProviderArgs {
26
+ /**
27
+ * The build daemon's address.
28
+ */
29
+ host?: pulumi.Input<string>;
30
+ registries?: pulumi.Input<pulumi.Input<inputs.RegistryArgs>[]>;
31
+ }
package/provider.js ADDED
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Provider = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class Provider extends pulumi.ProviderResource {
9
+ /**
10
+ * Returns true if the given object is an instance of Provider. This is designed to work even
11
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
+ */
13
+ static isInstance(obj) {
14
+ if (obj === undefined || obj === null) {
15
+ return false;
16
+ }
17
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
18
+ }
19
+ /**
20
+ * Create a Provider resource with the given unique name, arguments, and options.
21
+ *
22
+ * @param name The _unique_ name of the resource.
23
+ * @param args The arguments to use to populate this resource's properties.
24
+ * @param opts A bag of options that control this resource's behavior.
25
+ */
26
+ constructor(name, args, opts) {
27
+ var _a;
28
+ let resourceInputs = {};
29
+ opts = opts || {};
30
+ {
31
+ resourceInputs["host"] = (_a = (args ? args.host : undefined)) !== null && _a !== void 0 ? _a : (utilities.getEnv("DOCKER_HOST") || "");
32
+ resourceInputs["registries"] = pulumi.output(args ? args.registries : undefined).apply(JSON.stringify);
33
+ }
34
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
35
+ super(Provider.__pulumiType, name, resourceInputs, opts);
36
+ }
37
+ }
38
+ exports.Provider = Provider;
39
+ /** @internal */
40
+ Provider.__pulumiType = 'docker-build';
41
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAOD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,MAAM,CAAC,GAAG,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,CAAC,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC;YACnG,cAAc,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC1G;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AApCL,4BAqCC;AApCG,gBAAgB;AACO,qBAAY,GAAG,cAAc,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var childProcess = require("child_process");
3
+
4
+ var args = process.argv.slice(2);
5
+ var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
6
+ stdio: ["ignore", "inherit", "inherit"]
7
+ });
8
+
9
+ if (res.error && res.error.code === "ENOENT") {
10
+ console.error("\nThere was an error installing the resource provider plugin. " +
11
+ "It looks like `pulumi` is not installed on your system. " +
12
+ "Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
13
+ "You may try manually installing the plugin by running " +
14
+ "`pulumi plugin install " + args.join(" ") + "`");
15
+ } else if (res.error || res.status !== 0) {
16
+ console.error("\nThere was an error installing the resource provider plugin. " +
17
+ "You may try to manually installing the plugin by running " +
18
+ "`pulumi plugin install " + args.join(" ") + "`");
19
+ }
20
+
21
+ process.exit(0);
@@ -0,0 +1,72 @@
1
+ export declare const CacheMode: {
2
+ /**
3
+ * Only layers that are exported into the resulting image are cached.
4
+ */
5
+ readonly Min: "min";
6
+ /**
7
+ * All layers are cached, even those of intermediate steps.
8
+ */
9
+ readonly Max: "max";
10
+ };
11
+ export type CacheMode = (typeof CacheMode)[keyof typeof CacheMode];
12
+ export declare const CompressionType: {
13
+ /**
14
+ * Use `gzip` for compression.
15
+ */
16
+ readonly Gzip: "gzip";
17
+ /**
18
+ * Use `estargz` for compression.
19
+ */
20
+ readonly Estargz: "estargz";
21
+ /**
22
+ * Use `zstd` for compression.
23
+ */
24
+ readonly Zstd: "zstd";
25
+ };
26
+ export type CompressionType = (typeof CompressionType)[keyof typeof CompressionType];
27
+ export declare const NetworkMode: {
28
+ /**
29
+ * The default sandbox network mode.
30
+ */
31
+ readonly Default: "default";
32
+ /**
33
+ * Host network mode.
34
+ */
35
+ readonly Host: "host";
36
+ /**
37
+ * Disable network access.
38
+ */
39
+ readonly None: "none";
40
+ };
41
+ export type NetworkMode = (typeof NetworkMode)[keyof typeof NetworkMode];
42
+ export declare const Platform: {
43
+ readonly Darwin_386: "darwin/386";
44
+ readonly Darwin_amd64: "darwin/amd64";
45
+ readonly Darwin_arm: "darwin/arm";
46
+ readonly Darwin_arm64: "darwin/arm64";
47
+ readonly Dragonfly_amd64: "dragonfly/amd64";
48
+ readonly Freebsd_386: "freebsd/386";
49
+ readonly Freebsd_amd64: "freebsd/amd64";
50
+ readonly Freebsd_arm: "freebsd/arm";
51
+ readonly Linux_386: "linux/386";
52
+ readonly Linux_amd64: "linux/amd64";
53
+ readonly Linux_arm: "linux/arm";
54
+ readonly Linux_arm64: "linux/arm64";
55
+ readonly Linux_mips64: "linux/mips64";
56
+ readonly Linux_mips64le: "linux/mips64le";
57
+ readonly Linux_ppc64le: "linux/ppc64le";
58
+ readonly Linux_riscv64: "linux/riscv64";
59
+ readonly Linux_s390x: "linux/s390x";
60
+ readonly Netbsd_386: "netbsd/386";
61
+ readonly Netbsd_amd64: "netbsd/amd64";
62
+ readonly Netbsd_arm: "netbsd/arm";
63
+ readonly Openbsd_386: "openbsd/386";
64
+ readonly Openbsd_amd64: "openbsd/amd64";
65
+ readonly Openbsd_arm: "openbsd/arm";
66
+ readonly Plan9_386: "plan9/386";
67
+ readonly Plan9_amd64: "plan9/amd64";
68
+ readonly Solaris_amd64: "solaris/amd64";
69
+ readonly Windows_386: "windows/386";
70
+ readonly Windows_amd64: "windows/amd64";
71
+ };
72
+ export type Platform = (typeof Platform)[keyof typeof Platform];
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Platform = exports.NetworkMode = exports.CompressionType = exports.CacheMode = void 0;
6
+ exports.CacheMode = {
7
+ /**
8
+ * Only layers that are exported into the resulting image are cached.
9
+ */
10
+ Min: "min",
11
+ /**
12
+ * All layers are cached, even those of intermediate steps.
13
+ */
14
+ Max: "max",
15
+ };
16
+ exports.CompressionType = {
17
+ /**
18
+ * Use `gzip` for compression.
19
+ */
20
+ Gzip: "gzip",
21
+ /**
22
+ * Use `estargz` for compression.
23
+ */
24
+ Estargz: "estargz",
25
+ /**
26
+ * Use `zstd` for compression.
27
+ */
28
+ Zstd: "zstd",
29
+ };
30
+ exports.NetworkMode = {
31
+ /**
32
+ * The default sandbox network mode.
33
+ */
34
+ Default: "default",
35
+ /**
36
+ * Host network mode.
37
+ */
38
+ Host: "host",
39
+ /**
40
+ * Disable network access.
41
+ */
42
+ None: "none",
43
+ };
44
+ exports.Platform = {
45
+ Darwin_386: "darwin/386",
46
+ Darwin_amd64: "darwin/amd64",
47
+ Darwin_arm: "darwin/arm",
48
+ Darwin_arm64: "darwin/arm64",
49
+ Dragonfly_amd64: "dragonfly/amd64",
50
+ Freebsd_386: "freebsd/386",
51
+ Freebsd_amd64: "freebsd/amd64",
52
+ Freebsd_arm: "freebsd/arm",
53
+ Linux_386: "linux/386",
54
+ Linux_amd64: "linux/amd64",
55
+ Linux_arm: "linux/arm",
56
+ Linux_arm64: "linux/arm64",
57
+ Linux_mips64: "linux/mips64",
58
+ Linux_mips64le: "linux/mips64le",
59
+ Linux_ppc64le: "linux/ppc64le",
60
+ Linux_riscv64: "linux/riscv64",
61
+ Linux_s390x: "linux/s390x",
62
+ Netbsd_386: "netbsd/386",
63
+ Netbsd_amd64: "netbsd/amd64",
64
+ Netbsd_arm: "netbsd/arm",
65
+ Openbsd_386: "openbsd/386",
66
+ Openbsd_amd64: "openbsd/amd64",
67
+ Openbsd_arm: "openbsd/arm",
68
+ Plan9_386: "plan9/386",
69
+ Plan9_amd64: "plan9/amd64",
70
+ Solaris_amd64: "solaris/amd64",
71
+ Windows_386: "windows/386",
72
+ Windows_amd64: "windows/amd64",
73
+ };
74
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/enums/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,SAAS,GAAG;IACrB;;OAEG;IACH,GAAG,EAAE,KAAK;IACV;;OAEG;IACH,GAAG,EAAE,KAAK;CACJ,CAAC;AAIE,QAAA,eAAe,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM;CACN,CAAC;AAIE,QAAA,WAAW,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,SAAS;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM;CACN,CAAC;AAIE,QAAA,QAAQ,GAAG;IACpB,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;CACxB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as enums from "./enums";
2
+ import * as input from "./input";
3
+ import * as output from "./output";
4
+ export { enums, input, output, };
package/types/index.js ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.output = exports.input = exports.enums = void 0;
6
+ // Export sub-modules:
7
+ const enums = require("./enums");
8
+ exports.enums = enums;
9
+ const input = require("./input");
10
+ exports.input = input;
11
+ const output = require("./output");
12
+ exports.output = output;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAK7B,sBAAK;AAJT,iCAAiC;AAK7B,sBAAK;AAJT,mCAAmC;AAK/B,wBAAM"}