common

package
v1.6.1-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyMap added in v1.3.5

func CopyMap(m map[string]interface{}) map[string]interface{}

CopyMap creates a full copy of the target map

func CopySlice added in v1.3.5

func CopySlice(s []interface{}) []interface{}

CopySlice creates a full copy of the target slice

func CopySliceOfMaps added in v1.5.0

func CopySliceOfMaps(s []map[string]interface{}) []interface{}

CopySliceOfMaps creates a full copy of the target slice

func GetRawKeyIfWrappedWithAttributes added in v1.6.0

func GetRawKeyIfWrappedWithAttributes(str string) string

func ToMap added in v1.5.0

func ToMap(data interface{}) (map[string]interface{}, error)

func TransformConditions added in v1.6.0

func TransformConditions(original apiextensions.JSON) (interface{}, error)

func ValidateValueWithPattern added in v1.6.0

func ValidateValueWithPattern(log logr.Logger, value, pattern interface{}) bool

ValidateValueWithPattern validates value with operators and wildcards

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL