util

package
v0.0.0-...-86ffc8e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CharSet = "0123456789abcdefghijklmnopqrstuvwxyz"
)

Variables

This section is empty.

Functions

func Contains

func Contains(list []string, strToSearch string) bool

func Copy

func ExecCommand

func ExecCommand(name string, args ...string) string

func Filter

func Filter(list []string, strToFilter string) (newList []string)

func GetDefaultKubeConfigPath

func GetDefaultKubeConfigPath() string

func GetMachineIfExists

func GetMachineIfExists(machineClient client.MachineInterface, name string) (*clusterv1.Machine, error)

func GetMaster

func GetMaster(machines []*clusterv1.Machine) *clusterv1.Machine

func GetNamespaceOrDefault

func GetNamespaceOrDefault(namespace string) string

func Home

func Home() string

func IsMaster

func IsMaster(machine *clusterv1.Machine) bool

func IsNodeReady

func IsNodeReady(node *v1.Node) bool

func MachineP

func MachineP(machines []clusterv1.Machine) []*clusterv1.Machine

func NewClientSet

func NewClientSet(configPath string) (*clientset.Clientset, error)

func NewKubernetesClient

func NewKubernetesClient(configPath string) (*kubernetes.Clientset, error)

func Poll

func Poll(interval, timeout time.Duration, condition wait.ConditionFunc) error

func RandomString

func RandomString(n int) string

func RandomToken

func RandomToken() string

func Retry

func Retry(fn wait.ConditionFunc, initialBackoffSec int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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