Documentation
¶
Index ¶
- func DereferenceList[T any](items []*T) []T
- func GetBoolFromAnnotations(annotations map[string]string, key string) (bool, error)
- func GetNumberFromAnnotations(annotations map[string]string, key string) (int32, error)
- func GetTimeFromAnnotations(annotations map[string]string, key string) (time.Time, error)
- func Keys[K comparable, V any](items map[K]V) []K
- func MergeList[T any](items ...[]T) []T
- func MergeMaps(mapList ...map[string]string) map[string]string
- func ReferenceList[T any](items []T) []*T
- func StrategicMergePatch[T any](base, patch *T) *T
- func Values[K comparable, V any](items map[K]V) []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DereferenceList ¶
func DereferenceList[T any](items []*T) []T
Convert a referenced list to a list.
func GetBoolFromAnnotations ¶
GetBoolFromAnnotations returns the value of annotation. Returns false if not set or the value is invalid.
func GetNumberFromAnnotations ¶
GetNumberFromAnnotations returns the integer value of annotation. Returns 0 if not set or the value is invalid.
func GetTimeFromAnnotations ¶
GetTimeFromAnnotations returns the integer value of annotation. Returns unit Time if not set or the value is invalid.
func StrategicMergePatch ¶
func StrategicMergePatch[T any](base, patch *T) *T
StrategicMergePatch merges two objects via kubernetes StrategicMergePatch after empty fields are pruned.
Empty fields are considered not given and are pruned on the patch object. Doing so avoids empty values from overwriting the base object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.