vboxdriver

package
v0.0.0-...-850ae45 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

type VBoxDriver struct {
	FS        *fs.FS
	CmdRunner *runner.CmdRunner
}

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) CreateVM

func (d *VBoxDriver) CreateVM(vmName string, basedir 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 (d *VBoxDriver) ForwardPort(vmName string, ruleName string, hostPort string, guestPort string) error

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) GetMemory

func (d *VBoxDriver) GetMemory(vmName string) (uint64, 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) SetCPUs

func (d *VBoxDriver) SetCPUs(vmName string, cpus int) error

func (*VBoxDriver) SetMemory

func (d *VBoxDriver) SetMemory(vmName string, memory uint64) 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) VMExists

func (d *VBoxDriver) VMExists(vmName string) (exists bool, err error)

func (*VBoxDriver) VMState

func (d *VBoxDriver) VMState(vmName string) (string, 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL