utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToGiB

func ByteToGiB(n int64) int64

ByteToGiB returns n/1024^3. The input must be an integer that can be appropriately divisible.

func CreateTempFile

func CreateTempFile(contents string) (string, error)

func GetActiveTasks

func GetActiveTasks(machine *clusterv1.Machine) string

func GetIP

func GetIP(_ *clusterv1.Cluster, machine *clusterv1.Machine) (string, error)

func GetKubeConfig

func GetKubeConfig(cluster *clusterv1.Cluster, master *clusterv1.Machine) (string, error)

func GetMasterForCluster

func GetMasterForCluster(cluster *clusterv1.Cluster, lister v1alpha1.Interface) ([]*clusterv1.Machine, error)

GetMasterForCluster returns the master nodes for the given cluster

func GetNextBackOff

func GetNextBackOff() time.Duration

func GetSubnet

func GetSubnet(netRange clusterv1.NetworkRanges) string

Just a temporary hack to grab a single range from the config.

func GetVMId

func GetVMId(machine *clusterv1.Machine) (string, error)

func GiBToByte

func GiBToByte(n int64) int64

GiBToByte returns n*1024^3.

func IsValidUUID

func IsValidUUID(str 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