hyperscaler

package
v0.0.0-...-6d4a0cd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountPool

type AccountPool interface {
	Credentials(hyperscalerType HyperscalerType, tenantName string) (Credentials, error)
}

func NewAccountPool

func NewAccountPool(secretsClient corev1.SecretInterface) AccountPool

type AccountProvider

type AccountProvider interface {
	CompassCredentials(hyperscalerType HyperscalerType, tenantName string) (Credentials, error)
	GardenerCredentials(hyperscalerType HyperscalerType, tenantName string) (Credentials, error)
	CompassSecretName(input *gqlschema.ProvisionRuntimeInput, tenantName string) (string, error)
	GardenerSecretName(input *gqlschema.GardenerConfigInput, tenantName string) (string, error)
}

func NewAccountProvider

func NewAccountProvider(compassPool AccountPool, gardenerPool AccountPool) AccountProvider

type Credentials

type Credentials struct {
	CredentialName  string
	HyperscalerType HyperscalerType
	TenantName      string
	CredentialData  map[string][]byte
}

type HyperscalerType

type HyperscalerType string
const (
	GCP   HyperscalerType = "gcp"
	Azure HyperscalerType = "azure"
	AWS   HyperscalerType = "aws"
)

func HyperscalerTypeFromProviderString

func HyperscalerTypeFromProviderString(provider string) (HyperscalerType, error)

func HyperscalerTypeFromProvisionInput

func HyperscalerTypeFromProvisionInput(input *gqlschema.ProvisionRuntimeInput) (HyperscalerType, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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