raw

package
v0.0.0-...-2e3d018 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Overview

Package raw provides automatically generated QMP types based on the QMP schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACPIOSTInfo

type ACPIOSTInfo struct {
	Device   *string      `json:"device,omitempty"`
	Slot     string       `json:"slot"`
	SlotType ACPISlotType `json:"slot-type"`
	Source   int64        `json:"source"`
	Status   int64        `json:"status"`
}

ACPIOSTInfo implements the "ACPIOSTInfo" QMP API type.

type ACPISlotType

type ACPISlotType int

ACPISlotType implements the "ACPISlotType" QMP API type.

const (
	ACPISlotTypeDimm ACPISlotType = iota
	ACPISlotTypeCPU
)

Known values of ACPISlotType.

func (ACPISlotType) MarshalJSON

func (e ACPISlotType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (ACPISlotType) String

func (e ACPISlotType) String() string

String implements fmt.Stringer.

func (*ACPISlotType) UnmarshalJSON

func (e *ACPISlotType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Abort

type Abort struct {
}

Abort implements the "Abort" QMP API type.

type ActionCompletionMode

type ActionCompletionMode int

ActionCompletionMode implements the "ActionCompletionMode" QMP API type.

const (
	ActionCompletionModeIndividual ActionCompletionMode = iota
	ActionCompletionModeGrouped
)

Known values of ActionCompletionMode.

func (ActionCompletionMode) MarshalJSON

func (e ActionCompletionMode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (ActionCompletionMode) String

func (e ActionCompletionMode) String() string

String implements fmt.Stringer.

func (*ActionCompletionMode) UnmarshalJSON

func (e *ActionCompletionMode) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type AddfdInfo

type AddfdInfo struct {
	FdsetID int64 `json:"fdset-id"`
	FD      int64 `json:"fd"`
}

AddfdInfo implements the "AddfdInfo" QMP API type.

type BalloonInfo

type BalloonInfo struct {
	Actual int64 `json:"actual"`
}

BalloonInfo implements the "BalloonInfo" QMP API type.

type BlkdebugEvent

type BlkdebugEvent int

BlkdebugEvent implements the "BlkdebugEvent" QMP API type.

const (
	BlkdebugEventL1Update BlkdebugEvent = iota
	BlkdebugEventL1GrowAllocTable
	BlkdebugEventL1GrowWriteTable
	BlkdebugEventL1GrowActivateTable
	BlkdebugEventL2Load
	BlkdebugEventL2Update
	BlkdebugEventL2UpdateCompressed
	BlkdebugEventL2AllocCowRead
	BlkdebugEventL2AllocWrite
	BlkdebugEventReadAIO
	BlkdebugEventReadBackingAIO
	BlkdebugEventReadCompressed
	BlkdebugEventWriteAIO
	BlkdebugEventWriteCompressed
	BlkdebugEventVmstateLoad
	BlkdebugEventVmstateSave
	BlkdebugEventCowRead
	BlkdebugEventCowWrite
	BlkdebugEventReftableLoad
	BlkdebugEventReftableGrow
	BlkdebugEventReftableUpdate
	BlkdebugEventRefblockLoad
	BlkdebugEventRefblockUpdate
	BlkdebugEventRefblockUpdatePart
	BlkdebugEventRefblockAlloc
	BlkdebugEventRefblockAllocHookup
	BlkdebugEventRefblockAllocWrite
	BlkdebugEventRefblockAllocWriteBlocks
	BlkdebugEventRefblockAllocWriteTable
	BlkdebugEventRefblockAllocSwitchTable
	BlkdebugEventClusterAlloc
	BlkdebugEventClusterAllocBytes
	BlkdebugEventClusterFree
	BlkdebugEventFlushToOs
	BlkdebugEventFlushToDisk
	BlkdebugEventPwritevRmwHead
	BlkdebugEventPwritevRmwAfterHead
	BlkdebugEventPwritevRmwTail
	BlkdebugEventPwritevRmwAfterTail
	BlkdebugEventPwritev
	BlkdebugEventPwritevZero
	BlkdebugEventPwritevDone
	BlkdebugEventEmptyImagePrepare
	BlkdebugEventL1ShrinkWriteTable
	BlkdebugEventL1ShrinkFreeL2Clusters
	BlkdebugEventCorWrite
)

Known values of BlkdebugEvent.

func (BlkdebugEvent) MarshalJSON

func (e BlkdebugEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlkdebugEvent) String

func (e BlkdebugEvent) String() string

String implements fmt.Stringer.

func (*BlkdebugEvent) UnmarshalJSON

func (e *BlkdebugEvent) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlkdebugInjectErrorOptions

type BlkdebugInjectErrorOptions struct {
	Event       BlkdebugEvent `json:"event"`
	State       *int64        `json:"state,omitempty"`
	Errno       *int64        `json:"errno,omitempty"`
	Sector      *int64        `json:"sector,omitempty"`
	Once        *bool         `json:"once,omitempty"`
	Immediately *bool         `json:"immediately,omitempty"`
}

BlkdebugInjectErrorOptions implements the "BlkdebugInjectErrorOptions" QMP API type.

type BlkdebugSetStateOptions

type BlkdebugSetStateOptions struct {
	Event    BlkdebugEvent `json:"event"`
	State    *int64        `json:"state,omitempty"`
	NewState int64         `json:"new_state"`
}

BlkdebugSetStateOptions implements the "BlkdebugSetStateOptions" QMP API type.

type BlockDeviceIOStatus

type BlockDeviceIOStatus int

BlockDeviceIOStatus implements the "BlockDeviceIoStatus" QMP API type.

const (
	BlockDeviceIOStatusOK BlockDeviceIOStatus = iota
	BlockDeviceIOStatusFailed
	BlockDeviceIOStatusNospace
)

Known values of BlockDeviceIOStatus.

func (BlockDeviceIOStatus) MarshalJSON

func (e BlockDeviceIOStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockDeviceIOStatus) String

func (e BlockDeviceIOStatus) String() string

String implements fmt.Stringer.

func (*BlockDeviceIOStatus) UnmarshalJSON

func (e *BlockDeviceIOStatus) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockDeviceInfo

type BlockDeviceInfo struct {
	File                 string                      `json:"file"`
	NodeName             *string                     `json:"node-name,omitempty"`
	Ro                   bool                        `json:"ro"`
	Drv                  string                      `json:"drv"`
	BackingFile          *string                     `json:"backing_file,omitempty"`
	BackingFileDepth     int64                       `json:"backing_file_depth"`
	Encrypted            bool                        `json:"encrypted"`
	EncryptionKeyMissing bool                        `json:"encryption_key_missing"`
	DetectZeroes         BlockdevDetectZeroesOptions `json:"detect_zeroes"`
	Bps                  int64                       `json:"bps"`
	BpsRd                int64                       `json:"bps_rd"`
	BpsWr                int64                       `json:"bps_wr"`
	Iops                 int64                       `json:"iops"`
	IopsRd               int64                       `json:"iops_rd"`
	IopsWr               int64                       `json:"iops_wr"`
	Image                ImageInfo                   `json:"image"`
	BpsMax               *int64                      `json:"bps_max,omitempty"`
	BpsRdMax             *int64                      `json:"bps_rd_max,omitempty"`
	BpsWrMax             *int64                      `json:"bps_wr_max,omitempty"`
	IopsMax              *int64                      `json:"iops_max,omitempty"`
	IopsRdMax            *int64                      `json:"iops_rd_max,omitempty"`
	IopsWrMax            *int64                      `json:"iops_wr_max,omitempty"`
	BpsMaxLength         *int64                      `json:"bps_max_length,omitempty"`
	BpsRdMaxLength       *int64                      `json:"bps_rd_max_length,omitempty"`
	BpsWrMaxLength       *int64                      `json:"bps_wr_max_length,omitempty"`
	IopsMaxLength        *int64                      `json:"iops_max_length,omitempty"`
	IopsRdMaxLength      *int64                      `json:"iops_rd_max_length,omitempty"`
	IopsWrMaxLength      *int64                      `json:"iops_wr_max_length,omitempty"`
	IopsSize             *int64                      `json:"iops_size,omitempty"`
	Group                *string                     `json:"group,omitempty"`
	Cache                BlockdevCacheInfo           `json:"cache"`
	WriteThreshold       int64                       `json:"write_threshold"`
}

BlockDeviceInfo implements the "BlockDeviceInfo" QMP API type.

type BlockDeviceStats

type BlockDeviceStats struct {
	RdBytes                int64                   `json:"rd_bytes"`
	WrBytes                int64                   `json:"wr_bytes"`
	RdOperations           int64                   `json:"rd_operations"`
	WrOperations           int64                   `json:"wr_operations"`
	FlushOperations        int64                   `json:"flush_operations"`
	FlushTotalTimeNs       int64                   `json:"flush_total_time_ns"`
	WrTotalTimeNs          int64                   `json:"wr_total_time_ns"`
	RdTotalTimeNs          int64                   `json:"rd_total_time_ns"`
	WrHighestOffset        int64                   `json:"wr_highest_offset"`
	RdMerged               int64                   `json:"rd_merged"`
	WrMerged               int64                   `json:"wr_merged"`
	IdleTimeNs             *int64                  `json:"idle_time_ns,omitempty"`
	FailedRdOperations     int64                   `json:"failed_rd_operations"`
	FailedWrOperations     int64                   `json:"failed_wr_operations"`
	FailedFlushOperations  int64                   `json:"failed_flush_operations"`
	InvalidRdOperations    int64                   `json:"invalid_rd_operations"`
	InvalidWrOperations    int64                   `json:"invalid_wr_operations"`
	InvalidFlushOperations int64                   `json:"invalid_flush_operations"`
	AccountInvalid         bool                    `json:"account_invalid"`
	AccountFailed          bool                    `json:"account_failed"`
	TimedStats             []BlockDeviceTimedStats `json:"timed_stats"`
}

BlockDeviceStats implements the "BlockDeviceStats" QMP API type.

type BlockDeviceTimedStats

type BlockDeviceTimedStats struct {
	IntervalLength    int64   `json:"interval_length"`
	MinRdLatencyNs    int64   `json:"min_rd_latency_ns"`
	MaxRdLatencyNs    int64   `json:"max_rd_latency_ns"`
	AvgRdLatencyNs    int64   `json:"avg_rd_latency_ns"`
	MinWrLatencyNs    int64   `json:"min_wr_latency_ns"`
	MaxWrLatencyNs    int64   `json:"max_wr_latency_ns"`
	AvgWrLatencyNs    int64   `json:"avg_wr_latency_ns"`
	MinFlushLatencyNs int64   `json:"min_flush_latency_ns"`
	MaxFlushLatencyNs int64   `json:"max_flush_latency_ns"`
	AvgFlushLatencyNs int64   `json:"avg_flush_latency_ns"`
	AvgRdQueueDepth   float64 `json:"avg_rd_queue_depth"`
	AvgWrQueueDepth   float64 `json:"avg_wr_queue_depth"`
}

BlockDeviceTimedStats implements the "BlockDeviceTimedStats" QMP API type.

type BlockDirtyBitmap

type BlockDirtyBitmap struct {
	Node string `json:"node"`
	Name string `json:"name"`
}

BlockDirtyBitmap implements the "BlockDirtyBitmap" QMP API type.

type BlockDirtyBitmapAdd

type BlockDirtyBitmapAdd struct {
	Node        string  `json:"node"`
	Name        string  `json:"name"`
	Granularity *uint32 `json:"granularity,omitempty"`
	Persistent  *bool   `json:"persistent,omitempty"`
	Autoload    *bool   `json:"autoload,omitempty"`
}

BlockDirtyBitmapAdd implements the "BlockDirtyBitmapAdd" QMP API type.

type BlockDirtyBitmapSha256

type BlockDirtyBitmapSha256 struct {
	Sha256 string `json:"sha256"`
}

BlockDirtyBitmapSha256 implements the "BlockDirtyBitmapSha256" QMP API type.

type BlockDirtyInfo

type BlockDirtyInfo struct {
	Name        *string           `json:"name,omitempty"`
	Count       int64             `json:"count"`
	Granularity uint32            `json:"granularity"`
	Status      DirtyBitmapStatus `json:"status"`
}

BlockDirtyInfo implements the "BlockDirtyInfo" QMP API type.

type BlockErrorAction

type BlockErrorAction int

BlockErrorAction implements the "BlockErrorAction" QMP API type.

const (
	BlockErrorActionIgnore BlockErrorAction = iota
	BlockErrorActionReport
	BlockErrorActionStop
)

Known values of BlockErrorAction.

func (BlockErrorAction) MarshalJSON

func (e BlockErrorAction) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockErrorAction) String

func (e BlockErrorAction) String() string

String implements fmt.Stringer.

func (*BlockErrorAction) UnmarshalJSON

func (e *BlockErrorAction) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockIOThrottle

type BlockIOThrottle struct {
	Device          *string `json:"device,omitempty"`
	ID              *string `json:"id,omitempty"`
	Bps             int64   `json:"bps"`
	BpsRd           int64   `json:"bps_rd"`
	BpsWr           int64   `json:"bps_wr"`
	Iops            int64   `json:"iops"`
	IopsRd          int64   `json:"iops_rd"`
	IopsWr          int64   `json:"iops_wr"`
	BpsMax          *int64  `json:"bps_max,omitempty"`
	BpsRdMax        *int64  `json:"bps_rd_max,omitempty"`
	BpsWrMax        *int64  `json:"bps_wr_max,omitempty"`
	IopsMax         *int64  `json:"iops_max,omitempty"`
	IopsRdMax       *int64  `json:"iops_rd_max,omitempty"`
	IopsWrMax       *int64  `json:"iops_wr_max,omitempty"`
	BpsMaxLength    *int64  `json:"bps_max_length,omitempty"`
	BpsRdMaxLength  *int64  `json:"bps_rd_max_length,omitempty"`
	BpsWrMaxLength  *int64  `json:"bps_wr_max_length,omitempty"`
	IopsMaxLength   *int64  `json:"iops_max_length,omitempty"`
	IopsRdMaxLength *int64  `json:"iops_rd_max_length,omitempty"`
	IopsWrMaxLength *int64  `json:"iops_wr_max_length,omitempty"`
	IopsSize        *int64  `json:"iops_size,omitempty"`
	Group           *string `json:"group,omitempty"`
}

BlockIOThrottle implements the "BlockIOThrottle" QMP API type.

type BlockInfo

type BlockInfo struct {
	Device       string               `json:"device"`
	Qdev         *string              `json:"qdev,omitempty"`
	Type         string               `json:"type"`
	Removable    bool                 `json:"removable"`
	Locked       bool                 `json:"locked"`
	Inserted     *BlockDeviceInfo     `json:"inserted,omitempty"`
	TrayOpen     *bool                `json:"tray_open,omitempty"`
	IOStatus     *BlockDeviceIOStatus `json:"io-status,omitempty"`
	DirtyBitmaps []BlockDirtyInfo     `json:"dirty-bitmaps,omitempty"`
}

BlockInfo implements the "BlockInfo" QMP API type.

type BlockJobInfo

type BlockJobInfo struct {
	Type     string              `json:"type"`
	Device   string              `json:"device"`
	Len      int64               `json:"len"`
	Offset   int64               `json:"offset"`
	Busy     bool                `json:"busy"`
	Paused   bool                `json:"paused"`
	Speed    int64               `json:"speed"`
	IOStatus BlockDeviceIOStatus `json:"io-status"`
	Ready    bool                `json:"ready"`
}

BlockJobInfo implements the "BlockJobInfo" QMP API type.

type BlockJobType

type BlockJobType int

BlockJobType implements the "BlockJobType" QMP API type.

const (
	BlockJobTypeCommit BlockJobType = iota
	BlockJobTypeStream
	BlockJobTypeMirror
	BlockJobTypeBackup
)

Known values of BlockJobType.

func (BlockJobType) MarshalJSON

func (e BlockJobType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockJobType) String

func (e BlockJobType) String() string

String implements fmt.Stringer.

func (*BlockJobType) UnmarshalJSON

func (e *BlockJobType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockStats

type BlockStats struct {
	Device   *string          `json:"device,omitempty"`
	NodeName *string          `json:"node-name,omitempty"`
	Stats    BlockDeviceStats `json:"stats"`
	Parent   *BlockStats      `json:"parent,omitempty"`
	Backing  *BlockStats      `json:"backing,omitempty"`
}

BlockStats implements the "BlockStats" QMP API type.

type BlockdevAIOOptions

type BlockdevAIOOptions int

BlockdevAIOOptions implements the "BlockdevAioOptions" QMP API type.

const (
	BlockdevAIOOptionsThreads BlockdevAIOOptions = iota
	BlockdevAIOOptionsNative
)

Known values of BlockdevAIOOptions.

func (BlockdevAIOOptions) MarshalJSON

func (e BlockdevAIOOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockdevAIOOptions) String

func (e BlockdevAIOOptions) String() string

String implements fmt.Stringer.

func (*BlockdevAIOOptions) UnmarshalJSON

func (e *BlockdevAIOOptions) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockdevBackup

type BlockdevBackup struct {
	JobID         *string          `json:"job-id,omitempty"`
	Device        string           `json:"device"`
	Target        string           `json:"target"`
	Sync          MirrorSyncMode   `json:"sync"`
	Speed         *int64           `json:"speed,omitempty"`
	Compress      *bool            `json:"compress,omitempty"`
	OnSourceError *BlockdevOnError `json:"on-source-error,omitempty"`
	OnTargetError *BlockdevOnError `json:"on-target-error,omitempty"`
}

BlockdevBackup implements the "BlockdevBackup" QMP API type.

type BlockdevCacheInfo

type BlockdevCacheInfo struct {
	Writeback bool `json:"writeback"`
	Direct    bool `json:"direct"`
	NoFlush   bool `json:"no-flush"`
}

BlockdevCacheInfo implements the "BlockdevCacheInfo" QMP API type.

type BlockdevCacheOptions

type BlockdevCacheOptions struct {
	Direct  *bool `json:"direct,omitempty"`
	NoFlush *bool `json:"no-flush,omitempty"`
}

BlockdevCacheOptions implements the "BlockdevCacheOptions" QMP API type.

type BlockdevChangeReadOnlyMode

type BlockdevChangeReadOnlyMode int

BlockdevChangeReadOnlyMode implements the "BlockdevChangeReadOnlyMode" QMP API type.

const (
	BlockdevChangeReadOnlyModeRetain BlockdevChangeReadOnlyMode = iota
	BlockdevChangeReadOnlyModeReadOnly
	BlockdevChangeReadOnlyModeReadWrite
)

Known values of BlockdevChangeReadOnlyMode.

func (BlockdevChangeReadOnlyMode) MarshalJSON

func (e BlockdevChangeReadOnlyMode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockdevChangeReadOnlyMode) String

String implements fmt.Stringer.

func (*BlockdevChangeReadOnlyMode) UnmarshalJSON

func (e *BlockdevChangeReadOnlyMode) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockdevDetectZeroesOptions

type BlockdevDetectZeroesOptions int

BlockdevDetectZeroesOptions implements the "BlockdevDetectZeroesOptions" QMP API type.

const (
	BlockdevDetectZeroesOptionsOff BlockdevDetectZeroesOptions = iota
	BlockdevDetectZeroesOptionsOn
	BlockdevDetectZeroesOptionsUnmap
)

Known values of BlockdevDetectZeroesOptions.

func (BlockdevDetectZeroesOptions) MarshalJSON

func (e BlockdevDetectZeroesOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockdevDetectZeroesOptions) String

String implements fmt.Stringer.

func (*BlockdevDetectZeroesOptions) UnmarshalJSON

func (e *BlockdevDetectZeroesOptions) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockdevDiscardOptions

type BlockdevDiscardOptions int

BlockdevDiscardOptions implements the "BlockdevDiscardOptions" QMP API type.

const (
	BlockdevDiscardOptionsIgnore BlockdevDiscardOptions = iota
	BlockdevDiscardOptionsUnmap
)

Known values of BlockdevDiscardOptions.

func (BlockdevDiscardOptions) MarshalJSON

func (e BlockdevDiscardOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockdevDiscardOptions) String

func (e BlockdevDiscardOptions) String() string

String implements fmt.Stringer.

func (*BlockdevDiscardOptions) UnmarshalJSON

func (e *BlockdevDiscardOptions) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockdevDriver

type BlockdevDriver int

BlockdevDriver implements the "BlockdevDriver" QMP API type.

const (
	BlockdevDriverBlkdebug BlockdevDriver = iota
	BlockdevDriverBlkverify
	BlockdevDriverBochs
	BlockdevDriverCloop
	BlockdevDriverDmg
	BlockdevDriverFile
	BlockdevDriverFTP
	BlockdevDriverFTPS
	BlockdevDriverGluster
	BlockdevDriverHostCdrom
	BlockdevDriverHostDevice
	BlockdevDriverHTTP
	BlockdevDriverHTTPS
	BlockdevDriverIscsi
	BlockdevDriverLUKS
	BlockdevDriverNBD
	BlockdevDriverNfs
	BlockdevDriverNullAIO
	BlockdevDriverNullCo
	BlockdevDriverParallels
	BlockdevDriverQcow
	BlockdevDriverQcow2
	BlockdevDriverQed
	BlockdevDriverQuorum
	BlockdevDriverRaw
	BlockdevDriverRbd
	BlockdevDriverReplication
	BlockdevDriverSheepdog
	BlockdevDriverSSH
	BlockdevDriverThrottle
	BlockdevDriverVdi
	BlockdevDriverVhdx
	BlockdevDriverVMDK
	BlockdevDriverVpc
	BlockdevDriverVvfat
	BlockdevDriverVxhs
)

Known values of BlockdevDriver.

func (BlockdevDriver) MarshalJSON

func (e BlockdevDriver) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockdevDriver) String

func (e BlockdevDriver) String() string

String implements fmt.Stringer.

func (*BlockdevDriver) UnmarshalJSON

func (e *BlockdevDriver) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockdevOnError

type BlockdevOnError int

BlockdevOnError implements the "BlockdevOnError" QMP API type.

const (
	BlockdevOnErrorReport BlockdevOnError = iota
	BlockdevOnErrorIgnore
	BlockdevOnErrorEnospc
	BlockdevOnErrorStop
	BlockdevOnErrorAuto
)

Known values of BlockdevOnError.

func (BlockdevOnError) MarshalJSON

func (e BlockdevOnError) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockdevOnError) String

func (e BlockdevOnError) String() string

String implements fmt.Stringer.

func (*BlockdevOnError) UnmarshalJSON

func (e *BlockdevOnError) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockdevOptions

type BlockdevOptions interface {
	// contains filtered or unexported methods
}

BlockdevOptions implements the "BlockdevOptions" QMP API type.

Can be one of:

  • BlockdevOptionsBlkdebug
  • BlockdevOptionsBlkverify
  • BlockdevOptionsBochs
  • BlockdevOptionsCloop
  • BlockdevOptionsDmg
  • BlockdevOptionsFile
  • BlockdevOptionsFTP
  • BlockdevOptionsFTPS
  • BlockdevOptionsGluster
  • BlockdevOptionsHostCdrom
  • BlockdevOptionsHostDevice
  • BlockdevOptionsHTTP
  • BlockdevOptionsHTTPS
  • BlockdevOptionsIscsi
  • BlockdevOptionsLUKS
  • BlockdevOptionsNBD
  • BlockdevOptionsNfs
  • BlockdevOptionsNullAIO
  • BlockdevOptionsNullCo
  • BlockdevOptionsParallels
  • BlockdevOptionsQcow
  • BlockdevOptionsQcow2
  • BlockdevOptionsQed
  • BlockdevOptionsQuorum
  • BlockdevOptionsRaw
  • BlockdevOptionsRbd
  • BlockdevOptionsReplication
  • BlockdevOptionsSheepdog
  • BlockdevOptionsSSH
  • BlockdevOptionsThrottle
  • BlockdevOptionsVdi
  • BlockdevOptionsVhdx
  • BlockdevOptionsVMDK
  • BlockdevOptionsVpc
  • BlockdevOptionsVvfat
  • BlockdevOptionsVxhs

type BlockdevOptionsBlkdebug

type BlockdevOptionsBlkdebug struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Image        BlockdevRef                  `json:"image"`
	Config       *string                      `json:"config,omitempty"`
	Align        *int64                       `json:"align,omitempty"`
	MaxTransfer  *int32                       `json:"max-transfer,omitempty"`
	OptWriteZero *int32                       `json:"opt-write-zero,omitempty"`
	MaxWriteZero *int32                       `json:"max-write-zero,omitempty"`
	OptDiscard   *int32                       `json:"opt-discard,omitempty"`
	MaxDiscard   *int32                       `json:"max-discard,omitempty"`
	InjectError  []BlkdebugInjectErrorOptions `json:"inject-error,omitempty"`
	SetState     []BlkdebugSetStateOptions    `json:"set-state,omitempty"`
}

