util

package
v0.0.0-...-492d7f2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChooseRandomString

func ChooseRandomString(from []string) string

ChooseRandomString: returns a random string from slice of string

func CombineErrors

func CombineErrors(delimiter string, errs ...error) error

CombineErrors converts all the errors from slice into a single error

func GetVMIPs

func GetVMIPs(vm lvm.VirtualMachine, options ssh.Options) ([]net.IP, error)

GetVMIPs returns the IPs associated with the given VM. If the IPs are present in options, they will be returned. Otherwise, an API call will be made to get the list of IPs. An error is returned if the API call fails or returns nothing.

func Random

func Random(min, max int) int

Random generates a random number in between min and max If min equals max then min is returned. If max is less than min then the function panics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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