hyperscaler

package
v0.0.0-...-fb2c256 Latest Latest
Warning

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

Go to latest
Published: Oct 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 Type, tenantName string) (Credentials, error)
	MarkSecretAsDirty(hyperscalerType Type, tenantName string) error
	IsSecretUsed(hyperscalerType Type, tenantName string) (bool, error)
	IsSecretDirty(hyperscalerType Type, tenantName string) (bool, error)
	IsSecretInternal(hyperscalerType Type, tenantName string) (bool, error)
}

func NewAccountPool

func NewAccountPool(secretsClient corev1.SecretInterface, shootsClient gardener_apis.ShootInterface) AccountPool

type AccountProvider

type AccountProvider interface {
	GardenerCredentials(hyperscalerType Type, tenantName string) (Credentials, error)
	GardenerSharedCredentials(hyperscalerType Type) (Credentials, error)
	MarkUnusedGardenerSecretAsDirty(hyperscalerType Type, tenantName string) error
}

func NewAccountProvider

func NewAccountProvider(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 HyperscalerTypeForPlanID

func HyperscalerTypeForPlanID(planID string) (Type, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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