Documentation ¶
Index ¶
- func GetKeyAndCertificateFromSecret(secret *corev1.Secret) ([]byte, []byte)
- type SecretsClient
- func (c *SecretsClient) ApplyIdentitySecret(key, cert []byte) (*corev1.Secret, error)
- func (c *SecretsClient) CreateIdentitySecret(key, cert []byte) (*corev1.Secret, error)
- func (c *SecretsClient) GetIdentitySecret() (secret *corev1.Secret, isNotFound bool, err error)
- func (c *SecretsClient) UpdateIdentitySecret(key, cert []byte) (*corev1.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SecretsClient ¶
type SecretsClient struct {
// contains filtered or unexported fields
}
API client for managing Kubernetes Secrets
func NewSecretClient ¶
func NewSecretClient(name, namespace string) (*SecretsClient, error)
NewSecretClient initializes Kubernetes SecretClient
func (*SecretsClient) ApplyIdentitySecret ¶
func (c *SecretsClient) ApplyIdentitySecret(key, cert []byte) (*corev1.Secret, error)
ApplyIdentitySecret applies/patches Kubernetes Secret
func (*SecretsClient) CreateIdentitySecret ¶
func (c *SecretsClient) CreateIdentitySecret(key, cert []byte) (*corev1.Secret, error)
CreateIdentitySecret creates Kubernetes Secret
func (*SecretsClient) GetIdentitySecret ¶
func (c *SecretsClient) GetIdentitySecret() (secret *corev1.Secret, isNotFound bool, err error)
GetIdentitySecret gets Kubernetes Secret
func (*SecretsClient) UpdateIdentitySecret ¶
func (c *SecretsClient) UpdateIdentitySecret(key, cert []byte) (*corev1.Secret, error)
UpdateIdentitySecret updates Kubernetes Secret
Click to show internal directories.
Click to hide internal directories.