hyperscaler

package
v0.0.0-...-4b7ff4e Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0, Apache-2.0 Imports: 9 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)
	GardenerSharedCredentials(hyperscalerType Type) (Credentials, error)
	GardenerSecretName(input *gqlschema.GardenerConfigInput, tenantName string) (string, error)
}

func NewAccountProvider

func NewAccountProvider(compassPool AccountPool, gardenerPool AccountPool, sharedGardenerPool SharedPool) AccountProvider

type Credentials

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

type SharedAccountPool

type SharedAccountPool struct {
	// contains filtered or unexported fields
}

func NewSharedGardenerAccountPool

func NewSharedGardenerAccountPool(secretsClient corev1.SecretInterface, shootsClient gardener_apis.ShootInterface) *SharedAccountPool

func (*SharedAccountPool) SharedCredentials

func (sp *SharedAccountPool) SharedCredentials(hyperscalerType Type) (Credentials, error)

type SharedPool

type SharedPool interface {
	SharedCredentials(hyperscalerType Type) (Credentials, error)
}

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