util

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func CommonElements(a []string, b []string) []string

CommonElements return the common elements in two slices of strings

func CompareStringSlice added in v0.5.0

func CompareStringSlice(a []string, b []string) bool

CompareStringSlice compares two slices of strings, a nil slice is considered an empty one

func GetUser added in v0.3.0

func GetUser() (string, error)

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 PodName added in v0.10.0

func PodName() (string, error)

func StringInSlice

func StringInSlice(s []string, e string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL