Documentation
¶
Index ¶
- func CommonCredentialExtractor(ctx context.Context, source xpv1.CredentialsSource, client client.Client, ...) ([]byte, error)
- func ExtractEnv(ctx context.Context, e EnvLookupFn, s xpv1.CommonCredentialSelectors) ([]byte, error)
- func ExtractFs(ctx context.Context, fs afero.Fs, s xpv1.CommonCredentialSelectors) ([]byte, error)
- func ExtractSecret(ctx context.Context, client client.Client, s xpv1.CommonCredentialSelectors) ([]byte, error)
- type EnvLookupFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonCredentialExtractor ¶
func CommonCredentialExtractor(ctx context.Context, source xpv1.CredentialsSource, client client.Client, selector xpv1.CommonCredentialSelectors) ([]byte, error)
CommonCredentialExtractor extracts credentials from common sources.
func ExtractEnv ¶
func ExtractEnv(ctx context.Context, e EnvLookupFn, s xpv1.CommonCredentialSelectors) ([]byte, error)
ExtractEnv extracts credentials from an environment variable.
func ExtractSecret ¶
func ExtractSecret(ctx context.Context, client client.Client, s xpv1.CommonCredentialSelectors) ([]byte, error)
ExtractSecret extracts credentials from a Kubernetes secret.
Types ¶
type EnvLookupFn ¶
EnvLookupFn looks up an environment variable.
Click to show internal directories.
Click to hide internal directories.