Documentation ¶
Overview ¶
Package qhost identifies and describes host resources that are contributed to a QEMU guest.
Index ¶
- type Driver
- type ID
- type IOThread
- type NetDev
- type NetworkTap
- type Properties
- type Property
- type Resources
- func (r *Resources) AddIOThread() (IOThread, error)
- func (r *Resources) AddNetworkTap(ifname string, up, down Script) (NetworkTap, error)
- func (r *Resources) BlockDevs() blockdev.NodeGraph
- func (r *Resources) CharDevs() chardev.Registry
- func (r *Resources) IOThreads() []IOThread
- func (r *Resources) NetDevs() []NetDev
- func (r *Resources) Options() qemu.Options
- type Script
- type SystemDevicePath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOThread ¶
type IOThread struct {
// contains filtered or unexported fields
}
IOThread is a QEMU I/O Thread object that has been allocated on the host.
func (IOThread) Properties ¶
func (t IOThread) Properties() Properties
Properties returns the properties of the I/O Thread object.
type NetDev ¶
type NetDev interface { ID() ID Driver() Driver Properties() Properties }
NetDev is a network device on the QEMU host.
type NetworkTap ¶
type NetworkTap struct {
// contains filtered or unexported fields
}
NetworkTap is a network tap on the QEMU host.
func (NetworkTap) Driver ¶
func (tap NetworkTap) Driver() Driver
Driver returns the driver used for the host network, tap.
func (NetworkTap) ID ¶
func (tap NetworkTap) ID() ID
ID returns the identifier of the host network tap.
func (NetworkTap) Properties ¶
func (tap NetworkTap) Properties() Properties
Properties returns the properties of the host network tap.
type Properties ¶
type Properties = qemu.Parameters
Properties holds a set of QEMU host resource properties.
type Resources ¶
type Resources struct {
// contains filtered or unexported fields
}
Resources describe the host resources that are available to a virtual machine.
func (*Resources) AddIOThread ¶
AddIOThread adds an IOThread to the host.
func (*Resources) AddNetworkTap ¶
func (r *Resources) AddNetworkTap(ifname string, up, down Script) (NetworkTap, error)
AddNetworkTap adds a network tap to the host configuration.
The newly created tap will have the given network interface name.
If up or down are blank, a default script will be run instead. To disable script execution pass the NoScript value.
func (*Resources) IOThreads ¶
IOThreads returns the set of IOThread resources that have been defined.
type Script ¶
type Script string
Script is a path to an executable script on the QEMU host.
const NoScript Script = "no"
NoScript indicates that no script should be used for the network device.
type SystemDevicePath ¶
type SystemDevicePath string
SystemDevicePath is a sysfs path to a device on the host system.