Files
pulumi-dokploy/sdk/go/dokploy/config/config.go
Max Vojtkov bb3c15135b 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.
2026-08-08 15:28:16 +03:00

57 lines
1.8 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 config
import (
"github.com/maxvojtkov/pulumi-dokploy/sdk/go/dokploy/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
var _ = internal.GetEnvOrDefault
// API token generated in Dokploy under *Settings > Profile > API/CLI*. May also be set with the `DOKPLOY_API_KEY` environment variable.
func GetApiKey(ctx *pulumi.Context) string {
v, err := config.Try(ctx, "dokploy:apiKey")
if err == nil {
return v
}
var value string
if d := internal.GetEnvOrDefault(nil, nil, "DOKPLOY_API_KEY"); d != nil {
value = d.(string)
}
return value
}
// Base URL of the Dokploy instance, for example `https://dokploy.example.com`. A trailing `/api` is optional. May also be set with the `DOKPLOY_HOST` environment variable.
func GetHost(ctx *pulumi.Context) string {
v, err := config.Try(ctx, "dokploy:host")
if err == nil {
return v
}
var value string
if d := internal.GetEnvOrDefault(nil, nil, "DOKPLOY_HOST"); d != nil {
value = d.(string)
}
return value
}
// Skip TLS certificate verification. Only use this for instances behind a self-signed certificate. Defaults to `false`.
func GetInsecureSkipVerify(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "dokploy:insecureSkipVerify")
}
// Per-request timeout in seconds. Defaults to `60`. May also be set with the `DOKPLOY_TIMEOUT_SECONDS` environment variable.
func GetTimeoutSeconds(ctx *pulumi.Context) int {
v, err := config.TryInt(ctx, "dokploy:timeoutSeconds")
if err == nil {
return v
}
var value int
if d := internal.GetEnvOrDefault(nil, internal.ParseEnvInt, "DOKPLOY_TIMEOUT_SECONDS"); d != nil {
value = d.(int)
}
return value
}