k8skeystore

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factoryk8s

func Factoryk8s(keystoreNamespace string, ks8client k8s.Interface, logger *logp.Logger) (keystore.Keystore, error)

Factoryk8s Create the right keystore with the configured options

func NewKubernetesKeystoresRegistry

func NewKubernetesKeystoresRegistry(logger *logp.Logger, client k8s.Interface) bus.KeystoreProvider

NewKubernetesKeystoresRegistry initializes a KubernetesKeystoresRegistry

func NewKubernetesSecretsKeystore

func NewKubernetesSecretsKeystore(keystoreNamespace string, ks8client k8s.Interface, logger *logp.Logger) (keystore.Keystore, error)

NewKubernetesSecretsKeystore returns an new k8s Keystore

Types

type KubernetesKeystoresRegistry

type KubernetesKeystoresRegistry struct {
	// contains filtered or unexported fields
}

KubernetesKeystoresRegistry implements a Provider for Keystore.

func (*KubernetesKeystoresRegistry) GetKeystore

func (kr *KubernetesKeystoresRegistry) GetKeystore(event bus.Event) keystore.Keystore

GetKeystore return a KubernetesSecretsKeystore if it already exists for a given namespace or creates a new one.

type KubernetesSecretsKeystore

type KubernetesSecretsKeystore struct {
	// contains filtered or unexported fields
}

KubernetesSecretsKeystore allows to retrieve passwords from Kubernetes secrets for a given namespace

func (*KubernetesSecretsKeystore) GetConfig

func (k *KubernetesSecretsKeystore) GetConfig() (*config.C, error)

GetConfig returns config.C representation of the key / secret pair to be merged with other loaded configuration.

func (*KubernetesSecretsKeystore) IsPersisted

func (k *KubernetesSecretsKeystore) IsPersisted() bool

IsPersisted return if the keystore is physically persisted on disk.

func (*KubernetesSecretsKeystore) Retrieve

Retrieve return a SecureString instance that will contains both the key and the secret.

Jump to

Keyboard shortcuts

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