Documentation ¶
Index ¶
- func GetMetadataName(name string) string
- func NewApplySpec(id, namespace string, labels, stringData map[string]string) *corev1.SecretApplyConfiguration
- func NewSpec(id, namespace string, labels, stringData map[string]string) *v1.Secret
- type Client
- func (c *Client) Apply(id string, labels, stringData map[string]string) error
- func (c *Client) Create(id string, labels, stringData map[string]string) error
- func (c *Client) Delete(id string) error
- func (c *Client) DeleteAll(selector string) error
- func (c *Client) Get(id string) (map[string]string, error)
- func (c *Client) List() (map[string]map[string]string, error)
- func (c *Client) Update(id string, labels, stringData map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetadataName ¶
GetMetadataName returns secret metadata name
func NewApplySpec ¶ added in v0.8.1
func NewApplySpec(id, namespace string, labels, stringData map[string]string) *corev1.SecretApplyConfiguration
NewApplySpec is a method to return secret apply spec
Types ¶
type Client ¶
type Client struct { ClientSet *kubernetes.Clientset Log *zap.SugaredLogger Namespace string }
Client provide methods to manage secrets
Click to show internal directories.
Click to hide internal directories.