Documentation ¶
Index ¶
- func CleanupNICs(vm string, nics []*NIC) error
- type Instance
- func (i *Instance) PID() (int, error)
- func (i *Instance) PIDFile() string
- func (i *Instance) ProcessRunning() bool
- func (i *Instance) QMP() (*qmp.QMP, error)
- func (i *Instance) QMPRunning() (bool, error)
- func (i *Instance) QMPSocket() string
- func (i *Instance) QMPStatus() (string, error)
- func (i *Instance) Reset() error
- func (i *Instance) Running() bool
- func (i *Instance) Shutdown() error
- func (i *Instance) Start() error
- func (i *Instance) Status() string
- type Monitor
- func (m *Monitor) Cleanup()
- func (m *Monitor) Get(name string) *Instance
- func (m *Monitor) List() ([]string, error)
- func (m *Monitor) Reset(name string, result chan error) error
- func (m *Monitor) Running(name string) bool
- func (m *Monitor) Shutdown(name string, result chan error) error
- func (m *Monitor) Start(name string, result chan error) error
- func (m *Monitor) Status(name string) string
- type NIC
- type Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupNICs ¶
Types ¶
type Instance ¶
type Instance struct { Config *qemu.VirtualMachine `json:"config"` Name string `json:"name"` NICs []*NIC `json:"nics"` // contains filtered or unexported fields }
func (*Instance) ProcessRunning ¶
func (*Instance) QMPRunning ¶
type Monitor ¶
Click to show internal directories.
Click to hide internal directories.