BlockdevOptionsBlkdebug is an implementation of BlockdevOptions.

func (BlockdevOptionsBlkdebug) MarshalJSON

func (s BlockdevOptionsBlkdebug) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsBlkverify

type BlockdevOptionsBlkverify struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Test         BlockdevRef                  `json:"test"`
	Raw          BlockdevRef                  `json:"raw"`
}

BlockdevOptionsBlkverify is an implementation of BlockdevOptions.

func (BlockdevOptionsBlkverify) MarshalJSON

func (s BlockdevOptionsBlkverify) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsBochs

type BlockdevOptionsBochs struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	File         BlockdevRef                  `json:"file"`
}

BlockdevOptionsBochs is an implementation of BlockdevOptions.

func (BlockdevOptionsBochs) MarshalJSON

func (s BlockdevOptionsBochs) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsCloop

type BlockdevOptionsCloop struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	File         BlockdevRef                  `json:"file"`
}

BlockdevOptionsCloop is an implementation of BlockdevOptions.

func (BlockdevOptionsCloop) MarshalJSON

func (s BlockdevOptionsCloop) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsDmg

type BlockdevOptionsDmg struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	File         BlockdevRef                  `json:"file"`
}

BlockdevOptionsDmg is an implementation of BlockdevOptions.

func (BlockdevOptionsDmg) MarshalJSON

func (s BlockdevOptionsDmg) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsFTP

type BlockdevOptionsFTP struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
}

BlockdevOptionsFTP is an implementation of BlockdevOptions.

func (BlockdevOptionsFTP) MarshalJSON

func (s BlockdevOptionsFTP) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsFTPS

type BlockdevOptionsFTPS struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Sslverify    *bool                        `json:"sslverify,omitempty"`
}

BlockdevOptionsFTPS is an implementation of BlockdevOptions.

func (BlockdevOptionsFTPS) MarshalJSON

func (s BlockdevOptionsFTPS) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsFile

type BlockdevOptionsFile struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Filename     string                       `json:"filename"`
	PrManager    *string                      `json:"pr-manager,omitempty"`
	Locking      *OnOffAuto                   `json:"locking,omitempty"`
	AIO          *BlockdevAIOOptions          `json:"aio,omitempty"`
}

BlockdevOptionsFile is an implementation of BlockdevOptions.

func (BlockdevOptionsFile) MarshalJSON

func (s BlockdevOptionsFile) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsGluster

type BlockdevOptionsGluster struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Volume       string                       `json:"volume"`
	Path         string                       `json:"path"`
	Server       []SocketAddress              `json:"server"`
	Debug        *int64                       `json:"debug,omitempty"`
	Logfile      *string                      `json:"logfile,omitempty"`
}

BlockdevOptionsGluster is an implementation of BlockdevOptions.

func (BlockdevOptionsGluster) MarshalJSON

func (s BlockdevOptionsGluster) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsHTTP

type BlockdevOptionsHTTP struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Cookie       *string                      `json:"cookie,omitempty"`
	CookieSecret *string                      `json:"cookie-secret,omitempty"`
}

BlockdevOptionsHTTP is an implementation of BlockdevOptions.

func (BlockdevOptionsHTTP) MarshalJSON

func (s BlockdevOptionsHTTP) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsHTTPS

type BlockdevOptionsHTTPS struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Cookie       *string                      `json:"cookie,omitempty"`
	Sslverify    *bool                        `json:"sslverify,omitempty"`
	CookieSecret *string                      `json:"cookie-secret,omitempty"`
}

BlockdevOptionsHTTPS is an implementation of BlockdevOptions.

func (BlockdevOptionsHTTPS) MarshalJSON

func (s BlockdevOptionsHTTPS) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsHostCdrom

type BlockdevOptionsHostCdrom struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Filename     string                       `json:"filename"`
	PrManager    *string                      `json:"pr-manager,omitempty"`
	Locking      *OnOffAuto                   `json:"locking,omitempty"`
	AIO          *BlockdevAIOOptions          `json:"aio,omitempty"`
}

BlockdevOptionsHostCdrom is an implementation of BlockdevOptions.

func (BlockdevOptionsHostCdrom) MarshalJSON

func (s BlockdevOptionsHostCdrom) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsHostDevice

type BlockdevOptionsHostDevice struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Filename     string                       `json:"filename"`
	PrManager    *string                      `json:"pr-manager,omitempty"`
	Locking      *OnOffAuto                   `json:"locking,omitempty"`
	AIO          *BlockdevAIOOptions          `json:"aio,omitempty"`
}

BlockdevOptionsHostDevice is an implementation of BlockdevOptions.

func (BlockdevOptionsHostDevice) MarshalJSON

func (s BlockdevOptionsHostDevice) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsIscsi

type BlockdevOptionsIscsi struct {
	NodeName       *string                      `json:"node-name,omitempty"`
	Discard        *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache          *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly       *bool                        `json:"read-only,omitempty"`
	ForceShare     *bool                        `json:"force-share,omitempty"`
	DetectZeroes   *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Transport      IscsiTransport               `json:"transport"`
	Portal         string                       `json:"portal"`
	Target         string                       `json:"target"`
	Lun            *int64                       `json:"lun,omitempty"`
	User           *string                      `json:"user,omitempty"`
	PasswordSecret *string                      `json:"password-secret,omitempty"`
	InitiatorName  *string                      `json:"initiator-name,omitempty"`
	HeaderDigest   *IscsiHeaderDigest           `json:"header-digest,omitempty"`
	Timeout        *int64                       `json:"timeout,omitempty"`
}

BlockdevOptionsIscsi is an implementation of BlockdevOptions.

func (BlockdevOptionsIscsi) MarshalJSON

func (s BlockdevOptionsIscsi) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsLUKS

type BlockdevOptionsLUKS struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	KeySecret    *string                      `json:"key-secret,omitempty"`
}

BlockdevOptionsLUKS is an implementation of BlockdevOptions.

func (BlockdevOptionsLUKS) MarshalJSON

func (s BlockdevOptionsLUKS) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsNBD

type BlockdevOptionsNBD struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Server       SocketAddress                `json:"server"`
	Export       *string                      `json:"export,omitempty"`
	TLSCreds     *string                      `json:"tls-creds,omitempty"`
}

BlockdevOptionsNBD is an implementation of BlockdevOptions.

func (BlockdevOptionsNBD) MarshalJSON

func (s BlockdevOptionsNBD) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsNfs

type BlockdevOptionsNfs struct {
	NodeName      *string                      `json:"node-name,omitempty"`
	Discard       *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache         *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly      *bool                        `json:"read-only,omitempty"`
	ForceShare    *bool                        `json:"force-share,omitempty"`
	DetectZeroes  *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Server        NfsServer                    `json:"server"`
	Path          string                       `json:"path"`
	User          *int64                       `json:"user,omitempty"`
	Group         *int64                       `json:"group,omitempty"`
	TCPSynCount   *int64                       `json:"tcp-syn-count,omitempty"`
	ReadaheadSize *int64                       `json:"readahead-size,omitempty"`
	PageCacheSize *int64                       `json:"page-cache-size,omitempty"`
	Debug         *int64                       `json:"debug,omitempty"`
}

BlockdevOptionsNfs is an implementation of BlockdevOptions.

func (BlockdevOptionsNfs) MarshalJSON

func (s BlockdevOptionsNfs) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsNullAIO

type BlockdevOptionsNullAIO struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Size         *int64                       `json:"size,omitempty"`
	LatencyNs    *uint64                      `json:"latency-ns,omitempty"`
}

BlockdevOptionsNullAIO is an implementation of BlockdevOptions.

func (BlockdevOptionsNullAIO) MarshalJSON

func (s BlockdevOptionsNullAIO) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsNullCo

type BlockdevOptionsNullCo struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Size         *int64                       `json:"size,omitempty"`
	LatencyNs    *uint64                      `json:"latency-ns,omitempty"`
}

BlockdevOptionsNullCo is an implementation of BlockdevOptions.

func (BlockdevOptionsNullCo) MarshalJSON

func (s BlockdevOptionsNullCo) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsParallels

type BlockdevOptionsParallels struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	File         BlockdevRef                  `json:"file"`
}

BlockdevOptionsParallels is an implementation of BlockdevOptions.

func (BlockdevOptionsParallels) MarshalJSON

func (s BlockdevOptionsParallels) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsQcow

type BlockdevOptionsQcow struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Encrypt      BlockdevQcowEncryption       `json:"encrypt,omitempty"`
}

BlockdevOptionsQcow is an implementation of BlockdevOptions.

func (BlockdevOptionsQcow) MarshalJSON

func (s BlockdevOptionsQcow) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsQcow2

type BlockdevOptionsQcow2 struct {
	NodeName            *string                      `json:"node-name,omitempty"`
	Discard             *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache               *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly            *bool                        `json:"read-only,omitempty"`
	ForceShare          *bool                        `json:"force-share,omitempty"`
	DetectZeroes        *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	LazyRefcounts       *bool                        `json:"lazy-refcounts,omitempty"`
	PassDiscardRequest  *bool                        `json:"pass-discard-request,omitempty"`
	PassDiscardSnapshot *bool                        `json:"pass-discard-snapshot,omitempty"`
	PassDiscardOther    *bool                        `json:"pass-discard-other,omitempty"`
	OverlapCheck        Qcow2OverlapChecks           `json:"overlap-check,omitempty"`
	CacheSize           *int64                       `json:"cache-size,omitempty"`
	L2CacheSize         *int64                       `json:"l2-cache-size,omitempty"`
	RefcountCacheSize   *int64                       `json:"refcount-cache-size,omitempty"`
	CacheCleanInterval  *int64                       `json:"cache-clean-interval,omitempty"`
	Encrypt             BlockdevQcow2Encryption      `json:"encrypt,omitempty"`
}

BlockdevOptionsQcow2 is an implementation of BlockdevOptions.

func (BlockdevOptionsQcow2) MarshalJSON

func (s BlockdevOptionsQcow2) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsQed

type BlockdevOptionsQed struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Backing      BlockdevRefOrNull            `json:"backing,omitempty"`
}

BlockdevOptionsQed is an implementation of BlockdevOptions.

func (BlockdevOptionsQed) MarshalJSON

func (s BlockdevOptionsQed) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsQuorum

type BlockdevOptionsQuorum struct {
	NodeName         *string                      `json:"node-name,omitempty"`
	Discard          *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache            *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly         *bool                        `json:"read-only,omitempty"`
	ForceShare       *bool                        `json:"force-share,omitempty"`
	DetectZeroes     *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Blkverify        *bool                        `json:"blkverify,omitempty"`
	Children         []BlockdevRef                `json:"children"`
	VoteThreshold    int64                        `json:"vote-threshold"`
	RewriteCorrupted *bool                        `json:"rewrite-corrupted,omitempty"`
	ReadPattern      *QuorumReadPattern           `json:"read-pattern,omitempty"`
}

BlockdevOptionsQuorum is an implementation of BlockdevOptions.

func (BlockdevOptionsQuorum) MarshalJSON

func (s BlockdevOptionsQuorum) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsRaw

type BlockdevOptionsRaw struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Offset       *int64                       `json:"offset,omitempty"`
	Size         *int64                       `json:"size,omitempty"`
}

BlockdevOptionsRaw is an implementation of BlockdevOptions.

func (BlockdevOptionsRaw) MarshalJSON

func (s BlockdevOptionsRaw) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsRbd

type BlockdevOptionsRbd struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Pool         string                       `json:"pool"`
	Image        string                       `json:"image"`
	Conf         *string                      `json:"conf,omitempty"`
	Snapshot     *string                      `json:"snapshot,omitempty"`
	User         *string                      `json:"user,omitempty"`
	Server       []InetSocketAddressBase      `json:"server,omitempty"`
}

BlockdevOptionsRbd is an implementation of BlockdevOptions.

func (BlockdevOptionsRbd) MarshalJSON

func (s BlockdevOptionsRbd) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsReplication

type BlockdevOptionsReplication struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Mode         ReplicationMode              `json:"mode"`
	TopID        *string                      `json:"top-id,omitempty"`
}

BlockdevOptionsReplication is an implementation of BlockdevOptions.

func (BlockdevOptionsReplication) MarshalJSON

func (s BlockdevOptionsReplication) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsSSH

type BlockdevOptionsSSH struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Server       InetSocketAddress            `json:"server"`
	Path         string                       `json:"path"`
	User         *string                      `json:"user,omitempty"`
}

BlockdevOptionsSSH is an implementation of BlockdevOptions.

func (BlockdevOptionsSSH) MarshalJSON

func (s BlockdevOptionsSSH) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsSheepdog

type BlockdevOptionsSheepdog struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Server       SocketAddress                `json:"server"`
	Vdi          string                       `json:"vdi"`
	SnapID       *uint32                      `json:"snap-id,omitempty"`
	Tag          *string                      `json:"tag,omitempty"`
}

BlockdevOptionsSheepdog is an implementation of BlockdevOptions.

func (BlockdevOptionsSheepdog) MarshalJSON

func (s BlockdevOptionsSheepdog) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsThrottle

type BlockdevOptionsThrottle struct {
	NodeName      *string                      `json:"node-name,omitempty"`
	Discard       *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache         *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly      *bool                        `json:"read-only,omitempty"`
	ForceShare    *bool                        `json:"force-share,omitempty"`
	DetectZeroes  *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	ThrottleGroup string                       `json:"throttle-group"`
	File          BlockdevRef                  `json:"file"`
}

BlockdevOptionsThrottle is an implementation of BlockdevOptions.

func (BlockdevOptionsThrottle) MarshalJSON

func (s BlockdevOptionsThrottle) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVMDK

type BlockdevOptionsVMDK struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Backing      BlockdevRefOrNull            `json:"backing,omitempty"`
}

BlockdevOptionsVMDK is an implementation of BlockdevOptions.

func (BlockdevOptionsVMDK) MarshalJSON

func (s BlockdevOptionsVMDK) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVdi

type BlockdevOptionsVdi struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	File         BlockdevRef                  `json:"file"`
}

BlockdevOptionsVdi is an implementation of BlockdevOptions.

func (BlockdevOptionsVdi) MarshalJSON

func (s BlockdevOptionsVdi) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVhdx

type BlockdevOptionsVhdx struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	File         BlockdevRef                  `json:"file"`
}

BlockdevOptionsVhdx is an implementation of BlockdevOptions.

func (BlockdevOptionsVhdx) MarshalJSON

func (s BlockdevOptionsVhdx) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVpc

type BlockdevOptionsVpc struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	File         BlockdevRef                  `json:"file"`
}

BlockdevOptionsVpc is an implementation of BlockdevOptions.

func (BlockdevOptionsVpc) MarshalJSON

func (s BlockdevOptionsVpc) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVvfat

type BlockdevOptionsVvfat struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	Dir          string                       `json:"dir"`
	FatType      *int64                       `json:"fat-type,omitempty"`
	Floppy       *bool                        `json:"floppy,omitempty"`
	Label        *string                      `json:"label,omitempty"`
	Rw           *bool                        `json:"rw,omitempty"`
}

BlockdevOptionsVvfat is an implementation of BlockdevOptions.

func (BlockdevOptionsVvfat) MarshalJSON

func (s BlockdevOptionsVvfat) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVxhs

type BlockdevOptionsVxhs struct {
	NodeName     *string                      `json:"node-name,omitempty"`
	Discard      *BlockdevDiscardOptions      `json:"discard,omitempty"`
	Cache        *BlockdevCacheOptions        `json:"cache,omitempty"`
	ReadOnly     *bool                        `json:"read-only,omitempty"`
	ForceShare   *bool                        `json:"force-share,omitempty"`
	DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"`
	VdiskID      string                       `json:"vdisk-id"`
	Server       InetSocketAddressBase        `json:"server"`
	TLSCreds     *string                      `json:"tls-creds,omitempty"`
}

BlockdevOptionsVxhs is an implementation of BlockdevOptions.

func (BlockdevOptionsVxhs) MarshalJSON

func (s BlockdevOptionsVxhs) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevQcow2Encryption

type BlockdevQcow2Encryption interface {
	// contains filtered or unexported methods
}

BlockdevQcow2Encryption implements the "BlockdevQcow2Encryption" QMP API type.

Can be one of:

  • BlockdevQcow2EncryptionAes
  • BlockdevQcow2EncryptionLUKS

type BlockdevQcow2EncryptionAes

type BlockdevQcow2EncryptionAes struct {
	KeySecret *string `json:"key-secret,omitempty"`
}

BlockdevQcow2EncryptionAes is an implementation of BlockdevQcow2Encryption.

func (BlockdevQcow2EncryptionAes) MarshalJSON

func (s BlockdevQcow2EncryptionAes) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevQcow2EncryptionFormat

type BlockdevQcow2EncryptionFormat int

BlockdevQcow2EncryptionFormat implements the "BlockdevQcow2EncryptionFormat" QMP API type.

const (
	BlockdevQcow2EncryptionFormatAes BlockdevQcow2EncryptionFormat = iota
	BlockdevQcow2EncryptionFormatLUKS
)

Known values of BlockdevQcow2EncryptionFormat.

func (BlockdevQcow2EncryptionFormat) MarshalJSON

func (e BlockdevQcow2EncryptionFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockdevQcow2EncryptionFormat) String

String implements fmt.Stringer.

func (*BlockdevQcow2EncryptionFormat) UnmarshalJSON

func (e *BlockdevQcow2EncryptionFormat) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockdevQcow2EncryptionLUKS

type BlockdevQcow2EncryptionLUKS struct {
	KeySecret *string `json:"key-secret,omitempty"`
}

BlockdevQcow2EncryptionLUKS is an implementation of BlockdevQcow2Encryption.

func (BlockdevQcow2EncryptionLUKS) MarshalJSON

func (s BlockdevQcow2EncryptionLUKS) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevQcowEncryption

type BlockdevQcowEncryption interface {
	// contains filtered or unexported methods
}

BlockdevQcowEncryption implements the "BlockdevQcowEncryption" QMP API type.

Can be one of:

  • BlockdevQcowEncryptionAes

type BlockdevQcowEncryptionAes

type BlockdevQcowEncryptionAes struct {
	KeySecret *string `json:"key-secret,omitempty"`
}

BlockdevQcowEncryptionAes is an implementation of BlockdevQcowEncryption.

func (BlockdevQcowEncryptionAes) MarshalJSON

func (s BlockdevQcowEncryptionAes) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type BlockdevQcowEncryptionFormat

type BlockdevQcowEncryptionFormat int

BlockdevQcowEncryptionFormat implements the "BlockdevQcowEncryptionFormat" QMP API type.

const (
	BlockdevQcowEncryptionFormatAes BlockdevQcowEncryptionFormat = iota
)

Known values of BlockdevQcowEncryptionFormat.

