// 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 }