@bambamboole/coolify 0.4.2 → 0.6.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.
Files changed (89) hide show
  1. package/README.md +1 -1
  2. package/application.d.ts +258 -16
  3. package/application.d.ts.map +1 -0
  4. package/application.js +37 -9
  5. package/application.js.map +1 -0
  6. package/config/index.d.ts.map +1 -1
  7. package/config/index.js.map +1 -1
  8. package/config/vars.d.ts +4 -4
  9. package/config/vars.d.ts.map +1 -1
  10. package/config/vars.js +3 -2
  11. package/config/vars.js.map +1 -1
  12. package/database.d.ts +95 -17
  13. package/database.d.ts.map +1 -0
  14. package/database.js +17 -15
  15. package/database.js.map +1 -0
  16. package/databaseBackup.d.ts +166 -0
  17. package/databaseBackup.d.ts.map +1 -0
  18. package/databaseBackup.js +117 -0
  19. package/databaseBackup.js.map +1 -0
  20. package/deployment.d.ts +32 -3
  21. package/deployment.d.ts.map +1 -0
  22. package/deployment.js +3 -1
  23. package/deployment.js.map +1 -0
  24. package/gitHubApp.d.ts +146 -0
  25. package/gitHubApp.d.ts.map +1 -0
  26. package/gitHubApp.js +127 -0
  27. package/gitHubApp.js.map +1 -0
  28. package/index.d.ts +15 -1
  29. package/index.d.ts.map +1 -0
  30. package/index.js +24 -1
  31. package/index.js.map +1 -0
  32. package/package.json +4 -17
  33. package/privateKey.d.ts +27 -4
  34. package/privateKey.d.ts.map +1 -0
  35. package/privateKey.js +6 -1
  36. package/privateKey.js.map +1 -0
  37. package/project.d.ts +13 -4
  38. package/project.d.ts.map +1 -0
  39. package/project.js +1 -1
  40. package/project.js.map +1 -0
  41. package/provider.d.ts +7 -7
  42. package/provider.d.ts.map +1 -0
  43. package/provider.js +2 -5
  44. package/provider.js.map +1 -0
  45. package/s3storage.d.ts +46 -5
  46. package/s3storage.d.ts.map +1 -0
  47. package/s3storage.js +5 -1
  48. package/s3storage.js.map +1 -0
  49. package/scheduledTask.d.ts +94 -0
  50. package/scheduledTask.d.ts.map +1 -0
  51. package/scheduledTask.js +105 -0
  52. package/scheduledTask.js.map +1 -0
  53. package/server.d.ts +39 -3
  54. package/server.d.ts.map +1 -0
  55. package/server.js +3 -3
  56. package/server.js.map +1 -0
  57. package/service.d.ts +130 -0
  58. package/service.d.ts.map +1 -0
  59. package/service.js +110 -0
  60. package/service.js.map +1 -0
  61. package/types/enums/index.d.ts +59 -0
  62. package/types/enums/index.d.ts.map +1 -0
  63. package/types/enums/index.js +62 -0
  64. package/types/enums/index.js.map +1 -0
  65. package/types/index.d.ts +5 -0
  66. package/types/index.d.ts.map +1 -0
  67. package/types/index.js +36 -0
  68. package/types/index.js.map +1 -0
  69. package/types/input.d.ts +2 -0
  70. package/types/input.d.ts.map +1 -0
  71. package/{config/index.ts → types/input.js} +3 -3
  72. package/types/input.js.map +1 -0
  73. package/types/output.d.ts +2 -0
  74. package/types/output.d.ts.map +1 -0
  75. package/types/output.js +5 -0
  76. package/types/output.js.map +1 -0
  77. package/utilities.d.ts.map +1 -0
  78. package/utilities.js.map +1 -0
  79. package/application.ts +0 -181
  80. package/config/vars.ts +0 -31
  81. package/database.ts +0 -146
  82. package/deployment.ts +0 -100
  83. package/index.ts +0 -88
  84. package/privateKey.ts +0 -85
  85. package/project.ts +0 -90
  86. package/provider.ts +0 -70
  87. package/s3storage.ts +0 -114
  88. package/server.ts +0 -99
  89. package/utilities.ts +0 -96
