qmp

package
v0.0.0-...-f825296 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

A qemu qmp wrapper. qmp will connect to qmp unix domain sockets associated with running instances of qemu.

Index

Constants

This section is empty.

Variables

View Source
var ERR_READY = errors.New("qmp is not ready")

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(s string) (Conn, error)

Connect to a qmp socket.

func (*Conn) BlockdevChange

func (q *Conn) BlockdevChange(device, path string) error

func (*Conn) BlockdevEject

func (q *Conn) BlockdevEject(device string, force bool) error

func (*Conn) BlockdevSnapshot

func (q *Conn) BlockdevSnapshot(path, device string) error

func (*Conn) DriveAdd

func (q *Conn) DriveAdd(id, file string) (string, error)

func (*Conn) DriveDel

func (q *Conn) DriveDel(id string) (string, error)

func (*Conn) HumanMonitorCommand

func (q *Conn) HumanMonitorCommand(command string) (string, error)

func (*Conn) Message

func (q *Conn) Message() map[string]interface{}

return an asynchronous message, blocking until one shows up

func (*Conn) MigrateDisk

func (q *Conn) MigrateDisk(path string) error

func (*Conn) Pmemsave

func (q *Conn) Pmemsave(path string, size uint64) error

func (*Conn) QueryMigrate

func (q *Conn) QueryMigrate() (map[string]interface{}, error)

func (*Conn) Raw

func (q *Conn) Raw(input string) (string, error)

func (*Conn) Screendump

func (q *Conn) Screendump(path string) error

func (*Conn) Start

func (q *Conn) Start() error

func (*Conn) Status

func (q *Conn) Status() (map[string]interface{}, error)

func (*Conn) Stop

func (q *Conn) Stop() error

func (*Conn) USBDeviceAdd

func (q *Conn) USBDeviceAdd(id, bus, serial string) (string, error)

func (*Conn) USBDeviceDel

func (q *Conn) USBDeviceDel(id string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL