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
- func (r *Resources) TPMDevs() tpmdev.Registry
- type Script
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.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package blockdev articulates the QEMU block layer.
|
Package blockdev articulates the QEMU block layer. |
Package chardev describes the QEMU character device layer.
|
Package chardev describes the QEMU character device layer. |
Package tpmdev describes real and emulated Trusted Platform Module devices on the host.
|
Package tpmdev describes real and emulated Trusted Platform Module devices on the host. |