Versions in this module Expand all Collapse all v0 v0.9.0 Mar 19, 2016 Changes in this version + const VMError + const VMHalted + const VMPending + const VMRunning + const VMStarting + const VMSuspended + const VMUnknown + var ErrCreatingVM = errors.New("error creating VM") + var ErrDeletingVM = errors.New("error deleting VM") + var ErrDestNotSpecified = errors.New("source not specified") + var ErrFailedToGetNICS = errors.New("failed to get interfaces for vm") + var ErrNICAlreadyDisabled = errors.New("NIC already disabled") + var ErrNotImplemented = errors.New("operation not implemented") + var ErrResumeNotSupported = errors.New("resume action not supported") + var ErrResumingVM = errors.New("error resuming the VM") + var ErrSourceNotSpecified = errors.New("source not specified") + var ErrStartingVM = errors.New("error starting VM") + var ErrStoppingVM = errors.New("error stopping VM") + var ErrSuspendNotSupported = errors.New("suspend action not supported") + var ErrSuspendingVM = errors.New("error suspending the VM") + var ErrVMBootTimeout = errors.New("timed out waiting for virtual machine") + var ErrVMInfoFailed = errors.New("error getting information about VM") + var ErrVMNoIP = errors.New("error getting a new IP for the virtual machine") + var ErrVMStateFailed = errors.New("error getting the state of the VM") + func WrapErrors(errs ...error) error + type VirtualMachine interface + Destroy func() error + GetIPs func() ([]net.IP, error) + GetName func() string + GetSSH func(ssh.Options) (ssh.Client, error) + GetState func() (string, error) + Halt func() error + Provision func() error + Resume func() error + Start func() error + Suspend func() error