credential

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientIDKey       = "azure.azureoperator.clientid"
	ClientSecretKey   = "azure.azureoperator.clientsecret"
	SubscriptionIDKey = "azure.azureoperator.subscriptionid"
	TenantIDKey       = "azure.azureoperator.tenantid"
	PartnerIDKey      = "azure.azureoperator.partnerid"
	SingleTenantSP    = "giantswarm.io/single-tenant-service-principal"
)

Variables

This section is empty.

Functions

func GetAzureClientSetsByCluster

func GetAzureClientSetsByCluster(ctx context.Context, ctrlClient ctrlclient.Client, gsTenantID string) (map[string]*client.AzureClientSet, error)

func GetAzureClientSetsFromCredentialSecrets

func GetAzureClientSetsFromCredentialSecrets(ctx context.Context, ctrlClient ctrlclient.Client, gsTenantID string) (map[*client.AzureClientSetConfig]*client.AzureClientSet, error)

func GetAzureClientSetsFromCredentialSecretsBySubscription

func GetAzureClientSetsFromCredentialSecretsBySubscription(ctx context.Context, ctrlClient ctrlclient.Client, gsTenantID string) (map[string]*client.AzureClientSet, error)

func GetAzureConfigFromSecret

func GetAzureConfigFromSecret(credential *v1.Secret, gsTenantID string) (*client.AzureClientSetConfig, error)

func GetAzureConfigFromSecretName

func GetAzureConfigFromSecretName(ctx context.Context, ctrlClient ctrlclient.Client, name, namespace, gsTenantID string) (*client.AzureClientSetConfig, error)

func GetCredentialSecrets

func GetCredentialSecrets(ctx context.Context, ctrlClient ctrlclient.Client) (secrets []v1.Secret, err error)

func IsInvalidConfigFoundError

func IsInvalidConfigFoundError(err error) bool

IsInvalidConfigFoundError asserts invalidConfig.

func IsMissingValue

func IsMissingValue(err error) bool

IsMissingValue asserts missingValueError.

Types

This section is empty.

Jump to

Keyboard shortcuts

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