Documentation
¶
Index ¶
- Constants
- type VBoxDriver
- func (d *VBoxDriver) AttachDisk(vmName string, diskPath string) error
- func (d *VBoxDriver) AttachNetworkInterface(interfaceName string, vmName string) error
- func (d *VBoxDriver) CloneDisk(src, dst string) error
- func (d *VBoxDriver) ConfigureHostOnlyInterface(interfaceName string, ip string) error
- func (d *VBoxDriver) CreateHostOnlyInterface(ip string) (string, error)
- func (d *VBoxDriver) CreateVM(vmName string, basedir string) error
- func (d *VBoxDriver) DeleteDisk(diskPath string) error
- func (d *VBoxDriver) DestroyVM(vmName string) error
- func (d *VBoxDriver) Disks() ([]string, error)
- func (d *VBoxDriver) ForwardPort(vmName string, ruleName string, hostPort string, guestPort string) error
- func (d *VBoxDriver) GetHostForwardPort(vmName string, ruleName string) (port string, err error)
- func (d *VBoxDriver) GetHostOnlyInterfaces() (interfaces []*network.Interface, err error)
- func (d *VBoxDriver) GetMemory(vmName string) (uint64, error)
- func (d *VBoxDriver) IsInterfaceInUse(interfaceName string) (bool, error)
- func (d *VBoxDriver) PowerOffVM(vmName string) error
- func (d *VBoxDriver) ResumeVM(vmName string) error
- func (d *VBoxDriver) RunningVMs() (vms []string, err error)
- func (d *VBoxDriver) SetCPUs(vmName string, cpus int) error
- func (d *VBoxDriver) SetMemory(vmName string, memory uint64) error
- func (d *VBoxDriver) StartVM(vmName string) error
- func (d *VBoxDriver) StopVM(vmName string) error
- func (d *VBoxDriver) SuspendVM(vmName string) error
- func (d *VBoxDriver) UseDNSProxy(vmName string) error
- func (v *VBoxDriver) VBoxManage(arg ...string) (output []byte, err error)
- func (d *VBoxDriver) VMExists(vmName string) (exists bool, err error)
- func (d *VBoxDriver) VMState(vmName string) (string, error)
- func (d *VBoxDriver) VMs() ([]string, error)
- func (d *VBoxDriver) Version() (*VBoxDriverVersion, error)
- type VBoxDriverVersion
Constants ¶
View Source
const ( StateRunning = "running" StateSaved = "saved" StateStopped = "poweroff" StateAborted = "aborted" StatePaused = "paused" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VBoxDriver ¶
func (*VBoxDriver) AttachDisk ¶
func (d *VBoxDriver) AttachDisk(vmName string, diskPath string) error
func (*VBoxDriver) AttachNetworkInterface ¶
func (d *VBoxDriver) AttachNetworkInterface(interfaceName string, vmName string) error
func (*VBoxDriver) CloneDisk ¶
func (d *VBoxDriver) CloneDisk(src, dst string) error
func (*VBoxDriver) ConfigureHostOnlyInterface ¶
func (d *VBoxDriver) ConfigureHostOnlyInterface(interfaceName string, ip string) error
func (*VBoxDriver) CreateHostOnlyInterface ¶
func (d *VBoxDriver) CreateHostOnlyInterface(ip string) (string, error)
func (*VBoxDriver) DeleteDisk ¶
func (d *VBoxDriver) DeleteDisk(diskPath string) error
func (*VBoxDriver) DestroyVM ¶
func (d *VBoxDriver) DestroyVM(vmName string) error
func (*VBoxDriver) Disks ¶
func (d *VBoxDriver) Disks() ([]string, error)
func (*VBoxDriver) ForwardPort ¶
func (*VBoxDriver) GetHostForwardPort ¶
func (d *VBoxDriver) GetHostForwardPort(vmName string, ruleName string) (port string, err error)
func (*VBoxDriver) GetHostOnlyInterfaces ¶
func (d *VBoxDriver) GetHostOnlyInterfaces() (interfaces []*network.Interface, err error)
func (*VBoxDriver) IsInterfaceInUse ¶
func (d *VBoxDriver) IsInterfaceInUse(interfaceName string) (bool, error)
func (*VBoxDriver) PowerOffVM ¶
func (d *VBoxDriver) PowerOffVM(vmName string) error
func (*VBoxDriver) ResumeVM ¶
func (d *VBoxDriver) ResumeVM(vmName string) error
func (*VBoxDriver) RunningVMs ¶
func (d *VBoxDriver) RunningVMs() (vms []string, err error)
func (*VBoxDriver) StartVM ¶
func (d *VBoxDriver) StartVM(vmName string) error
func (*VBoxDriver) StopVM ¶
func (d *VBoxDriver) StopVM(vmName string) error
func (*VBoxDriver) SuspendVM ¶
func (d *VBoxDriver) SuspendVM(vmName string) error
func (*VBoxDriver) UseDNSProxy ¶
func (d *VBoxDriver) UseDNSProxy(vmName string) error
func (*VBoxDriver) VBoxManage ¶
func (v *VBoxDriver) VBoxManage(arg ...string) (output []byte, err error)
func (*VBoxDriver) VMs ¶
func (d *VBoxDriver) VMs() ([]string, error)
func (*VBoxDriver) Version ¶
func (d *VBoxDriver) Version() (*VBoxDriverVersion, error)
type VBoxDriverVersion ¶
type VBoxDriverVersion struct {
Major, Minor, Build int
}
Click to show internal directories.
Click to hide internal directories.