func (BlockdevQcowEncryptionFormat) MarshalJSON

func (e BlockdevQcowEncryptionFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BlockdevQcowEncryptionFormat) String

String implements fmt.Stringer.

func (*BlockdevQcowEncryptionFormat) UnmarshalJSON

func (e *BlockdevQcowEncryptionFormat) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type BlockdevRef

type BlockdevRef interface {
	// contains filtered or unexported methods
}

BlockdevRef implements the "BlockdevRef" QMP API type.

Can be one of:

  • BlockdevRefDefinition
  • BlockdevRefReference

type BlockdevRefDefinition

type BlockdevRefDefinition BlockdevOptions

BlockdevRefDefinition is an implementation of BlockdevRef

type BlockdevRefOrNull

type BlockdevRefOrNull interface {
	// contains filtered or unexported methods
}

BlockdevRefOrNull implements the "BlockdevRefOrNull" QMP API type.

Can be one of:

  • BlockdevRefOrNullDefinition
  • BlockdevRefOrNullNull
  • BlockdevRefOrNullReference

type BlockdevRefOrNullDefinition

type BlockdevRefOrNullDefinition BlockdevOptions

BlockdevRefOrNullDefinition is an implementation of BlockdevRefOrNull

type BlockdevRefOrNullNull

type BlockdevRefOrNullNull struct{}

BlockdevRefOrNullNull is a JSON null type, so it must also implement the isNullable interface.

type BlockdevRefOrNullReference

type BlockdevRefOrNullReference string

BlockdevRefOrNullReference is an implementation of BlockdevRefOrNull

type BlockdevRefReference

type BlockdevRefReference string

BlockdevRefReference is an implementation of BlockdevRef

type BlockdevSnapshot

type BlockdevSnapshot struct {
	Node    string `json:"node"`
	Overlay string `json:"overlay"`
}

BlockdevSnapshot implements the "BlockdevSnapshot" QMP API type.

type BlockdevSnapshotInternal

type BlockdevSnapshotInternal struct {
	Device string `json:"device"`
	Name   string `json:"name"`
}

BlockdevSnapshotInternal implements the "BlockdevSnapshotInternal" QMP API type.

type BlockdevSnapshotSync

type BlockdevSnapshotSync struct {
	Device           *string       `json:"device,omitempty"`
	NodeName         *string       `json:"node-name,omitempty"`
	SnapshotFile     string        `json:"snapshot-file"`
	SnapshotNodeName *string       `json:"snapshot-node-name,omitempty"`
	Format           *string       `json:"format,omitempty"`
	Mode             *NewImageMode `json:"mode,omitempty"`
}

BlockdevSnapshotSync implements the "BlockdevSnapshotSync" QMP API type.

type CPUDefinitionInfo

type CPUDefinitionInfo struct {
	Name                string   `json:"name"`
	MigrationSafe       *bool    `json:"migration-safe,omitempty"`
	Static              bool     `json:"static"`
	UnavailableFeatures []string `json:"unavailable-features,omitempty"`
	Typename            string   `json:"typename"`
}

CPUDefinitionInfo implements the "CpuDefinitionInfo" QMP API type.

type CPUInfo

type CPUInfo interface {
	// contains filtered or unexported methods
}

CPUInfo implements the "CpuInfo" QMP API type.

Can be one of:

  • CPUInfoMIPS
  • CPUInfoOther
  • CPUInfoPPC
  • CPUInfoSPARC
  • CPUInfoTricore
  • CPUInfoX86

type CPUInfoArch

type CPUInfoArch int

CPUInfoArch implements the "CpuInfoArch" QMP API type.

const (
	CPUInfoArchX86 CPUInfoArch = iota
	CPUInfoArchSPARC
	CPUInfoArchPPC
	CPUInfoArchMIPS
	CPUInfoArchTricore
	CPUInfoArchOther
)

Known values of CPUInfoArch.

func (CPUInfoArch) MarshalJSON

func (e CPUInfoArch) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (CPUInfoArch) String

func (e CPUInfoArch) String() string

String implements fmt.Stringer.

func (*CPUInfoArch) UnmarshalJSON

func (e *CPUInfoArch) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CPUInfoMIPS

type CPUInfoMIPS struct {
	CPU      int64                  `json:"CPU"`
	Current  bool                   `json:"current"`
	Halted   bool                   `json:"halted"`
	QomPath  string                 `json:"qom_path"`
	ThreadID int64                  `json:"thread_id"`
	Props    *CPUInstanceProperties `json:"props,omitempty"`
	Pc       int64                  `json:"PC"`
}

CPUInfoMIPS is an implementation of CPUInfo.

func (CPUInfoMIPS) MarshalJSON

func (s CPUInfoMIPS) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type CPUInfoOther

type CPUInfoOther struct {
	CPU      int64                  `json:"CPU"`
	Current  bool                   `json:"current"`
	Halted   bool                   `json:"halted"`
	QomPath  string                 `json:"qom_path"`
	ThreadID int64                  `json:"thread_id"`
	Props    *CPUInstanceProperties `json:"props,omitempty"`
}

CPUInfoOther is an implementation of CPUInfo.

func (CPUInfoOther) MarshalJSON

func (s CPUInfoOther) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type CPUInfoPPC

type CPUInfoPPC struct {
	CPU      int64                  `json:"CPU"`
	Current  bool                   `json:"current"`
	Halted   bool                   `json:"halted"`
	QomPath  string                 `json:"qom_path"`
	ThreadID int64                  `json:"thread_id"`
	Props    *CPUInstanceProperties `json:"props,omitempty"`
	Nip      int64                  `json:"nip"`
}

CPUInfoPPC is an implementation of CPUInfo.

func (CPUInfoPPC) MarshalJSON

func (s CPUInfoPPC) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type CPUInfoSPARC

type CPUInfoSPARC struct {
	CPU      int64                  `json:"CPU"`
	Current  bool                   `json:"current"`
	Halted   bool                   `json:"halted"`
	QomPath  string                 `json:"qom_path"`
	ThreadID int64                  `json:"thread_id"`
	Props    *CPUInstanceProperties `json:"props,omitempty"`
	Pc       int64                  `json:"pc"`
	Npc      int64                  `json:"npc"`
}

CPUInfoSPARC is an implementation of CPUInfo.

func (CPUInfoSPARC) MarshalJSON

func (s CPUInfoSPARC) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type CPUInfoTricore

type CPUInfoTricore struct {
	CPU      int64                  `json:"CPU"`
	Current  bool                   `json:"current"`
	Halted   bool                   `json:"halted"`
	QomPath  string                 `json:"qom_path"`
	ThreadID int64                  `json:"thread_id"`
	Props    *CPUInstanceProperties `json:"props,omitempty"`
	Pc       int64                  `json:"PC"`
}

CPUInfoTricore is an implementation of CPUInfo.

func (CPUInfoTricore) MarshalJSON

func (s CPUInfoTricore) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type CPUInfoX86

type CPUInfoX86 struct {
	CPU      int64                  `json:"CPU"`
	Current  bool                   `json:"current"`
	Halted   bool                   `json:"halted"`
	QomPath  string                 `json:"qom_path"`
	ThreadID int64                  `json:"thread_id"`
	Props    *CPUInstanceProperties `json:"props,omitempty"`
	Pc       int64                  `json:"pc"`
}

CPUInfoX86 is an implementation of CPUInfo.

func (CPUInfoX86) MarshalJSON

func (s CPUInfoX86) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type CPUInstanceProperties

type CPUInstanceProperties struct {
	NodeID   *int64 `json:"node-id,omitempty"`
	SocketID *int64 `json:"socket-id,omitempty"`
	CoreID   *int64 `json:"core-id,omitempty"`
	ThreadID *int64 `json:"thread-id,omitempty"`
}

CPUInstanceProperties implements the "CpuInstanceProperties" QMP API type.

type CPUModelBaselineInfo

type CPUModelBaselineInfo struct {
	Model CPUModelInfo `json:"model"`
}

CPUModelBaselineInfo implements the "CpuModelBaselineInfo" QMP API type.

type CPUModelCompareInfo

type CPUModelCompareInfo struct {
	Result                CPUModelCompareResult `json:"result"`
	ResponsibleProperties []string              `json:"responsible-properties"`
}

CPUModelCompareInfo implements the "CpuModelCompareInfo" QMP API type.

type CPUModelCompareResult

type CPUModelCompareResult int

CPUModelCompareResult implements the "CpuModelCompareResult" QMP API type.

const (
	CPUModelCompareResultIncompatible CPUModelCompareResult = iota
	CPUModelCompareResultIdentical
	CPUModelCompareResultSuperset
	CPUModelCompareResultSubset
)

Known values of CPUModelCompareResult.

func (CPUModelCompareResult) MarshalJSON

func (e CPUModelCompareResult) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (CPUModelCompareResult) String

func (e CPUModelCompareResult) String() string

String implements fmt.Stringer.

func (*CPUModelCompareResult) UnmarshalJSON

func (e *CPUModelCompareResult) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CPUModelExpansionInfo

type CPUModelExpansionInfo struct {
	Model CPUModelInfo `json:"model"`
}

CPUModelExpansionInfo implements the "CpuModelExpansionInfo" QMP API type.

type CPUModelExpansionType

type CPUModelExpansionType int

CPUModelExpansionType implements the "CpuModelExpansionType" QMP API type.

const (
	CPUModelExpansionTypeStatic CPUModelExpansionType = iota
	CPUModelExpansionTypeFull
)

Known values of CPUModelExpansionType.

func (CPUModelExpansionType) MarshalJSON

