credentials

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialGetter added in v1.10.0

type CredentialGetter struct {
	FromFile   FileStore
	FromSecret SecretStore
}

CredentialGetter is a collection of interfaces for interacting with credentials that are stored in different targets

type FileStore

type FileStore interface {
	// Path returns a path on disk where the secret key defined by
	// the given selector is serialized.
	Path(selector *corev1api.SecretKeySelector) (string, error)
}

FileStore defines operations for interacting with credentials that are stored on a file system.

func NewNamespacedFileStore

func NewNamespacedFileStore(client kbclient.Client, namespace string, fsRoot string, fs filesystem.Interface) (FileStore, error)

NewNamespacedFileStore returns a FileStore which can interact with credentials for the given namespace and will store them under the given fsRoot.

type SecretStore added in v1.10.0

type SecretStore interface {
	// Get returns the secret key defined by the given selector
	Get(selector *corev1api.SecretKeySelector) (string, error)
}

SecretStore defines operations for interacting with credentials that are stored in Secret.

func NewNamespacedSecretStore added in v1.10.0

func NewNamespacedSecretStore(client kbclient.Client, namespace string) (SecretStore, error)

NewNamespacedSecretStore returns a SecretStore which can interact with credentials for the given namespace.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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