test

package
v0.0.0-...-25b1e04 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name[T withObjectMeta](name string) func(*T)

func Namespace

func Namespace[T withObjectMeta](namespace string) func(*T)

func ProviderConfig

func ProviderConfig(opts ...func(*apisv1.ProviderConfig)) *apisv1.ProviderConfig

func Secret

func Secret(opts ...func(*corev1.Secret)) *corev1.Secret

func SecretRef

func SecretRef(name, ns, key string) xpv1.CommonCredentialSelectors

func TestLogger

func TestLogger(t *testing.T) logging.Logger

func Uid

func Uid[T withObjectMeta](uid types.UID) func(*T)

func WithKey

func WithKey(key, value string) func(*corev1.Secret)

func WithProviderConfigHealth

func WithProviderConfigHealth(health *apisv1.ProviderConfigHealth) func(*apisv1.ProviderConfig)

func WithProviderConfigSpec

func WithProviderConfigSpec(url string,
	username xpv1.CommonCredentialSelectors,
	password xpv1.CommonCredentialSelectors,
	source xpv1.CredentialsSource,
) func(*apisv1.ProviderConfig)

Types

type ProviderConfigHealthOption

type ProviderConfigHealthOption func(*apisv1.ProviderConfigHealth)

func HealthLastCheckTime

func HealthLastCheckTime(t time.Time) ProviderConfigHealthOption

func HealthLastMessage

func HealthLastMessage(message string) ProviderConfigHealthOption

func HealthLastStatus

func HealthLastStatus(status bool) ProviderConfigHealthOption

Jump to

Keyboard shortcuts

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