Documentation ¶
Index ¶
- func ConvertToStringLower(values []string) []string
- func FindZeroValue(values map[string]interface{}) string
- func GetKubeAPIConfig(kubeConfigPath string) (*rest.Config, error)
- func GetKubeAPIConfigOrDie(kubeConfigPath string) *rest.Config
- func IsZero(value interface{}) bool
- func RemoveDuplicateStrings(values []string) []string
- func StringInSlice(a string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToStringLower ¶
ConvertToStringLower converts slice of strings to lowercase.
func FindZeroValue ¶
FindZeroValue finds the 1st zero value in the map.
func GetKubeAPIConfig ¶
GetKubeAPIConfig returns a Kubernetes API config. Common abstraction to get config in both incluster and out cluster scenarios.
func GetKubeAPIConfigOrDie ¶
GetKubeAPIConfigOrDie wrapper around GetKubeAPIConfig. Panics if unable to load config.
func IsZero ¶
func IsZero(value interface{}) bool
IsZero checks if the provided value is its zero value
func RemoveDuplicateStrings ¶
RemoveDuplicateStrings returns a unique list of strings from the provided list.
func StringInSlice ¶
StringInSlice returns true if the string is in the slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.