Documentation
¶
Index ¶
- func ByteMapsMatch(m1, m2 map[string][]byte) bool
- func ContainsString(slice []string, s string) bool
- func CreateFakeHash(m map[string]string) string
- func FindAllGroups(re *regexp.Regexp, s string) map[string]string
- func K8sSecretFound(m map[string]string) bool
- func MergeMap(dst map[string]string, src map[string]string)
- func RemoveString(slice []string, s string) (result []string)
- func SecretHashString(m map[string]string) string
- func SortedKeysMapString(m map[string]string) []string
- func StringMapsMatch(m1, m2 map[string]string, ignoreKeys []string) bool
- func ValueOrDefault(value, defaultValue string) string
- func ValueOrDefaultBool(value, defaultValue bool) bool
- func ValueOrDefaultInt(value, defaultValue int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteMapsMatch ¶
ByteMapsMatch is like stringMapsMatch but for maps of byte arrays
func ContainsString ¶
ContainsString checks if a slice contains a particular string
func CreateFakeHash ¶
func FindAllGroups ¶
FindAllGroups returns a map with each match group. The map key corresponds to the match group name. A nil return value indicates no matches.
func K8sSecretFound ¶
func RemoveString ¶
RemoveString returns a copy of a slice with the specified string removed if it is found
func SecretHashString ¶
func SortedKeysMapString ¶
func StringMapsMatch ¶
StringMapsMatch returns true if the provided maps contain the same keys and values, otherwise false
func ValueOrDefault ¶
func ValueOrDefaultBool ¶
func ValueOrDefaultInt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.