Documentation ¶
Index ¶
- Constants
- func CommonElements(a []string, b []string) []string
- func CompareStringSlice(a []string, b []string) bool
- func CompareStringSliceNoOrder(a []string, b []string) bool
- func Difference(a []string, b []string) []string
- func GetUser() (string, error)
- func NewKubeClientConfig(kubeconfigPath, context, namespace string) clientcmd.ClientConfig
- func PodName() (string, error)
- func StringInSlice(s []string, e string) bool
Constants ¶
View Source
const ( KubePodName = "POD_NAME" KubeResourcePrefix = "stolon-cluster" KubeClusterLabel = "stolon-cluster" KubeClusterDataAnnotation = "stolon-clusterdata" KubeStatusAnnnotation = "stolon-status" )
Variables ¶
This section is empty.
Functions ¶
func CommonElements ¶
CommonElements return the common elements in two slices of strings
func CompareStringSlice ¶
CompareStringSlice compares two slices of strings, a nil slice is considered an empty one
func CompareStringSliceNoOrder ¶
CompareStringSliceNoOrder compares two slices of strings regardless of their order, a nil slice is considered an empty one
func Difference ¶ added in v0.12.0
Difference returns elements in a - b
func NewKubeClientConfig ¶
func NewKubeClientConfig(kubeconfigPath, context, namespace string) clientcmd.ClientConfig
NewKubeClientConfig return a kube client config that will by default use an in cluster client config or, if not available or overriden an external client config using the default client behavior used also by kubectl.
func StringInSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.