Documentation ¶
Index ¶
- Constants
- func CreateOsVM(vmName, templateName string) error
- func CreateSnapshot(vmName, snapshotName string) error
- func CreateTemplate(vmName, templateName string) error
- func Delete(vmName string) error
- func Exec(vmName string, args ...string) (string, error)
- func Exist(name string) bool
- func GetDefaultSnapshot(vmName string) (string, error)
- func IPAddress(mac string) (string, error)
- func Kill(vmName string) error
- func Mac(vmName string) (string, error)
- func Prlctl(args ...string) error
- func PrlctlOutput(args ...string) (string, error)
- func RevertToSnapshot(vmName, snapshotID string) error
- func Start(vmName string) error
- func Stop(vmName string) error
- func TryExec(vmName string, seconds int, cmd ...string) error
- func Unregister(vmName string) error
- func Version() (string, error)
- func WaitForStatus(vmName string, vmStatus StatusType, seconds int) error
- type StatusType
Constants ¶
View Source
const ( NotFound StatusType = "notfound" Invalid = "invalid" Stopped = "stopped" Suspended = "suspended" Running = "running" )
Variables ¶
This section is empty.
Functions ¶
func CreateOsVM ¶
func CreateSnapshot ¶
func CreateTemplate ¶
func GetDefaultSnapshot ¶
func IPAddress ¶
IPAddress finds the IP address of a VM connected that uses DHCP by its MAC address
Parses the file /Library/Preferences/Parallels/parallels_dhcp_leases file contain a list of DHCP leases given by Parallels Desktop Example line: 10.211.55.181="1418921112,1800,001c42f593fb,ff42f593fb000100011c25b9ff001c42f593fb" IP Address ="Lease expiry, Lease time, MAC, MAC or DUID"
func PrlctlOutput ¶
func RevertToSnapshot ¶
func Unregister ¶
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)
Click to show internal directories.
Click to hide internal directories.