Documentation
¶
Index ¶
- Variables
- func CreateAccountClient(ctx context.Context, acc manifest.Account) (*accounts.Client, error)
- func CreateAccountClients(ctx context.Context, manifestAccounts map[string]manifest.Account) (map[account.AccountInfo]*accounts.Client, error)
- func VerifyEnvironmentAuthentication(ctx context.Context, env manifest.EnvironmentDefinition) error
- func VerifyEnvironmentsAuthentication(ctx context.Context, envs manifest.EnvironmentDefinitionsByName) error
- type EnvironmentClients
- type EnvironmentInfo
Constants ¶
This section is empty.
Variables ¶
var ErrorMissingAuth = errors.New("no authentication credentials provided")
Functions ¶
func CreateAccountClient ¶ added in v2.25.0
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
EnvironmentInfo environment specific information