util

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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