Files
pulumi-dokploy/sdk/nodejs/index.ts
T
max-voitcov 73386ba0ff
build / build (push) Failing after 11m22s
release / plugin (push) Failing after 31m35s
release / sdks (push) Has been skipped
Bridge what Dokploy v0.30 added, and let the docs through
Six new resources from terraform-provider-dokploy v0.2.0 -- Network,
DnsProvider, VaultProvider, Schedule, VolumeBackup and Libsql -- plus the new
properties on Domain (`enabled`), Compose (`serviceNetworks`, `createEnvFile`,
`icon`) and Application. Verified with `pulumi up` against a live v0.30.2
instance: create, preview-clean, and destroy.

The upstream provider also now refuses a volume Mount with no `volumeName`,
which Dokploy would otherwise turn into an anonymous Docker volume recreated
on every deploy. That surfaces here at preview time, before anything exists.

Two things made that fix nearly invisible to Pulumi users, so this commit
fixes the second one: the bridge resolves the upstream `docs/` through the Go
module cache, where a locally `replace`d dependency never lands, so tfgen was
emitting every resource with no description at all. UpstreamRepoPath now
points at the checkout and all 445 inputs carry documentation -- with names
rendered per language, so Python readers see `volume_name` where TypeScript
readers see `volumeName`.
2026-08-26 00:46:32 +03:00

256 lines
14 KiB
TypeScript
Generated

