kubernetes

package
v0.19.2 Latest Latest
Warning

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

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

Documentation

Overview

Package kubernetes implements a secret store backed by Kubernetes Secrets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretStore

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

SecretStore is a Kubernetes Secret Store.

func NewSecretStore

func NewSecretStore(ctx context.Context, local client.Client, cfg v1.SecretStoreConfig) (*SecretStore, error)

NewSecretStore returns a new Kubernetes SecretStore.

func (*SecretStore) DeleteKeyValues

func (ss *SecretStore) DeleteKeyValues(ctx context.Context, s *store.Secret, do ...store.DeleteOption) error

DeleteKeyValues delete key value pairs from a given Kubernetes Secret. If no kv specified, the whole secret instance is deleted. If kv specified, those would be deleted and secret instance will be deleted only if there is no data left.

func (*SecretStore) ReadKeyValues

func (ss *SecretStore) ReadKeyValues(ctx context.Context, n store.ScopedName, s *store.Secret) error

ReadKeyValues reads and returns key value pairs for a given Kubernetes Secret.

func (*SecretStore) WriteKeyValues

func (ss *SecretStore) WriteKeyValues(ctx context.Context, s *store.Secret, wo ...store.WriteOption) (bool, error)

WriteKeyValues writes key value pairs to a given Kubernetes Secret.

Jump to

Keyboard shortcuts

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