Documentation ¶
Overview ¶
Package k8secret implements a SecretsProvider backend that uses Kubernetes secrets for the data store.
Index ¶
- type Provider
- func (k *Provider) Close() error
- func (k *Provider) ReadSecret(name string) ([]byte, error)
- func (k *Provider) ReadSecretMap(name string) (map[string][]byte, error)
- func (k *Provider) Setup(client client.Client, cluster *appv1.VDICluster) error
- func (k *Provider) WriteSecret(name string, content []byte) error
- func (k *Provider) WriteSecretMap(name string, content map[string][]byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { common.SecretsProvider // contains filtered or unexported fields }
Provider implements a SecretsProvider that matches secret names to keys in a single configured secret.
func (*Provider) ReadSecret ¶
ReadSecret returns the data in the key specified by the given name.
func (*Provider) ReadSecretMap ¶
ReadSecretMap implements SecretsProvider and returns a stored map secret.
func (*Provider) Setup ¶
Setup will set the client inteface and secret name, and then ensure the presence of the secret in the cluster.
func (*Provider) WriteSecret ¶
WriteSecret will write the given data to the key of the given name and then update the secret.
func (*Provider) WriteSecretMap ¶
WriteSecretMap implements SecretsProvider and will write the key-value pair to the secrets backend. The secret can be read back in the same fashion. This will be the preferred function going forward.