Documentation ¶
Index ¶
- func ConfigureSSH(vmName string, vmSSHPort string) (port string, err error)
- func CreateOsVM(vmName string, templateName string, templateSnapshot string) error
- func CreateSnapshot(vmName string, snapshotName string) error
- func Delete(vmName string) error
- func Exist(vmName string) bool
- func FindSSHPort(vmName string) (port string, err error)
- func GetCurrentSnapshot(vmName string) (string, error)
- func HasSnapshot(vmName string, snapshotName string) bool
- func IsStatusOnlineOrTransient(vmStatus StatusType) bool
- func Kill(vmName string) error
- func RevertToSnapshot(vmName string) error
- func Start(vmName string) error
- func Unregister(vmName string) error
- func VBoxManage(args ...string) (string, error)
- func VboxManageOutput(exe string, args ...string) (string, error)
- func Version() (string, error)
- func WaitForStatus(vmName string, vmStatus StatusType, seconds int) error
- type StatusType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOsVM ¶
func CreateSnapshot ¶
func FindSSHPort ¶
func GetCurrentSnapshot ¶ added in v1.4.0
func HasSnapshot ¶ added in v1.4.0
func IsStatusOnlineOrTransient ¶ added in v1.2.0
func IsStatusOnlineOrTransient(vmStatus StatusType) bool
func RevertToSnapshot ¶
func Unregister ¶
func VBoxManage ¶
func WaitForStatus ¶
func WaitForStatus(vmName string, vmStatus StatusType, seconds int) error
Types ¶
type StatusType ¶
type StatusType string
const ( NotFound StatusType = "notfound" PoweredOff StatusType = "poweroff" Saved StatusType = "saved" Teleported StatusType = "teleported" Aborted StatusType = "aborted" Running StatusType = "running" Paused StatusType = "paused" Stuck StatusType = "gurumeditation" Teleporting StatusType = "teleporting" LiveSnapshotting StatusType = "livesnapshotting" Starting StatusType = "starting" Stopping StatusType = "stopping" Saving StatusType = "saving" Restoring StatusType = "restoring" TeleportingPausedVM StatusType = "teleportingpausedvm" TeleportingIn StatusType = "teleportingin" FaultTolerantSyncing StatusType = "faulttolerantsyncing" DeletingSnapshotOnline StatusType = "deletingsnapshotlive" DeletingSnapshotPaused StatusType = "deletingsnapshotlivepaused" OnlineSnapshotting StatusType = "onlinesnapshotting" RestoringSnapshot StatusType = "restoringsnapshot" DeletingSnapshot StatusType = "deletingsnapshot" SettingUp StatusType = "settingup" Snapshotting StatusType = "snapshotting" Unknown StatusType = "unknown" )
func Status ¶
func Status(vmName string) (StatusType, error)
Click to show internal directories.
Click to hide internal directories.