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`.
121 lines
4.2 KiB
Go
Generated
121 lines
4.2 KiB
Go
Generated
// Code generated by pulumi-language-go DO NOT EDIT.
|
|
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
package dokploy
|
|
|
|
import (
|
|
"context"
|
|
"reflect"
|
|
|
|
"github.com/maxvojtkov/pulumi-dokploy/sdk/go/dokploy/internal"
|
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
)
|
|
|
|
// Look up an existing environment by ID.
|
|
func LookupEnvironment(ctx *pulumi.Context, args *LookupEnvironmentArgs, opts ...pulumi.InvokeOption) (*LookupEnvironmentResult, error) {
|
|
opts = internal.PkgInvokeDefaultOpts(opts)
|
|
var rv LookupEnvironmentResult
|
|
err := ctx.Invoke("dokploy:index/getEnvironment:getEnvironment", args, &rv, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &rv, nil
|
|
}
|
|
|
|
// A collection of arguments for invoking getEnvironment.
|
|
type LookupEnvironmentArgs struct {
|
|
// Environment identifier.
|
|
Id string `pulumi:"id"`
|
|
}
|
|
|
|
// A collection of values returned by getEnvironment.
|
|
type LookupEnvironmentResult struct {
|
|
// Creation timestamp.
|
|
CreatedAt string `pulumi:"createdAt"`
|
|
// Environment description.
|
|
Description string `pulumi:"description"`
|
|
// Environment-wide variables.
|
|
Env string `pulumi:"env"`
|
|
// Environment identifier.
|
|
Id string `pulumi:"id"`
|
|
// Whether this is the project's default environment.
|
|
IsDefault bool `pulumi:"isDefault"`
|
|
// Environment name.
|
|
Name string `pulumi:"name"`
|
|
// Owning project.
|
|
ProjectId string `pulumi:"projectId"`
|
|
}
|
|
|
|
func LookupEnvironmentOutput(ctx *pulumi.Context, args LookupEnvironmentOutputArgs, opts ...pulumi.InvokeOption) LookupEnvironmentResultOutput {
|
|
return pulumi.ToOutputWithContext(ctx.Context(), args).
|
|
ApplyT(func(v interface{}) (LookupEnvironmentResultOutput, error) {
|
|
args := v.(LookupEnvironmentArgs)
|
|
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
|
|
return ctx.InvokeOutput("dokploy:index/getEnvironment:getEnvironment", args, LookupEnvironmentResultOutput{}, options).(LookupEnvironmentResultOutput), nil
|
|
}).(LookupEnvironmentResultOutput)
|
|
}
|
|
|
|
// A collection of arguments for invoking getEnvironment.
|
|
type LookupEnvironmentOutputArgs struct {
|
|
// Environment identifier.
|
|
Id pulumi.StringInput `pulumi:"id"`
|
|
}
|
|
|
|
func (LookupEnvironmentOutputArgs) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*LookupEnvironmentArgs)(nil)).Elem()
|
|
}
|
|
|
|
// A collection of values returned by getEnvironment.
|
|
type LookupEnvironmentResultOutput struct{ *pulumi.OutputState }
|
|
|
|
func (LookupEnvironmentResultOutput) ElementType() reflect.Type {
|
|
return reflect.TypeOf((*LookupEnvironmentResult)(nil)).Elem()
|
|
}
|
|
|
|
func (o LookupEnvironmentResultOutput) ToLookupEnvironmentResultOutput() LookupEnvironmentResultOutput {
|
|
return o
|
|
}
|
|
|
|
func (o LookupEnvironmentResultOutput) ToLookupEnvironmentResultOutputWithContext(ctx context.Context) LookupEnvironmentResultOutput {
|
|
return o
|
|
}
|
|
|
|
// Creation timestamp.
|
|
func (o LookupEnvironmentResultOutput) CreatedAt() pulumi.StringOutput {
|
|
return o.ApplyT(func(v LookupEnvironmentResult) string { return v.CreatedAt }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Environment description.
|
|
func (o LookupEnvironmentResultOutput) Description() pulumi.StringOutput {
|
|
return o.ApplyT(func(v LookupEnvironmentResult) string { return v.Description }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Environment-wide variables.
|
|
func (o LookupEnvironmentResultOutput) Env() pulumi.StringOutput {
|
|
return o.ApplyT(func(v LookupEnvironmentResult) string { return v.Env }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Environment identifier.
|
|
func (o LookupEnvironmentResultOutput) Id() pulumi.StringOutput {
|
|
return o.ApplyT(func(v LookupEnvironmentResult) string { return v.Id }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Whether this is the project's default environment.
|
|
func (o LookupEnvironmentResultOutput) IsDefault() pulumi.BoolOutput {
|
|
return o.ApplyT(func(v LookupEnvironmentResult) bool { return v.IsDefault }).(pulumi.BoolOutput)
|
|
}
|
|
|
|
// Environment name.
|
|
func (o LookupEnvironmentResultOutput) Name() pulumi.StringOutput {
|
|
return o.ApplyT(func(v LookupEnvironmentResult) string { return v.Name }).(pulumi.StringOutput)
|
|
}
|
|
|
|
// Owning project.
|
|
func (o LookupEnvironmentResultOutput) ProjectId() pulumi.StringOutput {
|
|
return o.ApplyT(func(v LookupEnvironmentResult) string { return v.ProjectId }).(pulumi.StringOutput)
|
|
}
|
|
|
|
func init() {
|
|
pulumi.RegisterOutputType(LookupEnvironmentResultOutput{})
|
|
}
|