util

package
v0.0.0-...-03e4ed8 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 16 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(c client.Client, namespace, 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

TODO(robertbailey): Remove this function

func IsNodeReady

func IsNodeReady(node *v1.Node) bool

func MachineP

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

func ParseClusterYaml

func ParseClusterYaml(file string) (*clusterv1.Cluster, error)

func ParseMachinesYaml

func ParseMachinesYaml(file string) ([]*clusterv1.Machine, error)

func Poll

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

func PollImmediate

func PollImmediate(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