secrets

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SliceToClientObjectSlice

func SliceToClientObjectSlice(s []*v1.Secret) []client.Object

Types

type Collector

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

Collector collects secret values and their associated genruntime.SecretDestination's and produces a merged set of v1.Secret's that can be written.

func NewCollector

func NewCollector(namespace string) *Collector

NewCollector creates a new Collector

func (*Collector) AddBinaryValue

func (c *Collector) AddBinaryValue(dest *genruntime.SecretDestination, value []byte)

AddBinaryValue adds the dest and secretValue pair to the collector. If another value has already been added going to the same secret (but with a different key) the new key is merged into the existing secret.

func (*Collector) AddValue

func (c *Collector) AddValue(dest *genruntime.SecretDestination, value string)

AddValue adds the dest and secretValue pair to the collector. If another value has already been added going to the same secret (but with a different key) the new key is merged into the existing secret.

func (*Collector) Values

func (c *Collector) Values() ([]*v1.Secret, error)

Values returns the set of secrets that have been collected.

Jump to

Keyboard shortcuts

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