credentials

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProviderCredentialsToSecret

func ProviderCredentialsToSecret(namespace string, credentials *VSphereVMProviderCredentials, vcCredsSecretName string) *corev1.Secret

ProviderCredentialsToSecret returns the Secret for the credentials. Testing only.

Types

type VSphereVMProviderCredentials

type VSphereVMProviderCredentials struct {
	Username string
	Password string
}

VSphereVMProviderCredentials wraps the data needed to login to vCenter.

func GetProviderCredentials

func GetProviderCredentials(client ctrlclient.Client, namespace, secretName string) (*VSphereVMProviderCredentials, error)

Jump to

Keyboard shortcuts

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