@pulumi/command 0.0.1-alpha.1640827590 → 0.0.1-testwindows.signing
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/README.md +101 -14
- package/index.d.ts +3 -1
- package/index.js +5 -16
- package/index.js.map +1 -1
- package/local/command.d.ts +314 -10
- package/local/command.js +117 -29
- package/local/command.js.map +1 -1
- package/local/index.d.ts +7 -1
- package/local/index.js +15 -7
- package/local/index.js.map +1 -1
- package/local/run.d.ts +391 -0
- package/local/run.js +46 -0
- package/local/run.js.map +1 -0
- package/package.json +16 -4
- package/package.json.dev +15 -3
- package/provider.js +12 -14
- package/provider.js.map +1 -1
- package/remote/command.d.ts +128 -9
- package/remote/command.js +95 -29
- package/remote/command.js.map +1 -1
- package/remote/copyFile.d.ts +13 -1
- package/remote/copyFile.js +34 -27
- package/remote/copyFile.js.map +1 -1
- package/remote/copyToRemote.d.ts +125 -0
- package/remote/copyToRemote.js +134 -0
- package/remote/copyToRemote.js.map +1 -0
- package/remote/index.d.ts +10 -2
- package/remote/index.js +19 -10
- package/remote/index.js.map +1 -1
- package/types/enums/index.d.ts +3 -0
- package/types/enums/index.js +11 -0
- package/types/enums/index.js.map +1 -0
- package/types/enums/local/index.d.ts +19 -0
- package/types/enums/local/index.js +24 -0
- package/types/enums/local/index.js.map +1 -0
- package/types/enums/remote/index.d.ts +19 -0
- package/types/enums/remote/index.js +24 -0
- package/types/enums/remote/index.js.map +1 -0
- package/types/index.d.ts +2 -1
- package/types/index.js +4 -2
- package/types/index.js.map +1 -1
- package/types/input.d.ts +70 -1
- package/types/input.js +13 -3
- package/types/input.js.map +1 -1
- package/types/output.d.ts +70 -1
- package/types/output.js +12 -3
- package/types/output.js.map +1 -1
- package/utilities.d.ts +4 -0
- package/utilities.js +51 -2
- package/utilities.js.map +1 -1
- package/package.json.bak +0 -16
package/types/input.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
2
3
|
export declare namespace remote {
|
|
3
4
|
/**
|
|
4
5
|
* Instructions for how to connect to a remote endpoint.
|
|
5
6
|
*/
|
|
6
7
|
interface ConnectionArgs {
|
|
8
|
+
/**
|
|
9
|
+
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
10
|
+
*/
|
|
11
|
+
agentSocketPath?: pulumi.Input<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Max allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.
|
|
14
|
+
*/
|
|
15
|
+
dialErrorLimit?: pulumi.Input<number>;
|
|
7
16
|
/**
|
|
8
17
|
* The address of the resource to connect to.
|
|
9
18
|
*/
|
|
@@ -13,17 +22,77 @@ export declare namespace remote {
|
|
|
13
22
|
*/
|
|
14
23
|
password?: pulumi.Input<string>;
|
|
15
24
|
/**
|
|
16
|
-
*
|
|
25
|
+
* Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.
|
|
26
|
+
*/
|
|
27
|
+
perDialTimeout?: pulumi.Input<number>;
|
|
28
|
+
/**
|
|
29
|
+
* The port to connect to. Defaults to 22.
|
|
17
30
|
*/
|
|
18
31
|
port?: pulumi.Input<number>;
|
|
19
32
|
/**
|
|
20
33
|
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
21
34
|
*/
|
|
22
35
|
privateKey?: pulumi.Input<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The password to use in case the private key is encrypted.
|
|
38
|
+
*/
|
|
39
|
+
privateKeyPassword?: pulumi.Input<string>;
|
|
40
|
+
/**
|
|
41
|
+
* The connection settings for the bastion/proxy host.
|
|
42
|
+
*/
|
|
43
|
+
proxy?: pulumi.Input<inputs.remote.ProxyConnectionArgs>;
|
|
44
|
+
/**
|
|
45
|
+
* The user that we should use for the connection.
|
|
46
|
+
*/
|
|
23
47
|
user?: pulumi.Input<string>;
|
|
24
48
|
}
|
|
25
49
|
/**
|
|
26
50
|
* connectionArgsProvideDefaults sets the appropriate defaults for ConnectionArgs
|
|
27
51
|
*/
|
|
28
52
|
function connectionArgsProvideDefaults(val: ConnectionArgs): ConnectionArgs;
|
|
53
|
+
/**
|
|
54
|
+
* Instructions for how to connect to a remote endpoint via a bastion host.
|
|
55
|
+
*/
|
|
56
|
+
interface ProxyConnectionArgs {
|
|
57
|
+
/**
|
|
58
|
+
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
59
|
+
*/
|
|
60
|
+
agentSocketPath?: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Max allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.
|
|
63
|
+
*/
|
|
64
|
+
dialErrorLimit?: pulumi.Input<number>;
|
|
65
|
+
/**
|
|
66
|
+
* The address of the bastion host to connect to.
|
|
67
|
+
*/
|
|
68
|
+
host: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The password we should use for the connection to the bastion host.
|
|
71
|
+
*/
|
|
72
|
+
password?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.
|
|
75
|
+
*/
|
|
76
|
+
perDialTimeout?: pulumi.Input<number>;
|
|
77
|
+
/**
|
|
78
|
+
* The port of the bastion host to connect to.
|
|
79
|
+
*/
|
|
80
|
+
port?: pulumi.Input<number>;
|
|
81
|
+
/**
|
|
82
|
+
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
83
|
+
*/
|
|
84
|
+
privateKey?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The password to use in case the private key is encrypted.
|
|
87
|
+
*/
|
|
88
|
+
privateKeyPassword?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The user that we should use for the connection to the bastion host.
|
|
91
|
+
*/
|
|
92
|
+
user?: pulumi.Input<string>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* proxyConnectionArgsProvideDefaults sets the appropriate defaults for ProxyConnectionArgs
|
|
96
|
+
*/
|
|
97
|
+
function proxyConnectionArgsProvideDefaults(val: ProxyConnectionArgs): ProxyConnectionArgs;
|
|
29
98
|
}
|
package/types/input.js
CHANGED
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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
5
|
exports.remote = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const inputs = require("../types/input");
|
|
6
8
|
var remote;
|
|
7
9
|
(function (remote) {
|
|
8
10
|
/**
|
|
9
11
|
* connectionArgsProvideDefaults sets the appropriate defaults for ConnectionArgs
|
|
10
12
|
*/
|
|
11
13
|
function connectionArgsProvideDefaults(val) {
|
|
12
|
-
var _a, _b;
|
|
13
|
-
return Object.assign(Object.assign({}, val), {
|
|
14
|
+
var _a, _b, _c, _d;
|
|
15
|
+
return Object.assign(Object.assign({}, val), { dialErrorLimit: (_a = (val.dialErrorLimit)) !== null && _a !== void 0 ? _a : 10, perDialTimeout: (_b = (val.perDialTimeout)) !== null && _b !== void 0 ? _b : 15, port: (_c = (val.port)) !== null && _c !== void 0 ? _c : 22, proxy: (val.proxy ? pulumi.output(val.proxy).apply(inputs.remote.proxyConnectionArgsProvideDefaults) : undefined), user: (_d = (val.user)) !== null && _d !== void 0 ? _d : "root" });
|
|
14
16
|
}
|
|
15
17
|
remote.connectionArgsProvideDefaults = connectionArgsProvideDefaults;
|
|
18
|
+
/**
|
|
19
|
+
* proxyConnectionArgsProvideDefaults sets the appropriate defaults for ProxyConnectionArgs
|
|
20
|
+
*/
|
|
21
|
+
function proxyConnectionArgsProvideDefaults(val) {
|
|
22
|
+
var _a, _b, _c, _d;
|
|
23
|
+
return Object.assign(Object.assign({}, val), { dialErrorLimit: (_a = (val.dialErrorLimit)) !== null && _a !== void 0 ? _a : 10, perDialTimeout: (_b = (val.perDialTimeout)) !== null && _b !== void 0 ? _b : 15, port: (_c = (val.port)) !== null && _c !== void 0 ? _c : 22, user: (_d = (val.user)) !== null && _d !== void 0 ? _d : "root" });
|
|
24
|
+
}
|
|
25
|
+
remote.proxyConnectionArgsProvideDefaults = proxyConnectionArgsProvideDefaults;
|
|
16
26
|
})(remote = exports.remote || (exports.remote = {}));
|
|
17
27
|
//# sourceMappingURL=input.js.map
|
package/types/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAMzC,IAAiB,MAAM,CAiHtB;AAjHD,WAAiB,MAAM;IA8CnB;;OAEG;IACH,SAAgB,6BAA6B,CAAC,GAAmB;;QAC7D,uCACO,GAAG,KACN,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,KAAK,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EACjH,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;IACN,CAAC;IATe,oCAA6B,gCAS5C,CAAA;IA2CD;;OAEG;IACH,SAAgB,kCAAkC,CAAC,GAAwB;;QACvE,uCACO,GAAG,KACN,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;IACN,CAAC;IARe,yCAAkC,qCAQjD,CAAA;AACL,CAAC,EAjHgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAiHtB"}
|
package/types/output.d.ts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import * as outputs from "../types/output";
|
|
1
2
|
export declare namespace remote {
|
|
2
3
|
/**
|
|
3
4
|
* Instructions for how to connect to a remote endpoint.
|
|
4
5
|
*/
|
|
5
6
|
interface Connection {
|
|
7
|
+
/**
|
|
8
|
+
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
9
|
+
*/
|
|
10
|
+
agentSocketPath?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Max allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.
|
|
13
|
+
*/
|
|
14
|
+
dialErrorLimit?: number;
|
|
6
15
|
/**
|
|
7
16
|
* The address of the resource to connect to.
|
|
8
17
|
*/
|
|
@@ -12,17 +21,77 @@ export declare namespace remote {
|
|
|
12
21
|
*/
|
|
13
22
|
password?: string;
|
|
14
23
|
/**
|
|
15
|
-
*
|
|
24
|
+
* Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.
|
|
25
|
+
*/
|
|
26
|
+
perDialTimeout?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The port to connect to. Defaults to 22.
|
|
16
29
|
*/
|
|
17
30
|
port?: number;
|
|
18
31
|
/**
|
|
19
32
|
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
20
33
|
*/
|
|
21
34
|
privateKey?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The password to use in case the private key is encrypted.
|
|
37
|
+
*/
|
|
38
|
+
privateKeyPassword?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The connection settings for the bastion/proxy host.
|
|
41
|
+
*/
|
|
42
|
+
proxy?: outputs.remote.ProxyConnection;
|
|
43
|
+
/**
|
|
44
|
+
* The user that we should use for the connection.
|
|
45
|
+
*/
|
|
22
46
|
user?: string;
|
|
23
47
|
}
|
|
24
48
|
/**
|
|
25
49
|
* connectionProvideDefaults sets the appropriate defaults for Connection
|
|
26
50
|
*/
|
|
27
51
|
function connectionProvideDefaults(val: Connection): Connection;
|
|
52
|
+
/**
|
|
53
|
+
* Instructions for how to connect to a remote endpoint via a bastion host.
|
|
54
|
+
*/
|
|
55
|
+
interface ProxyConnection {
|
|
56
|
+
/**
|
|
57
|
+
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
58
|
+
*/
|
|
59
|
+
agentSocketPath?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Max allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.
|
|
62
|
+
*/
|
|
63
|
+
dialErrorLimit?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The address of the bastion host to connect to.
|
|
66
|
+
*/
|
|
67
|
+
host: string;
|
|
68
|
+
/**
|
|
69
|
+
* The password we should use for the connection to the bastion host.
|
|
70
|
+
*/
|
|
71
|
+
password?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.
|
|
74
|
+
*/
|
|
75
|
+
perDialTimeout?: number;
|
|
76
|
+
/**
|
|
77
|
+
* The port of the bastion host to connect to.
|
|
78
|
+
*/
|
|
79
|
+
port?: number;
|
|
80
|
+
/**
|
|
81
|
+
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
82
|
+
*/
|
|
83
|
+
privateKey?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The password to use in case the private key is encrypted.
|
|
86
|
+
*/
|
|
87
|
+
privateKeyPassword?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The user that we should use for the connection to the bastion host.
|
|
90
|
+
*/
|
|
91
|
+
user?: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* proxyConnectionProvideDefaults sets the appropriate defaults for ProxyConnection
|
|
95
|
+
*/
|
|
96
|
+
function proxyConnectionProvideDefaults(val: ProxyConnection): ProxyConnection;
|
|
28
97
|
}
|
package/types/output.js
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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
5
|
exports.remote = void 0;
|
|
6
|
+
const outputs = require("../types/output");
|
|
6
7
|
var remote;
|
|
7
8
|
(function (remote) {
|
|
8
9
|
/**
|
|
9
10
|
* connectionProvideDefaults sets the appropriate defaults for Connection
|
|
10
11
|
*/
|
|
11
12
|
function connectionProvideDefaults(val) {
|
|
12
|
-
var _a, _b;
|
|
13
|
-
return Object.assign(Object.assign({}, val), {
|
|
13
|
+
var _a, _b, _c, _d;
|
|
14
|
+
return Object.assign(Object.assign({}, val), { dialErrorLimit: (_a = (val.dialErrorLimit)) !== null && _a !== void 0 ? _a : 10, perDialTimeout: (_b = (val.perDialTimeout)) !== null && _b !== void 0 ? _b : 15, port: (_c = (val.port)) !== null && _c !== void 0 ? _c : 22, proxy: (val.proxy ? outputs.remote.proxyConnectionProvideDefaults(val.proxy) : undefined), user: (_d = (val.user)) !== null && _d !== void 0 ? _d : "root" });
|
|
14
15
|
}
|
|
15
16
|
remote.connectionProvideDefaults = connectionProvideDefaults;
|
|
17
|
+
/**
|
|
18
|
+
* proxyConnectionProvideDefaults sets the appropriate defaults for ProxyConnection
|
|
19
|
+
*/
|
|
20
|
+
function proxyConnectionProvideDefaults(val) {
|
|
21
|
+
var _a, _b, _c, _d;
|
|
22
|
+
return Object.assign(Object.assign({}, val), { dialErrorLimit: (_a = (val.dialErrorLimit)) !== null && _a !== void 0 ? _a : 10, perDialTimeout: (_b = (val.perDialTimeout)) !== null && _b !== void 0 ? _b : 15, port: (_c = (val.port)) !== null && _c !== void 0 ? _c : 22, user: (_d = (val.user)) !== null && _d !== void 0 ? _d : "root" });
|
|
23
|
+
}
|
|
24
|
+
remote.proxyConnectionProvideDefaults = proxyConnectionProvideDefaults;
|
|
16
25
|
})(remote = exports.remote || (exports.remote = {}));
|
|
17
26
|
//# 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,
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,2CAA2C;AAK3C,IAAiB,MAAM,CAkHtB;AAlHD,WAAiB,MAAM;IA8CnB;;OAEG;IACH,SAAgB,yBAAyB,CAAC,GAAe;;QACrD,uCACO,GAAG,KACN,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,KAAK,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EACzF,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;IACN,CAAC;IATe,gCAAyB,4BASxC,CAAA;IA2CD;;OAEG;IACH,SAAgB,8BAA8B,CAAC,GAAoB;;QAC/D,uCACO,GAAG,KACN,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;IACN,CAAC;IARe,qCAA8B,iCAQ7C,CAAA;AAEL,CAAC,EAlHgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAkHtB"}
|
package/utilities.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
1
2
|
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
3
|
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
4
|
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
5
|
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
4
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
6
16
|
function getEnv(...vars) {
|
|
7
17
|
for (const v of vars) {
|
|
8
18
|
const value = process.env[v];
|
|
@@ -49,4 +59,43 @@ function getVersion() {
|
|
|
49
59
|
return version;
|
|
50
60
|
}
|
|
51
61
|
exports.getVersion = getVersion;
|
|
62
|
+
/** @internal */
|
|
63
|
+
function resourceOptsDefaults() {
|
|
64
|
+
return { version: getVersion() };
|
|
65
|
+
}
|
|
66
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
67
|
+
/** @internal */
|
|
68
|
+
function lazyLoad(exports, props, loadModule) {
|
|
69
|
+
for (let property of props) {
|
|
70
|
+
Object.defineProperty(exports, property, {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return loadModule()[property];
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
52
101
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG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|
6
|
-
},
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"@pulumi/pulumi": "^3.0.0"
|
|
9
|
-
},
|
|
10
|
-
"devDependencies": {
|
|
11
|
-
"typescript": "^4.3.5"
|
|
12
|
-
},
|
|
13
|
-
"pulumi": {
|
|
14
|
-
"resource": true
|
|
15
|
-
}
|
|
16
|
-
}
|