Documentation ¶
Index ¶
- type KeyAnnotation
- type SecretsClient
- func (s *SecretsClient) Create(name string) (*v1.Secret, error)
- func (s *SecretsClient) CreateWithData(name string, data map[string][]byte) (*v1.Secret, error)
- func (s *SecretsClient) Delete(name string) error
- func (s *SecretsClient) Get(name string) (*v1.Secret, error)
- func (s *SecretsClient) GetKey(name, key string) (string, error)
- func (s *SecretsClient) List() (*v1.SecretList, error)
- func (s *SecretsClient) Update(secret *v1.Secret, data map[string][]byte) (*v1.Secret, error)
- func (s *SecretsClient) Upsert(name string, data map[string][]byte) (*v1.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyAnnotation ¶
type KeyAnnotation struct { UpdatedBy string `json:"updatedBy"` LastUpdated string `json:"lastUpdated"` }
KeyAnnotation holds metadata about individual Secrets keys
func NewKeyAnnotation ¶
func NewKeyAnnotation(authInfo string) *KeyAnnotation
NewKeyAnnotation constructor
type SecretsClient ¶
type SecretsClient struct { Namespace string AuthInfo string // contains filtered or unexported fields }
SecretsClient is a convenience wrapper for managing k8s Secrets
func NewSecretsClient ¶
func NewSecretsClient(namespace string) (*SecretsClient, error)
NewSecretsClient constructor
func (*SecretsClient) Create ¶
func (s *SecretsClient) Create(name string) (*v1.Secret, error)
Create a new Secret
func (*SecretsClient) CreateWithData ¶
CreateWithData creates a new Secret and passed in Data keys
func (*SecretsClient) GetKey ¶
func (s *SecretsClient) GetKey(name, key string) (string, error)
GetKey retrieves an individual keys value from a secret
func (*SecretsClient) List ¶
func (s *SecretsClient) List() (*v1.SecretList, error)
List all Secrets
Click to show internal directories.
Click to hide internal directories.