parallels

package
v10.7.0-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOsVM

func CreateOsVM(vmName, templateName string) error

func CreateSnapshot

func CreateSnapshot(vmName, snapshotName string) error

func CreateTemplate

func CreateTemplate(vmName, templateName string) error

func Delete

func Delete(vmName string) error

func Exec

func Exec(vmName string, args ...string) (string, error)

func Exist

func Exist(name string) bool

func GetDefaultSnapshot

func GetDefaultSnapshot(vmName string) (string, error)

func IPAddress

func IPAddress(mac string) (string, error)

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 Kill

func Kill(vmName string) error

func Mac

func Mac(vmName string) (string, error)

func Prlctl

func Prlctl(args ...string) error

func PrlctlOutput

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

func RevertToSnapshot

func RevertToSnapshot(vmName, snapshotID string) error

func Start

func Start(vmName string) error

func TryExec

func TryExec(vmName string, seconds int, cmd ...string) error

func Unregister

func Unregister(vmName 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
const (
	NotFound  StatusType = "notfound"
	Invalid   StatusType = "invalid"
	Stopped   StatusType = "stopped"
	Suspended StatusType = "suspended"
	Running   StatusType = "running"
)

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