dynatrace

package
v2.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorMissingAuth = errors.New("no authentication credentials provided")

Functions

func CreateAccountClient added in v2.25.0

func CreateAccountClient(ctx context.Context, acc manifest.Account) (*accounts.Client, error)

CreateAccountClient creates a client for the given account.

func CreateAccountClients added in v2.9.3

func CreateAccountClients(ctx context.Context, manifestAccounts map[string]manifest.Account) (map[account.AccountInfo]*accounts.Client, error)

CreateAccountClients gives back clients to use for specific accounts Note: The HTTP client used behind is set/overwritten in main.go

func VerifyEnvironmentAuthentication added in v2.24.0

func VerifyEnvironmentAuthentication(ctx context.Context, env manifest.EnvironmentDefinition) error

VerifyEnvironmentAuthentication checks if the provided access token and platform credentials of the provided environment are valid.

func VerifyEnvironmentsAuthentication added in v2.24.0

func VerifyEnvironmentsAuthentication(ctx context.Context, envs manifest.EnvironmentDefinitionsByName) error

VerifyEnvironmentsAuthentication verifies that all environments can be reached with the defined credentials. It returns the first error encountered

Types

type EnvironmentClients added in v2.11.0

type EnvironmentClients map[EnvironmentInfo]*client.ClientSet

EnvironmentClients is a collection of clients to use for specific environments

func CreateEnvironmentClients added in v2.11.0

func CreateEnvironmentClients(ctx context.Context, environments manifest.EnvironmentDefinitionsByName, dryRun bool) (EnvironmentClients, error)

CreateEnvironmentClients gives back clients to use for specific environments

func (EnvironmentClients) Names added in v2.11.0

func (e EnvironmentClients) Names() []string

Names gives back all environment Names for which the EnvironmentClients has a client sets

type EnvironmentInfo added in v2.11.0

type EnvironmentInfo struct {
	Name  string
	Group string
}

EnvironmentInfo environment specific information

Jump to

Keyboard shortcuts

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