config

package
v1.71.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CredValDefault = iota
	CredValIAM
	CredValCluster
	CredValAutomation
	CredValNone
)

Variables

View Source
var HTTPVerbose = (strings.TrimSpace(os.Getenv("DYNATRACE_DEBUG")) == "true")

HTTPVerbose if set to `true` terraform-provider-dynatrace.log will contain request and response payload

Functions

func Credentials

func Credentials(m any, CredentialValidation int) (*settings.Credentials, error)

func ProviderConfigure

func ProviderConfigure(ctx context.Context, d *schema.ResourceData) (any, diag.Diagnostics)

func ProviderConfigureGeneric

func ProviderConfigureGeneric(ctx context.Context, d Getter) (any, diag.Diagnostics)

Types

type Automation added in v1.35.0

type Automation struct {
	ClientID       string
	ClientSecret   string
	TokenURL       string
	EnvironmentURL string
}

type ConfigGetter added in v1.67.0

type ConfigGetter struct {
	Provider *schema.Provider
}

func (ConfigGetter) Get added in v1.67.0

func (me ConfigGetter) Get(key string) any

type Getter

type Getter interface {
	Get(key string) any
}

type IAM

type IAM struct {
	ClientID     string
	AccountID    string
	ClientSecret string
	TokenURL     string
	EndpointURL  string
}

type ProviderConfiguration

type ProviderConfiguration struct {
	EnvironmentURL    string
	DTenvURL          string
	DTNonConfigEnvURL string
	DTApiV2URL        string
	ClusterAPIV2URL   string
	ClusterAPIToken   string
	APIToken          string
	IAM               IAM
	Automation        Automation
}

ProviderConfiguration contains the initialized API clients to communicate with the Dynatrace API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL