Documentation ¶
Index ¶
- func CompareMapsIgnoringNulls(a map[string]any, b map[string]any) bool
- func NewWorkQueue(queueName string) workqueue.RateLimitingInterface
- func SplitMap(m map[string]any, paths []string, pathSeparator string) (onlyPaths map[string]any, withoutPaths map[string]any, err error)
- func SplitObject(obj []byte, paths []string, pathSeparator string) (map[string]any, map[string]any, error)
- func StructToStruct(src any, dst any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareMapsIgnoringNulls ¶ added in v0.4.0
CompareMapsIgnoringNulls compares 2 maps for equality, ignoring any null values, empty maps, empty arrays, zero numerical values, and empty strings
func NewWorkQueue ¶ added in v0.2.0
func NewWorkQueue(queueName string) workqueue.RateLimitingInterface
func SplitMap ¶ added in v0.6.0
func SplitMap(m map[string]any, paths []string, pathSeparator string) (onlyPaths map[string]any, withoutPaths map[string]any, err error)
SplitMap returns 2 maps from a given map and a slice of paths. One of the 2 output maps will include only the paths from the slice while the second returned map will include all other paths.
func SplitObject ¶ added in v0.6.0
func SplitObject(obj []byte, paths []string, pathSeparator string) (map[string]any, map[string]any, error)
SplitObject returns 2 maps from a given object as bytes array and a slice of paths. One of the 2 output maps will include only the paths from the slice while the second returned map will include all other paths.
func StructToStruct ¶ added in v0.2.0
StructToStruct converts a struct type (src) into another (dst)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.