Documentation ¶
Index ¶
Constants ¶
View Source
const BuilderId = "transcend.qemu"
View Source
const KeyLeftShift uint32 = 0xFFE1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
// contains filtered or unexported fields
}
Artifact is the result of running the Qemu builder, namely a set of files associated with the resulting machine.
type Driver ¶
type Driver interface { // Stop stops a running machine, forcefully. Stop() error // Qemu executes the given command via qemu-system-x86_64 Qemu(qemuArgs ...string) error // wait on shutdown of the VM with option to cancel WaitForShutdown(<-chan struct{}) bool // Qemu executes the given command via qemu-img QemuImg(...string) error // Verify checks to make sure that this driver should function // properly. If there is any indication the driver can't function, // this will return an error. Verify() error // Version reads the version of Qemu that is installed. Version() (string, error) }
A driver is able to talk to qemu-system-x86_64 and perform certain operations with it.
type DriverCancelCallback ¶
type QemuDriver ¶
type QemuDriver struct { QemuPath string QemuImgPath string // contains filtered or unexported fields }
func (*QemuDriver) Qemu ¶
func (d *QemuDriver) Qemu(qemuArgs ...string) error
func (*QemuDriver) QemuImg ¶
func (d *QemuDriver) QemuImg(args ...string) error
func (*QemuDriver) Stop ¶
func (d *QemuDriver) Stop() error
func (*QemuDriver) Verify ¶
func (d *QemuDriver) Verify() error
func (*QemuDriver) Version ¶
func (d *QemuDriver) Version() (string, error)
func (*QemuDriver) WaitForShutdown ¶
func (d *QemuDriver) WaitForShutdown(cancelCh <-chan struct{}) bool
Click to show internal directories.
Click to hide internal directories.