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:
56
sdk/go/dokploy/config/config.go
generated
Normal file
56
sdk/go/dokploy/config/config.go
generated
Normal file
@@ -0,0 +1,56 @@
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user