hyperscaler

package
v0.0.0-...-baf11bc Latest Latest
Warning

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

Go to latest
Published: Jul 2, 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 Type, tenantName string) (Credentials, error)
}

func NewAccountPool

func NewAccountPool(secretsClient corev1.SecretInterface) AccountPool

type AccountProvider

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

func NewAccountProvider

func NewAccountProvider(compassPool AccountPool, gardenerPool AccountPool) AccountProvider

type Credentials

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

type Type

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

func HyperscalerTypeFromProviderString

func HyperscalerTypeFromProviderString(provider string) (Type, error)

func HyperscalerTypeFromProvisionInput

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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