hyperscaler

package
v0.0.0-...-f7d1ac2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountPool

type AccountPool interface {
	CredentialsSecretBinding(hyperscalerType Type, tenantName string, euAccess bool) (*gardener.SecretBinding, error)
	MarkSecretBindingAsDirty(hyperscalerType Type, tenantName string, euAccess bool) error
	IsSecretBindingUsed(hyperscalerType Type, tenantName string, euAccess bool) (bool, error)
	IsSecretBindingDirty(hyperscalerType Type, tenantName string, euAccess bool) (bool, error)
	IsSecretBindingInternal(hyperscalerType Type, tenantName string, euAccess bool) (bool, error)
}

func NewAccountPool

func NewAccountPool(gardenerClient dynamic.Interface, gardenerNamespace string) AccountPool

type AccountProvider

type AccountProvider interface {
	GardenerSecretName(hyperscalerType Type, tenantName string, euAccess bool) (string, error)
	GardenerSharedSecretName(hyperscalerType Type, euAccess bool) (string, error)
	MarkUnusedGardenerSecretBindingAsDirty(hyperscalerType Type, tenantName string, euAccess bool) error
}

func NewAccountProvider

func NewAccountProvider(gardenerPool AccountPool, sharedGardenerPool SharedPool) AccountProvider

type Credentials

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

type SharedPool

type SharedPool interface {
	SharedCredentialsSecretBinding(hyperscalerType Type, euAccess bool) (*gardener.SecretBinding, error)
}

func NewSharedGardenerAccountPool

func NewSharedGardenerAccountPool(gardenerClient dynamic.Interface, gardenerNamespace string) SharedPool

type Type

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

func FromCloudProvider

func FromCloudProvider(cp internal.CloudProvider) (Type, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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