// *** 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 members:
export { ApplicationArgs, ApplicationState } from "./application";
export type Application = import("./application").Application;
export const Application: typeof import("./application").Application = null as any;
utilities.lazyLoad(exports, ["Application"], () => require("./application"));
export { CertificateArgs, CertificateState } from "./certificate";
export type Certificate = import("./certificate").Certificate;
export const Certificate: typeof import("./certificate").Certificate = null as any;
utilities.lazyLoad(exports, ["Certificate"], () => require("./certificate"));
export { ComposeArgs, ComposeState } from "./compose";
export type Compose = import("./compose").Compose;
export const Compose: typeof import("./compose").Compose = null as any;
utilities.lazyLoad(exports, ["Compose"], () => require("./compose"));
export { DestinationArgs, DestinationState } from "./destination";
export type Destination = import("./destination").Destination;
export const Destination: typeof import("./destination").Destination = null as any;
utilities.lazyLoad(exports, ["Destination"], () => require("./destination"));
export { DnsProviderArgs, DnsProviderState } from "./dnsProvider";
export type DnsProvider = import("./dnsProvider").DnsProvider;
export const DnsProvider: typeof import("./dnsProvider").DnsProvider = null as any;
utilities.lazyLoad(exports, ["DnsProvider"], () => require("./dnsProvider"));
export { DomainArgs, DomainState } from "./domain";
export type Domain = import("./domain").Domain;
export const Domain: typeof import("./domain").Domain = null as any;
utilities.lazyLoad(exports, ["Domain"], () => require("./domain"));
export { EnvironmentArgs, EnvironmentState } from "./environment";
export type Environment = import("./environment").Environment;
export const Environment: typeof import("./environment").Environment = null as any;
utilities.lazyLoad(exports, ["Environment"], () => require("./environment"));
export { GetApplicationArgs, GetApplicationResult, GetApplicationOutputArgs } from "./getApplication";
export const getApplication: typeof import("./getApplication").getApplication = null as any;
export const getApplicationOutput: typeof import("./getApplication").getApplicationOutput = null as any;
utilities.lazyLoad(exports, ["getApplication","getApplicationOutput"], () => require("./getApplication"));
export { GetEnvironmentArgs, GetEnvironmentResult, GetEnvironmentOutputArgs } from "./getEnvironment";
export const getEnvironment: typeof import("./getEnvironment").getEnvironment = null as any;
export const getEnvironmentOutput: typeof import("./getEnvironment").getEnvironmentOutput = null as any;
utilities.lazyLoad(exports, ["getEnvironment","getEnvironmentOutput"], () => require("./getEnvironment"));
export { GetProjectArgs, GetProjectResult, GetProjectOutputArgs } from "./getProject";
export const getProject: typeof import("./getProject").getProject = null as any;
export const getProjectOutput: typeof import("./getProject").getProjectOutput = null as any;
utilities.lazyLoad(exports, ["getProject","getProjectOutput"], () => require("./getProject"));
export { GetProjectsResult } from "./getProjects";
export const getProjects: typeof import("./getProjects").getProjects = null as any;
export const getProjectsOutput: typeof import("./getProjects").getProjectsOutput = null as any;
utilities.lazyLoad(exports, ["getProjects","getProjectsOutput"], () => require("./getProjects"));
export { GetServersResult } from "./getServers";
export const getServers: typeof import("./getServers").getServers = null as any;
export const getServersOutput: typeof import("./getServers").getServersOutput = null as any;
utilities.lazyLoad(exports, ["getServers","getServersOutput"], () => require("./getServers"));
export { LibsqlArgs, LibsqlState } from "./libsql";
export type Libsql = import("./libsql").Libsql;
export const Libsql: typeof import("./libsql").Libsql = null as any;
utilities.lazyLoad(exports, ["Libsql"], () => require("./libsql"));
export { MariaDbArgs, MariaDbState } from "./mariaDb";
export type MariaDb = import("./mariaDb").MariaDb;
export const MariaDb: typeof import("./mariaDb").MariaDb = null as any;
utilities.lazyLoad(exports, ["MariaDb"], () => require("./mariaDb"));
export { MongoArgs, MongoState } from "./mongo";
export type Mongo = import("./mongo").Mongo;
export const Mongo: typeof import("./mongo").Mongo = null as any;
utilities.lazyLoad(exports, ["Mongo"], () => require("./mongo"));
export { MountArgs, MountState } from "./mount";
export type Mount = import("./mount").Mount;
export const Mount: typeof import("./mount").Mount = null as any;
utilities.lazyLoad(exports, ["Mount"], () => require("./mount"));
export { MySqlArgs, MySqlState } from "./mySql";
export type MySql = import("./mySql").MySql;
export const MySql: typeof import("./mySql").MySql = null as any;
utilities.lazyLoad(exports, ["MySql"], () => require("./mySql"));
export { NetworkArgs, NetworkState } from "./network";
export type Network = import("./network").Network;
export const Network: typeof import("./network").Network = null as any;
utilities.lazyLoad(exports, ["Network"], () => require("./network"));
export { PortArgs, PortState } from "./port";
export type Port = import("./port").Port;
export const Port: typeof import("./port").Port = null as any;
utilities.lazyLoad(exports, ["Port"], () => require("./port"));
export { PostgresArgs, PostgresState } from "./postgres";
export type Postgres = import("./postgres").Postgres;
export const Postgres: typeof import("./postgres").Postgres = null as any;
utilities.lazyLoad(exports, ["Postgres"], () => require("./postgres"));
export { ProjectArgs, ProjectState } from "./project";
export type Project = import("./project").Project;
export const Project: typeof import("./project").Project = null as any;
utilities.lazyLoad(exports, ["Project"], () => require("./project"));
export * from "./provider";
import { Provider } from "./provider";
export { RedirectArgs, RedirectState } from "./redirect";
export type Redirect = import("./redirect").Redirect;
export const Redirect: typeof import("./redirect").Redirect = null as any;
utilities.lazyLoad(exports, ["Redirect"], () => require("./redirect"));
export { RedisArgs, RedisState } from "./redis";
export type Redis = import("./redis").Redis;
export const Redis: typeof import("./redis").Redis = null as any;
utilities.lazyLoad(exports, ["Redis"], () => require("./redis"));
export { RegistryArgs, RegistryState } from "./registry";
export type Registry = import("./registry").Registry;
export const Registry: typeof import("./registry").Registry = null as any;
utilities.lazyLoad(exports, ["Registry"], () => require("./registry"));
export { ScheduleArgs, ScheduleState } from "./schedule";
export type Schedule = import("./schedule").Schedule;
export const Schedule: typeof import("./schedule").Schedule = null as any;
utilities.lazyLoad(exports, ["Schedule"], () => require("./schedule"));
export { SecurityArgs, SecurityState } from "./security";
export type Security = import("./security").Security;
export const Security: typeof import("./security").Security = null as any;
utilities.lazyLoad(exports, ["Security"], () => require("./security"));
export { SshKeyArgs, SshKeyState } from "./sshKey";
export type SshKey = import("./sshKey").SshKey;
export const SshKey: typeof import("./sshKey").SshKey = null as any;
utilities.lazyLoad(exports, ["SshKey"], () => require("./sshKey"));
export { VaultProviderArgs, VaultProviderState } from "./vaultProvider";
export type VaultProvider = import("./vaultProvider").VaultProvider;
export const VaultProvider: typeof import("./vaultProvider").VaultProvider = null as any;
utilities.lazyLoad(exports, ["VaultProvider"], () => require("./vaultProvider"));
export { VolumeBackupArgs, VolumeBackupState } from "./volumeBackup";
export type VolumeBackup = import("./volumeBackup").VolumeBackup;
export const VolumeBackup: typeof import("./volumeBackup").VolumeBackup = null as any;
utilities.lazyLoad(exports, ["VolumeBackup"], () => require("./volumeBackup"));
// Export sub-modules:
import * as config from "./config";
import * as types from "./types";
export {
config,
types,
};
const _module = {
version: utilities.getVersion(),
construct: (name: string, type: string, urn: string): pulumi.Resource => {
switch (type) {
case "dokploy:index/application:Application":
return new Application(name, <any>undefined, { urn })
case "dokploy:index/certificate:Certificate":
return new Certificate(name, <any>undefined, { urn })
case "dokploy:index/compose:Compose":
return new Compose(name, <any>undefined, { urn })
case "dokploy:index/destination:Destination":
return new Destination(name, <any>undefined, { urn })
case "dokploy:index/dnsProvider:DnsProvider":
return new DnsProvider(name, <any>undefined, { urn })
case "dokploy:index/domain:Domain":
return new Domain(name, <any>undefined, { urn })
case "dokploy:index/environment:Environment":
return new Environment(name, <any>undefined, { urn })
case "dokploy:index/libsql:Libsql":
return new Libsql(name, <any>undefined, { urn })
case "dokploy:index/mariaDb:MariaDb":
return new MariaDb(name, <any>undefined, { urn })
case "dokploy:index/mongo:Mongo":
return new Mongo(name, <any>undefined, { urn })
case "dokploy:index/mount:Mount":
return new Mount(name, <any>undefined, { urn })
case "dokploy:index/mySql:MySql":
return new MySql(name, <any>undefined, { urn })
case "dokploy:index/network:Network":
return new Network(name, <any>undefined, { urn })
case "dokploy:index/port:Port":
return new Port(name, <any>undefined, { urn })
case "dokploy:index/postgres:Postgres":
return new Postgres(name, <any>undefined, { urn })
case "dokploy:index/project:Project":
return new Project(name, <any>undefined, { urn })
case "dokploy:index/redirect:Redirect":
return new Redirect(name, <any>undefined, { urn })
case "dokploy:index/redis:Redis":
return new Redis(name, <any>undefined, { urn })
case "dokploy:index/registry:Registry":
return new Registry(name, <any>undefined, { urn })
case "dokploy:index/schedule:Schedule":
return new Schedule(name, <any>undefined, { urn })
case "dokploy:index/security:Security":
return new Security(name, <any>undefined, { urn })
case "dokploy:index/sshKey:SshKey":
return new SshKey(name, <any>undefined, { urn })
case "dokploy:index/vaultProvider:VaultProvider":
return new VaultProvider(name, <any>undefined, { urn })
case "dokploy:index/volumeBackup:VolumeBackup":
return new VolumeBackup(name, <any>undefined, { urn })
default:
throw new Error(`unknown resource type ${type}`);
}
},
};
pulumi.runtime.registerResourceModule("dokploy", "index/application", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/certificate", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/compose", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/destination", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/dnsProvider", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/domain", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/environment", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/libsql", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/mariaDb", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/mongo", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/mount", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/mySql", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/network", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/port", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/postgres", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/project", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/redirect", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/redis", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/registry", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/schedule", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/security", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/sshKey", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/vaultProvider", _module)
pulumi.runtime.registerResourceModule("dokploy", "index/volumeBackup", _module)
pulumi.runtime.registerResourcePackage("dokploy", {
version: utilities.getVersion(),
constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
if (type !== "pulumi:providers:dokploy") {
throw new Error(`unknown provider type ${type}`);
}
return new Provider(name, <any>undefined, { urn });
},
});