Documentation ¶
Index ¶
- type SecretManager
- func (s *SecretManager) BuildSecret(instance v1.Object, name string, data map[string][]byte, ...) *corev1.Secret
- func (s *SecretManager) CreateAdminSecret(name string, instance v1.Object, adminCerts [][]byte) error
- func (s *SecretManager) CreateCACertsSecret(name string, instance v1.Object, caCerts [][]byte) error
- func (s *SecretManager) CreateIntermediateCertsSecret(name string, instance v1.Object, interCerts [][]byte) error
- func (s *SecretManager) CreateKey(name string, instance v1.Object, key []byte) error
- func (s *SecretManager) CreateOrUpdateSecret(instance v1.Object, name string, data map[string][]byte) error
- func (s *SecretManager) CreateSignCert(name string, instance v1.Object, cert []byte) error
- func (s *SecretManager) DeleteSecrets(prefix string, instance v1.Object, name string) error
- func (s *SecretManager) GenerateSecrets(prefix common.SecretType, instance v1.Object, crypto *config.Response) error
- func (s *SecretManager) GenerateSecretsFromResponse(instance v1.Object, cryptoResponse *config.CryptoResponse) error
- func (s *SecretManager) GetCertBytesFromData(data map[string][]byte) [][]byte
- func (s *SecretManager) GetCertsData(certType string, certs [][]byte) map[string][]byte
- func (s *SecretManager) GetCryptoFromSecrets(prefix common.SecretType, instance v1.Object) (*config.Response, error)
- func (s *SecretManager) GetCryptoResponseFromSecrets(instance v1.Object) (*config.CryptoResponse, error)
- func (s *SecretManager) GetSecret(name string, instance v1.Object) (*corev1.Secret, error)
- func (s *SecretManager) UpdateAdminCertSecret(instance v1.Object, secretSpec *current.SecretSpec) error
- func (s *SecretManager) UpdateSecrets(prefix common.SecretType, instance v1.Object, crypto *config.Response) error
- func (s *SecretManager) UpdateSecretsFromResponse(instance v1.Object, cryptoResponse *config.CryptoResponse) error
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 (*SecretManager) BuildSecret ¶
func (*SecretManager) CreateAdminSecret ¶
func (*SecretManager) CreateCACertsSecret ¶
func (*SecretManager) CreateIntermediateCertsSecret ¶
func (*SecretManager) CreateOrUpdateSecret ¶
func (*SecretManager) CreateSignCert ¶
func (*SecretManager) DeleteSecrets ¶
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) 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
Click to show internal directories.
Click to hide internal directories.