@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/database.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* A standalone Coolify database (Redis, PostgreSQL) inside a project environment.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Database extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing Database 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): Database;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Database. 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 Database;
|
|
20
|
+
readonly description: pulumi.Output<string>;
|
|
21
|
+
readonly environment: pulumi.Output<string>;
|
|
22
|
+
readonly environmentId: pulumi.Output<number>;
|
|
23
|
+
readonly externalUrl: pulumi.Output<string | undefined>;
|
|
24
|
+
readonly image: pulumi.Output<string>;
|
|
25
|
+
readonly internalUrl: pulumi.Output<string | undefined>;
|
|
26
|
+
readonly isPublic: pulumi.Output<boolean>;
|
|
27
|
+
readonly name: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Database password generated by Coolify. Never compared or patched.
|
|
30
|
+
*/
|
|
31
|
+
readonly password: pulumi.Output<string | undefined>;
|
|
32
|
+
readonly postgresDatabase: pulumi.Output<string | undefined>;
|
|
33
|
+
readonly postgresUser: pulumi.Output<string | undefined>;
|
|
34
|
+
readonly project: pulumi.Output<string>;
|
|
35
|
+
readonly projectUuid: pulumi.Output<string>;
|
|
36
|
+
readonly publicPort: pulumi.Output<number>;
|
|
37
|
+
readonly serverUuid: pulumi.Output<string>;
|
|
38
|
+
readonly type: pulumi.Output<string>;
|
|
39
|
+
readonly uuid: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Create a Database resource with the given unique name, arguments, and options.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resource.
|
|
44
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
45
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
46
|
+
*/
|
|
47
|
+
constructor(name: string, args: DatabaseArgs, opts?: pulumi.CustomResourceOptions);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The set of arguments for constructing a Database resource.
|
|
51
|
+
*/
|
|
52
|
+
export interface DatabaseArgs {
|
|
53
|
+
description?: pulumi.Input<string | undefined>;
|
|
54
|
+
environment: pulumi.Input<string>;
|
|
55
|
+
image?: pulumi.Input<string | undefined>;
|
|
56
|
+
isPublic?: pulumi.Input<boolean | undefined>;
|
|
57
|
+
name: pulumi.Input<string>;
|
|
58
|
+
project: pulumi.Input<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Public port to expose. Required when isPublic is true.
|
|
61
|
+
*/
|
|
62
|
+
publicPort?: pulumi.Input<number | undefined>;
|
|
63
|
+
serverUuid: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Database type: "redis" or "postgresql".
|
|
66
|
+
*/
|
|
67
|
+
type: pulumi.Input<string>;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=database.d.ts.map
|
package/database.js
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
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.Database = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* A standalone Coolify database (Redis, PostgreSQL) inside a project environment.
|
|
33
|
+
*/
|
|
34
|
+
class Database extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing Database 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 Database(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'coolify:index:Database';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Database. 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'] === Database.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a Database 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?.environment === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'environment'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.name === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'name'");
|
|
74
|
+
}
|
|
75
|
+
if (args?.project === undefined && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'project'");
|
|
77
|
+
}
|
|
78
|
+
if (args?.serverUuid === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'serverUuid'");
|
|
80
|
+
}
|
|
81
|
+
if (args?.type === undefined && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'type'");
|
|
83
|
+
}
|
|
84
|
+
resourceInputs["description"] = args?.description;
|
|
85
|
+
resourceInputs["environment"] = args?.environment;
|
|
86
|
+
resourceInputs["image"] = args?.image;
|
|
87
|
+
resourceInputs["isPublic"] = args?.isPublic;
|
|
88
|
+
resourceInputs["name"] = args?.name;
|
|
89
|
+
resourceInputs["project"] = args?.project;
|
|
90
|
+
resourceInputs["publicPort"] = args?.publicPort;
|
|
91
|
+
resourceInputs["serverUuid"] = args?.serverUuid;
|
|
92
|
+
resourceInputs["type"] = args?.type;
|
|
93
|
+
resourceInputs["environmentId"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["externalUrl"] = undefined /*out*/;
|
|
95
|
+
resourceInputs["internalUrl"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["password"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["postgresDatabase"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["postgresUser"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["projectUuid"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["environment"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["environmentId"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["externalUrl"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["image"] = undefined /*out*/;
|
|
108
|
+
resourceInputs["internalUrl"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["isPublic"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["password"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["postgresDatabase"] = undefined /*out*/;
|
|
113
|
+
resourceInputs["postgresUser"] = undefined /*out*/;
|
|
114
|
+
resourceInputs["project"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["projectUuid"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["publicPort"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["serverUuid"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
120
|
+
}
|
|
121
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
122
|
+
const secretOpts = { additionalSecretOutputs: ["password"] };
|
|
123
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
124
|
+
super(Database.__pulumiType, name, resourceInputs, opts);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.Database = Database;
|
|
128
|
+
//# sourceMappingURL=database.js.map
|
package/database.ts
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
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 standalone Coolify database (Redis, PostgreSQL) inside a project environment.
|
|
9
|
+
*/
|
|
10
|
+
export class Database extends pulumi.CustomResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get an existing Database 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): Database {
|
|
20
|
+
return new Database(name, undefined as any, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'coolify:index:Database';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of Database. 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 Database {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === Database.__pulumiType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare public readonly description: pulumi.Output<string>;
|
|
38
|
+
declare public readonly environment: pulumi.Output<string>;
|
|
39
|
+
declare public /*out*/ readonly environmentId: pulumi.Output<number>;
|
|
40
|
+
declare public /*out*/ readonly externalUrl: pulumi.Output<string | undefined>;
|
|
41
|
+
declare public readonly image: pulumi.Output<string>;
|
|
42
|
+
declare public /*out*/ readonly internalUrl: pulumi.Output<string | undefined>;
|
|
43
|
+
declare public readonly isPublic: pulumi.Output<boolean>;
|
|
44
|
+
declare public readonly name: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Database password generated by Coolify. Never compared or patched.
|
|
47
|
+
*/
|
|
48
|
+
declare public /*out*/ readonly password: pulumi.Output<string | undefined>;
|
|
49
|
+
declare public /*out*/ readonly postgresDatabase: pulumi.Output<string | undefined>;
|
|
50
|
+
declare public /*out*/ readonly postgresUser: pulumi.Output<string | undefined>;
|
|
51
|
+
declare public readonly project: pulumi.Output<string>;
|
|
52
|
+
declare public /*out*/ readonly projectUuid: pulumi.Output<string>;
|
|
53
|
+
declare public readonly publicPort: pulumi.Output<number>;
|
|
54
|
+
declare public readonly serverUuid: pulumi.Output<string>;
|
|
55
|
+
declare public readonly type: pulumi.Output<string>;
|
|
56
|
+
declare public /*out*/ readonly uuid: pulumi.Output<string>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Create a Database 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: string, args: DatabaseArgs, opts?: pulumi.CustomResourceOptions) {
|
|
66
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (!opts.id) {
|
|
69
|
+
if (args?.environment === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'environment'");
|
|
71
|
+
}
|
|
72
|
+
if (args?.name === undefined && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'name'");
|
|
74
|
+
}
|
|
75
|
+
if (args?.project === undefined && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'project'");
|
|
77
|
+
}
|
|
78
|
+
if (args?.serverUuid === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'serverUuid'");
|
|
80
|
+
}
|
|
81
|
+
if (args?.type === undefined && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'type'");
|
|
83
|
+
}
|
|
84
|
+
resourceInputs["description"] = args?.description;
|
|
85
|
+
resourceInputs["environment"] = args?.environment;
|
|
86
|
+
resourceInputs["image"] = args?.image;
|
|
87
|
+
resourceInputs["isPublic"] = args?.isPublic;
|
|
88
|
+
resourceInputs["name"] = args?.name;
|
|
89
|
+
resourceInputs["project"] = args?.project;
|
|
90
|
+
resourceInputs["publicPort"] = args?.publicPort;
|
|
91
|
+
resourceInputs["serverUuid"] = args?.serverUuid;
|
|
92
|
+
resourceInputs["type"] = args?.type;
|
|
93
|
+
resourceInputs["environmentId"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["externalUrl"] = undefined /*out*/;
|
|
95
|
+
resourceInputs["internalUrl"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["password"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["postgresDatabase"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["postgresUser"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["projectUuid"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
101
|
+
} else {
|
|
102
|
+
resourceInputs["description"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["environment"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["environmentId"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["externalUrl"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["image"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["internalUrl"] = undefined /*out*/;
|
|
108
|
+
resourceInputs["isPublic"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["password"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["postgresDatabase"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["postgresUser"] = undefined /*out*/;
|
|
113
|
+
resourceInputs["project"] = undefined /*out*/;
|
|
114
|
+
resourceInputs["projectUuid"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["publicPort"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["serverUuid"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
118
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
119
|
+
}
|
|
120
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
121
|
+
const secretOpts = { additionalSecretOutputs: ["password"] };
|
|
122
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
123
|
+
super(Database.__pulumiType, name, resourceInputs, opts);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The set of arguments for constructing a Database resource.
|
|
129
|
+
*/
|
|
130
|
+
export interface DatabaseArgs {
|
|
131
|
+
description?: pulumi.Input<string | undefined>;
|
|
132
|
+
environment: pulumi.Input<string>;
|
|
133
|
+
image?: pulumi.Input<string | undefined>;
|
|
134
|
+
isPublic?: pulumi.Input<boolean | undefined>;
|
|
135
|
+
name: pulumi.Input<string>;
|
|
136
|
+
project: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* Public port to expose. Required when isPublic is true.
|
|
139
|
+
*/
|
|
140
|
+
publicPort?: pulumi.Input<number | undefined>;
|
|
141
|
+
serverUuid: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Database type: "redis" or "postgresql".
|
|
144
|
+
*/
|
|
145
|
+
type: pulumi.Input<string>;
|
|
146
|
+
}
|
package/deployment.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Triggers a deployment of a Coolify application and waits for it to finish.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Deployment extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing Deployment 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): Deployment;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Deployment. 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 Deployment;
|
|
20
|
+
readonly application: pulumi.Output<string>;
|
|
21
|
+
readonly commit: pulumi.Output<string | undefined>;
|
|
22
|
+
readonly dockerTag: pulumi.Output<string | undefined>;
|
|
23
|
+
readonly force: pulumi.Output<boolean>;
|
|
24
|
+
readonly pullRequestId: pulumi.Output<number | undefined>;
|
|
25
|
+
readonly status: pulumi.Output<string>;
|
|
26
|
+
readonly uuid: pulumi.Output<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Create a Deployment 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: DeploymentArgs, opts?: pulumi.CustomResourceOptions);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The set of arguments for constructing a Deployment resource.
|
|
38
|
+
*/
|
|
39
|
+
export interface DeploymentArgs {
|
|
40
|
+
/**
|
|
41
|
+
* UUID of the Coolify application to deploy (the uuid output of an Application resource).
|
|
42
|
+
*/
|
|
43
|
+
application: pulumi.Input<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Override the Docker image tag to deploy.
|
|
46
|
+
*/
|
|
47
|
+
dockerTag?: pulumi.Input<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Force a rebuild even when there are no new commits.
|
|
50
|
+
*/
|
|
51
|
+
force?: pulumi.Input<boolean | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* Deploy a preview of the given pull request instead of the default branch.
|
|
54
|
+
*/
|
|
55
|
+
pullRequestId?: pulumi.Input<number | undefined>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=deployment.d.ts.map
|
package/deployment.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
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.Deployment = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Triggers a deployment of a Coolify application and waits for it to finish.
|
|
33
|
+
*/
|
|
34
|
+
class Deployment extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing Deployment 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 Deployment(name, undefined, { ...opts, id: id });
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
static __pulumiType = 'coolify:index:Deployment';
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Deployment. 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'] === Deployment.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a Deployment 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?.application === undefined && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'application'");
|
|
71
|
+
}
|
|
72
|
+
resourceInputs["application"] = args?.application;
|
|
73
|
+
resourceInputs["dockerTag"] = args?.dockerTag;
|
|
74
|
+
resourceInputs["force"] = args?.force;
|
|
75
|
+
resourceInputs["pullRequestId"] = args?.pullRequestId;
|
|
76
|
+
resourceInputs["commit"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
resourceInputs["application"] = undefined /*out*/;
|
|
82
|
+
resourceInputs["commit"] = undefined /*out*/;
|
|
83
|
+
resourceInputs["dockerTag"] = undefined /*out*/;
|
|
84
|
+
resourceInputs["force"] = undefined /*out*/;
|
|
85
|
+
resourceInputs["pullRequestId"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
88
|
+
}
|
|
89
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
90
|
+
super(Deployment.__pulumiType, name, resourceInputs, opts);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.Deployment = Deployment;
|
|
94
|
+
//# sourceMappingURL=deployment.js.map
|
package/deployment.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
* Triggers a deployment of a Coolify application and waits for it to finish.
|
|
9
|
+
*/
|
|
10
|
+
export class Deployment extends pulumi.CustomResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get an existing Deployment 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): Deployment {
|
|
20
|
+
return new Deployment(name, undefined as any, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'coolify:index:Deployment';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of Deployment. 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 Deployment {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === Deployment.__pulumiType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare public readonly application: pulumi.Output<string>;
|
|
38
|
+
declare public /*out*/ readonly commit: pulumi.Output<string | undefined>;
|
|
39
|
+
declare public readonly dockerTag: pulumi.Output<string | undefined>;
|
|
40
|
+
declare public readonly force: pulumi.Output<boolean>;
|
|
41
|
+
declare public readonly pullRequestId: pulumi.Output<number | undefined>;
|
|
42
|
+
declare public /*out*/ readonly status: pulumi.Output<string>;
|
|
43
|
+
declare public /*out*/ readonly uuid: pulumi.Output<string>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Create a Deployment resource with the given unique name, arguments, and options.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resource.
|
|
49
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
50
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
51
|
+
*/
|
|
52
|
+
constructor(name: string, args: DeploymentArgs, opts?: pulumi.CustomResourceOptions) {
|
|
53
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
54
|
+
opts = opts || {};
|
|
55
|
+
if (!opts.id) {
|
|
56
|
+
if (args?.application === undefined && !opts.urn) {
|
|
57
|
+
throw new Error("Missing required property 'application'");
|
|
58
|
+
}
|
|
59
|
+
resourceInputs["application"] = args?.application;
|
|
60
|
+
resourceInputs["dockerTag"] = args?.dockerTag;
|
|
61
|
+
resourceInputs["force"] = args?.force;
|
|
62
|
+
resourceInputs["pullRequestId"] = args?.pullRequestId;
|
|
63
|
+
resourceInputs["commit"] = undefined /*out*/;
|
|
64
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
65
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
66
|
+
} else {
|
|
67
|
+
resourceInputs["application"] = undefined /*out*/;
|
|
68
|
+
resourceInputs["commit"] = undefined /*out*/;
|
|
69
|
+
resourceInputs["dockerTag"] = undefined /*out*/;
|
|
70
|
+
resourceInputs["force"] = undefined /*out*/;
|
|
71
|
+
resourceInputs["pullRequestId"] = undefined /*out*/;
|
|
72
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
73
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
74
|
+
}
|
|
75
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
76
|
+
super(Deployment.__pulumiType, name, resourceInputs, opts);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The set of arguments for constructing a Deployment resource.
|
|
82
|
+
*/
|
|
83
|
+
export interface DeploymentArgs {
|
|
84
|
+
/**
|
|
85
|
+
* UUID of the Coolify application to deploy (the uuid output of an Application resource).
|
|
86
|
+
*/
|
|
87
|
+
application: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Override the Docker image tag to deploy.
|
|
90
|
+
*/
|
|
91
|
+
dockerTag?: pulumi.Input<string | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Force a rebuild even when there are no new commits.
|
|
94
|
+
*/
|
|
95
|
+
force?: pulumi.Input<boolean | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* Deploy a preview of the given pull request instead of the default branch.
|
|
98
|
+
*/
|
|
99
|
+
pullRequestId?: pulumi.Input<number | undefined>;
|
|
100
|
+
}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { ApplicationArgs } from "./application";
|
|
2
|
+
export type Application = import("./application").Application;
|
|
3
|
+
export declare const Application: typeof import("./application").Application;
|
|
4
|
+
export { DatabaseArgs } from "./database";
|
|
5
|
+
export type Database = import("./database").Database;
|
|
6
|
+
export declare const Database: typeof import("./database").Database;
|
|
7
|
+
export { DeploymentArgs } from "./deployment";
|
|
8
|
+
export type Deployment = import("./deployment").Deployment;
|
|
9
|
+
export declare const Deployment: typeof import("./deployment").Deployment;
|
|
10
|
+
export { PrivateKeyArgs } from "./privateKey";
|
|
11
|
+
export type PrivateKey = import("./privateKey").PrivateKey;
|
|
12
|
+
export declare const PrivateKey: typeof import("./privateKey").PrivateKey;
|
|
13
|
+
export { ProjectArgs } from "./project";
|
|
14
|
+
export type Project = import("./project").Project;
|
|
15
|
+
export declare const Project: typeof import("./project").Project;
|
|
16
|
+
export { ProviderArgs } from "./provider";
|
|
17
|
+
export type Provider = import("./provider").Provider;
|
|
18
|
+
export declare const Provider: typeof import("./provider").Provider;
|
|
19
|
+
export { S3StorageArgs } from "./s3storage";
|
|
20
|
+
export type S3Storage = import("./s3storage").S3Storage;
|
|
21
|
+
export declare const S3Storage: typeof import("./s3storage").S3Storage;
|
|
22
|
+
export { ServerArgs } from "./server";
|
|
23
|
+
export type Server = import("./server").Server;
|
|
24
|
+
export declare const Server: typeof import("./server").Server;
|
|
25
|
+
import * as config from "./config";
|
|
26
|
+
export { config, };
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|