@bambamboole/coolify 0.4.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/LICENSE +202 -0
- package/README.md +1 -0
- package/application.d.ts +88 -0
- package/application.js +137 -0
- package/application.ts +174 -0
- package/database.d.ts +69 -0
- package/database.js +128 -0
- package/database.ts +146 -0
- package/deployment.d.ts +57 -0
- package/deployment.js +94 -0
- package/deployment.ts +100 -0
- package/index.d.ts +27 -0
- package/index.js +83 -0
- package/index.ts +88 -0
- package/package.json +36 -0
- package/privateKey.d.ts +47 -0
- package/privateKey.js +89 -0
- package/privateKey.ts +85 -0
- package/project.d.ts +53 -0
- package/project.js +88 -0
- package/project.ts +90 -0
- package/provider.d.ts +41 -0
- package/provider.js +71 -0
- package/provider.ts +70 -0
- package/s3storage.d.ts +57 -0
- package/s3storage.js +108 -0
- package/s3storage.ts +114 -0
- package/server.d.ts +50 -0
- package/server.js +100 -0
- package/server.ts +99 -0
- package/utilities.d.ts +5 -0
- package/utilities.js +114 -0
- package/utilities.ts +96 -0
package/provider.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manage resources on a Coolify instance through the Coolify v4 API.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
6
|
+
/**
|
|
7
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
8
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
9
|
+
*/
|
|
10
|
+
static isInstance(obj: any): obj is Provider;
|
|
11
|
+
/**
|
|
12
|
+
* Coolify read/write API token (Coolify > Security > API tokens).
|
|
13
|
+
*/
|
|
14
|
+
readonly apiToken: pulumi.Output<string | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* Base URL of the Coolify instance, without the API path (e.g. https://coolify.example.com).
|
|
17
|
+
*/
|
|
18
|
+
readonly baseUrl: pulumi.Output<string>;
|
|
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: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The set of arguments for constructing a Provider resource.
|
|
30
|
+
*/
|
|
31
|
+
export interface ProviderArgs {
|
|
32
|
+
/**
|
|
33
|
+
* Coolify read/write API token (Coolify > Security > API tokens).
|
|
34
|
+
*/
|
|
35
|
+
apiToken?: pulumi.Input<string | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Base URL of the Coolify instance, without the API path (e.g. https://coolify.example.com).
|
|
38
|
+
*/
|
|
39
|
+
baseUrl: pulumi.Input<string>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=provider.d.ts.map
|
package/provider.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.Provider = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manage resources on a Coolify instance through the Coolify v4 API.
|
|
33
|
+
*/
|
|
34
|
+
class Provider extends pulumi.ProviderResource {
|
|
35
|
+
/** @internal */
|
|
36
|
+
static __pulumiType = 'coolify';
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj) {
|
|
42
|
+
if (obj === undefined || obj === null) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resource.
|
|
51
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
52
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
53
|
+
*/
|
|
54
|
+
constructor(name, args, opts) {
|
|
55
|
+
let resourceInputs = {};
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
{
|
|
58
|
+
if (args?.baseUrl === undefined && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'baseUrl'");
|
|
60
|
+
}
|
|
61
|
+
resourceInputs["apiToken"] = args?.apiToken ? pulumi.secret(args.apiToken) : undefined;
|
|
62
|
+
resourceInputs["baseUrl"] = args?.baseUrl;
|
|
63
|
+
}
|
|
64
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
65
|
+
const secretOpts = { additionalSecretOutputs: ["apiToken"] };
|
|
66
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
67
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.Provider = Provider;
|
|
71
|
+
//# sourceMappingURL=provider.js.map
|
package/provider.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Manage resources on a Coolify instance through the Coolify v4 API.
|
|
9
|
+
*/
|
|
10
|
+
export class Provider extends pulumi.ProviderResource {
|
|
11
|
+
/** @internal */
|
|
12
|
+
public static readonly __pulumiType = 'coolify';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
16
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
17
|
+
*/
|
|
18
|
+
public static isInstance(obj: any): obj is Provider {
|
|
19
|
+
if (obj === undefined || obj === null) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Coolify read/write API token (Coolify > Security > API tokens).
|
|
27
|
+
*/
|
|
28
|
+
declare public readonly apiToken: pulumi.Output<string | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Base URL of the Coolify instance, without the API path (e.g. https://coolify.example.com).
|
|
31
|
+
*/
|
|
32
|
+
declare public readonly baseUrl: pulumi.Output<string>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resource.
|
|
38
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
39
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
40
|
+
*/
|
|
41
|
+
constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions) {
|
|
42
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
43
|
+
opts = opts || {};
|
|
44
|
+
{
|
|
45
|
+
if (args?.baseUrl === undefined && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'baseUrl'");
|
|
47
|
+
}
|
|
48
|
+
resourceInputs["apiToken"] = args?.apiToken ? pulumi.secret(args.apiToken) : undefined;
|
|
49
|
+
resourceInputs["baseUrl"] = args?.baseUrl;
|
|
50
|
+
}
|
|
51
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
52
|
+
const secretOpts = { additionalSecretOutputs: ["apiToken"] };
|
|
53
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
54
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The set of arguments for constructing a Provider resource.
|
|
60
|
+
*/
|
|
61
|
+
export interface ProviderArgs {
|
|
62
|
+
/**
|
|
63
|
+
* Coolify read/write API token (Coolify > Security > API tokens).
|
|
64
|
+
*/
|
|
65
|
+
apiToken?: pulumi.Input<string | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* Base URL of the Coolify instance, without the API path (e.g. https://coolify.example.com).
|
|
68
|
+
*/
|
|
69
|
+
baseUrl: pulumi.Input<string>;
|
|
70
|
+
}
|
package/s3storage.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* A Coolify S3-compatible storage destination, e.g. an R2 bucket for backups.
|
|
4
|
+
*/
|
|
5
|
+
export declare class S3Storage extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing S3Storage resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): S3Storage;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of S3Storage. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is S3Storage;
|
|
20
|
+
readonly bucket: pulumi.Output<string>;
|
|
21
|
+
readonly description: pulumi.Output<string>;
|
|
22
|
+
readonly endpoint: pulumi.Output<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether Coolify validated the storage as usable.
|
|
25
|
+
*/
|
|
26
|
+
readonly isUsable: pulumi.Output<boolean>;
|
|
27
|
+
readonly name: pulumi.Output<string>;
|
|
28
|
+
readonly region: pulumi.Output<string>;
|
|
29
|
+
readonly uuid: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Create a S3Storage resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name: string, args: S3StorageArgs, opts?: pulumi.CustomResourceOptions);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The set of arguments for constructing a S3Storage resource.
|
|
41
|
+
*/
|
|
42
|
+
export interface S3StorageArgs {
|
|
43
|
+
/**
|
|
44
|
+
* S3 access key. Never stored in state.
|
|
45
|
+
*/
|
|
46
|
+
accessKey: pulumi.Input<string>;
|
|
47
|
+
bucket: pulumi.Input<string>;
|
|
48
|
+
description?: pulumi.Input<string | undefined>;
|
|
49
|
+
endpoint: pulumi.Input<string>;
|
|
50
|
+
name: pulumi.Input<string>;
|
|
51
|
+
region?: pulumi.Input<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* S3 secret key. Never stored in state.
|
|
54
|
+
*/
|
|
55
|
+
secretKey: pulumi.Input<string>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=s3storage.d.ts.map
|
package/s3storage.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.S3Storage = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A Coolify S3-compatible storage destination, e.g. an R2 bucket for backups.
|
|
33
|
+
*/
|
|
34
|
+
class S3Storage extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing S3Storage resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, opts) {
|
|
44
|
+
return new S3Storage(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'coolify:index:S3Storage';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of S3Storage. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === S3Storage.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a S3Storage resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name, args, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.accessKey === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'accessKey'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.bucket === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'bucket'");
|
|
74
|
+
}
|
|
75
|
+
if (args?.endpoint === undefined && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'endpoint'");
|
|
77
|
+
}
|
|
78
|
+
if (args?.name === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'name'");
|
|
80
|
+
}
|
|
81
|
+
if (args?.secretKey === undefined && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'secretKey'");
|
|
83
|
+
}
|
|
84
|
+
resourceInputs["accessKey"] = args?.accessKey ? pulumi.secret(args.accessKey) : undefined;
|
|
85
|
+
resourceInputs["bucket"] = args?.bucket;
|
|
86
|
+
resourceInputs["description"] = args?.description;
|
|
87
|
+
resourceInputs["endpoint"] = args?.endpoint;
|
|
88
|
+
resourceInputs["name"] = args?.name;
|
|
89
|
+
resourceInputs["region"] = args?.region;
|
|
90
|
+
resourceInputs["secretKey"] = args?.secretKey ? pulumi.secret(args.secretKey) : undefined;
|
|
91
|
+
resourceInputs["isUsable"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
resourceInputs["bucket"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["endpoint"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["isUsable"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["region"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
102
|
+
}
|
|
103
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
104
|
+
super(S3Storage.__pulumiType, name, resourceInputs, opts);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.S3Storage = S3Storage;
|
|
108
|
+
//# sourceMappingURL=s3storage.js.map
|
package/s3storage.ts
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A Coolify S3-compatible storage destination, e.g. an R2 bucket for backups.
|
|
9
|
+
*/
|
|
10
|
+
export class S3Storage extends pulumi.CustomResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get an existing S3Storage resource's state with the given name, ID, and optional extra
|
|
13
|
+
* properties used to qualify the lookup.
|
|
14
|
+
*
|
|
15
|
+
* @param name The _unique_ name of the resulting resource.
|
|
16
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
17
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
18
|
+
*/
|
|
19
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): S3Storage {
|
|
20
|
+
return new S3Storage(name, undefined as any, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'coolify:index:S3Storage';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of S3Storage. This is designed to work even
|
|
28
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
|
+
*/
|
|
30
|
+
public static isInstance(obj: any): obj is S3Storage {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === S3Storage.__pulumiType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare public readonly bucket: pulumi.Output<string>;
|
|
38
|
+
declare public readonly description: pulumi.Output<string>;
|
|
39
|
+
declare public readonly endpoint: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Whether Coolify validated the storage as usable.
|
|
42
|
+
*/
|
|
43
|
+
declare public /*out*/ readonly isUsable: pulumi.Output<boolean>;
|
|
44
|
+
declare public readonly name: pulumi.Output<string>;
|
|
45
|
+
declare public readonly region: pulumi.Output<string>;
|
|
46
|
+
declare public /*out*/ readonly uuid: pulumi.Output<string>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Create a S3Storage resource with the given unique name, arguments, and options.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resource.
|
|
52
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
53
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
54
|
+
*/
|
|
55
|
+
constructor(name: string, args: S3StorageArgs, opts?: pulumi.CustomResourceOptions) {
|
|
56
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
57
|
+
opts = opts || {};
|
|
58
|
+
if (!opts.id) {
|
|
59
|
+
if (args?.accessKey === undefined && !opts.urn) {
|
|
60
|
+
throw new Error("Missing required property 'accessKey'");
|
|
61
|
+
}
|
|
62
|
+
if (args?.bucket === undefined && !opts.urn) {
|
|
63
|
+
throw new Error("Missing required property 'bucket'");
|
|
64
|
+
}
|
|
65
|
+
if (args?.endpoint === undefined && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'endpoint'");
|
|
67
|
+
}
|
|
68
|
+
if (args?.name === undefined && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'name'");
|
|
70
|
+
}
|
|
71
|
+
if (args?.secretKey === undefined && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'secretKey'");
|
|
73
|
+
}
|
|
74
|
+
resourceInputs["accessKey"] = args?.accessKey ? pulumi.secret(args.accessKey) : undefined;
|
|
75
|
+
resourceInputs["bucket"] = args?.bucket;
|
|
76
|
+
resourceInputs["description"] = args?.description;
|
|
77
|
+
resourceInputs["endpoint"] = args?.endpoint;
|
|
78
|
+
resourceInputs["name"] = args?.name;
|
|
79
|
+
resourceInputs["region"] = args?.region;
|
|
80
|
+
resourceInputs["secretKey"] = args?.secretKey ? pulumi.secret(args.secretKey) : undefined;
|
|
81
|
+
resourceInputs["isUsable"] = undefined /*out*/;
|
|
82
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
83
|
+
} else {
|
|
84
|
+
resourceInputs["bucket"] = undefined /*out*/;
|
|
85
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["endpoint"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["isUsable"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
89
|
+
resourceInputs["region"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
91
|
+
}
|
|
92
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
93
|
+
super(S3Storage.__pulumiType, name, resourceInputs, opts);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The set of arguments for constructing a S3Storage resource.
|
|
99
|
+
*/
|
|
100
|
+
export interface S3StorageArgs {
|
|
101
|
+
/**
|
|
102
|
+
* S3 access key. Never stored in state.
|
|
103
|
+
*/
|
|
104
|
+
accessKey: pulumi.Input<string>;
|
|
105
|
+
bucket: pulumi.Input<string>;
|
|
106
|
+
description?: pulumi.Input<string | undefined>;
|
|
107
|
+
endpoint: pulumi.Input<string>;
|
|
108
|
+
name: pulumi.Input<string>;
|
|
109
|
+
region?: pulumi.Input<string | undefined>;
|
|
110
|
+
/**
|
|
111
|
+
* S3 secret key. Never stored in state.
|
|
112
|
+
*/
|
|
113
|
+
secretKey: pulumi.Input<string>;
|
|
114
|
+
}
|
package/server.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* A Coolify server connected over SSH with a Coolify private key.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Server extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing Server resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Server;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Server. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is Server;
|
|
20
|
+
readonly description: pulumi.Output<string>;
|
|
21
|
+
readonly ip: pulumi.Output<string>;
|
|
22
|
+
readonly name: pulumi.Output<string>;
|
|
23
|
+
readonly port: pulumi.Output<number>;
|
|
24
|
+
readonly privateKeyUuid: pulumi.Output<string>;
|
|
25
|
+
readonly user: pulumi.Output<string>;
|
|
26
|
+
readonly uuid: pulumi.Output<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Create a Server resource with the given unique name, arguments, and options.
|
|
29
|
+
*
|
|
30
|
+
* @param name The _unique_ name of the resource.
|
|
31
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
32
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
33
|
+
*/
|
|
34
|
+
constructor(name: string, args: ServerArgs, opts?: pulumi.CustomResourceOptions);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The set of arguments for constructing a Server resource.
|
|
38
|
+
*/
|
|
39
|
+
export interface ServerArgs {
|
|
40
|
+
description?: pulumi.Input<string | undefined>;
|
|
41
|
+
ip: pulumi.Input<string>;
|
|
42
|
+
name: pulumi.Input<string>;
|
|
43
|
+
port?: pulumi.Input<number | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* UUID of the Coolify private key used to connect. Usually the id output of a PrivateKey resource.
|
|
46
|
+
*/
|
|
47
|
+
privateKeyUuid: pulumi.Input<string>;
|
|
48
|
+
user?: pulumi.Input<string | undefined>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=server.d.ts.map
|
package/server.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.Server = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A Coolify server connected over SSH with a Coolify private key.
|
|
33
|
+
*/
|
|
34
|
+
class Server extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing Server resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name, id, opts) {
|
|
44
|
+
return new Server(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'coolify:index:Server';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Server. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === Server.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a Server resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name, args, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.ip === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'ip'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.name === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'name'");
|
|
74
|
+
}
|
|
75
|
+
if (args?.privateKeyUuid === undefined && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'privateKeyUuid'");
|
|
77
|
+
}
|
|
78
|
+
resourceInputs["description"] = args?.description;
|
|
79
|
+
resourceInputs["ip"] = args?.ip;
|
|
80
|
+
resourceInputs["name"] = args?.name;
|
|
81
|
+
resourceInputs["port"] = args?.port;
|
|
82
|
+
resourceInputs["privateKeyUuid"] = args?.privateKeyUuid;
|
|
83
|
+
resourceInputs["user"] = args?.user;
|
|
84
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["ip"] = undefined /*out*/;
|
|
89
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["port"] = undefined /*out*/;
|
|
91
|
+
resourceInputs["privateKeyUuid"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["user"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
94
|
+
}
|
|
95
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
|
+
super(Server.__pulumiType, name, resourceInputs, opts);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.Server = Server;
|
|
100
|
+
//# sourceMappingURL=server.js.map
|