Versions in this module Expand all Collapse all v0 v0.2.134 Dec 25, 2019 Changes in this version + const MAX_RETRY_TO_START + var RETRY_DURATION_IN_START = 100 * time.Millisecond + func GetNewListenPort(begin uint16) uint16 + type Qemu struct + func OpenQemu(name string) (*Qemu, error) + func (q *Qemu) Close() error + func (q *Qemu) Delete() error + func (q *Qemu) Start(id uuid.UUID, qmpPath string, vcpus uint32, memory uint64) error + func (q Qemu) AttachISO(label string, filepath *url.URL, index uint) error + func (q Qemu) AttachQcow2(label string, filepath *url.URL, index uint) error + func (q Qemu) AttachRaw(label string, filepath *url.URL, index uint) error + func (q Qemu) AttachTap(label, tap string, mac net.HardwareAddr) error + func (q Qemu) Boot() error + func (q Qemu) GetVNCWebsocketPort() int + func (q Qemu) HardReset() error + func (q Qemu) HardShutdown() error + func (q Qemu) IsRunning() bool + func (q Qemu) Shutdown() error + func (q Qemu) Status() (Status, error) + type QemuArgs struct + func ParseQemuArgs(args []string) *QemuArgs + func (q QemuArgs) GetArgs() []string + func (q QemuArgs) GetOptionValues(key string) []string + func (q QemuArgs) GetParsedOptionValueById(key, id string) ([]string, map[string]string, bool) + func (q QemuArgs) GetTopParsedOptionValue(key string) ([]string, map[string]string, bool) + func (q QemuArgs) ParseOptionValue(value string) ([]string, map[string]string) + type Status int + const StatusDebug + const StatusFinishMigrate + const StatusGuestPanicked + const StatusIOError + const StatusInMigrate + const StatusInternalError + const StatusPaused + const StatusPostMigrate + const StatusPreLaunch + const StatusRestoreVM + const StatusRunning + const StatusSaveVM + const StatusShutdown + const StatusSuspended + const StatusWatchdog