Documentation ¶
Index ¶
- Variables
- type Control
- type DeviceSettings
- type Nop
- type Rpc
- func (rpc *Rpc) Device(settings *DeviceSettings, nop *Nop) error
- func (rpc *Rpc) Pause(nopin *Nop, nopout *Nop) error
- func (rpc *Rpc) Reload(in *Nop, out *Nop) error
- func (rpc *Rpc) State(nop *Nop, res *State) error
- func (rpc *Rpc) Trace(settings *TraceSettings, nop *Nop) error
- func (rpc *Rpc) Unpause(nopin *Nop, nopout *Nop) error
- func (rpc *Rpc) Vcpu(settings *VcpuSettings, nop *Nop) error
- type State
- type TraceSettings
- type VcpuSettings
Constants ¶
This section is empty.
Variables ¶
View Source
var InternalGuestError = errors.New("Internal guest error?")
View Source
var InvalidControlSocket = errors.New("Invalid control socket?")
Functions ¶
This section is empty.
Types ¶
type DeviceSettings ¶
type Nop ¶
type Nop struct{}
The Noop --
Many of our operations do not require a specific parameter or a specific return.
type State ¶
type State struct { // Our device state. // Note that we only encode state associated with // specific devices. The model type is a generic wrapped // around devices which *may* encode additional state, // but all the state associated with the model should be // regenerated on startup. Devices []machine.DeviceInfo `json:"devices,omitempty"` // Our vcpu state. // Similarly, this should encode all the state associated // with the underlying VM. If we have other internal platform // devices (such as APICs or PITs) then these should be somehow // encoded as generic devices. Vcpus []platform.VcpuInfo `json:"vcpus,omitempty"` }
type TraceSettings ¶
type TraceSettings struct { // Tracing? Enable bool `json:"enable"` }
type VcpuSettings ¶
Click to show internal directories.
Click to hide internal directories.