util

package
v0.0.0-...-790edac Latest Latest
Warning

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

Go to latest
Published: Feb 17, 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 GetCurrentMachineIfExists

func GetCurrentMachineIfExists(machineClient client.MachineInterface, machine *clusterv1.Machine) (*clusterv1.Machine, error)

func GetDefaultKubeConfigPath

func GetDefaultKubeConfigPath() string

func GetMachineIfExists

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

func GetMaster

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

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 RandomString

func RandomString(n int) string

func RandomToken

func RandomToken() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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