virtualbox

package
v9.0.0-rc.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2017 License: MIT Imports: 10 Imported by: 6

Documentation

Index

Constants

View Source
const (
	NotFound               StatusType = "notfound"
	PoweredOff                        = "poweroff"
	Saved                             = "saved"
	Teleported                        = "teleported"
	Aborted                           = "aborted"
	Running                           = "running"
	Paused                            = "paused"
	Stuck                             = "gurumeditation"
	Teleporting                       = "teleporting"
	LiveSnapshotting                  = "livesnapshotting"
	Starting                          = "starting"
	Stopping                          = "stopping"
	Saving                            = "saving"
	Restoring                         = "restoring"
	TeleportingPausedVM               = "teleportingpausedvm"
	TeleportingIn                     = "teleportingin"
	FaultTolerantSyncing              = "faulttolerantsyncing"
	DeletingSnapshotOnline            = "deletingsnapshotlive"
	DeletingSnapshotPaused            = "deletingsnapshotlivepaused"
	OnlineSnapshotting                = "onlinesnapshotting"
	RestoringSnapshot                 = "restoringsnapshot"
	DeletingSnapshot                  = "deletingsnapshot"
	SettingUp                         = "settingup"
	Snapshotting                      = "snapshotting"
	Unknown                           = "unknown"
)

Variables

This section is empty.

Functions

func ConfigureSSH

func ConfigureSSH(vmName string, vmSSHPort string) (port string, err error)

func CreateOsVM

func CreateOsVM(vmName string, templateName string, templateSnapshot string) error

func CreateSnapshot

func CreateSnapshot(vmName string, snapshotName string) error

func Delete

func Delete(vmName string) error

func Exist

func Exist(vmName string) bool

func FindSSHPort

func FindSSHPort(vmName string) (port string, err error)

func GetCurrentSnapshot added in v1.4.0

func GetCurrentSnapshot(vmName string) (string, error)

func HasSnapshot added in v1.4.0

func HasSnapshot(vmName string, snapshotName string) bool

func IsStatusOnlineOrTransient added in v1.2.0

func IsStatusOnlineOrTransient(vmStatus StatusType) bool

func Kill

func Kill(vmName string) error

func RevertToSnapshot

func RevertToSnapshot(vmName string) error

func Start

func Start(vmName string) error

func Stop

func Stop(vmName string) error

func Unregister

func Unregister(vmName string) error

func VBoxManage

func VBoxManage(args ...string) (string, error)

func VboxManageOutput

func VboxManageOutput(exe string, args ...string) (string, error)

func Version

func Version() (string, error)

func WaitForStatus

func WaitForStatus(vmName string, vmStatus StatusType, seconds int) error

Types

type StatusType

type StatusType string

func Status

func Status(vmName string) (StatusType, error)

Jump to

Keyboard shortcuts

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