Documentation ¶
Index ¶
- 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 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 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.
Click to show internal directories.
Click to hide internal directories.