Documentation ¶
Index ¶
- func Builder() *builder
- func CreateOrUpdate(getUpdateCreator GetUpdateCreator, secret corev1.Secret) error
- func ReadByteData(getter Getter, objectKey client.ObjectKey) (map[string][]byte, error)
- func ReadKey(getter Getter, key string, objectKey client.ObjectKey) (string, error)
- func ReadStringData(getter Getter, key client.ObjectKey) (map[string]string, error)
- func UpdateField(getUpdater GetUpdater, objectKey client.ObjectKey, key, value string) error
- type Creator
- type Deleter
- type GetUpdateCreateDeleter
- type GetUpdateCreator
- type GetUpdater
- type Getter
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdate ¶
func CreateOrUpdate(getUpdateCreator GetUpdateCreator, secret corev1.Secret) error
CreateOrUpdate creates the Secret if it doesn't exist, other wise it updates it
func ReadByteData ¶
ReadByteData reads the Data field of the secret with the given objectKey
func ReadStringData ¶
ReadStringData reads the StringData field of the secret with the given objectKey
func UpdateField ¶
func UpdateField(getUpdater GetUpdater, objectKey client.ObjectKey, key, value string) error
UpdateField updates a single field in the secret with the provided objectKey
Types ¶
type GetUpdateCreateDeleter ¶
type GetUpdateCreator ¶
type GetUpdater ¶
Click to show internal directories.
Click to hide internal directories.