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)
Click to show internal directories.
Click to hide internal directories.