Help us shape the future of Go! Take the 2026 Go Developer Survey

secrets

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager provides operations on secrets

func NewManager

func NewManager(client client.Client) Manager

NewManager creates new secrets manager

func (*Manager) CreateFor

func (m *Manager) CreateFor(secret *corev1.Secret, vmiCrName types.NamespacedName) error

CreateFor creates given secret, overriding given Name with a generated one. The secret will be associated with vmiCrName.

func (*Manager) DeleteFor

func (m *Manager) DeleteFor(vmiCrName types.NamespacedName) error

DeleteFor removes secret associated with vmiCrName.

func (*Manager) FindFor

func (m *Manager) FindFor(vmiCrName types.NamespacedName) (*corev1.Secret, error)

FindFor retrieves secret associated with vmiCrName. If none can be found, both error and pointer will be nil. When there is more than 1 matching secret, error will be returned.

Jump to

Keyboard shortcuts

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