@cloudyskysoftware/pulumi-render 0.0.31
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/LICENSE +202 -0
- package/README.md +197 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +9 -0
- package/config/vars.js +19 -0
- package/config/vars.js.map +1 -0
- package/index.d.ts +5 -0
- package/index.js +41 -0
- package/index.js.map +1 -0
- package/package.json +38 -0
- package/provider.d.ts +28 -0
- package/provider.js +43 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +26 -0
- package/services/customDomain.d.ts +40 -0
- package/services/customDomain.js +71 -0
- package/services/customDomain.js.map +1 -0
- package/services/deploy.d.ts +34 -0
- package/services/deploy.js +56 -0
- package/services/deploy.js.map +1 -0
- package/services/index.d.ts +7 -0
- package/services/index.js +59 -0
- package/services/index.js.map +1 -0
- package/services/scale.d.ts +32 -0
- package/services/scale.js +56 -0
- package/services/scale.js.map +1 -0
- package/services/staticSite.d.ts +101 -0
- package/services/staticSite.js +102 -0
- package/services/staticSite.js.map +1 -0
- package/services/suspend.d.ts +30 -0
- package/services/suspend.js +51 -0
- package/services/suspend.js.map +1 -0
- package/services/webService.d.ts +90 -0
- package/services/webService.js +91 -0
- package/services/webService.js.map +1 -0
- package/types/enums/index.d.ts +2 -0
- package/types/enums/index.js +9 -0
- package/types/enums/index.js.map +1 -0
- package/types/enums/services/index.d.ts +100 -0
- package/types/enums/services/index.js +79 -0
- package/types/enums/services/index.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +13 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +80 -0
- package/types/input.js +43 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +84 -0
- package/types/output.js +42 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +57 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { output as outputs, enums } from "../types";
|
|
2
|
+
export declare namespace services {
|
|
3
|
+
interface DeployCommit {
|
|
4
|
+
createdAt?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
message?: string;
|
|
7
|
+
}
|
|
8
|
+
interface ServerProperties {
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A service header object
|
|
14
|
+
*/
|
|
15
|
+
interface StaticSiteServiceHeader {
|
|
16
|
+
name: string;
|
|
17
|
+
path: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A route object for a static site
|
|
22
|
+
*/
|
|
23
|
+
interface StaticSiteStaticSiteRoute {
|
|
24
|
+
destination: string;
|
|
25
|
+
source: string;
|
|
26
|
+
type: enums.services.StaticSiteStaticSiteRouteType;
|
|
27
|
+
}
|
|
28
|
+
interface StaticSiteStaticSiteServiceDetails {
|
|
29
|
+
buildCommand?: string;
|
|
30
|
+
headers?: outputs.services.StaticSiteServiceHeader[];
|
|
31
|
+
parentServer?: outputs.services.StaticSiteStaticSiteServiceDetailsParentServerProperties;
|
|
32
|
+
publishPath?: string;
|
|
33
|
+
pullRequestPreviewsEnabled?: enums.services.StaticSiteStaticSiteServiceDetailsPullRequestPreviewsEnabled;
|
|
34
|
+
routes?: outputs.services.StaticSiteStaticSiteRoute[];
|
|
35
|
+
/**
|
|
36
|
+
* The HTTPS service URL. A subdomain of onrender.com, by default.
|
|
37
|
+
*/
|
|
38
|
+
url?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* staticSiteStaticSiteServiceDetailsProvideDefaults sets the appropriate defaults for StaticSiteStaticSiteServiceDetails
|
|
42
|
+
*/
|
|
43
|
+
function staticSiteStaticSiteServiceDetailsProvideDefaults(val: StaticSiteStaticSiteServiceDetails): StaticSiteStaticSiteServiceDetails;
|
|
44
|
+
interface StaticSiteStaticSiteServiceDetailsParentServerProperties {
|
|
45
|
+
id?: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
}
|
|
48
|
+
interface WebServiceDisk {
|
|
49
|
+
mountPath: string;
|
|
50
|
+
name: string;
|
|
51
|
+
sizeGB?: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* webServiceDiskProvideDefaults sets the appropriate defaults for WebServiceDisk
|
|
55
|
+
*/
|
|
56
|
+
function webServiceDiskProvideDefaults(val: WebServiceDisk): WebServiceDisk;
|
|
57
|
+
interface WebServiceDockerDetails {
|
|
58
|
+
dockerCommand?: string;
|
|
59
|
+
dockerContext?: string;
|
|
60
|
+
dockerfilePath?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* webServiceDockerDetailsProvideDefaults sets the appropriate defaults for WebServiceDockerDetails
|
|
64
|
+
*/
|
|
65
|
+
function webServiceDockerDetailsProvideDefaults(val: WebServiceDockerDetails): WebServiceDockerDetails;
|
|
66
|
+
interface WebServiceNativeEnvironmentDetails {
|
|
67
|
+
buildCommand: string;
|
|
68
|
+
startCommand: string;
|
|
69
|
+
}
|
|
70
|
+
interface WebServiceWebServiceServiceDetails {
|
|
71
|
+
disk?: outputs.services.WebServiceDisk;
|
|
72
|
+
env: enums.services.WebServiceWebServiceServiceDetailsEnv;
|
|
73
|
+
envSpecificDetails?: outputs.services.WebServiceDockerDetails | outputs.services.WebServiceNativeEnvironmentDetails;
|
|
74
|
+
healthCheckPath?: string;
|
|
75
|
+
numInstances?: number;
|
|
76
|
+
plan?: enums.services.WebServiceWebServiceServiceDetailsPlan;
|
|
77
|
+
pullRequestPreviewsEnabled?: enums.services.WebServiceWebServiceServiceDetailsPullRequestPreviewsEnabled;
|
|
78
|
+
region?: enums.services.WebServiceWebServiceServiceDetailsRegion;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* webServiceWebServiceServiceDetailsProvideDefaults sets the appropriate defaults for WebServiceWebServiceServiceDetails
|
|
82
|
+
*/
|
|
83
|
+
function webServiceWebServiceServiceDetailsProvideDefaults(val: WebServiceWebServiceServiceDetails): WebServiceWebServiceServiceDetails;
|
|
84
|
+
}
|
package/types/output.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumigen. ***
|
|
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.services = void 0;
|
|
6
|
+
const types_1 = require("../types");
|
|
7
|
+
var services;
|
|
8
|
+
(function (services) {
|
|
9
|
+
/**
|
|
10
|
+
* staticSiteStaticSiteServiceDetailsProvideDefaults sets the appropriate defaults for StaticSiteStaticSiteServiceDetails
|
|
11
|
+
*/
|
|
12
|
+
function staticSiteStaticSiteServiceDetailsProvideDefaults(val) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
return Object.assign(Object.assign({}, val), { publishPath: (_a = (val.publishPath)) !== null && _a !== void 0 ? _a : "public", pullRequestPreviewsEnabled: (_b = (val.pullRequestPreviewsEnabled)) !== null && _b !== void 0 ? _b : "no" });
|
|
15
|
+
}
|
|
16
|
+
services.staticSiteStaticSiteServiceDetailsProvideDefaults = staticSiteStaticSiteServiceDetailsProvideDefaults;
|
|
17
|
+
/**
|
|
18
|
+
* webServiceDiskProvideDefaults sets the appropriate defaults for WebServiceDisk
|
|
19
|
+
*/
|
|
20
|
+
function webServiceDiskProvideDefaults(val) {
|
|
21
|
+
var _a;
|
|
22
|
+
return Object.assign(Object.assign({}, val), { sizeGB: (_a = (val.sizeGB)) !== null && _a !== void 0 ? _a : 1 });
|
|
23
|
+
}
|
|
24
|
+
services.webServiceDiskProvideDefaults = webServiceDiskProvideDefaults;
|
|
25
|
+
/**
|
|
26
|
+
* webServiceDockerDetailsProvideDefaults sets the appropriate defaults for WebServiceDockerDetails
|
|
27
|
+
*/
|
|
28
|
+
function webServiceDockerDetailsProvideDefaults(val) {
|
|
29
|
+
var _a;
|
|
30
|
+
return Object.assign(Object.assign({}, val), { dockerfilePath: (_a = (val.dockerfilePath)) !== null && _a !== void 0 ? _a : "./Dockerfile" });
|
|
31
|
+
}
|
|
32
|
+
services.webServiceDockerDetailsProvideDefaults = webServiceDockerDetailsProvideDefaults;
|
|
33
|
+
/**
|
|
34
|
+
* webServiceWebServiceServiceDetailsProvideDefaults sets the appropriate defaults for WebServiceWebServiceServiceDetails
|
|
35
|
+
*/
|
|
36
|
+
function webServiceWebServiceServiceDetailsProvideDefaults(val) {
|
|
37
|
+
var _a, _b, _c, _d;
|
|
38
|
+
return Object.assign(Object.assign({}, val), { disk: (val.disk ? types_1.output.services.webServiceDiskProvideDefaults(val.disk) : undefined), numInstances: (_a = (val.numInstances)) !== null && _a !== void 0 ? _a : 1, plan: (_b = (val.plan)) !== null && _b !== void 0 ? _b : "starter", pullRequestPreviewsEnabled: (_c = (val.pullRequestPreviewsEnabled)) !== null && _c !== void 0 ? _c : "no", region: (_d = (val.region)) !== null && _d !== void 0 ? _d : "oregon" });
|
|
39
|
+
}
|
|
40
|
+
services.webServiceWebServiceServiceDetailsProvideDefaults = webServiceWebServiceServiceDetailsProvideDefaults;
|
|
41
|
+
})(services = exports.services || (exports.services = {}));
|
|
42
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAGjF,oCAAqE;AAIrE,IAAiB,QAAQ,CAqHxB;AArHD,WAAiB,QAAQ;IA0CrB;;OAEG;IACH,SAAgB,iDAAiD,CAAC,GAAuC;;QACrG,uCACO,GAAG,KACN,WAAW,EAAE,MAAA,CAAC,GAAG,CAAC,WAAW,CAAC,mCAAI,QAAQ,EAC1C,0BAA0B,EAAE,MAAA,CAAC,GAAG,CAAC,0BAA0B,CAAC,mCAAI,IAAI,IACtE;IACN,CAAC;IANe,0DAAiD,oDAMhE,CAAA;IAYD;;OAEG;IACH,SAAgB,6BAA6B,CAAC,GAAmB;;QAC7D,uCACO,GAAG,KACN,MAAM,EAAE,MAAA,CAAC,GAAG,CAAC,MAAM,CAAC,mCAAI,CAAC,IAC3B;IACN,CAAC;IALe,sCAA6B,gCAK5C,CAAA;IAOD;;OAEG;IACH,SAAgB,sCAAsC,CAAC,GAA4B;;QAC/E,uCACO,GAAG,KACN,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,cAAc,IACxD;IACN,CAAC;IALe,+CAAsC,yCAKrD,CAAA;IAiBD;;OAEG;IACH,SAAgB,iDAAiD,CAAC,GAAuC;;QACrG,uCACO,GAAG,KACN,IAAI,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,cAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EACvF,YAAY,EAAE,MAAA,CAAC,GAAG,CAAC,YAAY,CAAC,mCAAI,CAAC,EACrC,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,SAAS,EAC7B,0BAA0B,EAAE,MAAA,CAAC,GAAG,CAAC,0BAA0B,CAAC,mCAAI,IAAI,EACpE,MAAM,EAAE,MAAA,CAAC,GAAG,CAAC,MAAM,CAAC,mCAAI,QAAQ,IAClC;IACN,CAAC;IATe,0DAAiD,oDAShE,CAAA;AAEL,CAAC,EArHgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAqHxB"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
|
+
export declare function getVersion(): string;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumigen. ***
|
|
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.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
6
|
+
function getEnv(...vars) {
|
|
7
|
+
for (const v of vars) {
|
|
8
|
+
const value = process.env[v];
|
|
9
|
+
if (value) {
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
exports.getEnv = getEnv;
|
|
16
|
+
function getEnvBoolean(...vars) {
|
|
17
|
+
const s = getEnv(...vars);
|
|
18
|
+
if (s !== undefined) {
|
|
19
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
20
|
+
// Terraform uses internally when parsing boolean values.
|
|
21
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
31
|
+
function getEnvNumber(...vars) {
|
|
32
|
+
const s = getEnv(...vars);
|
|
33
|
+
if (s !== undefined) {
|
|
34
|
+
const f = parseFloat(s);
|
|
35
|
+
if (!isNaN(f)) {
|
|
36
|
+
return f;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
exports.getEnvNumber = getEnvNumber;
|
|
42
|
+
function getVersion() {
|
|
43
|
+
let version = require('./package.json').version;
|
|
44
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
45
|
+
// If there is a v, strip it off.
|
|
46
|
+
if (version.indexOf('v') === 0) {
|
|
47
|
+
version = version.slice(1);
|
|
48
|
+
}
|
|
49
|
+
return version;
|
|
50
|
+
}
|
|
51
|
+
exports.getVersion = getVersion;
|
|
52
|
+
/** @internal */
|
|
53
|
+
function resourceOptsDefaults() {
|
|
54
|
+
return { version: getVersion(), pluginDownloadURL: "https://github.com/cloudy-sky-software/pulumi-render/releases/download/${VERSION}" };
|
|
55
|
+
}
|
|
56
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
57
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,iFAAiF;;;AAGjF,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,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC7E,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AAbD,sCAaC;AAED,SAAgB,YAAY,CAAC,GAAG,IAAc;IAC1C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;YACX,OAAO,CAAC,CAAC;SACZ;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AATD,oCASC;AAED,SAAgB,UAAU;IACtB,IAAI,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC;IAChD,6EAA6E;IAC7E,iCAAiC;IACjC,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QAC5B,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC9B;IACD,OAAO,OAAO,CAAC;AACnB,CAAC;AARD,gCAQC;AAED,gBAAgB;AAChB,SAAgB,oBAAoB;IAChC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,iBAAiB,EAAE,mFAAmF,EAAE,CAAC;AAC7I,CAAC;AAFD,oDAEC"}
|