Bridge terraform-provider-dokploy into a Pulumi provider

18 resources and 5 data sources mapped into the dokploy:index module, with
SDKs generated for TypeScript, Python, Go and .NET.
This commit is contained in:
2026-08-08 15:28:16 +03:00
commit bb3c15135b
175 changed files with 61774 additions and 0 deletions

191
sdk/nodejs/mount.ts generated Normal file
View File

@@ -0,0 +1,191 @@
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
export class Mount extends pulumi.CustomResource {
/**
* Get an existing Mount resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MountState, opts?: pulumi.CustomResourceOptions): Mount {
return new Mount(name, <any>state, { ...opts, id: id });
}
/** @internal */
public static readonly __pulumiType = 'dokploy:index/mount:Mount';
/**
* Returns true if the given object is an instance of Mount. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
public static isInstance(obj: any): obj is Mount {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Mount.__pulumiType;
}
/**
* Contents of the generated file, when `type` is `file`.
*/
declare public readonly content: pulumi.Output<string | undefined>;
/**
* Path of the generated file, when `type` is `file`.
*/
declare public readonly filePath: pulumi.Output<string | undefined>;
/**
* Path on the host, when `type` is `bind`.
*/
declare public readonly hostPath: pulumi.Output<string | undefined>;
/**
* Path inside the container where the mount appears.
*/
declare public readonly mountPath: pulumi.Output<string>;
/**
* ID of the service this mount attaches to. Must match `serviceType` — an application ID, a compose ID, a postgres ID, and so on.
*/
declare public readonly serviceId: pulumi.Output<string>;
/**
* The kind of service this mount attaches to. Valid values: `application`, `postgres`, `mysql`, `mariadb`, `mongo`, `redis`, `compose`.
*/
declare public readonly serviceType: pulumi.Output<string>;
/**
* The kind of mount to create. Valid values: `bind`, `volume`, `file`.
*/
declare public readonly type: pulumi.Output<string>;
/**
* Name of the Docker volume, when `type` is `volume`.
*/
declare public readonly volumeName: pulumi.Output<string | undefined>;
/**
* Create a Mount resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: MountArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: MountArgs | MountState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as MountState | undefined;
resourceInputs["content"] = state?.content;
resourceInputs["filePath"] = state?.filePath;
resourceInputs["hostPath"] = state?.hostPath;
resourceInputs["mountPath"] = state?.mountPath;
resourceInputs["serviceId"] = state?.serviceId;
resourceInputs["serviceType"] = state?.serviceType;
resourceInputs["type"] = state?.type;
resourceInputs["volumeName"] = state?.volumeName;
} else {
const args = argsOrState as MountArgs | undefined;
if (args?.mountPath === undefined && !opts.urn) {
throw new Error("Missing required property 'mountPath'");
}
if (args?.serviceId === undefined && !opts.urn) {
throw new Error("Missing required property 'serviceId'");
}
if (args?.serviceType === undefined && !opts.urn) {
throw new Error("Missing required property 'serviceType'");
}
if (args?.type === undefined && !opts.urn) {
throw new Error("Missing required property 'type'");
}
resourceInputs["content"] = args?.content;
resourceInputs["filePath"] = args?.filePath;
resourceInputs["hostPath"] = args?.hostPath;
resourceInputs["mountPath"] = args?.mountPath;
resourceInputs["serviceId"] = args?.serviceId;
resourceInputs["serviceType"] = args?.serviceType;
resourceInputs["type"] = args?.type;
resourceInputs["volumeName"] = args?.volumeName;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Mount.__pulumiType, name, resourceInputs, opts);
}
}
/**
* Input properties used for looking up and filtering Mount resources.
*/
export interface MountState {
/**
* Contents of the generated file, when `type` is `file`.
*/
content?: pulumi.Input<string>;
/**
* Path of the generated file, when `type` is `file`.
*/
filePath?: pulumi.Input<string>;
/**
* Path on the host, when `type` is `bind`.
*/
hostPath?: pulumi.Input<string>;
/**
* Path inside the container where the mount appears.
*/
mountPath?: pulumi.Input<string>;
/**
* ID of the service this mount attaches to. Must match `serviceType` — an application ID, a compose ID, a postgres ID, and so on.
*/
serviceId?: pulumi.Input<string>;
/**
* The kind of service this mount attaches to. Valid values: `application`, `postgres`, `mysql`, `mariadb`, `mongo`, `redis`, `compose`.
*/
serviceType?: pulumi.Input<string>;
/**
* The kind of mount to create. Valid values: `bind`, `volume`, `file`.
*/
type?: pulumi.Input<string>;
/**
* Name of the Docker volume, when `type` is `volume`.
*/
volumeName?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Mount resource.
*/
export interface MountArgs {
/**
* Contents of the generated file, when `type` is `file`.
*/
content?: pulumi.Input<string>;
/**
* Path of the generated file, when `type` is `file`.
*/
filePath?: pulumi.Input<string>;
/**
* Path on the host, when `type` is `bind`.
*/
hostPath?: pulumi.Input<string>;
/**
* Path inside the container where the mount appears.
*/
mountPath: pulumi.Input<string>;
/**
* ID of the service this mount attaches to. Must match `serviceType` — an application ID, a compose ID, a postgres ID, and so on.
*/
serviceId: pulumi.Input<string>;
/**
* The kind of service this mount attaches to. Valid values: `application`, `postgres`, `mysql`, `mariadb`, `mongo`, `redis`, `compose`.
*/
serviceType: pulumi.Input<string>;
/**
* The kind of mount to create. Valid values: `bind`, `volume`, `file`.
*/
type: pulumi.Input<string>;
/**
* Name of the Docker volume, when `type` is `volume`.
*/
volumeName?: pulumi.Input<string>;
}