Documentation
¶
Index ¶
- Constants
- func CommonElements(a []string, b []string) []string
- func CompareStringSlice(a []string, b []string) bool
- 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 ¶ added in v0.10.0
CommonElements return the common elements in two slices of strings
func CompareStringSlice ¶ added in v0.5.0
CompareStringSlice compares two slices of strings, a nil slice is considered an empty one
func NewKubeClientConfig ¶ added in v0.10.0
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.