kubernetes

package
v0.10.17 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidValueRef = fmt.Errorf("invalid value ref")
View Source
var ErrKeyNotFoundInSecret = fmt.Errorf("key not found")
View Source
var ErrSecretNotFound = fmt.Errorf("secret not found")

Functions

This section is empty.

Types

type SecretUpsertRequest

type SecretUpsertRequest struct {
	Name      string
	Namespace string
	Data      map[string][]byte
}

type Secrets

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

func NewSecrets

func NewSecrets(logger logr.Logger, client client.Client) *Secrets

func (*Secrets) Read

func (secrets *Secrets) Read(ctx context.Context, namespace string, ref v1.SecretKeySelector) (string, error)

func (*Secrets) Upsert

func (secrets *Secrets) Upsert(ctx context.Context, request SecretUpsertRequest) error

type ValueRefReader

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

func NewValueRefReader

func NewValueRefReader(logger logr.Logger, secrets secretsReader) *ValueRefReader

func (*ValueRefReader) RefToValue

func (reader *ValueRefReader) RefToValue(ctx context.Context, namespace string, ref v1alpha1.ValueOrRef) (string, error)

Jump to

Keyboard shortcuts

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