secretmanager

package
v1.0.7-1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretManager

type SecretManager struct {
	Client    k8sclient.Client
	Scheme    *runtime.Scheme
	GetLabels func(instance v1.Object) map[string]string
}

func New

func New(client k8sclient.Client, scheme *runtime.Scheme, labels func(instance v1.Object) map[string]string) *SecretManager

func (*SecretManager) BuildSecret

func (s *SecretManager) BuildSecret(instance v1.Object, name string, data map[string][]byte, labels map[string]string) *corev1.Secret

func (*SecretManager) CreateAdminSecret

func (s *SecretManager) CreateAdminSecret(name string, instance v1.Object, adminCerts [][]byte) error

func (*SecretManager) CreateCACertsSecret

func (s *SecretManager) CreateCACertsSecret(name string, instance v1.Object, caCerts [][]byte) error

func (*SecretManager) CreateIntermediateCertsSecret

func (s *SecretManager) CreateIntermediateCertsSecret(name string, instance v1.Object, interCerts [][]byte) error

func (*SecretManager) CreateKey

func (s *SecretManager) CreateKey(name string, instance v1.Object, key []byte) error

func (*SecretManager) CreateOrUpdateSecret

func (s *SecretManager) CreateOrUpdateSecret(instance v1.Object, name string, data map[string][]byte) error

func (*SecretManager) CreateSignCert

func (s *SecretManager) CreateSignCert(name string, instance v1.Object, cert []byte) error

func (*SecretManager) DeleteSecrets

func (s *SecretManager) DeleteSecrets(prefix string, instance v1.Object, name string) error

func (*SecretManager) GenerateSecrets

func (s *SecretManager) GenerateSecrets(prefix common.SecretType, instance v1.Object, crypto *config.Response) error

func (*SecretManager) GenerateSecretsFromResponse

func (s *SecretManager) GenerateSecretsFromResponse(instance v1.Object, cryptoResponse *config.CryptoResponse) error

func (*SecretManager) GetCertBytesFromData

func (s *SecretManager) GetCertBytesFromData(data map[string][]byte) [][]byte

func (*SecretManager) GetCertsData

func (s *SecretManager) GetCertsData(certType string, certs [][]byte) map[string][]byte

func (*SecretManager) GetCryptoFromSecrets

func (s *SecretManager) GetCryptoFromSecrets(prefix common.SecretType, instance v1.Object) (*config.Response, error)

func (*SecretManager) GetCryptoResponseFromSecrets

func (s *SecretManager) GetCryptoResponseFromSecrets(instance v1.Object) (*config.CryptoResponse, error)

func (*SecretManager) GetSecret

func (s *SecretManager) GetSecret(name string, instance v1.Object) (*corev1.Secret, error)

func (*SecretManager) UpdateAdminCertSecret

func (s *SecretManager) UpdateAdminCertSecret(instance v1.Object, secretSpec *current.SecretSpec) error

func (*SecretManager) UpdateSecrets

func (s *SecretManager) UpdateSecrets(prefix common.SecretType, instance v1.Object, crypto *config.Response) error

func (*SecretManager) UpdateSecretsFromResponse

func (s *SecretManager) UpdateSecretsFromResponse(instance v1.Object, cryptoResponse *config.CryptoResponse) error

Jump to

Keyboard shortcuts

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