Versions in this module Expand all Collapse all v1 v1.2.0 Aug 22, 2014 Changes in this version + const AMDPCNetFASTIII + const AMDPCNetPCIII + const Aborted + const CtrlBusLogic + const CtrlI82078 + const CtrlICH6 + const CtrlIntelAHCI + const CtrlLSILogic + const CtrlLSILogicSAS + const CtrlPIIX3 + const CtrlPIIX4 + const DockerPort + const DriveDVD + const DriveFDD + const DriveHDD + const IntelPro1000MTDesktop + const IntelPro1000MTServer + const IntelPro1000TServer + const NICNetAbsent + const NICNetBridged + const NICNetDisconnected + const NICNetGeneric + const NICNetHostonly + const NICNetInternal + const NICNetNAT + const PFTCP + const PFUDP + const Paused + const Poweroff + const Running + const SSHPort + const Saved + const SysBusFloppy + const SysBusIDE + const SysBusSATA + const SysBusSCSI + const VirtIO + var ErrMachineNotExist = errors.New("machine not exist") + var ErrNotSupported = errors.New("machine not supported") + var ErrPrerequisites = errors.New("prerequisites for machine not satisfied (hypervisor installed?)") + func ConfigFlags(B2D *MachineConfig, flags *flag.FlagSet) error + func Register(driver string, initFunc InitFunc) error + func RegisterConfig(driver string, configFunc ConfigFunc) error + type ConfigFunc func(B2D *MachineConfig, flags *flag.FlagSet) error + type DHCP struct + Enabled bool + IPv4 net.IPNet + LowerIP net.IP + NetworkName string + UpperIP net.IP + type DriveType string + type InitFunc func(i *MachineConfig) (Machine, error) + type Machine interface + AddNATPF func(n int, name string, rule PFRule) error + AddStorageCtl func(name string, ctl StorageController) error + AttachStorage func(ctlName string, medium StorageMedium) error + DelNATPF func(n int, name string) error + DelStorageCtl func(name string) error + Delete func() error + GetDockerPort func() uint + GetName func() string + GetSSHPort func() uint + GetSerialFile func() string + GetState func() MachineState + Modify func() error + Pause func() error + Poweroff func() error + Refresh func() error + Reset func() error + Restart func() error + Save func() error + SetNIC func(n int, nic NIC) error + Start func() error + Stop func() error + func GetMachine(mc *MachineConfig) (Machine, error) + type MachineConfig struct + DHCPEnabled bool + DHCPIP net.IP + Dir string + DiskSize uint + DockerPort uint16 + Driver string + HostIP net.IP + ISO string + Init bool + LowerIP net.IP + Memory uint + NetMask net.IPMask + SSH string + SSHGen string + SSHKey string + SSHPort uint16 + Serial bool + SerialFile string + UpperIP net.IP + VM string + Verbose bool + type MachineState string + type NIC struct + Hardware NICHardware + HostonlyAdapter string + Network NICNetwork + type NICHardware string + type NICNetwork string + type PFProto string + type PFRule struct + GuestIP net.IP + GuestPort uint16 + HostIP net.IP + HostPort uint16 + Proto PFProto + func (r PFRule) Format() string + func (r PFRule) String() string + type StorageController struct + Bootable bool + Chipset StorageControllerChipset + HostIOCache bool + Ports uint + SysBus SystemBus + type StorageControllerChipset string + type StorageMedium struct + Device uint + DriveType DriveType + Medium string + Port uint + type SystemBus string