Documentation
¶
Index ¶
- func ConfigFlags(B2D *driver.MachineConfig, flags *flag.FlagSet) error
- func InitFunc(i *driver.MachineConfig) (driver.Machine, error)
- type DriverCfg
- type Machine
- func (m *Machine) AddNATPF(n int, name string, rule driver.PFRule) error
- func (m *Machine) AddStorageCtl(name string, ctl driver.StorageController) error
- func (m *Machine) AttachStorage(ctlName string, medium driver.StorageMedium) error
- func (m *Machine) DelNATPF(n int, name string) error
- func (m *Machine) DelStorageCtl(name string) error
- func (m *Machine) Delete() error
- func (m *Machine) GetDockerPort() uint
- func (m *Machine) GetName() string
- func (m *Machine) GetSSHPort() uint
- func (m *Machine) GetSerialFile() string
- func (m *Machine) GetState() driver.MachineState
- func (m *Machine) Modify() error
- func (m *Machine) Pause() error
- func (m *Machine) Poweroff() error
- func (m *Machine) Refresh() error
- func (m *Machine) Reset() error
- func (m *Machine) Restart() error
- func (m *Machine) Save() error
- func (m *Machine) SetNIC(n int, nic driver.NIC) error
- func (m *Machine) Start() error
- func (m *Machine) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFlags ¶ added in v1.3.0
func ConfigFlags(B2D *driver.MachineConfig, flags *flag.FlagSet) error
Add cmdline params for this driver
Types ¶
type DriverCfg ¶ added in v1.3.0
type DriverCfg struct { DummyParam string // Example string for dummy driver // contains filtered or unexported fields }
type Machine ¶
type Machine struct { Name string UUID string State driver.MachineState CPUs uint Memory uint // main memory (in MB) VRAM uint // video memory (in MB) CfgFile string BaseFolder string OSType string BootOrder []string // max 4 slots, each in {none|floppy|dvd|disk|net} DockerPort uint SSHPort uint SerialFile string }
Machine information.
func (*Machine) AddNATPF ¶
AddNATPF adds a NAT port forarding rule to the n-th NIC with the given name.
func (*Machine) AddStorageCtl ¶
func (m *Machine) AddStorageCtl(name string, ctl driver.StorageController) error
AddStorageCtl adds a storage controller with the given name.
func (*Machine) AttachStorage ¶
func (m *Machine) AttachStorage(ctlName string, medium driver.StorageMedium) error
AttachStorage attaches a storage medium to the named storage controller.
func (*Machine) DelNATPF ¶
DelNATPF deletes the NAT port forwarding rule with the given name from the n-th NIC.
func (*Machine) DelStorageCtl ¶
DelStorageCtl deletes the storage controller with the given name.
func (*Machine) Poweroff ¶
Poweroff forcefully stops the machine. State is lost and might corrupt the disk image.
func (*Machine) Reset ¶
Reset forcefully restarts the machine. State is lost and might corrupt the disk image.
Click to show internal directories.
Click to hide internal directories.