decoder

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EksacloudStackCloudConfigB64SecretKey = "EKSA_CLOUDSTACK_B64ENCODED_SECRET"
	CloudStackCloudConfigB64SecretKey     = "CLOUDSTACK_B64ENCODED_SECRET"
	EksaCloudStackHostPathToMount         = "EKSA_CLOUDSTACK_HOST_PATHS_TO_MOUNT"

	CloudStackGlobalAZ = "global"

	APIKeyKey    = "api-key"
	SecretKeyKey = "secret-key"
	APIUrlKey    = "api-url"
	VerifySslKey = "verify-ssl"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudStackExecConfig

type CloudStackExecConfig struct {
	Profiles []CloudStackProfileConfig
}

func ParseCloudStackCredsFromEnv added in v0.13.0

func ParseCloudStackCredsFromEnv() (*CloudStackExecConfig, error)

ParseCloudStackCredsFromEnv parses the input b64 string into the ini object to extract out the api key, secret key, and url.

func ParseCloudStackCredsFromSecrets added in v0.13.0

func ParseCloudStackCredsFromSecrets(secrets []apiv1.Secret) (*CloudStackExecConfig, error)

ParseCloudStackCredsFromSecrets parses a list of secrets to extract out the api keys, secret keys, and urls.

type CloudStackProfileConfig added in v0.11.0

type CloudStackProfileConfig struct {
	Name          string
	ApiKey        string
	SecretKey     string
	ManagementUrl string
	VerifySsl     string
	Timeout       string
}

Jump to

Keyboard shortcuts

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