func (e CPUModelExpansionType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (CPUModelExpansionType) String

func (e CPUModelExpansionType) String() string

String implements fmt.Stringer.

func (*CPUModelExpansionType) UnmarshalJSON

func (e *CPUModelExpansionType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CPUModelInfo

type CPUModelInfo struct {
	Name  string       `json:"name"`
	Props *interface{} `json:"props,omitempty"`
}

CPUModelInfo implements the "CpuModelInfo" QMP API type.

type ChardevBackend

type ChardevBackend interface {
	// contains filtered or unexported methods
}

ChardevBackend implements the "ChardevBackend" QMP API type.

Can be one of:

  • ChardevBackendBraille
  • ChardevBackendConsole
  • ChardevBackendFile
  • ChardevBackendMemory
  • ChardevBackendMsmouse
  • ChardevBackendMux
  • ChardevBackendNull
  • ChardevBackendParallel
  • ChardevBackendPipe
  • ChardevBackendPty
  • ChardevBackendRingbuf
  • ChardevBackendSerial
  • ChardevBackendSocket
  • ChardevBackendSpiceport
  • ChardevBackendSpicevmc
  • ChardevBackendStdio
  • ChardevBackendTestdev
  • ChardevBackendUDP
  • ChardevBackendVc
  • ChardevBackendWctablet

type ChardevBackendBraille

type ChardevBackendBraille ChardevCommon

ChardevBackendBraille is an implementation of ChardevBackend.

func (ChardevBackendBraille) MarshalJSON

func (s ChardevBackendBraille) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendConsole

type ChardevBackendConsole ChardevCommon

ChardevBackendConsole is an implementation of ChardevBackend.

func (ChardevBackendConsole) MarshalJSON

func (s ChardevBackendConsole) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendFile

type ChardevBackendFile ChardevFile

ChardevBackendFile is an implementation of ChardevBackend.

func (ChardevBackendFile) MarshalJSON

func (s ChardevBackendFile) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendInfo

type ChardevBackendInfo struct {
	Name string `json:"name"`
}

ChardevBackendInfo implements the "ChardevBackendInfo" QMP API type.

type ChardevBackendMemory

type ChardevBackendMemory ChardevRingbuf

ChardevBackendMemory is an implementation of ChardevBackend.

func (ChardevBackendMemory) MarshalJSON

func (s ChardevBackendMemory) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendMsmouse

type ChardevBackendMsmouse ChardevCommon

ChardevBackendMsmouse is an implementation of ChardevBackend.

func (ChardevBackendMsmouse) MarshalJSON

func (s ChardevBackendMsmouse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendMux

type ChardevBackendMux ChardevMux

ChardevBackendMux is an implementation of ChardevBackend.

func (ChardevBackendMux) MarshalJSON

func (s ChardevBackendMux) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendNull

type ChardevBackendNull ChardevCommon

ChardevBackendNull is an implementation of ChardevBackend.

func (ChardevBackendNull) MarshalJSON

func (s ChardevBackendNull) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendParallel

type ChardevBackendParallel ChardevHostdev

ChardevBackendParallel is an implementation of ChardevBackend.

func (ChardevBackendParallel) MarshalJSON

func (s ChardevBackendParallel) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendPipe

type ChardevBackendPipe ChardevHostdev

ChardevBackendPipe is an implementation of ChardevBackend.

func (ChardevBackendPipe) MarshalJSON

func (s ChardevBackendPipe) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendPty

type ChardevBackendPty ChardevCommon

ChardevBackendPty is an implementation of ChardevBackend.

func (ChardevBackendPty) MarshalJSON

func (s ChardevBackendPty) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendRingbuf

type ChardevBackendRingbuf ChardevRingbuf

ChardevBackendRingbuf is an implementation of ChardevBackend.

func (ChardevBackendRingbuf) MarshalJSON

func (s ChardevBackendRingbuf) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendSerial

type ChardevBackendSerial ChardevHostdev

ChardevBackendSerial is an implementation of ChardevBackend.

func (ChardevBackendSerial) MarshalJSON

func (s ChardevBackendSerial) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendSocket

type ChardevBackendSocket ChardevSocket

ChardevBackendSocket is an implementation of ChardevBackend.

func (ChardevBackendSocket) MarshalJSON

func (s ChardevBackendSocket) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendSpiceport

type ChardevBackendSpiceport ChardevSpicePort

ChardevBackendSpiceport is an implementation of ChardevBackend.

func (ChardevBackendSpiceport) MarshalJSON

func (s ChardevBackendSpiceport) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendSpicevmc

type ChardevBackendSpicevmc ChardevSpiceChannel

ChardevBackendSpicevmc is an implementation of ChardevBackend.

func (ChardevBackendSpicevmc) MarshalJSON

func (s ChardevBackendSpicevmc) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendStdio

type ChardevBackendStdio ChardevStdio

ChardevBackendStdio is an implementation of ChardevBackend.

func (ChardevBackendStdio) MarshalJSON

func (s ChardevBackendStdio) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendTestdev

type ChardevBackendTestdev ChardevCommon

ChardevBackendTestdev is an implementation of ChardevBackend.

func (ChardevBackendTestdev) MarshalJSON

func (s ChardevBackendTestdev) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendUDP

type ChardevBackendUDP ChardevUDP

ChardevBackendUDP is an implementation of ChardevBackend.

func (ChardevBackendUDP) MarshalJSON

func (s ChardevBackendUDP) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendVc

type ChardevBackendVc ChardevVc

ChardevBackendVc is an implementation of ChardevBackend.

func (ChardevBackendVc) MarshalJSON

func (s ChardevBackendVc) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevBackendWctablet

type ChardevBackendWctablet ChardevCommon

ChardevBackendWctablet is an implementation of ChardevBackend.

func (ChardevBackendWctablet) MarshalJSON

func (s ChardevBackendWctablet) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ChardevCommon

type ChardevCommon struct {
	Logfile   *string `json:"logfile,omitempty"`
	Logappend *bool   `json:"logappend,omitempty"`
}

ChardevCommon implements the "ChardevCommon" QMP API type.

type ChardevFile

type ChardevFile struct {
	Logfile   *string `json:"logfile,omitempty"`
	Logappend *bool   `json:"logappend,omitempty"`
	In        *string `json:"in,omitempty"`
	Out       string  `json:"out"`
	Append    *bool   `json:"append,omitempty"`
}

ChardevFile implements the "ChardevFile" QMP API type.

type ChardevHostdev

type ChardevHostdev struct {
	Logfile   *string `json:"logfile,omitempty"`
	Logappend *bool   `json:"logappend,omitempty"`
	Device    string  `json:"device"`
}

ChardevHostdev implements the "ChardevHostdev" QMP API type.

type ChardevInfo

type ChardevInfo struct {
	Label        string `json:"label"`
	Filename     string `json:"filename"`
	FrontendOpen bool   `json:"frontend-open"`
}

ChardevInfo implements the "ChardevInfo" QMP API type.

type ChardevMux

type ChardevMux struct {
	Logfile   *string `json:"logfile,omitempty"`
	Logappend *bool   `json:"logappend,omitempty"`
	Chardev   string  `json:"chardev"`
}

ChardevMux implements the "ChardevMux" QMP API type.

type ChardevReturn

type ChardevReturn struct {
	Pty *string `json:"pty,omitempty"`
}

ChardevReturn implements the "ChardevReturn" QMP API type.

type ChardevRingbuf

type ChardevRingbuf struct {
	Logfile   *string `json:"logfile,omitempty"`
	Logappend *bool   `json:"logappend,omitempty"`
	Size      *int64  `json:"size,omitempty"`
}

ChardevRingbuf implements the "ChardevRingbuf" QMP API type.

type ChardevSocket

type ChardevSocket struct {
	Logfile   *string             `json:"logfile,omitempty"`
	Logappend *bool               `json:"logappend,omitempty"`
	Addr      SocketAddressLegacy `json:"addr"`
	TLSCreds  *string             `json:"tls-creds,omitempty"`
	Server    *bool               `json:"server,omitempty"`
	Wait      *bool               `json:"wait,omitempty"`
	Nodelay   *bool               `json:"nodelay,omitempty"`
	Telnet    *bool               `json:"telnet,omitempty"`
	Tn3270    *bool               `json:"tn3270,omitempty"`
	Reconnect *int64              `json:"reconnect,omitempty"`
}

ChardevSocket implements the "ChardevSocket" QMP API type.

func (*ChardevSocket) UnmarshalJSON

func (s *ChardevSocket) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ChardevSpiceChannel

type ChardevSpiceChannel struct {
	Logfile   *string `json:"logfile,omitempty"`
	Logappend *bool   `json:"logappend,omitempty"`
	Type      string  `json:"type"`
}

ChardevSpiceChannel implements the "ChardevSpiceChannel" QMP API type.

type ChardevSpicePort

type ChardevSpicePort struct {
	Logfile   *string `json:"logfile,omitempty"`
	Logappend *bool   `json:"logappend,omitempty"`
	Fqdn      string  `json:"fqdn"`
}

ChardevSpicePort implements the "ChardevSpicePort" QMP API type.

type ChardevStdio

type ChardevStdio struct {
	Logfile   *string `json:"logfile,omitempty"`
	Logappend *bool   `json:"logappend,omitempty"`
	Signal    *bool   `json:"signal,omitempty"`
}

ChardevStdio implements the "ChardevStdio" QMP API type.

type ChardevUDP

type ChardevUDP struct {
	Logfile   *string             `json:"logfile,omitempty"`
	Logappend *bool               `json:"logappend,omitempty"`
	Remote    SocketAddressLegacy `json:"remote"`
	Local     SocketAddressLegacy `json:"local,omitempty"`
}

ChardevUDP implements the "ChardevUdp" QMP API type.

func (*ChardevUDP) UnmarshalJSON

func (s *ChardevUDP) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ChardevVc

type ChardevVc struct {
	Logfile   *string `json:"logfile,omitempty"`
	Logappend *bool   `json:"logappend,omitempty"`
	Width     *int64  `json:"width,omitempty"`
	Height    *int64  `json:"height,omitempty"`
	Cols      *int64  `json:"cols,omitempty"`
	Rows      *int64  `json:"rows,omitempty"`
}

ChardevVc implements the "ChardevVC" QMP API type.

type CommandInfo

type CommandInfo struct {
	Name string `json:"name"`
}

CommandInfo implements the "CommandInfo" QMP API type.

type CommandLineOptionInfo

type CommandLineOptionInfo struct {
	Option     string                     `json:"option"`
	Parameters []CommandLineParameterInfo `json:"parameters"`
}

CommandLineOptionInfo implements the "CommandLineOptionInfo" QMP API type.

type CommandLineParameterInfo

type CommandLineParameterInfo struct {
	Name    string                   `json:"name"`
	Type    CommandLineParameterType `json:"type"`
	Help    *string                  `json:"help,omitempty"`
	Default *string                  `json:"default,omitempty"`
}

CommandLineParameterInfo implements the "CommandLineParameterInfo" QMP API type.

type CommandLineParameterType

type CommandLineParameterType int

CommandLineParameterType implements the "CommandLineParameterType" QMP API type.

const (
	CommandLineParameterTypeString CommandLineParameterType = iota
	CommandLineParameterTypeBoolean
	CommandLineParameterTypefloat64
	CommandLineParameterTypeuint64
)

Known values of CommandLineParameterType.

func (CommandLineParameterType) MarshalJSON

func (e CommandLineParameterType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (CommandLineParameterType) String

func (e CommandLineParameterType) String() string

String implements fmt.Stringer.

func (*CommandLineParameterType) UnmarshalJSON

func (e *CommandLineParameterType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type DataFormat

type DataFormat int

DataFormat implements the "DataFormat" QMP API type.

const (
	DataFormatUtf8 DataFormat = iota
	DataFormatBase64
)

Known values of DataFormat.

func (DataFormat) MarshalJSON

func (e DataFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (DataFormat) String

func (e DataFormat) String() string

String implements fmt.Stringer.

func (*DataFormat) UnmarshalJSON

func (e *DataFormat) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type DevicePropertyInfo

type DevicePropertyInfo struct {
	Name        string  `json:"name"`
	Type        string  `json:"type"`
	Description *string `json:"description,omitempty"`
}

DevicePropertyInfo implements the "DevicePropertyInfo" QMP API type.

type DirtyBitmapStatus

type DirtyBitmapStatus int

DirtyBitmapStatus implements the "DirtyBitmapStatus" QMP API type.

const (
	DirtyBitmapStatusActive DirtyBitmapStatus = iota
	DirtyBitmapStatusDisabled
	DirtyBitmapStatusFrozen
)

Known values of DirtyBitmapStatus.

func (DirtyBitmapStatus) MarshalJSON

func (e DirtyBitmapStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (DirtyBitmapStatus) String

func (e DirtyBitmapStatus) String() string

String implements fmt.Stringer.

func (*DirtyBitmapStatus) UnmarshalJSON

func (e *DirtyBitmapStatus) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type DriveBackup

type DriveBackup struct {
	JobID         *string          `json:"job-id,omitempty"`
	Device        string           `json:"device"`
	Target        string           `json:"target"`
	Format        *string          `json:"format,omitempty"`
	Sync          MirrorSyncMode   `json:"sync"`
	Mode          *NewImageMode    `json:"mode,omitempty"`
	Speed         *int64           `json:"speed,omitempty"`
	Bitmap        *string          `json:"bitmap,omitempty"`
	Compress      *bool            `json:"compress,omitempty"`
	OnSourceError *BlockdevOnError `json:"on-source-error,omitempty"`
	OnTargetError *BlockdevOnError `json:"on-target-error,omitempty"`
}

DriveBackup implements the "DriveBackup" QMP API type.

type DriveMirror

type DriveMirror struct {
	JobID         *string          `json:"job-id,omitempty"`
	Device        string           `json:"device"`
	Target        string           `json:"target"`
	Format        *string          `json:"format,omitempty"`
	NodeName      *string          `json:"node-name,omitempty"`
	Replaces      *string          `json:"replaces,omitempty"`
	Sync          MirrorSyncMode   `json:"sync"`
	Mode          *NewImageMode    `json:"mode,omitempty"`
	Speed         *int64           `json:"speed,omitempty"`
	Granularity   *uint32          `json:"granularity,omitempty"`
	BufSize       *int64           `json:"buf-size,omitempty"`
	OnSourceError *BlockdevOnError `json:"on-source-error,omitempty"`
	OnTargetError *BlockdevOnError `json:"on-target-error,omitempty"`
	Unmap         *bool            `json:"unmap,omitempty"`
}

DriveMirror implements the "DriveMirror" QMP API type.

type DumpGuestMemoryCapability

type DumpGuestMemoryCapability struct {
	Formats []DumpGuestMemoryFormat `json:"formats"`
}

DumpGuestMemoryCapability implements the "DumpGuestMemoryCapability" QMP API type.

type DumpGuestMemoryFormat

type DumpGuestMemoryFormat int

DumpGuestMemoryFormat implements the "DumpGuestMemoryFormat" QMP API type.

const (
	DumpGuestMemoryFormatElf DumpGuestMemoryFormat = iota
	DumpGuestMemoryFormatKdumpZlib
	DumpGuestMemoryFormatKdumpLzo
	DumpGuestMemoryFormatKdumpSnappy
)

Known values of DumpGuestMemoryFormat.

func (DumpGuestMemoryFormat) MarshalJSON

func (e DumpGuestMemoryFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (DumpGuestMemoryFormat) String

func (e DumpGuestMemoryFormat) String() string

String implements fmt.Stringer.

func (*DumpGuestMemoryFormat) UnmarshalJSON

func (e *DumpGuestMemoryFormat) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type DumpQueryResult

type DumpQueryResult struct {
	Status    DumpStatus `json:"status"`
	Completed int64      `json:"completed"`
	Total     int64      `json:"total"`
}

DumpQueryResult implements the "DumpQueryResult" QMP API type.

type DumpStatus

type DumpStatus int

DumpStatus implements the "DumpStatus" QMP API type.

const (
	DumpStatusNone DumpStatus = iota
	DumpStatusActive
	DumpStatusCompleted
	DumpStatusFailed
)

Known values of DumpStatus.

func (DumpStatus) MarshalJSON

func (e DumpStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (DumpStatus) String

func (e DumpStatus) String() string

String implements fmt.Stringer.

func (*DumpStatus) UnmarshalJSON

func (e *DumpStatus) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type EventInfo

type EventInfo struct {
	Name string `json:"name"`
}

EventInfo implements the "EventInfo" QMP API type.

type FdsetFDInfo

type FdsetFDInfo struct {
	FD     int64   `json:"fd"`
	Opaque *string `json:"opaque,omitempty"`
}

FdsetFDInfo implements the "FdsetFdInfo" QMP API type.

type FdsetInfo

type FdsetInfo struct {
	FdsetID int64         `json:"fdset-id"`
	Fds     []FdsetFDInfo `json:"fds"`
}

FdsetInfo implements the "FdsetInfo" QMP API type.

type GUIDInfo

type GUIDInfo struct {
	GUID string `json:"guid"`
}

GUIDInfo implements the "GuidInfo" QMP API type.

type GicCapability

type GicCapability struct {
	Version  int64 `json:"version"`
	Emulated bool  `json:"emulated"`
	Kernel   bool  `json:"kernel"`
}

GicCapability implements the "GICCapability" QMP API type.

type GuestPanicAction

type GuestPanicAction int

GuestPanicAction implements the "GuestPanicAction" QMP API type.

const (
	GuestPanicActionPause GuestPanicAction = iota
	GuestPanicActionPoweroff
)

Known values of GuestPanicAction.

func (GuestPanicAction) MarshalJSON

func (e GuestPanicAction) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (GuestPanicAction) String

func (e GuestPanicAction) String() string

String implements fmt.Stringer.

func (*GuestPanicAction) UnmarshalJSON

func (e *GuestPanicAction) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type GuestPanicInformation

type GuestPanicInformation interface {
	// contains filtered or unexported methods
}

GuestPanicInformation implements the "GuestPanicInformation" QMP API type.

Can be one of:

  • GuestPanicInformationHyperV

type GuestPanicInformationHyperV

type GuestPanicInformationHyperV struct {
	Arg1 uint64 `json:"arg1"`
	Arg2 uint64 `json:"arg2"`
	Arg3 uint64 `json:"arg3"`
	Arg4 uint64 `json:"arg4"`
	Arg5 uint64 `json:"arg5"`
}

GuestPanicInformationHyperV is an implementation of GuestPanicInformation.

func (GuestPanicInformationHyperV) MarshalJSON

func (s GuestPanicInformationHyperV) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type GuestPanicInformationType

type GuestPanicInformationType int

GuestPanicInformationType implements the "GuestPanicInformationType" QMP API type.

const (
	GuestPanicInformationTypeHyperV GuestPanicInformationType = iota
)

Known values of GuestPanicInformationType.

func (GuestPanicInformationType) MarshalJSON

func (e GuestPanicInformationType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (GuestPanicInformationType) String

func (e GuestPanicInformationType) String() string

String implements fmt.Stringer.

func (*GuestPanicInformationType) UnmarshalJSON

func (e *GuestPanicInformationType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type HostMemPolicy

type HostMemPolicy int

HostMemPolicy implements the "HostMemPolicy" QMP API type.

const (
	HostMemPolicyDefault HostMemPolicy = iota
	HostMemPolicyPreferred
	HostMemPolicyBind
	HostMemPolicyInterleave
)

Known values of HostMemPolicy.

func (HostMemPolicy) MarshalJSON

func (e HostMemPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (HostMemPolicy) String

func (e HostMemPolicy) String() string

String implements fmt.Stringer.

func (*HostMemPolicy) UnmarshalJSON

func (e *HostMemPolicy) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type HotpluggableCPU

type HotpluggableCPU struct {
	Type       string                `json:"type"`
	VcpusCount int64                 `json:"vcpus-count"`
	Props      CPUInstanceProperties `json:"props"`
	QomPath    *string               `json:"qom-path,omitempty"`
}

HotpluggableCPU implements the "HotpluggableCPU" QMP API type.

type IOOperationType

type IOOperationType int

IOOperationType implements the "IoOperationType" QMP API type.

const (
	IOOperationTypeRead IOOperationType = iota
	IOOperationTypeWrite
)

Known values of IOOperationType.

func (IOOperationType) MarshalJSON

func (e IOOperationType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (IOOperationType) String

func (e IOOperationType) String() string

String implements fmt.Stringer.

func (*IOOperationType) UnmarshalJSON

func (e *IOOperationType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type IOThreadInfo

type IOThreadInfo struct {
	ID         string `json:"id"`
	ThreadID   int64  `json:"thread-id"`
	PollMaxNs  int64  `json:"poll-max-ns"`
	PollGrow   int64  `json:"poll-grow"`
	PollShrink int64  `json:"poll-shrink"`
}

IOThreadInfo implements the "IOThreadInfo" QMP API type.

type ImageInfo

type ImageInfo struct {
	Filename              string            `json:"filename"`
	Format                string            `json:"format"`
	DirtyFlag             *bool             `json:"dirty-flag,omitempty"`
	ActualSize            *int64            `json:"actual-size,omitempty"`
	VirtualSize           int64             `json:"virtual-size"`
	ClusterSize           *int64            `json:"cluster-size,omitempty"`
	Encrypted             *bool             `json:"encrypted,omitempty"`
	Compressed            *bool             `json:"compressed,omitempty"`
	BackingFilename       *string           `json:"backing-filename,omitempty"`
	FullBackingFilename   *string           `json:"full-backing-filename,omitempty"`
	BackingFilenameFormat *string           `json:"backing-filename-format,omitempty"`
	Snapshots             []SnapshotInfo    `json:"snapshots,omitempty"`
	BackingImage          *ImageInfo        `json:"backing-image,omitempty"`
	FormatSpecific        ImageInfoSpecific `json:"format-specific,omitempty"`
}

ImageInfo implements the "ImageInfo" QMP API type.

func (*ImageInfo) UnmarshalJSON

func (s *ImageInfo) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ImageInfoSpecific

type ImageInfoSpecific interface {
	// contains filtered or unexported methods
}

ImageInfoSpecific implements the "ImageInfoSpecific" QMP API type.

Can be one of:

  • ImageInfoSpecificLUKS
  • ImageInfoSpecificQcow2
  • ImageInfoSpecificVMDK

type ImageInfoSpecificLUKS

type ImageInfoSpecificLUKS QCryptoBlockInfoLUKS

ImageInfoSpecificLUKS is an implementation of ImageInfoSpecific.

func (ImageInfoSpecificLUKS) MarshalJSON

func (s ImageInfoSpecificLUKS) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ImageInfoSpecificQCow2

type ImageInfoSpecificQCow2 struct {
	Compat        string                           `json:"compat"`
	LazyRefcounts *bool                            `json:"lazy-refcounts,omitempty"`
	Corrupt       *bool                            `json:"corrupt,omitempty"`
	RefcountBits  int64                            `json:"refcount-bits"`
	Encrypt       ImageInfoSpecificQCow2Encryption `json:"encrypt,omitempty"`
}

ImageInfoSpecificQCow2 implements the "ImageInfoSpecificQCow2" QMP API type.

func (*ImageInfoSpecificQCow2) UnmarshalJSON

func (s *ImageInfoSpecificQCow2) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ImageInfoSpecificQCow2Encryption

type ImageInfoSpecificQCow2Encryption interface {
	// contains filtered or unexported methods
}

ImageInfoSpecificQCow2Encryption implements the "ImageInfoSpecificQCow2Encryption" QMP API type.

Can be one of:

  • ImageInfoSpecificQCow2EncryptionAes
  • ImageInfoSpecificQCow2EncryptionLUKS

type ImageInfoSpecificQCow2EncryptionAes

type ImageInfoSpecificQCow2EncryptionAes struct {
}

ImageInfoSpecificQCow2EncryptionAes is an implementation of ImageInfoSpecificQCow2Encryption.

func (ImageInfoSpecificQCow2EncryptionAes) MarshalJSON

func (s ImageInfoSpecificQCow2EncryptionAes) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ImageInfoSpecificQCow2EncryptionLUKS

type ImageInfoSpecificQCow2EncryptionLUKS struct {
	CipherAlg      QCryptoCipherAlgorithm     `json:"cipher-alg"`
	CipherMode     QCryptoCipherMode          `json:"cipher-mode"`
	IvgenAlg       QCryptoIvGenAlgorithm      `json:"ivgen-alg"`
	IvgenHashAlg   *QCryptoHashAlgorithm      `json:"ivgen-hash-alg,omitempty"`
	HashAlg        QCryptoHashAlgorithm       `json:"hash-alg"`
	PayloadOffset  int64                      `json:"payload-offset"`
	MasterKeyIters int64                      `json:"master-key-iters"`
	UUID           string                     `json:"uuid"`
	Slots          []QCryptoBlockInfoLUKSSlot `json:"slots"`
}

ImageInfoSpecificQCow2EncryptionLUKS is an implementation of ImageInfoSpecificQCow2Encryption.

func (ImageInfoSpecificQCow2EncryptionLUKS) MarshalJSON

func (s ImageInfoSpecificQCow2EncryptionLUKS) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ImageInfoSpecificQcow2

type ImageInfoSpecificQcow2 ImageInfoSpecificQCow2

ImageInfoSpecificQcow2 is an implementation of ImageInfoSpecific.

func (ImageInfoSpecificQcow2) MarshalJSON

func (s ImageInfoSpecificQcow2) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type ImageInfoSpecificVMDK

type ImageInfoSpecificVMDK struct {
	CreateType string      `json:"create-type"`
	Cid        int64       `json:"cid"`
	ParentCid  int64       `json:"parent-cid"`
	Extents    []ImageInfo `json:"extents"`
}

ImageInfoSpecificVMDK implements the "ImageInfoSpecificVmdk" QMP API type.

func (ImageInfoSpecificVMDK) MarshalJSON

func (s ImageInfoSpecificVMDK) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type InetSocketAddress

type InetSocketAddress struct {
	Host    string  `json:"host"`
	Port    string  `json:"port"`
	Numeric *bool   `json:"numeric,omitempty"`
	To      *uint16 `json:"to,omitempty"`
	Ipv4    *bool   `json:"ipv4,omitempty"`
	Ipv6    *bool   `json:"ipv6,omitempty"`
}

InetSocketAddress implements the "InetSocketAddress" QMP API type.

type InetSocketAddressBase

type InetSocketAddressBase struct {
	Host string `json:"host"`
	Port string `json:"port"`
}

InetSocketAddressBase implements the "InetSocketAddressBase" QMP API type.

type InputAxis

type InputAxis int

InputAxis implements the "InputAxis" QMP API type.

const (
	InputAxisX InputAxis = iota
	InputAxisY
)

Known values of InputAxis.

func (InputAxis) MarshalJSON

func (e InputAxis) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (InputAxis) String

func (e InputAxis) String() string

String implements fmt.Stringer.

func (*InputAxis) UnmarshalJSON

func (e *InputAxis) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type InputBtnEvent

type InputBtnEvent struct {
	Button InputButton `json:"button"`
	Down   bool        `json:"down"`
}

InputBtnEvent implements the "InputBtnEvent" QMP API type.

type InputButton

type InputButton int

InputButton implements the "InputButton" QMP API type.

const (
	InputButtonLeft InputButton = iota
	InputButtonMiddle
	InputButtonRight
	InputButtonWheelUp
	InputButtonWheelDown
	InputButtonSide
	InputButtonExtra
)

Known values of InputButton.

func (InputButton) MarshalJSON

func (e InputButton) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (InputButton) String

func (e InputButton) String() string

String implements fmt.Stringer.

func (*InputButton) UnmarshalJSON

func (e *InputButton) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type InputEvent

type InputEvent interface {
	// contains filtered or unexported methods
}

InputEvent implements the "InputEvent" QMP API type.

Can be one of:

  • InputEventAbs
  • InputEventBtn
  • InputEventKey
  • InputEventRel

type InputEventAbs

type InputEventAbs InputMoveEvent

InputEventAbs is an implementation of InputEvent.

func (InputEventAbs) MarshalJSON

func (s InputEventAbs) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type InputEventBtn

type InputEventBtn InputBtnEvent

InputEventBtn is an implementation of InputEvent.

func (InputEventBtn) MarshalJSON

func (s InputEventBtn) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type InputEventKey

type InputEventKey InputKeyEvent

InputEventKey is an implementation of InputEvent.

func (InputEventKey) MarshalJSON

func (s InputEventKey) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type InputEventRel

type InputEventRel InputMoveEvent

InputEventRel is an implementation of InputEvent.

func (InputEventRel) MarshalJSON

func (s InputEventRel) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type InputKeyEvent

type InputKeyEvent struct {
	Key  KeyValue `json:"key"`
	Down bool     `json:"down"`
}

InputKeyEvent implements the "InputKeyEvent" QMP API type.

func (*InputKeyEvent) UnmarshalJSON

func (s *InputKeyEvent) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type InputMoveEvent

type InputMoveEvent struct {
	Axis  InputAxis `json:"axis"`
	Value int64     `json:"value"`
}

InputMoveEvent implements the "InputMoveEvent" QMP API type.

type IsNullable

type IsNullable interface {
	// contains filtered or unexported methods
}

IsNullable is implemented by any JSON null type

type IscsiHeaderDigest

type IscsiHeaderDigest int

IscsiHeaderDigest implements the "IscsiHeaderDigest" QMP API type.

const (
	IscsiHeaderDigestCrc32C IscsiHeaderDigest = iota
	IscsiHeaderDigestNone
	IscsiHeaderDigestCrc32CNone
	IscsiHeaderDigestNoneCrc32C
)

Known values of IscsiHeaderDigest.

func (IscsiHeaderDigest) MarshalJSON

func (e IscsiHeaderDigest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (IscsiHeaderDigest) String

func (e IscsiHeaderDigest) String() string

String implements fmt.Stringer.

func (*IscsiHeaderDigest) UnmarshalJSON

func (e *IscsiHeaderDigest) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type IscsiTransport

type IscsiTransport int

IscsiTransport implements the "IscsiTransport" QMP API type.

const (
	IscsiTransportTCP IscsiTransport = iota
	IscsiTransportIser
)

Known values of IscsiTransport.

func (IscsiTransport) MarshalJSON

func (e IscsiTransport) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (IscsiTransport) String

func (e IscsiTransport) String() string

String implements fmt.Stringer.

func (*IscsiTransport) UnmarshalJSON

func (e *IscsiTransport) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type JSONType

type JSONType int

JSONType implements the "JSONType" QMP API type.

const (
	JSONTypeString JSONType = iota
	JSONTypefloat64
	JSONTypeint64
	JSONTypeBoolean
	JSONTypeNull
	JSONTypeObject
	JSONTypeArray
	JSONTypeValue
)

Known values of JSONType.

func (JSONType) MarshalJSON

func (e JSONType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (JSONType) String

func (e JSONType) String() string

String implements fmt.Stringer.

func (*JSONType) UnmarshalJSON

func (e *JSONType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type KVMInfo

type KVMInfo struct {
	Enabled bool `json:"enabled"`
	Present bool `json:"present"`
}

KVMInfo implements the "KvmInfo" QMP API type.

type KeyValue

type KeyValue interface {
	// contains filtered or unexported methods
}

KeyValue implements the "KeyValue" QMP API type.

Can be one of:

  • KeyValuefloat64
  • KeyValueQcode

type KeyValueQcode

type KeyValueQcode QKeyCode

KeyValueQcode is an implementation of KeyValue.

func (KeyValueQcode) MarshalJSON

func (s KeyValueQcode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type KeyValuefloat64

type KeyValuefloat64 int64

KeyValuefloat64 is an implementation of KeyValue.

func (KeyValuefloat64) MarshalJSON

func (s KeyValuefloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type MachineInfo

type MachineInfo struct {
	Name             string  `json:"name"`
	Alias            *string `json:"alias,omitempty"`
	IsDefault        *bool   `json:"is-default,omitempty"`
	CPUMax           int64   `json:"cpu-max"`
	HotpluggableCpus bool    `json:"hotpluggable-cpus"`
}

MachineInfo implements the "MachineInfo" QMP API type.

type Memdev

type Memdev struct {
	ID        *string       `json:"id,omitempty"`
	Size      uint64        `json:"size"`
	Merge     bool          `json:"merge"`
	Dump      bool          `json:"dump"`
	Prealloc  bool          `json:"prealloc"`
	HostNodes []uint16      `json:"host-nodes"`
	Policy    HostMemPolicy `json:"policy"`
}

Memdev implements the "Memdev" QMP API type.

type MemoryDeviceInfo

type MemoryDeviceInfo interface {
	// contains filtered or unexported methods
}

MemoryDeviceInfo implements the "MemoryDeviceInfo" QMP API type.

Can be one of:

  • MemoryDeviceInfoDimm

type MemoryDeviceInfoDimm

type MemoryDeviceInfoDimm PcdimmDeviceInfo

MemoryDeviceInfoDimm is an implementation of MemoryDeviceInfo.

func (MemoryDeviceInfoDimm) MarshalJSON

func (s MemoryDeviceInfoDimm) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type MemoryInfo

type MemoryInfo struct {
	BaseMemory    uint64  `json:"base-memory"`
	PluggedMemory *uint64 `json:"plugged-memory,omitempty"`
}

MemoryInfo implements the "MemoryInfo" QMP API type.

type MigrateSetParameters

type MigrateSetParameters struct {
	CompressLevel        *int64    `json:"compress-level,omitempty"`
	CompressThreads      *int64    `json:"compress-threads,omitempty"`
	DecompressThreads    *int64    `json:"decompress-threads,omitempty"`
	CPUThrottleInitial   *int64    `json:"cpu-throttle-initial,omitempty"`
	CPUThrottleIncrement *int64    `json:"cpu-throttle-increment,omitempty"`
	TLSCreds             StrOrNull `json:"tls-creds,omitempty"`
	TLSHostname          StrOrNull `json:"tls-hostname,omitempty"`
	MaxBandwidth         *int64    `json:"max-bandwidth,omitempty"`
	DowntimeLimit        *int64    `json:"downtime-limit,omitempty"`
	XCheckpointDelay     *int64    `json:"x-checkpoint-delay,omitempty"`
	BlockIncremental     *bool     `json:"block-incremental,omitempty"`
	XMultifdChannels     *int64    `json:"x-multifd-channels,omitempty"`
	XMultifdPageCount    *int64    `json:"x-multifd-page-count,omitempty"`
	XbzrleCacheSize      *uint64   `json:"xbzrle-cache-size,omitempty"`
}

MigrateSetParameters implements the "MigrateSetParameters" QMP API type.

func (*MigrateSetParameters) UnmarshalJSON

func (s *MigrateSetParameters) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type MigrationCapability

type MigrationCapability int

MigrationCapability implements the "MigrationCapability" QMP API type.

const (
	MigrationCapabilityXbzrle MigrationCapability = iota
	MigrationCapabilityRdmaPinAll
	MigrationCapabilityAutoConverge
	MigrationCapabilityZeroBlocks
	MigrationCapabilityCompress
	MigrationCapabilityEvents
	MigrationCapabilityPostcopyRAM
	MigrationCapabilityXColo
	MigrationCapabilityReleaseRAM
	MigrationCapabilityBlock
	MigrationCapabilityReturnPath
	MigrationCapabilityPauseBeforeSwitchover
	MigrationCapabilityXMultifd
)

Known values of MigrationCapability.

func (MigrationCapability) MarshalJSON

func (e MigrationCapability) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (MigrationCapability) String

func (e MigrationCapability) String() string

String implements fmt.Stringer.

func (*MigrationCapability) UnmarshalJSON

func (e *MigrationCapability) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type MigrationCapabilityStatus

type MigrationCapabilityStatus struct {
	Capability MigrationCapability `json:"capability"`
	State      bool                `json:"state"`
}

MigrationCapabilityStatus implements the "MigrationCapabilityStatus" QMP API type.

type MigrationInfo

type MigrationInfo struct {
	Status                *MigrationStatus  `json:"status,omitempty"`
	RAM                   *MigrationStats   `json:"ram,omitempty"`
	Disk                  *MigrationStats   `json:"disk,omitempty"`
	XbzrleCache           *XbzrleCacheStats `json:"xbzrle-cache,omitempty"`
	TotalTime             *int64            `json:"total-time,omitempty"`
	ExpectedDowntime      *int64            `json:"expected-downtime,omitempty"`
	Downtime              *int64            `json:"downtime,omitempty"`
	SetupTime             *int64            `json:"setup-time,omitempty"`
	CPUThrottlePercentage *int64            `json:"cpu-throttle-percentage,omitempty"`
	ErrorDesc             *string           `json:"error-desc,omitempty"`
}

MigrationInfo implements the "MigrationInfo" QMP API type.

type MigrationParameters

type MigrationParameters struct {
	CompressLevel        *int64  `json:"compress-level,omitempty"`
	CompressThreads      *int64  `json:"compress-threads,omitempty"`
	DecompressThreads    *int64  `json:"decompress-threads,omitempty"`
	CPUThrottleInitial   *int64  `json:"cpu-throttle-initial,omitempty"`
	CPUThrottleIncrement *int64  `json:"cpu-throttle-increment,omitempty"`
	TLSCreds             *string `json:"tls-creds,omitempty"`
	TLSHostname          *string `json:"tls-hostname,omitempty"`
	MaxBandwidth         *int64  `json:"max-bandwidth,omitempty"`
	DowntimeLimit        *int64  `json:"downtime-limit,omitempty"`
	XCheckpointDelay     *int64  `json:"x-checkpoint-delay,omitempty"`
	BlockIncremental     *bool   `json:"block-incremental,omitempty"`
	XMultifdChannels     *int64  `json:"x-multifd-channels,omitempty"`
	XMultifdPageCount    *int64  `json:"x-multifd-page-count,omitempty"`
	XbzrleCacheSize      *uint64 `json:"xbzrle-cache-size,omitempty"`
}

MigrationParameters implements the "MigrationParameters" QMP API type.

type MigrationStats

type MigrationStats struct {
	Transferred      int64   `json:"transferred"`
	Remaining        int64   `json:"remaining"`
	Total            int64   `json:"total"`
	Duplicate        int64   `json:"duplicate"`
	Skipped          int64   `json:"skipped"`
	Normal           int64   `json:"normal"`
	NormalBytes      int64   `json:"normal-bytes"`
	DirtyPagesRate   int64   `json:"dirty-pages-rate"`
	Mbps             float64 `json:"mbps"`
	DirtySyncCount   int64   `json:"dirty-sync-count"`
	PostcopyRequests int64   `json:"postcopy-requests"`
	PageSize         int64   `json:"page-size"`
}

MigrationStats implements the "MigrationStats" QMP API type.

type MigrationStatus

type MigrationStatus int

MigrationStatus implements the "MigrationStatus" QMP API type.

const (
	MigrationStatusNone MigrationStatus = iota
	MigrationStatusSetup
	MigrationStatusCancelling
	MigrationStatusCancelled
	MigrationStatusActive
	MigrationStatusPostcopyActive
	MigrationStatusCompleted
	MigrationStatusFailed
	MigrationStatusColo
	MigrationStatusPreSwitchover
	MigrationStatusDevice
)

Known values of MigrationStatus.

func (MigrationStatus) MarshalJSON

func (e MigrationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (MigrationStatus) String

func (e MigrationStatus) String() string

String implements fmt.Stringer.

func (*MigrationStatus) UnmarshalJSON

func (e *MigrationStatus) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type MirrorSyncMode

type MirrorSyncMode int

MirrorSyncMode implements the "MirrorSyncMode" QMP API type.

const (
	MirrorSyncModeTop MirrorSyncMode = iota
	MirrorSyncModeFull
	MirrorSyncModeNone
	MirrorSyncModeIncremental
)

Known values of MirrorSyncMode.

func (MirrorSyncMode) MarshalJSON

func (e MirrorSyncMode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (MirrorSyncMode) String

func (e MirrorSyncMode) String() string

String implements fmt.Stringer.

func (*MirrorSyncMode) UnmarshalJSON

func (e *MirrorSyncMode) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Monitor

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

Monitor exposes the raw QMP command set.

func NewMonitor

func NewMonitor(mon qmp.Monitor) *Monitor

NewMonitor wraps a qmp.Monitor into a raw.Monitor.

func (*Monitor) AddClient

func (m *Monitor) AddClient(protocol string, fdname string, skipauth *bool, tls *bool) (err error)

AddClient implements the "add_client" QMP API call.

func (*Monitor) AddFD

func (m *Monitor) AddFD(fdsetID *int64, opaque *string) (ret AddfdInfo, err error)

AddFD implements the "add-fd" QMP API call.

func (*Monitor) Balloon

func (m *Monitor) Balloon(value int64) (err error)

Balloon implements the "balloon" QMP API call.

func (*Monitor) BlockCommit

func (m *Monitor) BlockCommit(jobID *string, device string, base *string, top *string, backingFile *string, speed *int64, filterNodeName *string) (err error)

BlockCommit implements the "block-commit" QMP API call.

func (*Monitor) BlockDirtyBitmapAdd

func (m *Monitor) BlockDirtyBitmapAdd(node string, name string, granularity *uint32, persistent *bool, autoload *bool) (err error)

BlockDirtyBitmapAdd implements the "block-dirty-bitmap-add" QMP API call.

func (*Monitor) BlockDirtyBitmapClear

func (m *Monitor) BlockDirtyBitmapClear(node string, name string) (err error)

BlockDirtyBitmapClear implements the "block-dirty-bitmap-clear" QMP API call.

func (*Monitor) BlockDirtyBitmapRemove

func (m *Monitor) BlockDirtyBitmapRemove(node string, name string) (err error)

BlockDirtyBitmapRemove implements the "block-dirty-bitmap-remove" QMP API call.

func (*Monitor) BlockJobCancel

func (m *Monitor) BlockJobCancel(device string, force *bool) (err error)

BlockJobCancel implements the "block-job-cancel" QMP API call.

func (*Monitor) BlockJobComplete

func (m *Monitor) BlockJobComplete(device string) (err error)

BlockJobComplete implements the "block-job-complete" QMP API call.

func (*Monitor) BlockJobPause

func (m *Monitor) BlockJobPause(device string) (err error)

BlockJobPause implements the "block-job-pause" QMP API call.

func (*Monitor) BlockJobResume

func (m *Monitor) BlockJobResume(device string) (err error)

BlockJobResume implements the "block-job-resume" QMP API call.

func (*Monitor) BlockJobSetSpeed

func (m *Monitor) BlockJobSetSpeed(device string, speed int64) (err error)

BlockJobSetSpeed implements the "block-job-set-speed" QMP API call.

func (*Monitor) BlockPasswd

func (m *Monitor) BlockPasswd(device *string, nodeName *string, password string) (err error)

BlockPasswd implements the "block_passwd" QMP API call.

func (*Monitor) BlockResize

func (m *Monitor) BlockResize(device *string, nodeName *string, size int64) (err error)

BlockResize implements the "block_resize" QMP API call.

func (*Monitor) BlockSetIOThrottle

func (m *Monitor) BlockSetIOThrottle(cmd *BlockIOThrottle) (err error)

BlockSetIOThrottle implements the "block_set_io_throttle" QMP API call.

func (*Monitor) BlockSetWriteThreshold

func (m *Monitor) BlockSetWriteThreshold(nodeName string, writeThreshold uint64) (err error)

BlockSetWriteThreshold implements the "block-set-write-threshold" QMP API call.

func (*Monitor) BlockStream

func (m *Monitor) BlockStream(jobID *string, device string, base *string, baseNode *string, backingFile *string, speed *int64, onError *BlockdevOnError) (err error)

BlockStream implements the "block-stream" QMP API call.

func (*Monitor) BlockdevAdd

func (m *Monitor) BlockdevAdd(cmd *BlockdevOptions) (err error)

BlockdevAdd implements the "blockdev-add" QMP API call.

func (*Monitor) BlockdevBackup

func (m *Monitor) BlockdevBackup(cmd *BlockdevBackup) (err error)

BlockdevBackup implements the "blockdev-backup" QMP API call.

func (*Monitor) BlockdevChangeMedium

func (m *Monitor) BlockdevChangeMedium(device *string, id *string, filename string, format *string, readOnlyMode *BlockdevChangeReadOnlyMode) (err error)

BlockdevChangeMedium implements the "blockdev-change-medium" QMP API call.

func (*Monitor) BlockdevCloseTray

func (m *Monitor) BlockdevCloseTray(device *string, id *string) (err error)

BlockdevCloseTray implements the "blockdev-close-tray" QMP API call.

func (*Monitor) BlockdevDel

func (m *Monitor) BlockdevDel(nodeName string) (err error)

BlockdevDel implements the "blockdev-del" QMP API call.

func (*Monitor) BlockdevMirror

func (m *Monitor) BlockdevMirror(jobID *string, device string, target string, replaces *string, sync MirrorSyncMode, speed *int64, granularity *uint32, bufSize *int64, onSourceError *BlockdevOnError, onTargetError *BlockdevOnError, filterNodeName *string) (err error)

BlockdevMirror implements the "blockdev-mirror" QMP API call.

func (*Monitor) BlockdevOpenTray

func (m *Monitor) BlockdevOpenTray(device *string, id *string, force *bool) (err error)

BlockdevOpenTray implements the "blockdev-open-tray" QMP API call.

func (*Monitor) BlockdevSnapshot

func (m *Monitor) BlockdevSnapshot(node string, overlay string) (err error)

BlockdevSnapshot implements the "blockdev-snapshot" QMP API call.

func (*Monitor) BlockdevSnapshotDeleteInternalSync

func (m *Monitor) BlockdevSnapshotDeleteInternalSync(device string, id *string, name *string) (ret SnapshotInfo, err error)

BlockdevSnapshotDeleteInternalSync implements the "blockdev-snapshot-delete-internal-sync" QMP API call.

func (*Monitor) BlockdevSnapshotInternalSync

func (m *Monitor) BlockdevSnapshotInternalSync(device string, name string) (err error)

BlockdevSnapshotInternalSync implements the "blockdev-snapshot-internal-sync" QMP API call.

func (*Monitor) BlockdevSnapshotSync

func (m *Monitor) BlockdevSnapshotSync(device *string, nodeName *string, snapshotFile string, snapshotNodeName *string, format *string, mode *NewImageMode) (err error)

BlockdevSnapshotSync implements the "blockdev-snapshot-sync" QMP API call.

func (*Monitor) CPU

func (m *Monitor) CPU(index int64) (err error)

CPU implements the "cpu" QMP API call.

func (*Monitor) CPUAdd

func (m *Monitor) CPUAdd(id int64) (err error)

CPUAdd implements the "cpu-add" QMP API call.

func (*Monitor) Change

func (m *Monitor) Change(device string, target string, arg *string) (err error)

Change implements the "change" QMP API call.

func (*Monitor) ChangeBackingFile

func (m *Monitor) ChangeBackingFile(device string, imageNodeName string, backingFile string) (err error)

ChangeBackingFile implements the "change-backing-file" QMP API call.

func (*Monitor) ChangeVNCPassword

func (m *Monitor) ChangeVNCPassword(password string) (err error)

ChangeVNCPassword implements the "change-vnc-password" QMP API call.

func (*Monitor) ChardevAdd

func (m *Monitor) ChardevAdd(id string, backend ChardevBackend) (ret ChardevReturn, err error)

ChardevAdd implements the "chardev-add" QMP API call.

func (*Monitor) ChardevChange

func (m *Monitor) ChardevChange(id string, backend ChardevBackend) (ret ChardevReturn, err error)

ChardevChange implements the "chardev-change" QMP API call.

func (*Monitor) ChardevRemove

func (m *Monitor) ChardevRemove(id string) (err error)

ChardevRemove implements the "chardev-remove" QMP API call.

func (*Monitor) ChardevSendBreak

func (m *Monitor) ChardevSendBreak(id string) (err error)

ChardevSendBreak implements the "chardev-send-break" QMP API call.

func (*Monitor) ClientMigrateInfo

func (m *Monitor) ClientMigrateInfo(protocol string, hostname string, port *int64, tlsPort *int64, certSubject *string) (err error)

ClientMigrateInfo implements the "client_migrate_info" QMP API call.

func (*Monitor) Closefd

func (m *Monitor) Closefd(fdname string) (err error)

Closefd implements the "closefd" QMP API call.

func (*Monitor) Cont

func (m *Monitor) Cont() (err error)

Cont implements the "cont" QMP API call.

func (*Monitor) DeviceAdd

func (m *Monitor) DeviceAdd(driver string, bus *string, id *string) (err error)

DeviceAdd implements the "device_add" QMP API call.

func (*Monitor) DeviceDel

func (m *Monitor) DeviceDel(id string) (err error)

DeviceDel implements the "device_del" QMP API call.

func (*Monitor) DeviceListProperties

func (m *Monitor) DeviceListProperties(typename string) (ret []DevicePropertyInfo, err error)

DeviceListProperties implements the "device-list-properties" QMP API call.

func (*Monitor) DriveBackup

func (m *Monitor) DriveBackup(cmd *DriveBackup) (err error)

DriveBackup implements the "drive-backup" QMP API call.

func (*Monitor) DriveMirror

func (m *Monitor) DriveMirror(cmd *DriveMirror) (err error)

DriveMirror implements the "drive-mirror" QMP API call.

func (*Monitor) DumpGuestMemory

func (m *Monitor) DumpGuestMemory(paging bool, protocol string, detach *bool, begin *int64, length *int64, format *DumpGuestMemoryFormat) (err error)

DumpGuestMemory implements the "dump-guest-memory" QMP API call.

func (*Monitor) DumpSkeys

func (m *Monitor) DumpSkeys(filename string) (err error)

DumpSkeys implements the "dump-skeys" QMP API call.

func (*Monitor) Eject

func (m *Monitor) Eject(device *string, id *string, force *bool) (err error)

Eject implements the "eject" QMP API call.

func (*Monitor) ExpirePassword

func (m *Monitor) ExpirePassword(protocol string, time string) (err error)

ExpirePassword implements the "expire_password" QMP API call.

func (*Monitor) Getfd

func (m *Monitor) Getfd(fdname string) (err error)

Getfd implements the "getfd" QMP API call.

func (*Monitor) HumanMonitorCommand

func (m *Monitor) HumanMonitorCommand(commandLine string, cpuIndex *int64) (ret string, err error)

HumanMonitorCommand implements the "human-monitor-command" QMP API call.

func (*Monitor) InjectNmi

func (m *Monitor) InjectNmi() (err error)

InjectNmi implements the "inject-nmi" QMP API call.

func (*Monitor) InputSendEvent

func (m *Monitor) InputSendEvent(device *string, head *int64, events []InputEvent) (err error)

InputSendEvent implements the "input-send-event" QMP API call.

func (*Monitor) Memsave

func (m *Monitor) Memsave(val int64, size int64, filename string, cpuIndex *int64) (err error)

Memsave implements the "memsave" QMP API call.

func (*Monitor) Migrate

func (m *Monitor) Migrate(uri string, blk *bool, inc *bool, detach *bool) (err error)

Migrate implements the "migrate" QMP API call.

func (*Monitor) MigrateCancel

func (m *Monitor) MigrateCancel() (err error)

MigrateCancel implements the "migrate_cancel" QMP API call.

func (*Monitor) MigrateContinue

func (m *Monitor) MigrateContinue(state MigrationStatus) (err error)

MigrateContinue implements the "migrate-continue" QMP API call.

func (*Monitor) MigrateIncoming

func (m *Monitor) MigrateIncoming(uri string) (err error)

MigrateIncoming implements the "migrate-incoming" QMP API call.

func (*Monitor) MigrateSetCacheSize

func (m *Monitor) MigrateSetCacheSize(value int64) (err error)

MigrateSetCacheSize implements the "migrate-set-cache-size" QMP API call.

func (*Monitor) MigrateSetCapabilities

func (m *Monitor) MigrateSetCapabilities(capabilities []MigrationCapabilityStatus) (err error)

MigrateSetCapabilities implements the "migrate-set-capabilities" QMP API call.

func (*Monitor) MigrateSetDowntime

func (m *Monitor) MigrateSetDowntime(value float64) (err error)

MigrateSetDowntime implements the "migrate_set_downtime" QMP API call.

func (*Monitor) MigrateSetParameters

func (m *Monitor) MigrateSetParameters(cmd *MigrateSetParameters) (err error)

MigrateSetParameters implements the "migrate-set-parameters" QMP API call.

func (*Monitor) MigrateSetSpeed

func (m *Monitor) MigrateSetSpeed(value int64) (err error)

MigrateSetSpeed implements the "migrate_set_speed" QMP API call.

func (*Monitor) MigrateStartPostcopy

func (m *Monitor) MigrateStartPostcopy() (err error)

MigrateStartPostcopy implements the "migrate-start-postcopy" QMP API call.

func (*Monitor) NBDServerAdd

func (m *Monitor) NBDServerAdd(device string, writable *bool) (err error)

NBDServerAdd implements the "nbd-server-add" QMP API call.

func (*Monitor) NBDServerStart

func (m *Monitor) NBDServerStart(addr SocketAddressLegacy, tlsCreds *string) (err error)

NBDServerStart implements the "nbd-server-start" QMP API call.

func (*Monitor) NBDServerStop

func (m *Monitor) NBDServerStop() (err error)

NBDServerStop implements the "nbd-server-stop" QMP API call.

func (*Monitor) NetdevAdd

func (m *Monitor) NetdevAdd(typ string, id string) (err error)

NetdevAdd implements the "netdev_add" QMP API call.

func (*Monitor) NetdevDel

func (m *Monitor) NetdevDel(id string) (err error)

NetdevDel implements the "netdev_del" QMP API call.

func (*Monitor) ObjectAdd

func (m *Monitor) ObjectAdd(qomType string, id string, props *interface{}) (err error)

ObjectAdd implements the "object-add" QMP API call.

func (*Monitor) ObjectDel

func (m *Monitor) ObjectDel(id string) (err error)

ObjectDel implements the "object-del" QMP API call.

func (*Monitor) Pmemsave

func (m *Monitor) Pmemsave(val int64, size int64, filename string) (err error)

Pmemsave implements the "pmemsave" QMP API call.

func (*Monitor) QMPCapabilities

func (m *Monitor) QMPCapabilities() (err error)

QMPCapabilities implements the "qmp_capabilities" QMP API call.

func (*Monitor) QomGet

func (m *Monitor) QomGet(path string, property string) (ret interface{}, err error)

QomGet implements the "qom-get" QMP API call.

func (*Monitor) QomList

func (m *Monitor) QomList(path string) (ret []ObjectPropertyInfo, err error)

QomList implements the "qom-list" QMP API call.

func (*Monitor) QomListTypes

func (m *Monitor) QomListTypes(implements *string, abstract *bool) (ret []ObjectTypeInfo, err error)

QomListTypes implements the "qom-list-types" QMP API call.

func (*Monitor) QomSet

func (m *Monitor) QomSet(path string, property string, value interface{}) (err error)

QomSet implements the "qom-set" QMP API call.

func (*Monitor) QueryACPIOspmStatus

func (m *Monitor) QueryACPIOspmStatus() (ret []ACPIOSTInfo, err error)

QueryACPIOspmStatus implements the "query-acpi-ospm-status" QMP API call.

func (*Monitor) QueryBalloon

func (m *Monitor) QueryBalloon() (ret BalloonInfo, err error)

QueryBalloon implements the "query-balloon" QMP API call.

func (*Monitor) QueryBlock

func (m *Monitor) QueryBlock() (ret []BlockInfo, err error)

QueryBlock implements the "query-block" QMP API call.

func (*Monitor) QueryBlockJobs

func (m *Monitor) QueryBlockJobs() (ret []BlockJobInfo, err error)

QueryBlockJobs implements the "query-block-jobs" QMP API call.

func (*Monitor) QueryBlockstats

func (m *Monitor) QueryBlockstats(queryNodes *bool) (ret []BlockStats, err error)

QueryBlockstats implements the "query-blockstats" QMP API call.

func (*Monitor) QueryCPUDefinitions

func (m *Monitor) QueryCPUDefinitions() (ret []CPUDefinitionInfo, err error)

QueryCPUDefinitions implements the "query-cpu-definitions" QMP API call.

func (*Monitor) QueryCPUModelBaseline

func (m *Monitor) QueryCPUModelBaseline(modela CPUModelInfo, modelb CPUModelInfo) (ret CPUModelBaselineInfo, err error)

QueryCPUModelBaseline implements the "query-cpu-model-baseline" QMP API call.

func (*Monitor) QueryCPUModelComparison

func (m *Monitor) QueryCPUModelComparison(modela CPUModelInfo, modelb CPUModelInfo) (ret CPUModelCompareInfo, err error)

QueryCPUModelComparison implements the "query-cpu-model-comparison" QMP API call.

func (*Monitor) QueryCPUModelExpansion

func (m *Monitor) QueryCPUModelExpansion(typ CPUModelExpansionType, model CPUModelInfo) (ret CPUModelExpansionInfo, err error)

QueryCPUModelExpansion implements the "query-cpu-model-expansion" QMP API call.

func (*Monitor) QueryChardev

func (m *Monitor) QueryChardev() (ret []ChardevInfo, err error)

QueryChardev implements the "query-chardev" QMP API call.

func (*Monitor) QueryChardevBackends

func (m *Monitor) QueryChardevBackends() (ret []ChardevBackendInfo, err error)

QueryChardevBackends implements the "query-chardev-backends" QMP API call.

func (*Monitor) QueryCommandLineOptions

func (m *Monitor) QueryCommandLineOptions(option *string) (ret []CommandLineOptionInfo, err error)

QueryCommandLineOptions implements the "query-command-line-options" QMP API call.

func (*Monitor) QueryCommands

func (m *Monitor) QueryCommands() (ret []CommandInfo, err error)

QueryCommands implements the "query-commands" QMP API call.

func (*Monitor) QueryCpus

func (m *Monitor) QueryCpus() (ret []CPUInfo, err error)

QueryCpus implements the "query-cpus" QMP API call.

func (*Monitor) QueryDump

func (m *Monitor) QueryDump() (ret DumpQueryResult, err error)

QueryDump implements the "query-dump" QMP API call.

func (*Monitor) QueryDumpGuestMemoryCapability

func (m *Monitor) QueryDumpGuestMemoryCapability() (ret DumpGuestMemoryCapability, err error)

QueryDumpGuestMemoryCapability implements the "query-dump-guest-memory-capability" QMP API call.

func (*Monitor) QueryEvents

func (m *Monitor) QueryEvents() (ret []EventInfo, err error)

QueryEvents implements the "query-events" QMP API call.

func (*Monitor) QueryFdsets

func (m *Monitor) QueryFdsets() (ret []FdsetInfo, err error)

QueryFdsets implements the "query-fdsets" QMP API call.

func (*Monitor) QueryGicCapabilities

func (m *Monitor) QueryGicCapabilities() (ret []GicCapability, err error)

QueryGicCapabilities implements the "query-gic-capabilities" QMP API call.

func (*Monitor) QueryHotpluggableCpus

func (m *Monitor) QueryHotpluggableCpus() (ret []HotpluggableCPU, err error)

QueryHotpluggableCpus implements the "query-hotpluggable-cpus" QMP API call.

func (*Monitor) QueryIothreads

func (m *Monitor) QueryIothreads() (ret []IOThreadInfo, err error)

QueryIothreads implements the "query-iothreads" QMP API call.

func (*Monitor) QueryKVM

func (m *Monitor) QueryKVM() (ret KVMInfo, err error)

QueryKVM implements the "query-kvm" QMP API call.

func (*Monitor) QueryMachines

func (m *Monitor) QueryMachines() (ret []MachineInfo, err error)

QueryMachines implements the "query-machines" QMP API call.

func (*Monitor) QueryMemdev

func (m *Monitor) QueryMemdev() (ret []Memdev, err error)

QueryMemdev implements the "query-memdev" QMP API call.

func (*Monitor) QueryMemoryDevices

func (m *Monitor) QueryMemoryDevices() (ret []MemoryDeviceInfo, err error)

QueryMemoryDevices implements the "query-memory-devices" QMP API call.

func (*Monitor) QueryMemorySizeSummary

func (m *Monitor) QueryMemorySizeSummary() (ret MemoryInfo, err error)

QueryMemorySizeSummary implements the "query-memory-size-summary" QMP API call.

func (*Monitor) QueryMice

func (m *Monitor) QueryMice() (ret []MouseInfo, err error)

QueryMice implements the "query-mice" QMP API call.

func (*Monitor) QueryMigrate

func (m *Monitor) QueryMigrate() (ret MigrationInfo, err error)

QueryMigrate implements the "query-migrate" QMP API call.

func (*Monitor) QueryMigrateCacheSize

func (m *Monitor) QueryMigrateCacheSize() (ret int64, err error)

QueryMigrateCacheSize implements the "query-migrate-cache-size" QMP API call.

func (*Monitor) QueryMigrateCapabilities

func (m *Monitor) QueryMigrateCapabilities() (ret []MigrationCapabilityStatus, err error)

QueryMigrateCapabilities implements the "query-migrate-capabilities" QMP API call.

func (*Monitor) QueryMigrateParameters

func (m *Monitor) QueryMigrateParameters() (ret MigrationParameters, err error)

QueryMigrateParameters implements the "query-migrate-parameters" QMP API call.

func (*Monitor) QueryName

func (m *Monitor) QueryName() (ret NameInfo, err error)

QueryName implements the "query-name" QMP API call.

func (*Monitor) QueryNamedBlockNodes

func (m *Monitor) QueryNamedBlockNodes() (ret []BlockDeviceInfo, err error)

QueryNamedBlockNodes implements the "query-named-block-nodes" QMP API call.

func (*Monitor) QueryPCI

func (m *Monitor) QueryPCI() (ret []PCIInfo, err error)

QueryPCI implements the "query-pci" QMP API call.

func (*Monitor) QueryQMPSchema

func (m *Monitor) QueryQMPSchema() (ret []SchemaInfo, err error)

QueryQMPSchema implements the "query-qmp-schema" QMP API call.

func (*Monitor) QueryRocker

func (m *Monitor) QueryRocker(name string) (ret RockerSwitch, err error)

QueryRocker implements the "query-rocker" QMP API call.

func (*Monitor) QueryRockerOfDpaFlows

func (m *Monitor) QueryRockerOfDpaFlows(name string, tblID *uint32) (ret []RockerOfDpaFlow, err error)

QueryRockerOfDpaFlows implements the "query-rocker-of-dpa-flows" QMP API call.

func (*Monitor) QueryRockerOfDpaGroups

func (m *Monitor) QueryRockerOfDpaGroups(name string, typ *uint8) (ret []RockerOfDpaGroup, err error)

QueryRockerOfDpaGroups implements the "query-rocker-of-dpa-groups" QMP API call.

func (*Monitor) QueryRockerPorts

func (m *Monitor) QueryRockerPorts(name string) (ret []RockerPort, err error)

QueryRockerPorts implements the "query-rocker-ports" QMP API call.

func (*Monitor) QueryRxFilter

func (m *Monitor) QueryRxFilter(name *string) (ret []RxFilterInfo, err error)

QueryRxFilter implements the "query-rx-filter" QMP API call.

func (*Monitor) QuerySpice

func (m *Monitor) QuerySpice() (ret SpiceInfo, err error)

QuerySpice implements the "query-spice" QMP API call.

func (*Monitor) QueryStatus

func (m *Monitor) QueryStatus() (ret StatusInfo, err error)

QueryStatus implements the "query-status" QMP API call.

func (*Monitor) QueryTPM

func (m *Monitor) QueryTPM() (ret []TPMInfo, err error)

QueryTPM implements the "query-tpm" QMP API call.

func (*Monitor) QueryTPMModels

func (m *Monitor) QueryTPMModels() (ret []TPMModel, err error)

QueryTPMModels implements the "query-tpm-models" QMP API call.

func (*Monitor) QueryTPMTypes

func (m *Monitor) QueryTPMTypes() (ret []TPMType, err error)

QueryTPMTypes implements the "query-tpm-types" QMP API call.

func (*Monitor) QueryTarget

func (m *Monitor) QueryTarget() (ret TargetInfo, err error)

QueryTarget implements the "query-target" QMP API call.

func (*Monitor) QueryUUID

func (m *Monitor) QueryUUID() (ret UUIDInfo, err error)

QueryUUID implements the "query-uuid" QMP API call.

func (*Monitor) QueryVMGenerationID

func (m *Monitor) QueryVMGenerationID() (ret GUIDInfo, err error)

QueryVMGenerationID implements the "query-vm-generation-id" QMP API call.

func (*Monitor) QueryVNC

func (m *Monitor) QueryVNC() (ret VNCInfo, err error)

QueryVNC implements the "query-vnc" QMP API call.

func (*Monitor) QueryVNCServers

func (m *Monitor) QueryVNCServers() (ret []VNCInfo2, err error)

QueryVNCServers implements the "query-vnc-servers" QMP API call.

func (*Monitor) QueryVersion

func (m *Monitor) QueryVersion() (ret VersionInfo, err error)

QueryVersion implements the "query-version" QMP API call.

func (*Monitor) QueryXenReplicationStatus

func (m *Monitor) QueryXenReplicationStatus() (ret ReplicationStatus, err error)

QueryXenReplicationStatus implements the "query-xen-replication-status" QMP API call.

func (*Monitor) Quit

func (m *Monitor) Quit() (err error)

Quit implements the "quit" QMP API call.

func (*Monitor) RemoveFD

func (m *Monitor) RemoveFD(fdsetID int64, fd *int64) (err error)

RemoveFD implements the "remove-fd" QMP API call.

func (*Monitor) RingbufRead

func (m *Monitor) RingbufRead(device string, size int64, format *DataFormat) (ret string, err error)

RingbufRead implements the "ringbuf-read" QMP API call.

func (*Monitor) RingbufWrite

func (m *Monitor) RingbufWrite(device string, data string, format *DataFormat) (err error)

RingbufWrite implements the "ringbuf-write" QMP API call.

func (*Monitor) RtcResetReinjection

func (m *Monitor) RtcResetReinjection() (err error)

RtcResetReinjection implements the "rtc-reset-reinjection" QMP API call.

func (*Monitor) Screendump

func (m *Monitor) Screendump(filename string) (err error)

Screendump implements the "screendump" QMP API call.

func (*Monitor) SendKey

func (m *Monitor) SendKey(keys []KeyValue, holdTime *int64) (err error)

SendKey implements the "send-key" QMP API call.

func (m *Monitor) SetLink(name string, up bool) (err error)

SetLink implements the "set_link" QMP API call.

func (*Monitor) SetPassword

func (m *Monitor) SetPassword(protocol string, password string, connected *string) (err error)

SetPassword implements the "set_password" QMP API call.

func (*Monitor) Stop

func (m *Monitor) Stop() (err error)

Stop implements the "stop" QMP API call.

func (*Monitor) SystemPowerdown

func (m *Monitor) SystemPowerdown() (err error)

SystemPowerdown implements the "system_powerdown" QMP API call.

func (*Monitor) SystemReset

func (m *Monitor) SystemReset() (err error)

SystemReset implements the "system_reset" QMP API call.

func (*Monitor) SystemWakeup

func (m *Monitor) SystemWakeup() (err error)

SystemWakeup implements the "system_wakeup" QMP API call.

func (*Monitor) TraceEventGetState

func (m *Monitor) TraceEventGetState(name string, vcpu *int64) (ret []TraceEventInfo, err error)

TraceEventGetState implements the "trace-event-get-state" QMP API call.

func (*Monitor) TraceEventSetState

func (m *Monitor) TraceEventSetState(name string, enable bool, ignoreUnavailable *bool, vcpu *int64) (err error)

TraceEventSetState implements the "trace-event-set-state" QMP API call.

func (*Monitor) Transaction

func (m *Monitor) Transaction(actions []TransactionAction, properties *TransactionProperties) (err error)

Transaction implements the "transaction" QMP API call.

func (*Monitor) WatchdogSetAction

func (m *Monitor) WatchdogSetAction(action WatchdogAction) (err error)

WatchdogSetAction implements the "watchdog-set-action" QMP API call.

func (*Monitor) XBlockdevChange

func (m *Monitor) XBlockdevChange(parent string, child *string, node *string) (err error)

XBlockdevChange implements the "x-blockdev-change" QMP API call.

func (*Monitor) XBlockdevInsertMedium

func (m *Monitor) XBlockdevInsertMedium(device *string, id *string, nodeName string) (err error)

XBlockdevInsertMedium implements the "x-blockdev-insert-medium" QMP API call.

func (*Monitor) XBlockdevRemoveMedium

func (m *Monitor) XBlockdevRemoveMedium(device *string, id *string) (err error)

XBlockdevRemoveMedium implements the "x-blockdev-remove-medium" QMP API call.

func (*Monitor) XColoLostHeartbeat

func (m *Monitor) XColoLostHeartbeat() (err error)

XColoLostHeartbeat implements the "x-colo-lost-heartbeat" QMP API call.

func (*Monitor) XDebugBlockDirtyBitmapSha256

func (m *Monitor) XDebugBlockDirtyBitmapSha256(node string, name string) (ret BlockDirtyBitmapSha256, err error)

XDebugBlockDirtyBitmapSha256 implements the "x-debug-block-dirty-bitmap-sha256" QMP API call.

func (*Monitor) XenColoDoCheckpoint

func (m *Monitor) XenColoDoCheckpoint() (err error)

XenColoDoCheckpoint implements the "xen-colo-do-checkpoint" QMP API call.

func (*Monitor) XenLoadDevicesState

func (m *Monitor) XenLoadDevicesState(filename string) (err error)

XenLoadDevicesState implements the "xen-load-devices-state" QMP API call.

func (*Monitor) XenSaveDevicesState

func (m *Monitor) XenSaveDevicesState(filename string, live *bool) (err error)

XenSaveDevicesState implements the "xen-save-devices-state" QMP API call.

func (*Monitor) XenSetGlobalDirtyLog

func (m *Monitor) XenSetGlobalDirtyLog(enable bool) (err error)

XenSetGlobalDirtyLog implements the "xen-set-global-dirty-log" QMP API call.

func (*Monitor) XenSetReplication

func (m *Monitor) XenSetReplication(enable bool, primary bool, failover *bool) (err error)

XenSetReplication implements the "xen-set-replication" QMP API call.

type MouseInfo

type MouseInfo struct {
	Name     string `json:"name"`
	Index    int64  `json:"index"`
	Current  bool   `json:"current"`
	Absolute bool   `json:"absolute"`
}

MouseInfo implements the "MouseInfo" QMP API type.

type NameInfo

type NameInfo struct {
	Name *string `json:"name,omitempty"`
}

NameInfo implements the "NameInfo" QMP API type.

type NetworkAddressFamily

type NetworkAddressFamily int

NetworkAddressFamily implements the "NetworkAddressFamily" QMP API type.

const (
	NetworkAddressFamilyIpv4 NetworkAddressFamily = iota
	NetworkAddressFamilyIpv6
	NetworkAddressFamilyUnix
	NetworkAddressFamilyVsock
	NetworkAddressFamilyUnknown
)

Known values of NetworkAddressFamily.

func (NetworkAddressFamily) MarshalJSON

func (e NetworkAddressFamily) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (NetworkAddressFamily) String

func (e NetworkAddressFamily) String() string

String implements fmt.Stringer.

func (*NetworkAddressFamily) UnmarshalJSON

func (e *NetworkAddressFamily) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type NewImageMode

type NewImageMode int

NewImageMode implements the "NewImageMode" QMP API type.

const (
	NewImageModeExisting NewImageMode = iota
	NewImageModeAbsolutePaths
)

Known values of NewImageMode.

func (NewImageMode) MarshalJSON

func (e NewImageMode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (NewImageMode) String

func (e NewImageMode) String() string

String implements fmt.Stringer.

func (*NewImageMode) UnmarshalJSON

func (e *NewImageMode) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type NfsServer

type NfsServer struct {
	Type NfsTransport `json:"type"`
	Host string       `json:"host"`
}

NfsServer implements the "NFSServer" QMP API type.

type NfsTransport

type NfsTransport int

NfsTransport implements the "NFSTransport" QMP API type.

const (
	NfsTransportInet NfsTransport = iota
)

Known values of NfsTransport.

func (NfsTransport) MarshalJSON

func (e NfsTransport) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (NfsTransport) String

func (e NfsTransport) String() string

String implements fmt.Stringer.

func (*NfsTransport) UnmarshalJSON

func (e *NfsTransport) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ObjectPropertyInfo

type ObjectPropertyInfo struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

ObjectPropertyInfo implements the "ObjectPropertyInfo" QMP API type.

type ObjectTypeInfo

type ObjectTypeInfo struct {
	Name     string  `json:"name"`
	Abstract *bool   `json:"abstract,omitempty"`
	Parent   *string `json:"parent,omitempty"`
}

ObjectTypeInfo implements the "ObjectTypeInfo" QMP API type.

type OnOffAuto

type OnOffAuto int

OnOffAuto implements the "OnOffAuto" QMP API type.

const (
	OnOffAutoAuto OnOffAuto = iota
	OnOffAutoOn
	OnOffAutoOff
)

Known values of OnOffAuto.

func (OnOffAuto) MarshalJSON

func (e OnOffAuto) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (OnOffAuto) String

func (e OnOffAuto) String() string

String implements fmt.Stringer.

func (*OnOffAuto) UnmarshalJSON

func (e *OnOffAuto) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type PCIBridgeInfo

type PCIBridgeInfo struct {
	Bus     PCIBusInfo      `json:"bus"`
	Devices []PCIDeviceInfo `json:"devices,omitempty"`
}

PCIBridgeInfo implements the "PciBridgeInfo" QMP API type.

type PCIBusInfo

type PCIBusInfo struct {
	Number            int64          `json:"number"`
	Secondary         int64          `json:"secondary"`
	Subordinate       int64          `json:"subordinate"`
	IORange           PCIMemoryRange `json:"io_range"`
	MemoryRange       PCIMemoryRange `json:"memory_range"`
	PrefetchableRange PCIMemoryRange `json:"prefetchable_range"`
}

PCIBusInfo implements the "PciBusInfo" QMP API type.

type PCIDeviceClass

type PCIDeviceClass struct {
	Desc  *string `json:"desc,omitempty"`
	Class int64   `json:"class"`
}

PCIDeviceClass implements the "PciDeviceClass" QMP API type.

type PCIDeviceID

type PCIDeviceID struct {
	Device int64 `json:"device"`
	Vendor int64 `json:"vendor"`
}

PCIDeviceID implements the "PciDeviceId" QMP API type.

type PCIDeviceInfo

type PCIDeviceInfo struct {
	Bus       int64             `json:"bus"`
	Slot      int64             `json:"slot"`
	Function  int64             `json:"function"`
	ClassInfo PCIDeviceClass    `json:"class_info"`
	ID        PCIDeviceID       `json:"id"`
	Irq       *int64            `json:"irq,omitempty"`
	QdevID    string            `json:"qdev_id"`
	PCIBridge *PCIBridgeInfo    `json:"pci_bridge,omitempty"`
	Regions   []PCIMemoryRegion `json:"regions"`
}

PCIDeviceInfo implements the "PciDeviceInfo" QMP API type.

type PCIInfo

type PCIInfo struct {
	Bus     int64           `json:"bus"`
	Devices []PCIDeviceInfo `json:"devices"`
}

PCIInfo implements the "PciInfo" QMP API type.

type PCIMemoryRange

type PCIMemoryRange struct {
	Base  int64 `json:"base"`
	Limit int64 `json:"limit"`
}

PCIMemoryRange implements the "PciMemoryRange" QMP API type.

type PCIMemoryRegion

type PCIMemoryRegion struct {
	Bar       int64  `json:"bar"`
	Type      string `json:"type"`
	Address   int64  `json:"address"`
	Size      int64  `json:"size"`
	Prefetch  *bool  `json:"prefetch,omitempty"`
	MemType64 *bool  `json:"mem_type_64,omitempty"`
}

PCIMemoryRegion implements the "PciMemoryRegion" QMP API type.

type PcdimmDeviceInfo

type PcdimmDeviceInfo struct {
	ID           *string `json:"id,omitempty"`
	Addr         int64   `json:"addr"`
	Size         int64   `json:"size"`
	Slot         int64   `json:"slot"`
	Node         int64   `json:"node"`
	Memdev       string  `json:"memdev"`
	Hotplugged   bool    `json:"hotplugged"`
	Hotpluggable bool    `json:"hotpluggable"`
}

PcdimmDeviceInfo implements the "PCDIMMDeviceInfo" QMP API type.

type QCryptoBlockInfoLUKS

type QCryptoBlockInfoLUKS struct {
	CipherAlg      QCryptoCipherAlgorithm     `json:"cipher-alg"`
	CipherMode     QCryptoCipherMode          `json:"cipher-mode"`
	IvgenAlg       QCryptoIvGenAlgorithm      `json:"ivgen-alg"`
	IvgenHashAlg   *QCryptoHashAlgorithm      `json:"ivgen-hash-alg,omitempty"`
	HashAlg        QCryptoHashAlgorithm       `json:"hash-alg"`
	PayloadOffset  int64                      `json:"payload-offset"`
	MasterKeyIters int64                      `json:"master-key-iters"`
	UUID           string                     `json:"uuid"`
	Slots          []QCryptoBlockInfoLUKSSlot `json:"slots"`
}

QCryptoBlockInfoLUKS implements the "QCryptoBlockInfoLUKS" QMP API type.

type QCryptoBlockInfoLUKSSlot

type QCryptoBlockInfoLUKSSlot struct {
	Active    bool   `json:"active"`
	Iters     *int64 `json:"iters,omitempty"`
	Stripes   *int64 `json:"stripes,omitempty"`
	KeyOffset int64  `json:"key-offset"`
}

QCryptoBlockInfoLUKSSlot implements the "QCryptoBlockInfoLUKSSlot" QMP API type.

type QCryptoCipherAlgorithm

type QCryptoCipherAlgorithm int

QCryptoCipherAlgorithm implements the "QCryptoCipherAlgorithm" QMP API type.

const (
	QCryptoCipherAlgorithmAes128 QCryptoCipherAlgorithm = iota
	QCryptoCipherAlgorithmAes192
	QCryptoCipherAlgorithmAes256
	QCryptoCipherAlgorithmDesRfb
	QCryptoCipherAlgorithm3Des
	QCryptoCipherAlgorithmCast5128
	QCryptoCipherAlgorithmSerpent128
	QCryptoCipherAlgorithmSerpent192
	QCryptoCipherAlgorithmSerpent256
	QCryptoCipherAlgorithmTwofish128
	QCryptoCipherAlgorithmTwofish192
	QCryptoCipherAlgorithmTwofish256
)

Known values of QCryptoCipherAlgorithm.

func (QCryptoCipherAlgorithm) MarshalJSON

func (e QCryptoCipherAlgorithm) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (QCryptoCipherAlgorithm) String

func (e QCryptoCipherAlgorithm) String() string

String implements fmt.Stringer.

func (*QCryptoCipherAlgorithm) UnmarshalJSON

func (e *QCryptoCipherAlgorithm) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type QCryptoCipherMode

type QCryptoCipherMode int

QCryptoCipherMode implements the "QCryptoCipherMode" QMP API type.

const (
	QCryptoCipherModeEcb QCryptoCipherMode = iota
	QCryptoCipherModeCbc
	QCryptoCipherModeXts
	QCryptoCipherModeCtr
)

Known values of QCryptoCipherMode.

func (QCryptoCipherMode) MarshalJSON

func (e QCryptoCipherMode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (QCryptoCipherMode) String

func (e QCryptoCipherMode) String() string

String implements fmt.Stringer.

func (*QCryptoCipherMode) UnmarshalJSON

func (e *QCryptoCipherMode) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type QCryptoHashAlgorithm

type QCryptoHashAlgorithm int

QCryptoHashAlgorithm implements the "QCryptoHashAlgorithm" QMP API type.

const (
	QCryptoHashAlgorithmMd5 QCryptoHashAlgorithm = iota
	QCryptoHashAlgorithmSha1
	QCryptoHashAlgorithmSha224
	QCryptoHashAlgorithmSha256
	QCryptoHashAlgorithmSha384
	QCryptoHashAlgorithmSha512
	QCryptoHashAlgorithmRipemd160
)

Known values of QCryptoHashAlgorithm.

func (QCryptoHashAlgorithm) MarshalJSON

func (e QCryptoHashAlgorithm) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (QCryptoHashAlgorithm) String

func (e QCryptoHashAlgorithm) String() string

String implements fmt.Stringer.

func (*QCryptoHashAlgorithm) UnmarshalJSON

func (e *QCryptoHashAlgorithm) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type QCryptoIvGenAlgorithm

type QCryptoIvGenAlgorithm int

QCryptoIvGenAlgorithm implements the "QCryptoIVGenAlgorithm" QMP API type.

const (
	QCryptoIvGenAlgorithmPlain QCryptoIvGenAlgorithm = iota
	QCryptoIvGenAlgorithmPlain64
	QCryptoIvGenAlgorithmEssiv
)

Known values of QCryptoIvGenAlgorithm.

func (QCryptoIvGenAlgorithm) MarshalJSON

func (e QCryptoIvGenAlgorithm) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (QCryptoIvGenAlgorithm) String

func (e QCryptoIvGenAlgorithm) String() string

String implements fmt.Stringer.

func (*QCryptoIvGenAlgorithm) UnmarshalJSON

func (e *QCryptoIvGenAlgorithm) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type QKeyCode

type QKeyCode int

QKeyCode implements the "QKeyCode" QMP API type.

const (
	QKeyCodeUnmapped QKeyCode = iota
	QKeyCodeShift
	QKeyCodeShiftR
	QKeyCodeAlt
	QKeyCodeAltR
	QKeyCodeCtrl
	QKeyCodeCtrlR
	QKeyCodeMenu
	QKeyCodeEsc
	QKeyCode1
	QKeyCode2
	QKeyCode3
	QKeyCode4
	QKeyCode5
	QKeyCode6
	QKeyCode7
	QKeyCode8
	QKeyCode9
	QKeyCode0
	QKeyCodeMinus
	QKeyCodeEqual
	QKeyCodeBackspace
	QKeyCodeTab
	QKeyCodeQ
	QKeyCodeW
	QKeyCodeE
	QKeyCodeR
	QKeyCodeT
	QKeyCodeY
	QKeyCodeU
	QKeyCodeI
	QKeyCodeO
	QKeyCodeP
	QKeyCodeBracketLeft
	QKeyCodeBracketRight
	QKeyCodeRet
	QKeyCodeA
	QKeyCodeS
	QKeyCodeD
	QKeyCodeF
	QKeyCodeG
	QKeyCodeH
	QKeyCodeJ
	QKeyCodeK
	QKeyCodeL
	QKeyCodeSemicolon
	QKeyCodeApostrophe
	QKeyCodeGraveAccent
	QKeyCodeBackslash
	QKeyCodeZ
	QKeyCodeX
	QKeyCodeC
	QKeyCodeV
	QKeyCodeB
	QKeyCodeN
	QKeyCodeM
	QKeyCodeComma
	QKeyCodeDot
	QKeyCodeSlash
	QKeyCodeAsterisk
	QKeyCodeSpc
	QKeyCodeCapsLock
	QKeyCodeF1
	QKeyCodeF2
	QKeyCodeF3
	QKeyCodeF4
	QKeyCodeF5
	QKeyCodeF6
	QKeyCodeF7
	QKeyCodeF8
	QKeyCodeF9
	QKeyCodeF10
	QKeyCodeNumLock
	QKeyCodeScrollLock
	QKeyCodeKpDivide
	QKeyCodeKpMultiply
	QKeyCodeKpSubtract
	QKeyCodeKpAdd
	QKeyCodeKpEnter
	QKeyCodeKpDecimal
	QKeyCodeSysrq
	QKeyCodeKp0
	QKeyCodeKp1
	QKeyCodeKp2
	QKeyCodeKp3
	QKeyCodeKp4
	QKeyCodeKp5
	QKeyCodeKp6
	QKeyCodeKp7
	QKeyCodeKp8
	QKeyCodeKp9
	QKeyCodeLess
	QKeyCodeF11
	QKeyCodeF12
	QKeyCodePrint
	QKeyCodeHome
	QKeyCodePgup
	QKeyCodePgdn
	QKeyCodeEnd
	QKeyCodeLeft
	QKeyCodeUp
	QKeyCodeDown
	QKeyCodeRight
	QKeyCodeInsert
	QKeyCodeDelete
	QKeyCodeStop
	QKeyCodeAgain
	QKeyCodeProps
	QKeyCodeUndo
	QKeyCodeFront
	QKeyCodeCopy
	QKeyCodeOpen
	QKeyCodePaste
	QKeyCodeFind
	QKeyCodeCut
	QKeyCodeLf
	QKeyCodeHelp
	QKeyCodeMetaL
	QKeyCodeMetaR
	QKeyCodeCompose
	QKeyCodePause
	QKeyCodeRo
	QKeyCodeHiragana
	QKeyCodeHenkan
	QKeyCodeYen
	QKeyCodeKpComma
	QKeyCodeKpEquals
	QKeyCodePower
	QKeyCodeSleep
	QKeyCodeWake
	QKeyCodeAudionext
	QKeyCodeAudioprev
	QKeyCodeAudiostop
	QKeyCodeAudioplay
	QKeyCodeAudiomute
	QKeyCodeVolumeup
	QKeyCodeVolumedown
	QKeyCodeMediaselect
	QKeyCodeMail
	QKeyCodeCalculator
	QKeyCodeComputer
	QKeyCodeAcHome
	QKeyCodeAcBack
	QKeyCodeAcForward
	QKeyCodeAcRefresh
	QKeyCodeAcBookmarks
)

Known values of QKeyCode.

func (QKeyCode) MarshalJSON

func (e QKeyCode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (QKeyCode) String

func (e QKeyCode) String() string

String implements fmt.Stringer.

func (*QKeyCode) UnmarshalJSON

func (e *QKeyCode) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Qcow2OverlapCheckFlags

type Qcow2OverlapCheckFlags struct {
	Template      *Qcow2OverlapCheckMode `json:"template,omitempty"`
	MainHeader    *bool                  `json:"main-header,omitempty"`
	ActiveL1      *bool                  `json:"active-l1,omitempty"`
	ActiveL2      *bool                  `json:"active-l2,omitempty"`
	RefcountTable *bool                  `json:"refcount-table,omitempty"`
	RefcountBlock *bool                  `json:"refcount-block,omitempty"`
	SnapshotTable *bool                  `json:"snapshot-table,omitempty"`
	InactiveL1    *bool                  `json:"inactive-l1,omitempty"`
	InactiveL2    *bool                  `json:"inactive-l2,omitempty"`
}

Qcow2OverlapCheckFlags implements the "Qcow2OverlapCheckFlags" QMP API type.

type Qcow2OverlapCheckMode

type Qcow2OverlapCheckMode int

Qcow2OverlapCheckMode implements the "Qcow2OverlapCheckMode" QMP API type.

const (
	Qcow2OverlapCheckModeNone Qcow2OverlapCheckMode = iota
	Qcow2OverlapCheckModeConstant
	Qcow2OverlapCheckModeCached
	Qcow2OverlapCheckModeAll
)

Known values of Qcow2OverlapCheckMode.

func (Qcow2OverlapCheckMode) MarshalJSON

func (e Qcow2OverlapCheckMode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Qcow2OverlapCheckMode) String

func (e Qcow2OverlapCheckMode) String() string

String implements fmt.Stringer.

func (*Qcow2OverlapCheckMode) UnmarshalJSON

func (e *Qcow2OverlapCheckMode) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Qcow2OverlapChecks

type Qcow2OverlapChecks interface {
	// contains filtered or unexported methods
}

Qcow2OverlapChecks implements the "Qcow2OverlapChecks" QMP API type.

Can be one of:

  • Qcow2OverlapChecksFlags
  • Qcow2OverlapChecksMode

type Qcow2OverlapChecksFlags

type Qcow2OverlapChecksFlags Qcow2OverlapCheckFlags

Qcow2OverlapChecksFlags is an implementation of Qcow2OverlapChecks

type Qcow2OverlapChecksMode

type Qcow2OverlapChecksMode Qcow2OverlapCheckMode

Qcow2OverlapChecksMode is an implementation of Qcow2OverlapChecks

type QuorumOpType

type QuorumOpType int

QuorumOpType implements the "QuorumOpType" QMP API type.

const (
	QuorumOpTypeRead QuorumOpType = iota
	QuorumOpTypeWrite
	QuorumOpTypeFlush
)

Known values of QuorumOpType.

func (QuorumOpType) MarshalJSON

func (e QuorumOpType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (QuorumOpType) String

func (e QuorumOpType) String() string

String implements fmt.Stringer.

func (*QuorumOpType) UnmarshalJSON

func (e *QuorumOpType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type QuorumReadPattern

type QuorumReadPattern int

QuorumReadPattern implements the "QuorumReadPattern" QMP API type.

const (
	QuorumReadPatternQuorum QuorumReadPattern = iota
	QuorumReadPatternFifo
)

Known values of QuorumReadPattern.

func (QuorumReadPattern) MarshalJSON

func (e QuorumReadPattern) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (QuorumReadPattern) String

func (e QuorumReadPattern) String() string

String implements fmt.Stringer.

func (*QuorumReadPattern) UnmarshalJSON

func (e *QuorumReadPattern) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ReplicationMode

type ReplicationMode int

ReplicationMode implements the "ReplicationMode" QMP API type.

const (
	ReplicationModePrimary ReplicationMode = iota
	ReplicationModeSecondary
)

Known values of ReplicationMode.

func (ReplicationMode) MarshalJSON

func (e ReplicationMode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (ReplicationMode) String

func (e ReplicationMode) String() string

String implements fmt.Stringer.

func (*ReplicationMode) UnmarshalJSON

func (e *ReplicationMode) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type ReplicationStatus

type ReplicationStatus struct {
	Error bool    `json:"error"`
	Desc  *string `json:"desc,omitempty"`
}

ReplicationStatus implements the "ReplicationStatus" QMP API type.

type RockerOfDpaFlow

type RockerOfDpaFlow struct {
	Cookie uint64                `json:"cookie"`
	Hits   uint64                `json:"hits"`
	Key    RockerOfDpaFlowKey    `json:"key"`
	Mask   RockerOfDpaFlowMask   `json:"mask"`
	Action RockerOfDpaFlowAction `json:"action"`
}

RockerOfDpaFlow implements the "RockerOfDpaFlow" QMP API type.

type RockerOfDpaFlowAction

type RockerOfDpaFlowAction struct {
	GotoTbl     *uint32 `json:"goto-tbl,omitempty"`
	GroupID     *uint32 `json:"group-id,omitempty"`
	TunnelLport *uint32 `json:"tunnel-lport,omitempty"`
	VlanID      *uint16 `json:"vlan-id,omitempty"`
	NewVlanID   *uint16 `json:"new-vlan-id,omitempty"`
	OutPport    *uint32 `json:"out-pport,omitempty"`
}

RockerOfDpaFlowAction implements the "RockerOfDpaFlowAction" QMP API type.

type RockerOfDpaFlowKey

type RockerOfDpaFlowKey struct {
	Priority uint32  `json:"priority"`
	TblID    uint32  `json:"tbl-id"`
	InPport  *uint32 `json:"in-pport,omitempty"`
	TunnelID *uint32 `json:"tunnel-id,omitempty"`
	VlanID   *uint16 `json:"vlan-id,omitempty"`
	EthType  *uint16 `json:"eth-type,omitempty"`
	EthSrc   *string `json:"eth-src,omitempty"`
	EthDst   *string `json:"eth-dst,omitempty"`
	IPProto  *uint8  `json:"ip-proto,omitempty"`
	IPTos    *uint8  `json:"ip-tos,omitempty"`
	IPDst    *string `json:"ip-dst,omitempty"`
}

RockerOfDpaFlowKey implements the "RockerOfDpaFlowKey" QMP API type.

type RockerOfDpaFlowMask

type RockerOfDpaFlowMask struct {
	InPport  *uint32 `json:"in-pport,omitempty"`
	TunnelID *uint32 `json:"tunnel-id,omitempty"`
	VlanID   *uint16 `json:"vlan-id,omitempty"`
	EthSrc   *string `json:"eth-src,omitempty"`
	EthDst   *string `json:"eth-dst,omitempty"`
	IPProto  *uint8  `json:"ip-proto,omitempty"`
	IPTos    *uint8  `json:"ip-tos,omitempty"`
}

RockerOfDpaFlowMask implements the "RockerOfDpaFlowMask" QMP API type.

type RockerOfDpaGroup

type RockerOfDpaGroup struct {
	ID        uint32   `json:"id"`
	Type      uint8    `json:"type"`
	VlanID    *uint16  `json:"vlan-id,omitempty"`
	Pport     *uint32  `json:"pport,omitempty"`
	Index     *uint32  `json:"index,omitempty"`
	OutPport  *uint32  `json:"out-pport,omitempty"`
	GroupID   *uint32  `json:"group-id,omitempty"`
	SetVlanID *uint16  `json:"set-vlan-id,omitempty"`
	PopVlan   *uint8   `json:"pop-vlan,omitempty"`
	GroupIds  []uint32 `json:"group-ids,omitempty"`
	SetEthSrc *string  `json:"set-eth-src,omitempty"`
	SetEthDst *string  `json:"set-eth-dst,omitempty"`
	TTLCheck  *uint8   `json:"ttl-check,omitempty"`
}

RockerOfDpaGroup implements the "RockerOfDpaGroup" QMP API type.

type RockerPort

type RockerPort struct {
	Name    string            `json:"name"`
	Enabled bool              `json:"enabled"`
	LinkUp  bool              `json:"link-up"`
	Speed   uint32            `json:"speed"`
	Duplex  RockerPortDuplex  `json:"duplex"`
	Autoneg RockerPortAutoneg `json:"autoneg"`
}

RockerPort implements the "RockerPort" QMP API type.

type RockerPortAutoneg

type RockerPortAutoneg int

RockerPortAutoneg implements the "RockerPortAutoneg" QMP API type.

const (
	RockerPortAutonegOff RockerPortAutoneg = iota
	RockerPortAutonegOn
)

Known values of RockerPortAutoneg.

func (RockerPortAutoneg) MarshalJSON

func (e RockerPortAutoneg) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (RockerPortAutoneg) String

func (e RockerPortAutoneg) String() string

String implements fmt.Stringer.

func (*RockerPortAutoneg) UnmarshalJSON

func (e *RockerPortAutoneg) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type RockerPortDuplex

type RockerPortDuplex int

RockerPortDuplex implements the "RockerPortDuplex" QMP API type.

const (
	RockerPortDuplexHalf RockerPortDuplex = iota
	RockerPortDuplexFull
)

Known values of RockerPortDuplex.

func (RockerPortDuplex) MarshalJSON

func (e RockerPortDuplex) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (RockerPortDuplex) String

func (e RockerPortDuplex) String() string

String implements fmt.Stringer.

func (*RockerPortDuplex) UnmarshalJSON

func (e *RockerPortDuplex) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type RockerSwitch

type RockerSwitch struct {
	Name  string `json:"name"`
	ID    uint64 `json:"id"`
	Ports uint32 `json:"ports"`
}

RockerSwitch implements the "RockerSwitch" QMP API type.

type RunState

type RunState int

RunState implements the "RunState" QMP API type.

const (
	RunStateDebug RunState = iota
	RunStateInmigrate
	RunStateInternalError
	RunStateIOError
	RunStatePaused
	RunStatePostmigrate
	RunStatePrelaunch
	RunStateFinishMigrate
	RunStateRestoreVM
	RunStateRunning
	RunStateSaveVM
	RunStateShutdown
	RunStateSuspended
	RunStateWatchdog
	RunStateGuestPanicked
	RunStateColo
)

Known values of RunState.

func (RunState) MarshalJSON

func (e RunState) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (RunState) String

func (e RunState) String() string

String implements fmt.Stringer.

func (*RunState) UnmarshalJSON

func (e *RunState) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type RxFilterInfo

type RxFilterInfo struct {
	Name              string   `json:"name"`
	Promiscuous       bool     `json:"promiscuous"`
	Multicast         RxState  `json:"multicast"`
	Unicast           RxState  `json:"unicast"`
	Vlan              RxState  `json:"vlan"`
	BroadcastAllowed  bool     `json:"broadcast-allowed"`
	MulticastOverflow bool     `json:"multicast-overflow"`
	UnicastOverflow   bool     `json:"unicast-overflow"`
	MainMac           string   `json:"main-mac"`
	VlanTable         []int64  `json:"vlan-table"`
	UnicastTable      []string `json:"unicast-table"`
	MulticastTable    []string `json:"multicast-table"`
}

RxFilterInfo implements the "RxFilterInfo" QMP API type.

type RxState

type RxState int

RxState implements the "RxState" QMP API type.

const (
	RxStateNormal RxState = iota
	RxStateNone
	RxStateAll
)

Known values of RxState.

func (RxState) MarshalJSON

func (e RxState) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (RxState) String

func (e RxState) String() string

String implements fmt.Stringer.

func (*RxState) UnmarshalJSON

func (e *RxState) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type SchemaInfo

type SchemaInfo interface {
	// contains filtered or unexported methods
}

SchemaInfo implements the "SchemaInfo" QMP API type.

Can be one of:

  • SchemaInfoAlternate
  • SchemaInfoArray
  • SchemaInfoBuiltin
  • SchemaInfoCommand
  • SchemaInfoEnum
  • SchemaInfoEvent
  • SchemaInfoObject

type SchemaInfoAlternate

type SchemaInfoAlternate struct {
	Name    string                      `json:"name"`
	Members []SchemaInfoAlternateMember `json:"members"`
}

SchemaInfoAlternate is an implementation of SchemaInfo.

func (SchemaInfoAlternate) MarshalJSON

func (s SchemaInfoAlternate) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SchemaInfoAlternateMember

type SchemaInfoAlternateMember struct {
	Type string `json:"type"`
}

SchemaInfoAlternateMember implements the "SchemaInfoAlternateMember" QMP API type.

type SchemaInfoArray

type SchemaInfoArray struct {
	Name        string `json:"name"`
	ElementType string `json:"element-type"`
}

SchemaInfoArray is an implementation of SchemaInfo.

func (SchemaInfoArray) MarshalJSON

func (s SchemaInfoArray) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SchemaInfoBuiltin

type SchemaInfoBuiltin struct {
	Name     string   `json:"name"`
	JSONType JSONType `json:"json-type"`
}

SchemaInfoBuiltin is an implementation of SchemaInfo.

func (SchemaInfoBuiltin) MarshalJSON

func (s SchemaInfoBuiltin) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SchemaInfoCommand

type SchemaInfoCommand struct {
	Name    string `json:"name"`
	ArgType string `json:"arg-type"`
	RetType string `json:"ret-type"`
}

SchemaInfoCommand is an implementation of SchemaInfo.

func (SchemaInfoCommand) MarshalJSON

func (s SchemaInfoCommand) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SchemaInfoEnum

type SchemaInfoEnum struct {
	Name   string   `json:"name"`
	Values []string `json:"values"`
}

SchemaInfoEnum is an implementation of SchemaInfo.

func (SchemaInfoEnum) MarshalJSON

func (s SchemaInfoEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SchemaInfoEvent

type SchemaInfoEvent struct {
	Name    string `json:"name"`
	ArgType string `json:"arg-type"`
}

SchemaInfoEvent is an implementation of SchemaInfo.

func (SchemaInfoEvent) MarshalJSON

func (s SchemaInfoEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SchemaInfoObject

type SchemaInfoObject struct {
	Name     string                    `json:"name"`
	Members  []SchemaInfoObjectMember  `json:"members"`
	Tag      *string                   `json:"tag,omitempty"`
	Variants []SchemaInfoObjectVariant `json:"variants,omitempty"`
}

SchemaInfoObject is an implementation of SchemaInfo.

func (SchemaInfoObject) MarshalJSON

func (s SchemaInfoObject) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SchemaInfoObjectMember

type SchemaInfoObjectMember struct {
	Name    string       `json:"name"`
	Type    string       `json:"type"`
	Default *interface{} `json:"default,omitempty"`
}

SchemaInfoObjectMember implements the "SchemaInfoObjectMember" QMP API type.

type SchemaInfoObjectVariant

type SchemaInfoObjectVariant struct {
	Case string `json:"case"`
	Type string `json:"type"`
}

SchemaInfoObjectVariant implements the "SchemaInfoObjectVariant" QMP API type.

type SchemaMetaType

type SchemaMetaType int

SchemaMetaType implements the "SchemaMetaType" QMP API type.

const (
	SchemaMetaTypeBuiltin SchemaMetaType = iota
	SchemaMetaTypeEnum
	SchemaMetaTypeArray
	SchemaMetaTypeObject
	SchemaMetaTypeAlternate
	SchemaMetaTypeCommand
	SchemaMetaTypeEvent
)

Known values of SchemaMetaType.

func (SchemaMetaType) MarshalJSON

func (e SchemaMetaType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (SchemaMetaType) String

func (e SchemaMetaType) String() string

String implements fmt.Stringer.

func (*SchemaMetaType) UnmarshalJSON

func (e *SchemaMetaType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type SnapshotInfo

type SnapshotInfo struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	VMStateSize int64  `json:"vm-state-size"`
	DateSec     int64  `json:"date-sec"`
	DateNsec    int64  `json:"date-nsec"`
	VMClockSec  int64  `json:"vm-clock-sec"`
	VMClockNsec int64  `json:"vm-clock-nsec"`
}

SnapshotInfo implements the "SnapshotInfo" QMP API type.

type SocketAddress

type SocketAddress interface {
	// contains filtered or unexported methods
}

SocketAddress implements the "SocketAddress" QMP API type.

Can be one of:

  • SocketAddressFD
  • SocketAddressInet
  • SocketAddressUnix
  • SocketAddressVsock

type SocketAddressFD

type SocketAddressFD struct {
	Str string `json:"str"`
}

SocketAddressFD is an implementation of SocketAddress.

func (SocketAddressFD) MarshalJSON

func (s SocketAddressFD) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SocketAddressInet

type SocketAddressInet struct {
	Numeric *bool   `json:"numeric,omitempty"`
	To      *uint16 `json:"to,omitempty"`
	Ipv4    *bool   `json:"ipv4,omitempty"`
	Ipv6    *bool   `json:"ipv6,omitempty"`
}

SocketAddressInet is an implementation of SocketAddress.

func (SocketAddressInet) MarshalJSON

func (s SocketAddressInet) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SocketAddressLegacy

type SocketAddressLegacy interface {
	// contains filtered or unexported methods
}

SocketAddressLegacy implements the "SocketAddressLegacy" QMP API type.

Can be one of:

  • SocketAddressLegacyFD
  • SocketAddressLegacyInet
  • SocketAddressLegacyUnix
  • SocketAddressLegacyVsock

type SocketAddressLegacyFD

type SocketAddressLegacyFD String

SocketAddressLegacyFD is an implementation of SocketAddressLegacy.

func (SocketAddressLegacyFD) MarshalJSON

func (s SocketAddressLegacyFD) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SocketAddressLegacyInet

type SocketAddressLegacyInet InetSocketAddress

SocketAddressLegacyInet is an implementation of SocketAddressLegacy.

func (SocketAddressLegacyInet) MarshalJSON

func (s SocketAddressLegacyInet) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SocketAddressLegacyUnix

type SocketAddressLegacyUnix UnixSocketAddress

SocketAddressLegacyUnix is an implementation of SocketAddressLegacy.

func (SocketAddressLegacyUnix) MarshalJSON

func (s SocketAddressLegacyUnix) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SocketAddressLegacyVsock

type SocketAddressLegacyVsock VsockSocketAddress

SocketAddressLegacyVsock is an implementation of SocketAddressLegacy.

func (SocketAddressLegacyVsock) MarshalJSON

func (s SocketAddressLegacyVsock) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SocketAddressType

type SocketAddressType int

SocketAddressType implements the "SocketAddressType" QMP API type.

const (
	SocketAddressTypeInet SocketAddressType = iota
	SocketAddressTypeUnix
	SocketAddressTypeVsock
	SocketAddressTypeFD
)

Known values of SocketAddressType.

func (SocketAddressType) MarshalJSON

func (e SocketAddressType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (SocketAddressType) String

func (e SocketAddressType) String() string

String implements fmt.Stringer.

func (*SocketAddressType) UnmarshalJSON

func (e *SocketAddressType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type SocketAddressUnix

type SocketAddressUnix struct {
	Path string `json:"path"`
}

SocketAddressUnix is an implementation of SocketAddress.

func (SocketAddressUnix) MarshalJSON

func (s SocketAddressUnix) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SocketAddressVsock

type SocketAddressVsock struct {
	Cid  string `json:"cid"`
	Port string `json:"port"`
}

SocketAddressVsock is an implementation of SocketAddress.

func (SocketAddressVsock) MarshalJSON

func (s SocketAddressVsock) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type SpiceBasicInfo

type SpiceBasicInfo struct {
	Host   string               `json:"host"`
	Port   string               `json:"port"`
	Family NetworkAddressFamily `json:"family"`
}

SpiceBasicInfo implements the "SpiceBasicInfo" QMP API type.

type SpiceChannel

type SpiceChannel struct {
	Host         string               `json:"host"`
	Port         string               `json:"port"`
	Family       NetworkAddressFamily `json:"family"`
	ConnectionID int64                `json:"connection-id"`
	ChannelType  int64                `json:"channel-type"`
	ChannelID    int64                `json:"channel-id"`
	TLS          bool                 `json:"tls"`
}

SpiceChannel implements the "SpiceChannel" QMP API type.

type SpiceInfo

type SpiceInfo struct {
	Enabled         bool                `json:"enabled"`
	Migrated        bool                `json:"migrated"`
	Host            *string             `json:"host,omitempty"`
	Port            *int64              `json:"port,omitempty"`
	TLSPort         *int64              `json:"tls-port,omitempty"`
	Auth            *string             `json:"auth,omitempty"`
	CompiledVersion *string             `json:"compiled-version,omitempty"`
	MouseMode       SpiceQueryMouseMode `json:"mouse-mode"`
	Channels        []SpiceChannel      `json:"channels,omitempty"`
}

SpiceInfo implements the "SpiceInfo" QMP API type.

type SpiceQueryMouseMode

type SpiceQueryMouseMode int

SpiceQueryMouseMode implements the "SpiceQueryMouseMode" QMP API type.

const (
	SpiceQueryMouseModeClient SpiceQueryMouseMode = iota
	SpiceQueryMouseModeServer
	SpiceQueryMouseModeUnknown
)

Known values of SpiceQueryMouseMode.

func (SpiceQueryMouseMode) MarshalJSON

func (e SpiceQueryMouseMode) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (SpiceQueryMouseMode) String

func (e SpiceQueryMouseMode) String() string

String implements fmt.Stringer.

func (*SpiceQueryMouseMode) UnmarshalJSON

func (e *SpiceQueryMouseMode) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type SpiceServerInfo

type SpiceServerInfo struct {
	Host   string               `json:"host"`
	Port   string               `json:"port"`
	Family NetworkAddressFamily `json:"family"`
	Auth   *string              `json:"auth,omitempty"`
}

SpiceServerInfo implements the "SpiceServerInfo" QMP API type.

type StatusInfo

type StatusInfo struct {
	Running    bool     `json:"running"`
	Singlestep bool     `json:"singlestep"`
	Status     RunState `json:"status"`
}

StatusInfo implements the "StatusInfo" QMP API type.

type StrOrNull

type StrOrNull interface {
	// contains filtered or unexported methods
}

StrOrNull implements the "StrOrNull" QMP API type.

Can be one of:

  • StrOrNullN
  • StrOrNullS

type StrOrNullN

type StrOrNullN struct{}

StrOrNullN is a JSON null type, so it must also implement the isNullable interface.

type StrOrNullS

type StrOrNullS string

StrOrNullS is an implementation of StrOrNull

type String

type String struct {
	Str string `json:"str"`
}

String implements the "String" QMP API type.

type TPMEmulatorOptions

type TPMEmulatorOptions struct {
	Chardev string `json:"chardev"`
}

TPMEmulatorOptions implements the "TPMEmulatorOptions" QMP API type.

type TPMInfo

type TPMInfo struct {
	ID      string         `json:"id"`
	Model   TPMModel       `json:"model"`
	Options TPMTypeOptions `json:"options"`
}

TPMInfo implements the "TPMInfo" QMP API type.

func (*TPMInfo) UnmarshalJSON

func (s *TPMInfo) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TPMModel

type TPMModel int

TPMModel implements the "TpmModel" QMP API type.

const (
	TPMModelTPMTis TPMModel = iota
)

Known values of TPMModel.

func (TPMModel) MarshalJSON

func (e TPMModel) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (TPMModel) String

func (e TPMModel) String() string

String implements fmt.Stringer.

func (*TPMModel) UnmarshalJSON

func (e *TPMModel) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TPMPassthroughOptions

type TPMPassthroughOptions struct {
	Path       *string `json:"path,omitempty"`
	CancelPath *string `json:"cancel-path,omitempty"`
}

TPMPassthroughOptions implements the "TPMPassthroughOptions" QMP API type.

type TPMType

type TPMType int

TPMType implements the "TpmType" QMP API type.

const (
	TPMTypePassthrough TPMType = iota
	TPMTypeEmulator
)

Known values of TPMType.

func (TPMType) MarshalJSON

func (e TPMType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (TPMType) String

func (e TPMType) String() string

String implements fmt.Stringer.

func (*TPMType) UnmarshalJSON

func (e *TPMType) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TPMTypeOptions

type TPMTypeOptions interface {
	// contains filtered or unexported methods
}

TPMTypeOptions implements the "TpmTypeOptions" QMP API type.

Can be one of:

  • TPMTypeOptionsEmulator
  • TPMTypeOptionsPassthrough

type TPMTypeOptionsEmulator

type TPMTypeOptionsEmulator TPMEmulatorOptions

TPMTypeOptionsEmulator is an implementation of TPMTypeOptions.

func (TPMTypeOptionsEmulator) MarshalJSON

func (s TPMTypeOptionsEmulator) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type TPMTypeOptionsPassthrough

type TPMTypeOptionsPassthrough TPMPassthroughOptions

TPMTypeOptionsPassthrough is an implementation of TPMTypeOptions.

func (TPMTypeOptionsPassthrough) MarshalJSON

func (s TPMTypeOptionsPassthrough) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type TargetInfo

type TargetInfo struct {
	Arch string `json:"arch"`
}

TargetInfo implements the "TargetInfo" QMP API type.

type TraceEventInfo

type TraceEventInfo struct {
	Name  string          `json:"name"`
	State TraceEventState `json:"state"`
	Vcpu  bool            `json:"vcpu"`
}

TraceEventInfo implements the "TraceEventInfo" QMP API type.

type TraceEventState

type TraceEventState int

TraceEventState implements the "TraceEventState" QMP API type.

const (
	TraceEventStateUnavailable TraceEventState = iota
	TraceEventStateDisabled
	TraceEventStateEnabled
)

Known values of TraceEventState.

func (TraceEventState) MarshalJSON

func (e TraceEventState) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (TraceEventState) String

func (e TraceEventState) String() string

String implements fmt.Stringer.

func (*TraceEventState) UnmarshalJSON

func (e *TraceEventState) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TransactionAction

type TransactionAction interface {
	// contains filtered or unexported methods
}

TransactionAction implements the "TransactionAction" QMP API type.

Can be one of:

  • TransactionActionAbort
  • TransactionActionBlockDirtyBitmapAdd
  • TransactionActionBlockDirtyBitmapClear
  • TransactionActionBlockdevBackup
  • TransactionActionBlockdevSnapshot
  • TransactionActionBlockdevSnapshotInternalSync
  • TransactionActionBlockdevSnapshotSync
  • TransactionActionDriveBackup

type TransactionActionAbort

type TransactionActionAbort Abort

TransactionActionAbort is an implementation of TransactionAction.

func (TransactionActionAbort) MarshalJSON

func (s TransactionActionAbort) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type TransactionActionBlockDirtyBitmapAdd

type TransactionActionBlockDirtyBitmapAdd BlockDirtyBitmapAdd

TransactionActionBlockDirtyBitmapAdd is an implementation of TransactionAction.

func (TransactionActionBlockDirtyBitmapAdd) MarshalJSON

func (s TransactionActionBlockDirtyBitmapAdd) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type TransactionActionBlockDirtyBitmapClear

type TransactionActionBlockDirtyBitmapClear BlockDirtyBitmap

TransactionActionBlockDirtyBitmapClear is an implementation of TransactionAction.

func (TransactionActionBlockDirtyBitmapClear) MarshalJSON

func (s TransactionActionBlockDirtyBitmapClear) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type TransactionActionBlockdevBackup

type TransactionActionBlockdevBackup BlockdevBackup

TransactionActionBlockdevBackup is an implementation of TransactionAction.

func (TransactionActionBlockdevBackup) MarshalJSON

func (s TransactionActionBlockdevBackup) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type TransactionActionBlockdevSnapshot

type TransactionActionBlockdevSnapshot BlockdevSnapshot

TransactionActionBlockdevSnapshot is an implementation of TransactionAction.

func (TransactionActionBlockdevSnapshot) MarshalJSON

func (s TransactionActionBlockdevSnapshot) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type TransactionActionBlockdevSnapshotInternalSync

type TransactionActionBlockdevSnapshotInternalSync BlockdevSnapshotInternal

TransactionActionBlockdevSnapshotInternalSync is an implementation of TransactionAction.

func (TransactionActionBlockdevSnapshotInternalSync) MarshalJSON

MarshalJSON implements json.Marshaler.

type TransactionActionBlockdevSnapshotSync

type TransactionActionBlockdevSnapshotSync BlockdevSnapshotSync

TransactionActionBlockdevSnapshotSync is an implementation of TransactionAction.

func (TransactionActionBlockdevSnapshotSync) MarshalJSON

func (s TransactionActionBlockdevSnapshotSync) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type TransactionActionDriveBackup

type TransactionActionDriveBackup DriveBackup

TransactionActionDriveBackup is an implementation of TransactionAction.

func (TransactionActionDriveBackup) MarshalJSON

func (s TransactionActionDriveBackup) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

type TransactionProperties

type TransactionProperties struct {
	CompletionMode *ActionCompletionMode `json:"completion-mode,omitempty"`
}

TransactionProperties implements the "TransactionProperties" QMP API type.

type UUIDInfo

type UUIDInfo struct {
	UUID string `json:"UUID"`
}

UUIDInfo implements the "UuidInfo" QMP API type.

type UnixSocketAddress

type UnixSocketAddress struct {
	Path string `json:"path"`
}

UnixSocketAddress implements the "UnixSocketAddress" QMP API type.

type VNCBasicInfo

type VNCBasicInfo struct {
	Host      string               `json:"host"`
	Service   string               `json:"service"`
	Family    NetworkAddressFamily `json:"family"`
	Websocket bool                 `json:"websocket"`
}

VNCBasicInfo implements the "VncBasicInfo" QMP API type.

type VNCClientInfo

type VNCClientInfo struct {
	Host         string               `json:"host"`
	Service      string               `json:"service"`
	Family       NetworkAddressFamily `json:"family"`
	Websocket    bool                 `json:"websocket"`
	X509Dname    *string              `json:"x509_dname,omitempty"`
	SaslUsername *string              `json:"sasl_username,omitempty"`
}

VNCClientInfo implements the "VncClientInfo" QMP API type.

type VNCInfo

type VNCInfo struct {
	Enabled bool                  `json:"enabled"`
	Host    *string               `json:"host,omitempty"`
	Family  *NetworkAddressFamily `json:"family,omitempty"`
	Service *string               `json:"service,omitempty"`
	Auth    *string               `json:"auth,omitempty"`
	Clients []VNCClientInfo       `json:"clients,omitempty"`
}

VNCInfo implements the "VncInfo" QMP API type.

type VNCInfo2

type VNCInfo2 struct {
	ID       string              `json:"id"`
	Server   []VNCServerInfo2    `json:"server"`
	Clients  []VNCClientInfo     `json:"clients"`
	Auth     VNCPrimaryAuth      `json:"auth"`
	Vencrypt *VNCVencryptSubAuth `json:"vencrypt,omitempty"`
	Display  *string             `json:"display,omitempty"`
}

VNCInfo2 implements the "VncInfo2" QMP API type.

type VNCPrimaryAuth

type VNCPrimaryAuth int

VNCPrimaryAuth implements the "VncPrimaryAuth" QMP API type.

const (
	VNCPrimaryAuthNone VNCPrimaryAuth = iota
	VNCPrimaryAuthVNC
	VNCPrimaryAuthRa2
	VNCPrimaryAuthRa2Ne
	VNCPrimaryAuthTight
	VNCPrimaryAuthUltra
	VNCPrimaryAuthTLS
	VNCPrimaryAuthVencrypt
	VNCPrimaryAuthSasl
)

Known values of VNCPrimaryAuth.

func (VNCPrimaryAuth) MarshalJSON

func (e VNCPrimaryAuth) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (VNCPrimaryAuth) String

func (e VNCPrimaryAuth) String() string

String implements fmt.Stringer.

func (*VNCPrimaryAuth) UnmarshalJSON

func (e *VNCPrimaryAuth) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type VNCServerInfo

type VNCServerInfo struct {
	Host      string               `json:"host"`
	Service   string               `json:"service"`
	Family    NetworkAddressFamily `json:"family"`
	Websocket bool                 `json:"websocket"`
	Auth      *string              `json:"auth,omitempty"`
}

VNCServerInfo implements the "VncServerInfo" QMP API type.

type VNCServerInfo2

type VNCServerInfo2 struct {
	Host      string               `json:"host"`
	Service   string               `json:"service"`
	Family    NetworkAddressFamily `json:"family"`
	Websocket bool                 `json:"websocket"`
	Auth      VNCPrimaryAuth       `json:"auth"`
	Vencrypt  *VNCVencryptSubAuth  `json:"vencrypt,omitempty"`
}

VNCServerInfo2 implements the "VncServerInfo2" QMP API type.

type VNCVencryptSubAuth

type VNCVencryptSubAuth int

VNCVencryptSubAuth implements the "VncVencryptSubAuth" QMP API type.

const (
	VNCVencryptSubAuthPlain VNCVencryptSubAuth = iota
	VNCVencryptSubAuthTLSNone
	VNCVencryptSubAuthX509None
	VNCVencryptSubAuthTLSVNC
	VNCVencryptSubAuthX509VNC
	VNCVencryptSubAuthTLSPlain
	VNCVencryptSubAuthX509Plain
	VNCVencryptSubAuthTLSSasl
	VNCVencryptSubAuthX509Sasl
)

Known values of VNCVencryptSubAuth.

func (VNCVencryptSubAuth) MarshalJSON

func (e VNCVencryptSubAuth) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (VNCVencryptSubAuth) String

func (e VNCVencryptSubAuth) String() string

String implements fmt.Stringer.

func (*VNCVencryptSubAuth) UnmarshalJSON

func (e *VNCVencryptSubAuth) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type VersionInfo

type VersionInfo struct {
	Qemu    VersionTriple `json:"qemu"`
	Package string        `json:"package"`
}

VersionInfo implements the "VersionInfo" QMP API type.

type VersionTriple

type VersionTriple struct {
	Major int64 `json:"major"`
	Minor int64 `json:"minor"`
	Micro int64 `json:"micro"`
}

VersionTriple implements the "VersionTriple" QMP API type.

type VsockSocketAddress

type VsockSocketAddress struct {
	Cid  string `json:"cid"`
	Port string `json:"port"`
}

VsockSocketAddress implements the "VsockSocketAddress" QMP API type.

type WatchdogAction

type WatchdogAction int

WatchdogAction implements the "WatchdogAction" QMP API type.

const (
	WatchdogActionReset WatchdogAction = iota
	WatchdogActionShutdown
	WatchdogActionPoweroff
	WatchdogActionPause
	WatchdogActionDebug
	WatchdogActionNone
	WatchdogActionInjectNmi
)

Known values of WatchdogAction.

func (WatchdogAction) MarshalJSON

func (e WatchdogAction) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (WatchdogAction) String

func (e WatchdogAction) String() string

String implements fmt.Stringer.

func (*WatchdogAction) UnmarshalJSON

func (e *WatchdogAction) UnmarshalJSON(bs []byte) error

UnmarshalJSON implements json.Unmarshaler.

type XbzrleCacheStats

type XbzrleCacheStats struct {
	CacheSize     int64   `json:"cache-size"`
	Bytes         int64   `json:"bytes"`
	Pages         int64   `json:"pages"`
	CacheMiss     int64   `json:"cache-miss"`
	CacheMissRate float64 `json:"cache-miss-rate"`
	Overflow      int64   `json:"overflow"`
}

XbzrleCacheStats implements the "XBZRLECacheStats" QMP API type.

Jump to

Keyboard shortcuts

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