Documentation ¶
Index ¶
- func AddToMap(key, value string, dest map[string]string)
- func AppendToStringMap(source map[string]string, dest map[string]string)
- func ArrayToSet(array []string) map[string]bool
- func Contains(s string, array []string) bool
- func ContainsAll(array1 []string, array2 []string) bool
- func FromMapToString(labels map[string]string) string
- func GenerateMD5Hash(source map[string]string) string
- func GetBoolOSEnv(key string) bool
- func GetOSEnv(key, fallback string) string
- func IsProductMode() bool
- func MapContains(source map[string]string, key string, value string) bool
- func MapContainsMap(source, expected map[string]string) bool
- func RandomSuffix() string
- func Remove(s string, array *[]string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToStringMap ¶
AppendToStringMap appends source into dest. If keys are equal, value is overridden
func ArrayToSet ¶
ArrayToSet converts an array of string to a set
func ContainsAll ¶
ContainsAll checks if all the elements of the second are in the first array
func FromMapToString ¶
FromMapToString converts a map into a string format such as key1=value1,key2=value2
func GenerateMD5Hash ¶
GenerateMD5Hash will generate a MD5 hash from the given map
func GetBoolOSEnv ¶
GetBoolOSEnv gets a env variable as a boolean
func IsProductMode ¶ added in v1.12.0
func IsProductMode() bool
IsProductMode returns true if application is running in product mode.
func MapContains ¶ added in v1.20.0
MapContains ...
func MapContainsMap ¶
MapContainsMap returns true only if source contains expected map
func RandomSuffix ¶
func RandomSuffix() string
RandomSuffix generates a random suffix to be used in names for kubernetes objects
Types ¶
This section is empty.