Documentation
¶
Index ¶
- func Builder() *builder
- func CreateOrUpdate(getUpdateCreator GetUpdateCreator, cm corev1.ConfigMap) error
- func ReadData(getter Getter, key client.ObjectKey) (map[string]string, error)
- func ReadKey(getter Getter, key string, objectKey client.ObjectKey) (string, error)
- func UpdateField(getUpdater GetUpdater, objectKey client.ObjectKey, key, value string) error
- type Creator
- 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, cm corev1.ConfigMap) error
CreateOrUpdate creates the given ConfigMap if it doesn't exist, or updates it if it does.
func ReadKey ¶
ReadKey accepts a ConfigMap Getter, the object of the ConfigMap to get, and the key within the config map to read. It returns the string value, and an error if one occurred.
func UpdateField ¶
func UpdateField(getUpdater GetUpdater, objectKey client.ObjectKey, key, value string) error
UpdateField updates the sets "key" to the given "value"
Types ¶
type GetUpdateCreator ¶
type GetUpdater ¶
Click to show internal directories.
Click to hide internal directories.