credentials

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 6 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 ctrlruntime.Client, namespace, secretName string) (*VSphereVMProviderCredentials, error)

Jump to

Keyboard shortcuts

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