Documentation
¶
Overview ¶
Package vmware implements VMware applications interface.
Index ¶
- type Fusion
- func (f *Fusion) AddSharedFolder(shareName, newHostPath string) error
- func (f *Fusion) CaptureScreen(dst string) error
- func (f *Fusion) CopyFileFromGuestToHost(guestFilepath, hostFilepath string) error
- func (f *Fusion) CopyFileFromHostToGuest(hostFilepath, guestFilepath string) error
- func (f *Fusion) CreateTempfileInGuest() (string, error)
- func (f *Fusion) DeleteFileInGuest(filename string) error
- func (f *Fusion) DeleteSnapshot(snapshotName string, deleteChildren bool) error
- func (f *Fusion) DirectoryExistsInGuest(dir string) bool
- func (f *Fusion) DisableSharedFolders(runtime bool) error
- func (f *Fusion) EnableSharedFolders(runtime bool) error
- func (f *Fusion) FileExistsInGuest(filename string) bool
- func (f *Fusion) GetGuestIPAddress(wait bool) (string, error)
- func (f *Fusion) Halt() error
- func (f *Fusion) KillProcessInGuest(pid int) error
- func (f *Fusion) ListDirectoryInGuest(dir string) ([]string, error)
- func (f *Fusion) ListProcessesInGuest() ([]vmrun.ListProcessesInGuestInfo, error)
- func (f *Fusion) ListSnapshots() ([]string, int, error)
- func (f *Fusion) Pause() error
- func (f *Fusion) ReadVariable(mode vmrun.VariableMode, env string) (string, error)
- func (f *Fusion) RemoveSharedFolder(shareName string) error
- func (f *Fusion) RenameFileInGuest(src, dst string) error
- func (f *Fusion) Reset() error
- func (f *Fusion) Restart() error
- func (f *Fusion) RevertToSnapshot(snapshotName string) error
- func (f *Fusion) RunProgramInGuest(config vmrun.RunInGuestConfig, cmdPath string, cmdArgs ...string) error
- func (f *Fusion) RunScriptInGuest(config vmrun.RunInGuestConfig, interpreter, script string) error
- func (f *Fusion) SetSharedFolderState(shareName, hostPath string, writable bool) error
- func (f *Fusion) ShutDown() error
- func (f *Fusion) Snapshot(snapshotName string) error
- func (f *Fusion) Start(gui bool) error
- func (f *Fusion) Suspend(hard bool) error
- func (f *Fusion) Unpause() error
- func (f *Fusion) WriteVariable(mode vmrun.VariableMode, env, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fusion ¶
type Fusion struct {
// contains filtered or unexported fields
}
Fusion represents a VMware Fusion application.
func (*Fusion) AddSharedFolder ¶
AddSharedFolder add a Host-Guest shared folder.
func (*Fusion) CaptureScreen ¶
CaptureScreen capture the screen of the VM to a local file.
func (*Fusion) CopyFileFromGuestToHost ¶
CopyFileFromGuestToHost copy a file from guest OS to host OS.
func (*Fusion) CopyFileFromHostToGuest ¶
CopyFileFromHostToGuest copy a file from host OS to guest OS.
func (*Fusion) CreateTempfileInGuest ¶
CreateTempfileInGuest create a temporary file in Guest OS.
func (*Fusion) DeleteFileInGuest ¶
DeleteFileInGuest delete a file in Guest OS.
func (*Fusion) DeleteSnapshot ¶
DeleteSnapshot remove a snapshot from a VM.
func (*Fusion) DirectoryExistsInGuest ¶
DirectoryExistsInGuest check if a directory exists in Guest OS.
func (*Fusion) DisableSharedFolders ¶
DisableSharedFolders disable shared folders in Guest.
func (*Fusion) EnableSharedFolders ¶
EnableSharedFolders enable shared folders in Guest.
func (*Fusion) FileExistsInGuest ¶
FileExistsInGuest check if a file exists in Guest OS.
func (*Fusion) GetGuestIPAddress ¶
GetGuestIPAddress gets the IP address of the guest.
func (*Fusion) KillProcessInGuest ¶
KillProcessInGuest kill a process in Guest OS.
func (*Fusion) ListDirectoryInGuest ¶
ListDirectoryInGuest list a directory in Guest OS.
func (*Fusion) ListProcessesInGuest ¶
func (f *Fusion) ListProcessesInGuest() ([]vmrun.ListProcessesInGuestInfo, error)
ListProcessesInGuest List running processes in Guest OS.
func (*Fusion) ListSnapshots ¶
ListSnapshots list all snapshots in a VM.
func (*Fusion) ReadVariable ¶
ReadVariable read a variable in the VM state.
func (*Fusion) RemoveSharedFolder ¶
RemoveSharedFolder remove a Host-Guest shared folder.
func (*Fusion) RenameFileInGuest ¶
RenameFileInGuest rename a file in Guest OS.
func (*Fusion) RevertToSnapshot ¶
RevertToSnapshot set VM state to a snapshot.
func (*Fusion) RunProgramInGuest ¶
func (f *Fusion) RunProgramInGuest(config vmrun.RunInGuestConfig, cmdPath string, cmdArgs ...string) error
RunProgramInGuest run a program in Guest OS.
func (*Fusion) RunScriptInGuest ¶
func (f *Fusion) RunScriptInGuest(config vmrun.RunInGuestConfig, interpreter, script string) error
RunScriptInGuest run a script in Guest OS.
func (*Fusion) SetSharedFolderState ¶
SetSharedFolderState modify a Host-Guest shared folder.
func (*Fusion) WriteVariable ¶
func (f *Fusion) WriteVariable(mode vmrun.VariableMode, env, value string) error
WriteVariable write a variable in the VM state.
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
vmwareutil
Package vmwareutil implements VMware commands utitily.
|
Package vmwareutil implements VMware commands utitily. |
Package vdiskmanager implements a VMware vdiskmanager command wrapper.
|
Package vdiskmanager implements a VMware vdiskmanager command wrapper. |
Package vmrun implements a VMware vmrun command wrapper.
|
Package vmrun implements a VMware vmrun command wrapper. |