go-qemu: github.com/digitalocean/go-qemu/qmp/raw Index | Files

package raw

import "github.com/digitalocean/go-qemu/qmp/raw"

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

Index

Package Files

autogen.go doc.go raw.go

type ACPIOSTInfo Uses

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 Uses

type ACPISlotType int

ACPISlotType implements the "ACPISlotType" QMP API type.

const (
    ACPISlotTypeDimm ACPISlotType = iota
    ACPISlotTypeCPU
)

Known values of ACPISlotType.

func (ACPISlotType) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (ACPISlotType) String Uses

func (e ACPISlotType) String() string

String implements fmt.Stringer.

func (*ACPISlotType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type Abort Uses

type Abort struct {
}

Abort implements the "Abort" QMP API type.

type ActionCompletionMode Uses

type ActionCompletionMode int

ActionCompletionMode implements the "ActionCompletionMode" QMP API type.

const (
    ActionCompletionModeIndividual ActionCompletionMode = iota
    ActionCompletionModeGrouped
)

Known values of ActionCompletionMode.

func (ActionCompletionMode) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (ActionCompletionMode) String Uses

func (e ActionCompletionMode) String() string

String implements fmt.Stringer.

func (*ActionCompletionMode) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type AddfdInfo Uses

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

AddfdInfo implements the "AddfdInfo" QMP API type.

type BalloonInfo Uses

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

BalloonInfo implements the "BalloonInfo" QMP API type.

type BlkdebugEvent Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (BlkdebugEvent) String Uses

func (e BlkdebugEvent) String() string

String implements fmt.Stringer.

func (*BlkdebugEvent) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlkdebugInjectErrorOptions Uses

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 Uses

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 Uses

type BlockDeviceIOStatus int

BlockDeviceIOStatus implements the "BlockDeviceIoStatus" QMP API type.

const (
    BlockDeviceIOStatusOK BlockDeviceIOStatus = iota
    BlockDeviceIOStatusFailed
    BlockDeviceIOStatusNospace
)

Known values of BlockDeviceIOStatus.

func (BlockDeviceIOStatus) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (BlockDeviceIOStatus) String Uses

func (e BlockDeviceIOStatus) String() string

String implements fmt.Stringer.

func (*BlockDeviceIOStatus) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockDeviceInfo Uses

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 Uses

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 Uses

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 Uses

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

BlockDirtyBitmap implements the "BlockDirtyBitmap" QMP API type.

type BlockDirtyBitmapAdd Uses

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 BlockDirtyInfo Uses

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 Uses

type BlockErrorAction int

BlockErrorAction implements the "BlockErrorAction" QMP API type.

const (
    BlockErrorActionIgnore BlockErrorAction = iota
    BlockErrorActionReport
    BlockErrorActionStop
)

Known values of BlockErrorAction.

func (BlockErrorAction) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (BlockErrorAction) String Uses

func (e BlockErrorAction) String() string

String implements fmt.Stringer.

func (*BlockErrorAction) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockIOThrottle Uses

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 Uses

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 Uses

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 Uses

type BlockJobType int

BlockJobType implements the "BlockJobType" QMP API type.

const (
    BlockJobTypeCommit BlockJobType = iota
    BlockJobTypeStream
    BlockJobTypeMirror
    BlockJobTypeBackup
)

Known values of BlockJobType.

func (BlockJobType) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (BlockJobType) String Uses

func (e BlockJobType) String() string

String implements fmt.Stringer.

func (*BlockJobType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockStats Uses

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 Uses

type BlockdevAIOOptions int

BlockdevAIOOptions implements the "BlockdevAioOptions" QMP API type.

const (
    BlockdevAIOOptionsThreads BlockdevAIOOptions = iota
    BlockdevAIOOptionsNative
)

Known values of BlockdevAIOOptions.

func (BlockdevAIOOptions) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (BlockdevAIOOptions) String Uses

func (e BlockdevAIOOptions) String() string

String implements fmt.Stringer.

func (*BlockdevAIOOptions) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockdevBackup Uses

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 Uses

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 Uses

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

BlockdevCacheOptions implements the "BlockdevCacheOptions" QMP API type.

type BlockdevChangeReadOnlyMode Uses

type BlockdevChangeReadOnlyMode int

BlockdevChangeReadOnlyMode implements the "BlockdevChangeReadOnlyMode" QMP API type.

const (
    BlockdevChangeReadOnlyModeRetain BlockdevChangeReadOnlyMode = iota
    BlockdevChangeReadOnlyModeReadOnly
    BlockdevChangeReadOnlyModeReadWrite
)

Known values of BlockdevChangeReadOnlyMode.

func (BlockdevChangeReadOnlyMode) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (BlockdevChangeReadOnlyMode) String Uses

func (e BlockdevChangeReadOnlyMode) String() string

String implements fmt.Stringer.

func (*BlockdevChangeReadOnlyMode) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockdevDetectZeroesOptions Uses

type BlockdevDetectZeroesOptions int

BlockdevDetectZeroesOptions implements the "BlockdevDetectZeroesOptions" QMP API type.

const (
    BlockdevDetectZeroesOptionsOff BlockdevDetectZeroesOptions = iota
    BlockdevDetectZeroesOptionsOn
    BlockdevDetectZeroesOptionsUnmap
)

Known values of BlockdevDetectZeroesOptions.

func (BlockdevDetectZeroesOptions) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (BlockdevDetectZeroesOptions) String Uses

func (e BlockdevDetectZeroesOptions) String() string

String implements fmt.Stringer.

func (*BlockdevDetectZeroesOptions) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockdevDiscardOptions Uses

type BlockdevDiscardOptions int

BlockdevDiscardOptions implements the "BlockdevDiscardOptions" QMP API type.

const (
    BlockdevDiscardOptionsIgnore BlockdevDiscardOptions = iota
    BlockdevDiscardOptionsUnmap
)

Known values of BlockdevDiscardOptions.

func (BlockdevDiscardOptions) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (BlockdevDiscardOptions) String Uses

func (e BlockdevDiscardOptions) String() string

String implements fmt.Stringer.

func (*BlockdevDiscardOptions) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockdevDriver Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (BlockdevDriver) String Uses

func (e BlockdevDriver) String() string

String implements fmt.Stringer.

func (*BlockdevDriver) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockdevOnError Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (BlockdevOnError) String Uses

func (e BlockdevOnError) String() string

String implements fmt.Stringer.

func (*BlockdevOnError) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockdevOptions Uses

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 Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsBlkverify Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsBochs Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsCloop Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsDmg Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsFTP Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsFTPS Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsFile Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsGluster Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsHTTP Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsHTTPS Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsHostCdrom Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsHostDevice Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsIscsi Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsLUKS Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsNBD Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsNfs Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsNullAIO Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsNullCo Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsParallels Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsQcow Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsQcow2 Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsQed Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsQuorum Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsRaw Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsRbd Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsReplication Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsSSH Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsSheepdog Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsThrottle Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVMDK Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVdi Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVhdx Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVpc Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVvfat Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevOptionsVxhs Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevQcow2Encryption Uses

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

BlockdevQcow2Encryption implements the "BlockdevQcow2Encryption" QMP API type.

Can be one of:

- BlockdevQcow2EncryptionAes
- BlockdevQcow2EncryptionLUKS

type BlockdevQcow2EncryptionAes Uses

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

BlockdevQcow2EncryptionAes is an implementation of BlockdevQcow2Encryption.

func (BlockdevQcow2EncryptionAes) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevQcow2EncryptionFormat Uses

type BlockdevQcow2EncryptionFormat int

BlockdevQcow2EncryptionFormat implements the "BlockdevQcow2EncryptionFormat" QMP API type.

const (
    BlockdevQcow2EncryptionFormatAes BlockdevQcow2EncryptionFormat = iota
    BlockdevQcow2EncryptionFormatLUKS
)

Known values of BlockdevQcow2EncryptionFormat.

func (BlockdevQcow2EncryptionFormat) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (BlockdevQcow2EncryptionFormat) String Uses

func (e BlockdevQcow2EncryptionFormat) String() string

String implements fmt.Stringer.

func (*BlockdevQcow2EncryptionFormat) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockdevQcow2EncryptionLUKS Uses

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

BlockdevQcow2EncryptionLUKS is an implementation of BlockdevQcow2Encryption.

func (BlockdevQcow2EncryptionLUKS) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevQcowEncryption Uses

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

BlockdevQcowEncryption implements the "BlockdevQcowEncryption" QMP API type.

Can be one of:

- BlockdevQcowEncryptionAes

type BlockdevQcowEncryptionAes Uses

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

BlockdevQcowEncryptionAes is an implementation of BlockdevQcowEncryption.

func (BlockdevQcowEncryptionAes) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type BlockdevQcowEncryptionFormat Uses

type BlockdevQcowEncryptionFormat int

BlockdevQcowEncryptionFormat implements the "BlockdevQcowEncryptionFormat" QMP API type.

const (
    BlockdevQcowEncryptionFormatAes BlockdevQcowEncryptionFormat = iota
)

Known values of BlockdevQcowEncryptionFormat.

func (BlockdevQcowEncryptionFormat) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (BlockdevQcowEncryptionFormat) String Uses

func (e BlockdevQcowEncryptionFormat) String() string

String implements fmt.Stringer.

func (*BlockdevQcowEncryptionFormat) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type BlockdevRef Uses

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

BlockdevRef implements the "BlockdevRef" QMP API type.

Can be one of:

- BlockdevRefDefinition
- BlockdevRefReference

type BlockdevRefDefinition Uses

type BlockdevRefDefinition BlockdevOptions

BlockdevRefDefinition is an implementation of BlockdevRef

type BlockdevRefOrNull Uses

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

BlockdevRefOrNull implements the "BlockdevRefOrNull" QMP API type.

Can be one of:

- BlockdevRefOrNullDefinition
- BlockdevRefOrNullNull
- BlockdevRefOrNullReference

type BlockdevRefOrNullDefinition Uses

type BlockdevRefOrNullDefinition BlockdevOptions

BlockdevRefOrNullDefinition is an implementation of BlockdevRefOrNull

type BlockdevRefOrNullNull Uses

type BlockdevRefOrNullNull struct{}

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

type BlockdevRefOrNullReference Uses

type BlockdevRefOrNullReference string

BlockdevRefOrNullReference is an implementation of BlockdevRefOrNull

type BlockdevRefReference Uses

type BlockdevRefReference string

BlockdevRefReference is an implementation of BlockdevRef

type BlockdevSnapshot Uses

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

BlockdevSnapshot implements the "BlockdevSnapshot" QMP API type.

type BlockdevSnapshotInternal Uses

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

BlockdevSnapshotInternal implements the "BlockdevSnapshotInternal" QMP API type.

type BlockdevSnapshotSync Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (CPUInfoArch) String Uses

func (e CPUInfoArch) String() string

String implements fmt.Stringer.

func (*CPUInfoArch) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type CPUInfoMIPS Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type CPUInfoOther Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type CPUInfoPPC Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type CPUInfoSPARC Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type CPUInfoTricore Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type CPUInfoX86 Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type CPUInstanceProperties Uses

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 Uses

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

CPUModelBaselineInfo implements the "CpuModelBaselineInfo" QMP API type.

type CPUModelCompareInfo Uses

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

CPUModelCompareInfo implements the "CpuModelCompareInfo" QMP API type.

type CPUModelCompareResult Uses

type CPUModelCompareResult int

CPUModelCompareResult implements the "CpuModelCompareResult" QMP API type.

const (
    CPUModelCompareResultIncompatible CPUModelCompareResult = iota
    CPUModelCompareResultIdentical
    CPUModelCompareResultSuperset
    CPUModelCompareResultSubset
)

Known values of CPUModelCompareResult.

func (CPUModelCompareResult) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (CPUModelCompareResult) String Uses

func (e CPUModelCompareResult) String() string

String implements fmt.Stringer.

func (*CPUModelCompareResult) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type CPUModelExpansionInfo Uses

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

CPUModelExpansionInfo implements the "CpuModelExpansionInfo" QMP API type.

type CPUModelExpansionType Uses

type CPUModelExpansionType int

CPUModelExpansionType implements the "CpuModelExpansionType" QMP API type.

const (
    CPUModelExpansionTypeStatic CPUModelExpansionType = iota
    CPUModelExpansionTypeFull
)

Known values of CPUModelExpansionType.

func (CPUModelExpansionType) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (CPUModelExpansionType) String Uses

func (e CPUModelExpansionType) String() string

String implements fmt.Stringer.

func (*CPUModelExpansionType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type CPUModelInfo Uses

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

CPUModelInfo implements the "CpuModelInfo" QMP API type.

type ChardevBackend Uses

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 Uses

type ChardevBackendBraille ChardevCommon

ChardevBackendBraille is an implementation of ChardevBackend.

func (ChardevBackendBraille) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendConsole Uses

type ChardevBackendConsole ChardevCommon

ChardevBackendConsole is an implementation of ChardevBackend.

func (ChardevBackendConsole) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendFile Uses

type ChardevBackendFile ChardevFile

ChardevBackendFile is an implementation of ChardevBackend.

func (ChardevBackendFile) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendInfo Uses

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

ChardevBackendInfo implements the "ChardevBackendInfo" QMP API type.

type ChardevBackendMemory Uses

type ChardevBackendMemory ChardevRingbuf

ChardevBackendMemory is an implementation of ChardevBackend.

func (ChardevBackendMemory) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendMsmouse Uses

type ChardevBackendMsmouse ChardevCommon

ChardevBackendMsmouse is an implementation of ChardevBackend.

func (ChardevBackendMsmouse) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendMux Uses

type ChardevBackendMux ChardevMux

ChardevBackendMux is an implementation of ChardevBackend.

func (ChardevBackendMux) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendNull Uses

type ChardevBackendNull ChardevCommon

ChardevBackendNull is an implementation of ChardevBackend.

func (ChardevBackendNull) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendParallel Uses

type ChardevBackendParallel ChardevHostdev

ChardevBackendParallel is an implementation of ChardevBackend.

func (ChardevBackendParallel) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendPipe Uses

type ChardevBackendPipe ChardevHostdev

ChardevBackendPipe is an implementation of ChardevBackend.

func (ChardevBackendPipe) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendPty Uses

type ChardevBackendPty ChardevCommon

ChardevBackendPty is an implementation of ChardevBackend.

func (ChardevBackendPty) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendRingbuf Uses

type ChardevBackendRingbuf ChardevRingbuf

ChardevBackendRingbuf is an implementation of ChardevBackend.

func (ChardevBackendRingbuf) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendSerial Uses

type ChardevBackendSerial ChardevHostdev

ChardevBackendSerial is an implementation of ChardevBackend.

func (ChardevBackendSerial) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendSocket Uses

type ChardevBackendSocket ChardevSocket

ChardevBackendSocket is an implementation of ChardevBackend.

func (ChardevBackendSocket) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendSpiceport Uses

type ChardevBackendSpiceport ChardevSpicePort

ChardevBackendSpiceport is an implementation of ChardevBackend.

func (ChardevBackendSpiceport) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendSpicevmc Uses

type ChardevBackendSpicevmc ChardevSpiceChannel

ChardevBackendSpicevmc is an implementation of ChardevBackend.

func (ChardevBackendSpicevmc) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendStdio Uses

type ChardevBackendStdio ChardevStdio

ChardevBackendStdio is an implementation of ChardevBackend.

func (ChardevBackendStdio) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendTestdev Uses

type ChardevBackendTestdev ChardevCommon

ChardevBackendTestdev is an implementation of ChardevBackend.

func (ChardevBackendTestdev) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendUDP Uses

type ChardevBackendUDP ChardevUDP

ChardevBackendUDP is an implementation of ChardevBackend.

func (ChardevBackendUDP) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendVc Uses

type ChardevBackendVc ChardevVc

ChardevBackendVc is an implementation of ChardevBackend.

func (ChardevBackendVc) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevBackendWctablet Uses

type ChardevBackendWctablet ChardevCommon

ChardevBackendWctablet is an implementation of ChardevBackend.

func (ChardevBackendWctablet) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ChardevCommon Uses

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

ChardevCommon implements the "ChardevCommon" QMP API type.

type ChardevFile Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ChardevReturn implements the "ChardevReturn" QMP API type.

type ChardevRingbuf Uses

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 Uses

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 Uses

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

UnmarshalJSON implements json.Unmarshaler.

type ChardevSpiceChannel Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

UnmarshalJSON implements json.Unmarshaler.

type ChardevVc Uses

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 Uses

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

CommandInfo implements the "CommandInfo" QMP API type.

type CommandLineOptionInfo Uses

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

CommandLineOptionInfo implements the "CommandLineOptionInfo" QMP API type.

type CommandLineParameterInfo Uses

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 Uses

type CommandLineParameterType int

CommandLineParameterType implements the "CommandLineParameterType" QMP API type.

const (
    CommandLineParameterTypeString CommandLineParameterType = iota
    CommandLineParameterTypeBoolean
    CommandLineParameterTypefloat64
    CommandLineParameterTypeuint64
)

Known values of CommandLineParameterType.

func (CommandLineParameterType) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (CommandLineParameterType) String Uses

func (e CommandLineParameterType) String() string

String implements fmt.Stringer.

func (*CommandLineParameterType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type DataFormat Uses

type DataFormat int

DataFormat implements the "DataFormat" QMP API type.

const (
    DataFormatUtf8 DataFormat = iota
    DataFormatBase64
)

Known values of DataFormat.

func (DataFormat) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (DataFormat) String Uses

func (e DataFormat) String() string

String implements fmt.Stringer.

func (*DataFormat) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type DevicePropertyInfo Uses

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 Uses

type DirtyBitmapStatus int

DirtyBitmapStatus implements the "DirtyBitmapStatus" QMP API type.

const (
    DirtyBitmapStatusActive DirtyBitmapStatus = iota
    DirtyBitmapStatusDisabled
    DirtyBitmapStatusFrozen
)

Known values of DirtyBitmapStatus.

func (DirtyBitmapStatus) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (DirtyBitmapStatus) String Uses

func (e DirtyBitmapStatus) String() string

String implements fmt.Stringer.

func (*DirtyBitmapStatus) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type DriveBackup Uses

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 Uses

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 Uses

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

DumpGuestMemoryCapability implements the "DumpGuestMemoryCapability" QMP API type.

type DumpGuestMemoryFormat Uses

type DumpGuestMemoryFormat int

DumpGuestMemoryFormat implements the "DumpGuestMemoryFormat" QMP API type.

const (
    DumpGuestMemoryFormatElf DumpGuestMemoryFormat = iota
    DumpGuestMemoryFormatKdumpZlib
    DumpGuestMemoryFormatKdumpLzo
    DumpGuestMemoryFormatKdumpSnappy
)

Known values of DumpGuestMemoryFormat.

func (DumpGuestMemoryFormat) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (DumpGuestMemoryFormat) String Uses

func (e DumpGuestMemoryFormat) String() string

String implements fmt.Stringer.

func (*DumpGuestMemoryFormat) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type DumpQueryResult Uses

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

DumpQueryResult implements the "DumpQueryResult" QMP API type.

type DumpStatus Uses

type DumpStatus int

DumpStatus implements the "DumpStatus" QMP API type.

const (
    DumpStatusNone DumpStatus = iota
    DumpStatusActive
    DumpStatusCompleted
    DumpStatusFailed
)

Known values of DumpStatus.

func (DumpStatus) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (DumpStatus) String Uses

func (e DumpStatus) String() string

String implements fmt.Stringer.

func (*DumpStatus) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type EventInfo Uses

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

EventInfo implements the "EventInfo" QMP API type.

type FdsetFDInfo Uses

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

FdsetFDInfo implements the "FdsetFdInfo" QMP API type.

type FdsetInfo Uses

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

FdsetInfo implements the "FdsetInfo" QMP API type.

type GUIDInfo Uses

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

GUIDInfo implements the "GuidInfo" QMP API type.

type GicCapability Uses

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

GicCapability implements the "GICCapability" QMP API type.

type GuestPanicAction Uses

type GuestPanicAction int

GuestPanicAction implements the "GuestPanicAction" QMP API type.

const (
    GuestPanicActionPause GuestPanicAction = iota
    GuestPanicActionPoweroff
)

Known values of GuestPanicAction.

func (GuestPanicAction) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (GuestPanicAction) String Uses

func (e GuestPanicAction) String() string

String implements fmt.Stringer.

func (*GuestPanicAction) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type GuestPanicInformation Uses

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

GuestPanicInformation implements the "GuestPanicInformation" QMP API type.

Can be one of:

- GuestPanicInformationHyperV

type GuestPanicInformationHyperV Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type GuestPanicInformationType Uses

type GuestPanicInformationType int

GuestPanicInformationType implements the "GuestPanicInformationType" QMP API type.

const (
    GuestPanicInformationTypeHyperV GuestPanicInformationType = iota
)

Known values of GuestPanicInformationType.

func (GuestPanicInformationType) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (GuestPanicInformationType) String Uses

func (e GuestPanicInformationType) String() string

String implements fmt.Stringer.

func (*GuestPanicInformationType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type HostMemPolicy Uses

type HostMemPolicy int

HostMemPolicy implements the "HostMemPolicy" QMP API type.

const (
    HostMemPolicyDefault HostMemPolicy = iota
    HostMemPolicyPreferred
    HostMemPolicyBind
    HostMemPolicyInterleave
)

Known values of HostMemPolicy.

func (HostMemPolicy) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (HostMemPolicy) String Uses

func (e HostMemPolicy) String() string

String implements fmt.Stringer.

func (*HostMemPolicy) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type HotpluggableCPU Uses

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 Uses

type IOOperationType int

IOOperationType implements the "IoOperationType" QMP API type.

const (
    IOOperationTypeRead IOOperationType = iota
    IOOperationTypeWrite
)

Known values of IOOperationType.

func (IOOperationType) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (IOOperationType) String Uses

func (e IOOperationType) String() string

String implements fmt.Stringer.

func (*IOOperationType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type IOThreadInfo Uses

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 Uses

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 Uses

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

UnmarshalJSON implements json.Unmarshaler.

type ImageInfoSpecific Uses

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

ImageInfoSpecific implements the "ImageInfoSpecific" QMP API type.

Can be one of:

- ImageInfoSpecificLUKS
- ImageInfoSpecificQcow2
- ImageInfoSpecificVMDK

type ImageInfoSpecificLUKS Uses

type ImageInfoSpecificLUKS QCryptoBlockInfoLUKS

ImageInfoSpecificLUKS is an implementation of ImageInfoSpecific.

func (ImageInfoSpecificLUKS) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ImageInfoSpecificQCow2 Uses

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 Uses

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

UnmarshalJSON implements json.Unmarshaler.

type ImageInfoSpecificQCow2Encryption Uses

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

ImageInfoSpecificQCow2Encryption implements the "ImageInfoSpecificQCow2Encryption" QMP API type.

Can be one of:

- ImageInfoSpecificQCow2EncryptionAes
- ImageInfoSpecificQCow2EncryptionLUKS

type ImageInfoSpecificQCow2EncryptionAes Uses

type ImageInfoSpecificQCow2EncryptionAes struct {
}

ImageInfoSpecificQCow2EncryptionAes is an implementation of ImageInfoSpecificQCow2Encryption.

func (ImageInfoSpecificQCow2EncryptionAes) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ImageInfoSpecificQCow2EncryptionLUKS Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type ImageInfoSpecificQcow2 Uses

type ImageInfoSpecificQcow2 ImageInfoSpecificQCow2

ImageInfoSpecificQcow2 is an implementation of ImageInfoSpecific.

func (ImageInfoSpecificQcow2) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type ImageInfoSpecificVMDK Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type InetSocketAddress Uses

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 Uses

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

InetSocketAddressBase implements the "InetSocketAddressBase" QMP API type.

type InputAxis Uses

type InputAxis int

InputAxis implements the "InputAxis" QMP API type.

const (
    InputAxisX InputAxis = iota
    InputAxisY
)

Known values of InputAxis.

func (InputAxis) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (InputAxis) String Uses

func (e InputAxis) String() string

String implements fmt.Stringer.

func (*InputAxis) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type InputBtnEvent Uses

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

InputBtnEvent implements the "InputBtnEvent" QMP API type.

type InputButton Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (InputButton) String Uses

func (e InputButton) String() string

String implements fmt.Stringer.

func (*InputButton) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type InputEvent Uses

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 Uses

type InputEventAbs InputMoveEvent

InputEventAbs is an implementation of InputEvent.

func (InputEventAbs) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type InputEventBtn Uses

type InputEventBtn InputBtnEvent

InputEventBtn is an implementation of InputEvent.

func (InputEventBtn) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type InputEventKey Uses

type InputEventKey InputKeyEvent

InputEventKey is an implementation of InputEvent.

func (InputEventKey) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type InputEventRel Uses

type InputEventRel InputMoveEvent

InputEventRel is an implementation of InputEvent.

func (InputEventRel) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type InputKeyEvent Uses

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

InputKeyEvent implements the "InputKeyEvent" QMP API type.

func (*InputKeyEvent) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type InputMoveEvent Uses

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

InputMoveEvent implements the "InputMoveEvent" QMP API type.

type IsNullable Uses

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

IsNullable is implemented by any JSON null type

type IscsiHeaderDigest Uses

type IscsiHeaderDigest int

IscsiHeaderDigest implements the "IscsiHeaderDigest" QMP API type.

const (
    IscsiHeaderDigestCrc32C IscsiHeaderDigest = iota
    IscsiHeaderDigestNone
    IscsiHeaderDigestCrc32CNone
    IscsiHeaderDigestNoneCrc32C
)

Known values of IscsiHeaderDigest.

func (IscsiHeaderDigest) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (IscsiHeaderDigest) String Uses

func (e IscsiHeaderDigest) String() string

String implements fmt.Stringer.

func (*IscsiHeaderDigest) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type IscsiTransport Uses

type IscsiTransport int

IscsiTransport implements the "IscsiTransport" QMP API type.

const (
    IscsiTransportTCP IscsiTransport = iota
    IscsiTransportIser
)

Known values of IscsiTransport.

func (IscsiTransport) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (IscsiTransport) String Uses

func (e IscsiTransport) String() string

String implements fmt.Stringer.

func (*IscsiTransport) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type JSONType Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (JSONType) String Uses

func (e JSONType) String() string

String implements fmt.Stringer.

func (*JSONType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type KVMInfo Uses

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

KVMInfo implements the "KvmInfo" QMP API type.

type KeyValue Uses

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

KeyValue implements the "KeyValue" QMP API type.

Can be one of:

- KeyValuefloat64
- KeyValueQcode

type KeyValueQcode Uses

type KeyValueQcode QKeyCode

KeyValueQcode is an implementation of KeyValue.

func (KeyValueQcode) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type KeyValuefloat64 Uses

type KeyValuefloat64 int64

KeyValuefloat64 is an implementation of KeyValue.

func (KeyValuefloat64) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type MachineInfo Uses

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 Uses

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 Uses

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

MemoryDeviceInfo implements the "MemoryDeviceInfo" QMP API type.

Can be one of:

- MemoryDeviceInfoDimm

type MemoryDeviceInfoDimm Uses

type MemoryDeviceInfoDimm PcdimmDeviceInfo

MemoryDeviceInfoDimm is an implementation of MemoryDeviceInfo.

func (MemoryDeviceInfoDimm) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type MemoryInfo Uses

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

MemoryInfo implements the "MemoryInfo" QMP API type.

type MigrateSetParameters Uses

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 Uses

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

UnmarshalJSON implements json.Unmarshaler.

type MigrationCapability Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (MigrationCapability) String Uses

func (e MigrationCapability) String() string

String implements fmt.Stringer.

func (*MigrationCapability) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type MigrationCapabilityStatus Uses

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

MigrationCapabilityStatus implements the "MigrationCapabilityStatus" QMP API type.

type MigrationInfo Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (MigrationStatus) String Uses

func (e MigrationStatus) String() string

String implements fmt.Stringer.

func (*MigrationStatus) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type MirrorSyncMode Uses

type MirrorSyncMode int

MirrorSyncMode implements the "MirrorSyncMode" QMP API type.

const (
    MirrorSyncModeTop MirrorSyncMode = iota
    MirrorSyncModeFull
    MirrorSyncModeNone
    MirrorSyncModeIncremental
)

Known values of MirrorSyncMode.

func (MirrorSyncMode) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (MirrorSyncMode) String Uses

func (e MirrorSyncMode) String() string

String implements fmt.Stringer.

func (*MirrorSyncMode) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type Monitor Uses

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

Monitor exposes the raw QMP command set.

func NewMonitor Uses

func NewMonitor(mon qmp.Monitor) *Monitor

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

func (*Monitor) AddClient Uses

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 Uses

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

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

func (*Monitor) Balloon Uses

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

Balloon implements the "balloon" QMP API call.

func (*Monitor) BlockCommit Uses

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 Uses

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 Uses

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

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

func (*Monitor) BlockDirtyBitmapRemove Uses

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

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

func (*Monitor) BlockJobCancel Uses

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

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

func (*Monitor) BlockJobComplete Uses

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

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

func (*Monitor) BlockJobPause Uses

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

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

func (*Monitor) BlockJobResume Uses

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

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

func (*Monitor) BlockJobSetSpeed Uses

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

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

func (*Monitor) BlockPasswd Uses

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

BlockPasswd implements the "block_passwd" QMP API call.

func (*Monitor) BlockResize Uses

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

BlockResize implements the "block_resize" QMP API call.

func (*Monitor) BlockSetIOThrottle Uses

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

BlockSetIOThrottle implements the "block_set_io_throttle" QMP API call.

func (*Monitor) BlockSetWriteThreshold Uses

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

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

func (*Monitor) BlockStream Uses

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 Uses

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

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

func (*Monitor) BlockdevBackup Uses

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

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

func (*Monitor) BlockdevChangeMedium Uses

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 Uses

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

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

func (*Monitor) BlockdevDel Uses

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

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

func (*Monitor) BlockdevMirror Uses

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 Uses

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

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

func (*Monitor) BlockdevSnapshot Uses

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

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

func (*Monitor) BlockdevSnapshotDeleteInternalSync Uses

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 Uses

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

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

func (*Monitor) BlockdevSnapshotSync Uses

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 Uses

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

CPU implements the "cpu" QMP API call.

func (*Monitor) CPUAdd Uses

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

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

func (*Monitor) Change Uses

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

Change implements the "change" QMP API call.

func (*Monitor) ChangeBackingFile Uses

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

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

func (*Monitor) ChangeVNCPassword Uses

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

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

func (*Monitor) ChardevAdd Uses

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

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

func (*Monitor) ChardevChange Uses

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

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

func (*Monitor) ChardevRemove Uses

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

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

func (*Monitor) ChardevSendBreak Uses

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

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

func (*Monitor) ClientMigrateInfo Uses

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 Uses

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

Closefd implements the "closefd" QMP API call.

func (*Monitor) Cont Uses

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

Cont implements the "cont" QMP API call.

func (*Monitor) DeviceAdd Uses

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

DeviceAdd implements the "device_add" QMP API call.

func (*Monitor) DeviceDel Uses

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

DeviceDel implements the "device_del" QMP API call.

func (*Monitor) DeviceListProperties Uses

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

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

func (*Monitor) DriveBackup Uses

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

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

func (*Monitor) DriveMirror Uses

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

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

func (*Monitor) DumpGuestMemory Uses

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 Uses

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

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

func (*Monitor) Eject Uses

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

Eject implements the "eject" QMP API call.

func (*Monitor) ExpirePassword Uses

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

ExpirePassword implements the "expire_password" QMP API call.

func (*Monitor) Getfd Uses

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

Getfd implements the "getfd" QMP API call.

func (*Monitor) HumanMonitorCommand Uses

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

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

func (*Monitor) InjectNmi Uses

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

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

func (*Monitor) InputSendEvent Uses

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

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

func (*Monitor) Memsave Uses

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

Memsave implements the "memsave" QMP API call.

func (*Monitor) Migrate Uses

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

Migrate implements the "migrate" QMP API call.

func (*Monitor) MigrateCancel Uses

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

MigrateCancel implements the "migrate_cancel" QMP API call.

func (*Monitor) MigrateContinue Uses

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

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

func (*Monitor) MigrateIncoming Uses

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

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

func (*Monitor) MigrateSetCacheSize Uses

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

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

func (*Monitor) MigrateSetCapabilities Uses

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

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

func (*Monitor) MigrateSetDowntime Uses

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

MigrateSetDowntime implements the "migrate_set_downtime" QMP API call.

func (*Monitor) MigrateSetParameters Uses

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

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

func (*Monitor) MigrateSetSpeed Uses

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

MigrateSetSpeed implements the "migrate_set_speed" QMP API call.

func (*Monitor) MigrateStartPostcopy Uses

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

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

func (*Monitor) NBDServerAdd Uses

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

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

func (*Monitor) NBDServerStart Uses

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

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

func (*Monitor) NBDServerStop Uses

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

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

func (*Monitor) NetdevAdd Uses

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

NetdevAdd implements the "netdev_add" QMP API call.

func (*Monitor) NetdevDel Uses

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

NetdevDel implements the "netdev_del" QMP API call.

func (*Monitor) ObjectAdd Uses

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

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

func (*Monitor) ObjectDel Uses

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

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

func (*Monitor) Pmemsave Uses

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

Pmemsave implements the "pmemsave" QMP API call.

func (*Monitor) QMPCapabilities Uses

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

QMPCapabilities implements the "qmp_capabilities" QMP API call.

func (*Monitor) QomGet Uses

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

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

func (*Monitor) QomList Uses

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

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

func (*Monitor) QomListTypes Uses

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

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

func (*Monitor) QomSet Uses

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

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

func (*Monitor) QueryACPIOspmStatus Uses

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

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

func (*Monitor) QueryBalloon Uses

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

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

func (*Monitor) QueryBlock Uses

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

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

func (*Monitor) QueryBlockJobs Uses

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

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

func (*Monitor) QueryBlockstats Uses

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

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

func (*Monitor) QueryCPUDefinitions Uses

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

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

func (*Monitor) QueryCPUModelBaseline Uses

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 Uses

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 Uses

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 Uses

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

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

func (*Monitor) QueryChardevBackends Uses

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

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

func (*Monitor) QueryCommandLineOptions Uses

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

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

func (*Monitor) QueryCommands Uses

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

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

func (*Monitor) QueryCpus Uses

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

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

func (*Monitor) QueryDump Uses

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

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

func (*Monitor) QueryDumpGuestMemoryCapability Uses

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

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

func (*Monitor) QueryEvents Uses

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

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

func (*Monitor) QueryFdsets Uses

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

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

func (*Monitor) QueryGicCapabilities Uses

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

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

func (*Monitor) QueryHotpluggableCpus Uses

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

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

func (*Monitor) QueryIothreads Uses

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

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

func (*Monitor) QueryKVM Uses

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

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

func (*Monitor) QueryMachines Uses

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

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

func (*Monitor) QueryMemdev Uses

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

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

func (*Monitor) QueryMemoryDevices Uses

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

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

func (*Monitor) QueryMemorySizeSummary Uses

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

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

func (*Monitor) QueryMice Uses

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

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

func (*Monitor) QueryMigrate Uses

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

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

func (*Monitor) QueryMigrateCacheSize Uses

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

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

func (*Monitor) QueryMigrateCapabilities Uses

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

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

func (*Monitor) QueryMigrateParameters Uses

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

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

func (*Monitor) QueryName Uses

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

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

func (*Monitor) QueryNamedBlockNodes Uses

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

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

func (*Monitor) QueryPCI Uses

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

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

func (*Monitor) QueryQMPSchema Uses

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

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

func (*Monitor) QueryRocker Uses

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

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

func (*Monitor) QueryRockerOfDpaFlows Uses

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 Uses

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 Uses

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

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

func (*Monitor) QueryRxFilter Uses

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

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

func (*Monitor) QuerySpice Uses

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

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

func (*Monitor) QueryStatus Uses

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

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

func (*Monitor) QueryTPM Uses

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

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

func (*Monitor) QueryTPMModels Uses

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

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

func (*Monitor) QueryTPMTypes Uses

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

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

func (*Monitor) QueryTarget Uses

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

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

func (*Monitor) QueryUUID Uses

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

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

func (*Monitor) QueryVMGenerationID Uses

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

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

func (*Monitor) QueryVNC Uses

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

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

func (*Monitor) QueryVNCServers Uses

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

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

func (*Monitor) QueryVersion Uses

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

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

func (*Monitor) QueryXenReplicationStatus Uses

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

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

func (*Monitor) Quit Uses

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

Quit implements the "quit" QMP API call.

func (*Monitor) RemoveFD Uses

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

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

func (*Monitor) RingbufRead Uses

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 Uses

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

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

func (*Monitor) RtcResetReinjection Uses

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

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

func (*Monitor) Screendump Uses

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

Screendump implements the "screendump" QMP API call.

func (*Monitor) SendKey Uses

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 Uses

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

SetPassword implements the "set_password" QMP API call.

func (*Monitor) Stop Uses

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

Stop implements the "stop" QMP API call.

func (*Monitor) SystemPowerdown Uses

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

SystemPowerdown implements the "system_powerdown" QMP API call.

func (*Monitor) SystemReset Uses

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

SystemReset implements the "system_reset" QMP API call.

func (*Monitor) SystemWakeup Uses

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

SystemWakeup implements the "system_wakeup" QMP API call.

func (*Monitor) TraceEventGetState Uses

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 Uses

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 Uses

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

Transaction implements the "transaction" QMP API call.

func (*Monitor) WatchdogSetAction Uses

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

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

func (*Monitor) XBlockdevChange Uses

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

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

func (*Monitor) XBlockdevInsertMedium Uses

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 Uses

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

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

func (*Monitor) XColoLostHeartbeat Uses

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

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

func (*Monitor) XenColoDoCheckpoint Uses

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

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

func (*Monitor) XenLoadDevicesState Uses

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

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

func (*Monitor) XenSaveDevicesState Uses

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

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

func (*Monitor) XenSetGlobalDirtyLog Uses

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

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

func (*Monitor) XenSetReplication Uses

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

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

type MouseInfo Uses

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 Uses

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

NameInfo implements the "NameInfo" QMP API type.

type NetworkAddressFamily Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (NetworkAddressFamily) String Uses

func (e NetworkAddressFamily) String() string

String implements fmt.Stringer.

func (*NetworkAddressFamily) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type NewImageMode Uses

type NewImageMode int

NewImageMode implements the "NewImageMode" QMP API type.

const (
    NewImageModeExisting NewImageMode = iota
    NewImageModeAbsolutePaths
)

Known values of NewImageMode.

func (NewImageMode) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (NewImageMode) String Uses

func (e NewImageMode) String() string

String implements fmt.Stringer.

func (*NewImageMode) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type NfsServer Uses

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

NfsServer implements the "NFSServer" QMP API type.

type NfsTransport Uses

type NfsTransport int

NfsTransport implements the "NFSTransport" QMP API type.

const (
    NfsTransportInet NfsTransport = iota
)

Known values of NfsTransport.

func (NfsTransport) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (NfsTransport) String Uses

func (e NfsTransport) String() string

String implements fmt.Stringer.

func (*NfsTransport) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type ObjectPropertyInfo Uses

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

ObjectPropertyInfo implements the "ObjectPropertyInfo" QMP API type.

type ObjectTypeInfo Uses

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 Uses

type OnOffAuto int

OnOffAuto implements the "OnOffAuto" QMP API type.

const (
    OnOffAutoAuto OnOffAuto = iota
    OnOffAutoOn
    OnOffAutoOff
)

Known values of OnOffAuto.

func (OnOffAuto) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (OnOffAuto) String Uses

func (e OnOffAuto) String() string

String implements fmt.Stringer.

func (*OnOffAuto) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type PCIBridgeInfo Uses

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

PCIBridgeInfo implements the "PciBridgeInfo" QMP API type.

type PCIBusInfo Uses

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 Uses

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

PCIDeviceClass implements the "PciDeviceClass" QMP API type.

type PCIDeviceID Uses

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

PCIDeviceID implements the "PciDeviceId" QMP API type.

type PCIDeviceInfo Uses

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 Uses

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

PCIInfo implements the "PciInfo" QMP API type.

type PCIMemoryRange Uses

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

PCIMemoryRange implements the "PciMemoryRange" QMP API type.

type PCIMemoryRegion Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (QCryptoCipherAlgorithm) String Uses

func (e QCryptoCipherAlgorithm) String() string

String implements fmt.Stringer.

func (*QCryptoCipherAlgorithm) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type QCryptoCipherMode Uses

type QCryptoCipherMode int

QCryptoCipherMode implements the "QCryptoCipherMode" QMP API type.

const (
    QCryptoCipherModeEcb QCryptoCipherMode = iota
    QCryptoCipherModeCbc
    QCryptoCipherModeXts
    QCryptoCipherModeCtr
)

Known values of QCryptoCipherMode.

func (QCryptoCipherMode) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (QCryptoCipherMode) String Uses

func (e QCryptoCipherMode) String() string

String implements fmt.Stringer.

func (*QCryptoCipherMode) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type QCryptoHashAlgorithm Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (QCryptoHashAlgorithm) String Uses

func (e QCryptoHashAlgorithm) String() string

String implements fmt.Stringer.

func (*QCryptoHashAlgorithm) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type QCryptoIvGenAlgorithm Uses

type QCryptoIvGenAlgorithm int

QCryptoIvGenAlgorithm implements the "QCryptoIVGenAlgorithm" QMP API type.

const (
    QCryptoIvGenAlgorithmPlain QCryptoIvGenAlgorithm = iota
    QCryptoIvGenAlgorithmPlain64
    QCryptoIvGenAlgorithmEssiv
)

Known values of QCryptoIvGenAlgorithm.

func (QCryptoIvGenAlgorithm) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (QCryptoIvGenAlgorithm) String Uses

func (e QCryptoIvGenAlgorithm) String() string

String implements fmt.Stringer.

func (*QCryptoIvGenAlgorithm) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type QKeyCode Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (QKeyCode) String Uses

func (e QKeyCode) String() string

String implements fmt.Stringer.

func (*QKeyCode) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type Qcow2OverlapCheckFlags Uses

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 Uses

type Qcow2OverlapCheckMode int

Qcow2OverlapCheckMode implements the "Qcow2OverlapCheckMode" QMP API type.

const (
    Qcow2OverlapCheckModeNone Qcow2OverlapCheckMode = iota
    Qcow2OverlapCheckModeConstant
    Qcow2OverlapCheckModeCached
    Qcow2OverlapCheckModeAll
)

Known values of Qcow2OverlapCheckMode.

func (Qcow2OverlapCheckMode) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (Qcow2OverlapCheckMode) String Uses

func (e Qcow2OverlapCheckMode) String() string

String implements fmt.Stringer.

func (*Qcow2OverlapCheckMode) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type Qcow2OverlapChecks Uses

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

Qcow2OverlapChecks implements the "Qcow2OverlapChecks" QMP API type.

Can be one of:

- Qcow2OverlapChecksFlags
- Qcow2OverlapChecksMode

type Qcow2OverlapChecksFlags Uses

type Qcow2OverlapChecksFlags Qcow2OverlapCheckFlags

Qcow2OverlapChecksFlags is an implementation of Qcow2OverlapChecks

type Qcow2OverlapChecksMode Uses

type Qcow2OverlapChecksMode Qcow2OverlapCheckMode

Qcow2OverlapChecksMode is an implementation of Qcow2OverlapChecks

type QuorumOpType Uses

type QuorumOpType int

QuorumOpType implements the "QuorumOpType" QMP API type.

const (
    QuorumOpTypeRead QuorumOpType = iota
    QuorumOpTypeWrite
    QuorumOpTypeFlush
)

Known values of QuorumOpType.

func (QuorumOpType) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (QuorumOpType) String Uses

func (e QuorumOpType) String() string

String implements fmt.Stringer.

func (*QuorumOpType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type QuorumReadPattern Uses

type QuorumReadPattern int

QuorumReadPattern implements the "QuorumReadPattern" QMP API type.

const (
    QuorumReadPatternQuorum QuorumReadPattern = iota
    QuorumReadPatternFifo
)

Known values of QuorumReadPattern.

func (QuorumReadPattern) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (QuorumReadPattern) String Uses

func (e QuorumReadPattern) String() string

String implements fmt.Stringer.

func (*QuorumReadPattern) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type ReplicationMode Uses

type ReplicationMode int

ReplicationMode implements the "ReplicationMode" QMP API type.

const (
    ReplicationModePrimary ReplicationMode = iota
    ReplicationModeSecondary
)

Known values of ReplicationMode.

func (ReplicationMode) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (ReplicationMode) String Uses

func (e ReplicationMode) String() string

String implements fmt.Stringer.

func (*ReplicationMode) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type ReplicationStatus Uses

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

ReplicationStatus implements the "ReplicationStatus" QMP API type.

type RockerOfDpaFlow Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type RockerPortAutoneg int

RockerPortAutoneg implements the "RockerPortAutoneg" QMP API type.

const (
    RockerPortAutonegOff RockerPortAutoneg = iota
    RockerPortAutonegOn
)

Known values of RockerPortAutoneg.

func (RockerPortAutoneg) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (RockerPortAutoneg) String Uses

func (e RockerPortAutoneg) String() string

String implements fmt.Stringer.

func (*RockerPortAutoneg) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type RockerPortDuplex Uses

type RockerPortDuplex int

RockerPortDuplex implements the "RockerPortDuplex" QMP API type.

const (
    RockerPortDuplexHalf RockerPortDuplex = iota
    RockerPortDuplexFull
)

Known values of RockerPortDuplex.

func (RockerPortDuplex) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (RockerPortDuplex) String Uses

func (e RockerPortDuplex) String() string

String implements fmt.Stringer.

func (*RockerPortDuplex) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type RockerSwitch Uses

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

RockerSwitch implements the "RockerSwitch" QMP API type.

type RunState Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (RunState) String Uses

func (e RunState) String() string

String implements fmt.Stringer.

func (*RunState) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type RxFilterInfo Uses

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 Uses

type RxState int

RxState implements the "RxState" QMP API type.

const (
    RxStateNormal RxState = iota
    RxStateNone
    RxStateAll
)

Known values of RxState.

func (RxState) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (RxState) String Uses

func (e RxState) String() string

String implements fmt.Stringer.

func (*RxState) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type SchemaInfo Uses

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 Uses

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

SchemaInfoAlternate is an implementation of SchemaInfo.

func (SchemaInfoAlternate) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SchemaInfoAlternateMember Uses

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

SchemaInfoAlternateMember implements the "SchemaInfoAlternateMember" QMP API type.

type SchemaInfoArray Uses

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

SchemaInfoArray is an implementation of SchemaInfo.

func (SchemaInfoArray) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SchemaInfoBuiltin Uses

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

SchemaInfoBuiltin is an implementation of SchemaInfo.

func (SchemaInfoBuiltin) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SchemaInfoCommand Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type SchemaInfoEnum Uses

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

SchemaInfoEnum is an implementation of SchemaInfo.

func (SchemaInfoEnum) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SchemaInfoEvent Uses

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

SchemaInfoEvent is an implementation of SchemaInfo.

func (SchemaInfoEvent) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SchemaInfoObject Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type SchemaInfoObjectMember Uses

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 Uses

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

SchemaInfoObjectVariant implements the "SchemaInfoObjectVariant" QMP API type.

type SchemaMetaType Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (SchemaMetaType) String Uses

func (e SchemaMetaType) String() string

String implements fmt.Stringer.

func (*SchemaMetaType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type SnapshotInfo Uses

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 Uses

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 Uses

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

SocketAddressFD is an implementation of SocketAddress.

func (SocketAddressFD) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SocketAddressInet Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

type SocketAddressLegacy Uses

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 Uses

type SocketAddressLegacyFD String

SocketAddressLegacyFD is an implementation of SocketAddressLegacy.

func (SocketAddressLegacyFD) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SocketAddressLegacyInet Uses

type SocketAddressLegacyInet InetSocketAddress

SocketAddressLegacyInet is an implementation of SocketAddressLegacy.

func (SocketAddressLegacyInet) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SocketAddressLegacyUnix Uses

type SocketAddressLegacyUnix UnixSocketAddress

SocketAddressLegacyUnix is an implementation of SocketAddressLegacy.

func (SocketAddressLegacyUnix) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SocketAddressLegacyVsock Uses

type SocketAddressLegacyVsock VsockSocketAddress

SocketAddressLegacyVsock is an implementation of SocketAddressLegacy.

func (SocketAddressLegacyVsock) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SocketAddressType Uses

type SocketAddressType int

SocketAddressType implements the "SocketAddressType" QMP API type.

const (
    SocketAddressTypeInet SocketAddressType = iota
    SocketAddressTypeUnix
    SocketAddressTypeVsock
    SocketAddressTypeFD
)

Known values of SocketAddressType.

func (SocketAddressType) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (SocketAddressType) String Uses

func (e SocketAddressType) String() string

String implements fmt.Stringer.

func (*SocketAddressType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type SocketAddressUnix Uses

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

SocketAddressUnix is an implementation of SocketAddress.

func (SocketAddressUnix) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SocketAddressVsock Uses

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

SocketAddressVsock is an implementation of SocketAddress.

func (SocketAddressVsock) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type SpiceBasicInfo Uses

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

SpiceBasicInfo implements the "SpiceBasicInfo" QMP API type.

type SpiceChannel Uses

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 Uses

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 Uses

type SpiceQueryMouseMode int

SpiceQueryMouseMode implements the "SpiceQueryMouseMode" QMP API type.

const (
    SpiceQueryMouseModeClient SpiceQueryMouseMode = iota
    SpiceQueryMouseModeServer
    SpiceQueryMouseModeUnknown
)

Known values of SpiceQueryMouseMode.

func (SpiceQueryMouseMode) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (SpiceQueryMouseMode) String Uses

func (e SpiceQueryMouseMode) String() string

String implements fmt.Stringer.

func (*SpiceQueryMouseMode) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type SpiceServerInfo Uses

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 Uses

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

StatusInfo implements the "StatusInfo" QMP API type.

type StrOrNull Uses

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

StrOrNull implements the "StrOrNull" QMP API type.

Can be one of:

- StrOrNullN
- StrOrNullS

type StrOrNullN Uses

type StrOrNullN struct{}

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

type StrOrNullS Uses

type StrOrNullS string

StrOrNullS is an implementation of StrOrNull

type String Uses

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

String implements the "String" QMP API type.

type TPMEmulatorOptions Uses

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

TPMEmulatorOptions implements the "TPMEmulatorOptions" QMP API type.

type TPMInfo Uses

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 Uses

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

UnmarshalJSON implements json.Unmarshaler.

type TPMModel Uses

type TPMModel int

TPMModel implements the "TpmModel" QMP API type.

const (
    TPMModelTPMTis TPMModel = iota
)

Known values of TPMModel.

func (TPMModel) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (TPMModel) String Uses

func (e TPMModel) String() string

String implements fmt.Stringer.

func (*TPMModel) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type TPMPassthroughOptions Uses

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

TPMPassthroughOptions implements the "TPMPassthroughOptions" QMP API type.

type TPMType Uses

type TPMType int

TPMType implements the "TpmType" QMP API type.

const (
    TPMTypePassthrough TPMType = iota
    TPMTypeEmulator
)

Known values of TPMType.

func (TPMType) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (TPMType) String Uses

func (e TPMType) String() string

String implements fmt.Stringer.

func (*TPMType) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type TPMTypeOptions Uses

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

TPMTypeOptions implements the "TpmTypeOptions" QMP API type.

Can be one of:

- TPMTypeOptionsEmulator
- TPMTypeOptionsPassthrough

type TPMTypeOptionsEmulator Uses

type TPMTypeOptionsEmulator TPMEmulatorOptions

TPMTypeOptionsEmulator is an implementation of TPMTypeOptions.

func (TPMTypeOptionsEmulator) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type TPMTypeOptionsPassthrough Uses

type TPMTypeOptionsPassthrough TPMPassthroughOptions

TPMTypeOptionsPassthrough is an implementation of TPMTypeOptions.

func (TPMTypeOptionsPassthrough) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type TargetInfo Uses

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

TargetInfo implements the "TargetInfo" QMP API type.

type TraceEventInfo Uses

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

TraceEventInfo implements the "TraceEventInfo" QMP API type.

type TraceEventState Uses

type TraceEventState int

TraceEventState implements the "TraceEventState" QMP API type.

const (
    TraceEventStateUnavailable TraceEventState = iota
    TraceEventStateDisabled
    TraceEventStateEnabled
)

Known values of TraceEventState.

func (TraceEventState) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

func (TraceEventState) String Uses

func (e TraceEventState) String() string

String implements fmt.Stringer.

func (*TraceEventState) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type TransactionAction Uses

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 Uses

type TransactionActionAbort Abort

TransactionActionAbort is an implementation of TransactionAction.

func (TransactionActionAbort) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type TransactionActionBlockDirtyBitmapAdd Uses

type TransactionActionBlockDirtyBitmapAdd BlockDirtyBitmapAdd

TransactionActionBlockDirtyBitmapAdd is an implementation of TransactionAction.

func (TransactionActionBlockDirtyBitmapAdd) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type TransactionActionBlockDirtyBitmapClear Uses

type TransactionActionBlockDirtyBitmapClear BlockDirtyBitmap

TransactionActionBlockDirtyBitmapClear is an implementation of TransactionAction.

func (TransactionActionBlockDirtyBitmapClear) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type TransactionActionBlockdevBackup Uses

type TransactionActionBlockdevBackup BlockdevBackup

TransactionActionBlockdevBackup is an implementation of TransactionAction.

func (TransactionActionBlockdevBackup) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type TransactionActionBlockdevSnapshot Uses

type TransactionActionBlockdevSnapshot BlockdevSnapshot

TransactionActionBlockdevSnapshot is an implementation of TransactionAction.

func (TransactionActionBlockdevSnapshot) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type TransactionActionBlockdevSnapshotInternalSync Uses

type TransactionActionBlockdevSnapshotInternalSync BlockdevSnapshotInternal

TransactionActionBlockdevSnapshotInternalSync is an implementation of TransactionAction.

func (TransactionActionBlockdevSnapshotInternalSync) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type TransactionActionBlockdevSnapshotSync Uses

type TransactionActionBlockdevSnapshotSync BlockdevSnapshotSync

TransactionActionBlockdevSnapshotSync is an implementation of TransactionAction.

func (TransactionActionBlockdevSnapshotSync) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type TransactionActionDriveBackup Uses

type TransactionActionDriveBackup DriveBackup

TransactionActionDriveBackup is an implementation of TransactionAction.

func (TransactionActionDriveBackup) MarshalJSON Uses

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

MarshalJSON implements json.Marshaler.

type TransactionProperties Uses

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

TransactionProperties implements the "TransactionProperties" QMP API type.

type UUIDInfo Uses

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

UUIDInfo implements the "UuidInfo" QMP API type.

type UnixSocketAddress Uses

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

UnixSocketAddress implements the "UnixSocketAddress" QMP API type.

type VNCBasicInfo Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (VNCPrimaryAuth) String Uses

func (e VNCPrimaryAuth) String() string

String implements fmt.Stringer.

func (*VNCPrimaryAuth) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type VNCServerInfo Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (VNCVencryptSubAuth) String Uses

func (e VNCVencryptSubAuth) String() string

String implements fmt.Stringer.

func (*VNCVencryptSubAuth) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type VersionInfo Uses

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

VersionInfo implements the "VersionInfo" QMP API type.

type VersionTriple Uses

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

VersionTriple implements the "VersionTriple" QMP API type.

type VsockSocketAddress Uses

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

VsockSocketAddress implements the "VsockSocketAddress" QMP API type.

type WatchdogAction Uses

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 Uses

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

MarshalJSON implements json.Marshaler.

func (WatchdogAction) String Uses

func (e WatchdogAction) String() string

String implements fmt.Stringer.

func (*WatchdogAction) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler.

type XbzrleCacheStats Uses

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.

Package raw imports 3 packages (graph) and is imported by 2 packages. Updated 2018-12-02. Refresh now. Tools for package owners.