resource

package
v0.0.0-...-bd7b10a Latest Latest
Warning

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

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

Documentation

Index

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

ExtractEnv extracts credentials from an environment variable.

func ExtractFs

func ExtractFs(ctx context.Context, fs afero.Fs, s xpv1.CommonCredentialSelectors) ([]byte, error)

ExtractFs extracts credentials from the filesystem.

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

type EnvLookupFn func(string) string

EnvLookupFn looks up an environment variable.

Jump to

Keyboard shortcuts

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