package/s3storage.ts DELETED
@@ -1,114 +0,0 @@
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.ts DELETED
@@ -1,99 +0,0 @@
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 server connected over SSH with a Coolify private key.
9
- */
10
- export class Server extends pulumi.CustomResource {
11
- /**
12
- * Get an existing Server 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): Server {
20
- return new Server(name, undefined as any, { ...opts, id: id });
21
- }
22
-
23
- /** @internal */
24
- public static readonly __pulumiType = 'coolify:index:Server';
25
-
26
- /**
27
- * Returns true if the given object is an instance of Server. 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 Server {
31
- if (obj === undefined || obj === null) {
32
- return false;
33
- }
34
- return obj['__pulumiType'] === Server.__pulumiType;
35
- }
36
-
37
- declare public readonly description: pulumi.Output<string>;
38
- declare public readonly ip: pulumi.Output<string>;
39
- declare public readonly name: pulumi.Output<string>;
40
- declare public readonly port: pulumi.Output<number>;
41
- declare public readonly privateKeyUuid: pulumi.Output<string>;
42
- declare public readonly user: pulumi.Output<string>;
43
- declare public /*out*/ readonly uuid: pulumi.Output<string>;
44
-
45
- /**
46
- * Create a Server 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: ServerArgs, opts?: pulumi.CustomResourceOptions) {
53
- let resourceInputs: pulumi.Inputs = {};
54
- opts = opts || {};
55
- if (!opts.id) {
56
- if (args?.ip === undefined && !opts.urn) {
57
- throw new Error("Missing required property 'ip'");
58
- }
59
- if (args?.name === undefined && !opts.urn) {
60
- throw new Error("Missing required property 'name'");
61
- }
62
- if (args?.privateKeyUuid === undefined && !opts.urn) {
63
- throw new Error("Missing required property 'privateKeyUuid'");
64
- }
65
- resourceInputs["description"] = args?.description;
66
- resourceInputs["ip"] = args?.ip;
67
- resourceInputs["name"] = args?.name;
68
- resourceInputs["port"] = args?.port;
69
- resourceInputs["privateKeyUuid"] = args?.privateKeyUuid;
70
- resourceInputs["user"] = args?.user;
71
- resourceInputs["uuid"] = undefined /*out*/;
72
- } else {
73
- resourceInputs["description"] = undefined /*out*/;
74
- resourceInputs["ip"] = undefined /*out*/;
75
- resourceInputs["name"] = undefined /*out*/;
76
- resourceInputs["port"] = undefined /*out*/;
77
- resourceInputs["privateKeyUuid"] = undefined /*out*/;
78
- resourceInputs["user"] = undefined /*out*/;
79
- resourceInputs["uuid"] = undefined /*out*/;
80
- }
81
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
82
- super(Server.__pulumiType, name, resourceInputs, opts);
83
- }
84
- }
85
-
86
- /**
87
- * The set of arguments for constructing a Server resource.
88
- */
89
- export interface ServerArgs {
90
- description?: pulumi.Input<string | undefined>;
91
- ip: pulumi.Input<string>;
92
- name: pulumi.Input<string>;
93
- port?: pulumi.Input<number | undefined>;
94
- /**
95
- * UUID of the Coolify private key used to connect. Usually the id output of a PrivateKey resource.
96
- */
97
- privateKeyUuid: pulumi.Input<string>;
98
- user?: pulumi.Input<string | undefined>;
99
- }
package/utilities.ts DELETED
@@ -1,96 +0,0 @@
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
-
5
- import * as runtime from "@pulumi/pulumi/runtime";
6
- import * as pulumi from "@pulumi/pulumi";
7
-
8
- export function getEnv(...vars: string[]): string | undefined {
9
- for (const v of vars) {
10
- const value = process.env[v];
11
- if (value) {
12
- return value;
13
- }
14
- }
15
- return undefined;
16
- }
17
-
18
- export function getEnvBoolean(...vars: string[]): boolean | undefined {
19
- const s = getEnv(...vars);
20
- if (s !== undefined) {
21
- // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
22
- // Terraform uses internally when parsing boolean values.
23
- if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
24
- return true;
25
- }
26
- if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
27
- return false;
28
- }
29
- }
30
- return undefined;
31
- }
32
-
33
- export function getEnvNumber(...vars: string[]): number | undefined {
34
- const s = getEnv(...vars);
35
- if (s !== undefined) {
36
- const f = parseFloat(s);
37
- if (!isNaN(f)) {
38
- return f;
39
- }
40
- }
41
- return undefined;
42
- }
43
-
44
- export function getVersion(): string {
45
- let version = require('./package.json').version;
46
- // Node allows for the version to be prefixed by a "v", while semver doesn't.
47
- // If there is a v, strip it off.
48
- if (version.indexOf('v') === 0) {
49
- version = version.slice(1);
50
- }
51
- return version;
52
- }
53
-
54
- /** @internal */
55
- export function resourceOptsDefaults(): any {
56
- return { version: getVersion(), pluginDownloadURL: "https://github.com/bambamboole/pulumi-provider-coolify/releases/download/v$%7BVERSION%7D" };
57
- }
58
-
59
- /** @internal */
60
- export function lazyLoad(exports: any, props: string[], loadModule: any) {
61
- for (let property of props) {
62
- Object.defineProperty(exports, property, {
63
- enumerable: true,
64
- get: function() {
65
- return loadModule()[property];
66
- },
67
- });
68
- }
69
- }
70
-
71
- /** @internal */
72
- export async function callAsync<T>(
73
- tok: string,
74
- props: pulumi.Inputs,
75
- res?: pulumi.Resource,
76
- opts?: {property?: string},
77
- ): Promise<T> {
78
- const o: any = runtime.call<T>(tok, props, res);
79
- const value = await o.promise(true /*withUnknowns*/);
80
- const isKnown = await o.isKnown;
81
- const isSecret = await o.isSecret;
82
- const problem: string|undefined =
83
- !isKnown ? "an unknown value"
84
- : isSecret ? "a secret value"
85
- : undefined;
86
- // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
87
- if (problem) {
88
- throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
89
- "This is an error in the provider, please report this to the provider developer.");
90
- }
91
- // Extract a single property if requested.
92
- if (opts && opts.property) {
93
- return value[opts.property];
94
- }
95
- return value;
96
- }