Documentation
¶
Overview ¶
Package raw provides automatically generated QMP types based on the QMP schema.
Index ¶
- type ACPIOSTInfo
- type ACPISlotType
- type Abort
- type ActionCompletionMode
- type AddfdInfo
- type BalloonInfo
- type BlkdebugEvent
- type BlkdebugInjectErrorOptions
- type BlkdebugSetStateOptions
- type BlockDeviceIOStatus
- type BlockDeviceInfo
- type BlockDeviceStats
- type BlockDeviceTimedStats
- type BlockDirtyBitmap
- type BlockDirtyBitmapAdd
- type BlockDirtyInfo
- type BlockErrorAction
- type BlockIOThrottle
- type BlockInfo
- type BlockJobInfo
- type BlockJobType
- type BlockStats
- type BlockdevAIOOptions
- type BlockdevBackup
- type BlockdevCacheInfo
- type BlockdevCacheOptions
- type BlockdevChangeReadOnlyMode
- type BlockdevDetectZeroesOptions
- type BlockdevDiscardOptions
- type BlockdevDriver
- type BlockdevOnError
- type BlockdevOptions
- type BlockdevOptionsArchipelago
- type BlockdevOptionsBlkdebug
- type BlockdevOptionsBlkverify
- type BlockdevOptionsBochs
- type BlockdevOptionsCloop
- type BlockdevOptionsDmg
- type BlockdevOptionsFTP
- type BlockdevOptionsFTPS
- type BlockdevOptionsFile
- type BlockdevOptionsGluster
- type BlockdevOptionsHTTP
- type BlockdevOptionsHTTPS
- type BlockdevOptionsHostCdrom
- type BlockdevOptionsHostDevice
- type BlockdevOptionsLUKS
- type BlockdevOptionsNullAIO
- type BlockdevOptionsNullCo
- type BlockdevOptionsParallels
- type BlockdevOptionsQcow
- type BlockdevOptionsQcow2
- type BlockdevOptionsQed
- type BlockdevOptionsQuorum
- type BlockdevOptionsRaw
- type BlockdevOptionsReplication
- type BlockdevOptionsTftp
- type BlockdevOptionsVMDK
- type BlockdevOptionsVdi
- type BlockdevOptionsVhdx
- type BlockdevOptionsVpc
- type BlockdevOptionsVvfat
- type BlockdevRef
- type BlockdevRefDefinition
- type BlockdevRefReference
- type BlockdevSnapshot
- type BlockdevSnapshotInternal
- type BlockdevSnapshotSync
- type CPUDefinitionInfo
- type CPUInfo
- type CPUInfoArch
- type CPUInfoMIPS
- type CPUInfoOther
- type CPUInfoPPC
- type CPUInfoSPARC
- type CPUInfoTricore
- type CPUInfoX86
- type CPUInstanceProperties
- type CPUModelBaselineInfo
- type CPUModelCompareInfo
- type CPUModelCompareResult
- type CPUModelExpansionInfo
- type CPUModelExpansionType
- type CPUModelInfo
- type ChardevBackend
- type ChardevBackendBraille
- type ChardevBackendConsole
- type ChardevBackendFile
- type ChardevBackendInfo
- type ChardevBackendMemory
- type ChardevBackendMsmouse
- type ChardevBackendMux
- type ChardevBackendNull
- type ChardevBackendParallel
- type ChardevBackendPipe
- type ChardevBackendPty
- type ChardevBackendRingbuf
- type ChardevBackendSerial
- type ChardevBackendSocket
- type ChardevBackendSpiceport
- type ChardevBackendSpicevmc
- type ChardevBackendStdio
- type ChardevBackendTestdev
- type ChardevBackendUDP
- type ChardevBackendVc
- type ChardevCommon
- type ChardevFile
- type ChardevHostdev
- type ChardevInfo
- type ChardevMux
- type ChardevReturn
- type ChardevRingbuf
- type ChardevSocket
- type ChardevSpiceChannel
- type ChardevSpicePort
- type ChardevStdio
- type ChardevUDP
- type ChardevVc
- type CommandInfo
- type CommandLineOptionInfo
- type CommandLineParameterInfo
- type CommandLineParameterType
- type DataFormat
- type DevicePropertyInfo
- type DirtyBitmapStatus
- type DriveBackup
- type DriveMirror
- type DumpGuestMemoryCapability
- type DumpGuestMemoryFormat
- type DumpQueryResult
- type DumpStatus
- type EventInfo
- type FdsetFDInfo
- type FdsetInfo
- type GicCapability
- type GlusterServer
- type GlusterServerTCP
- type GlusterServerUnix
- type GlusterTransport
- type GuestPanicAction
- type HostMemPolicy
- type HotpluggableCPU
- type IOOperationType
- type IOThreadInfo
- type ImageInfo
- type ImageInfoSpecific
- type ImageInfoSpecificLUKS
- type ImageInfoSpecificQCow2
- type ImageInfoSpecificQcow2
- type ImageInfoSpecificVMDK
- type InetSocketAddress
- type InputAxis
- type InputBtnEvent
- type InputButton
- type InputEvent
- type InputEventAbs
- type InputEventBtn
- type InputEventKey
- type InputEventRel
- type InputKeyEvent
- type InputMoveEvent
- type JSONType
- type KVMInfo
- type KeyValue
- type KeyValueQcode
- type KeyValuefloat64
- type MachineInfo
- type Memdev
- type MemoryDeviceInfo
- type MemoryDeviceInfoDimm
- type MigrationCapability
- type MigrationCapabilityStatus
- type MigrationInfo
- type MigrationParameters
- type MigrationStats
- type MigrationStatus
- type MirrorSyncMode
- type Monitor
- func (m *Monitor) AddClient(protocol string, fdname string, skipauth *bool, tls *bool) (err error)
- func (m *Monitor) AddFD(fdsetID *int64, opaque *string) (ret AddfdInfo, err error)
- func (m *Monitor) Balloon(value int64) (err error)
- func (m *Monitor) BlockCommit(jobID *string, device string, base *string, top *string, backingFile *string, ...) (err error)
- func (m *Monitor) BlockDirtyBitmapAdd(node string, name string, granularity *uint32) (err error)
- func (m *Monitor) BlockDirtyBitmapClear(node string, name string) (err error)
- func (m *Monitor) BlockDirtyBitmapRemove(node string, name string) (err error)
- func (m *Monitor) BlockJobCancel(device string, force *bool) (err error)
- func (m *Monitor) BlockJobComplete(device string) (err error)
- func (m *Monitor) BlockJobPause(device string) (err error)
- func (m *Monitor) BlockJobResume(device string) (err error)
- func (m *Monitor) BlockJobSetSpeed(device string, speed int64) (err error)
- func (m *Monitor) BlockPasswd(device *string, nodeName *string, password string) (err error)
- func (m *Monitor) BlockResize(device *string, nodeName *string, size int64) (err error)
- func (m *Monitor) BlockSetIOThrottle(cmd *BlockIOThrottle) (err error)
- func (m *Monitor) BlockSetWriteThreshold(nodeName string, writeThreshold uint64) (err error)
- func (m *Monitor) BlockStream(jobID *string, device string, base *string, backingFile *string, speed *int64, ...) (err error)
- func (m *Monitor) BlockdevAdd(options BlockdevOptions) (err error)
- func (m *Monitor) BlockdevBackup(cmd *BlockdevBackup) (err error)
- func (m *Monitor) BlockdevChangeMedium(device *string, id *string, filename string, format *string, ...) (err error)
- func (m *Monitor) BlockdevCloseTray(device *string, id *string) (err error)
- func (m *Monitor) BlockdevMirror(jobID *string, device string, target string, replaces *string, ...) (err error)
- func (m *Monitor) BlockdevOpenTray(device *string, id *string, force *bool) (err error)
- func (m *Monitor) BlockdevSnapshot(node string, overlay string) (err error)
- func (m *Monitor) BlockdevSnapshotDeleteInternalSync(device string, id *string, name *string) (ret SnapshotInfo, err error)
- func (m *Monitor) BlockdevSnapshotInternalSync(device string, name string) (err error)
- func (m *Monitor) BlockdevSnapshotSync(device *string, nodeName *string, snapshotFile string, ...) (err error)
- func (m *Monitor) CPU(index int64) (err error)
- func (m *Monitor) CPUAdd(id int64) (err error)
- func (m *Monitor) Change(device string, target string, arg *string) (err error)
- func (m *Monitor) ChangeBackingFile(device string, imageNodeName string, backingFile string) (err error)
- func (m *Monitor) ChangeVNCPassword(password string) (err error)
- func (m *Monitor) ChardevAdd(id string, backend ChardevBackend) (ret ChardevReturn, err error)
- func (m *Monitor) ChardevRemove(id string) (err error)
- func (m *Monitor) ClientMigrateInfo(protocol string, hostname string, port *int64, tlsPort *int64, ...) (err error)
- func (m *Monitor) Closefd(fdname string) (err error)
- func (m *Monitor) Cont() (err error)
- func (m *Monitor) DeviceAdd(driver string, id string) (err error)
- func (m *Monitor) DeviceDel(id string) (err error)
- func (m *Monitor) DeviceListProperties(typename string) (ret []DevicePropertyInfo, err error)
- func (m *Monitor) DriveBackup(cmd *DriveBackup) (err error)
- func (m *Monitor) DriveMirror(cmd *DriveMirror) (err error)
- func (m *Monitor) DumpGuestMemory(paging bool, protocol string, detach *bool, begin *int64, length *int64, ...) (err error)
- func (m *Monitor) DumpSkeys(filename string) (err error)
- func (m *Monitor) Eject(device *string, id *string, force *bool) (err error)
- func (m *Monitor) ExpirePassword(protocol string, time string) (err error)
- func (m *Monitor) Getfd(fdname string) (err error)
- func (m *Monitor) HumanMonitorCommand(commandLine string, cpuIndex *int64) (ret string, err error)
- func (m *Monitor) InjectNmi() (err error)
- func (m *Monitor) InputSendEvent(device *string, head *int64, events []InputEvent) (err error)
- func (m *Monitor) Memsave(val int64, size int64, filename string, cpuIndex *int64) (err error)
- func (m *Monitor) Migrate(uri string, blk *bool, inc *bool, detach *bool) (err error)
- func (m *Monitor) MigrateCancel() (err error)
- func (m *Monitor) MigrateIncoming(uri string) (err error)
- func (m *Monitor) MigrateSetCacheSize(value int64) (err error)
- func (m *Monitor) MigrateSetCapabilities(capabilities []MigrationCapabilityStatus) (err error)
- func (m *Monitor) MigrateSetDowntime(value float64) (err error)
- func (m *Monitor) MigrateSetParameters(cmd *MigrationParameters) (err error)
- func (m *Monitor) MigrateSetSpeed(value int64) (err error)
- func (m *Monitor) MigrateStartPostcopy() (err error)
- func (m *Monitor) NBDServerAdd(device string, writable *bool) (err error)
- func (m *Monitor) NBDServerStart(addr SocketAddress, tlsCreds *string) (err error)
- func (m *Monitor) NBDServerStop() (err error)
- func (m *Monitor) NetdevAdd(typ string, id string) (err error)
- func (m *Monitor) NetdevDel(id string) (err error)
- func (m *Monitor) ObjectAdd(qomType string, id string, props *interface{}) (err error)
- func (m *Monitor) ObjectDel(id string) (err error)
- func (m *Monitor) Pmemsave(val int64, size int64, filename string) (err error)
- func (m *Monitor) QMPCapabilities() (err error)
- func (m *Monitor) QomGet(path string, property string) (ret interface{}, err error)
- func (m *Monitor) QomList(path string) (ret []ObjectPropertyInfo, err error)
- func (m *Monitor) QomListTypes(implements *string, abstract *bool) (ret []ObjectTypeInfo, err error)
- func (m *Monitor) QomSet(path string, property string, value interface{}) (err error)
- func (m *Monitor) QueryACPIOspmStatus() (ret []ACPIOSTInfo, err error)
- func (m *Monitor) QueryBalloon() (ret BalloonInfo, err error)
- func (m *Monitor) QueryBlock() (ret []BlockInfo, err error)
- func (m *Monitor) QueryBlockJobs() (ret []BlockJobInfo, err error)
- func (m *Monitor) QueryBlockstats(queryNodes *bool) (ret []BlockStats, err error)
- func (m *Monitor) QueryCPUDefinitions() (ret []CPUDefinitionInfo, err error)
- func (m *Monitor) QueryCPUModelBaseline(modela CPUModelInfo, modelb CPUModelInfo) (ret CPUModelBaselineInfo, err error)
- func (m *Monitor) QueryCPUModelComparison(modela CPUModelInfo, modelb CPUModelInfo) (ret CPUModelCompareInfo, err error)
- func (m *Monitor) QueryCPUModelExpansion(typ CPUModelExpansionType, model CPUModelInfo) (ret CPUModelExpansionInfo, err error)
- func (m *Monitor) QueryChardev() (ret []ChardevInfo, err error)
- func (m *Monitor) QueryChardevBackends() (ret []ChardevBackendInfo, err error)
- func (m *Monitor) QueryCommandLineOptions(option *string) (ret []CommandLineOptionInfo, err error)
- func (m *Monitor) QueryCommands() (ret []CommandInfo, err error)
- func (m *Monitor) QueryCpus() (ret []CPUInfo, err error)
- func (m *Monitor) QueryDump() (ret DumpQueryResult, err error)
- func (m *Monitor) QueryDumpGuestMemoryCapability() (ret DumpGuestMemoryCapability, err error)
- func (m *Monitor) QueryEvents() (ret []EventInfo, err error)
- func (m *Monitor) QueryFdsets() (ret []FdsetInfo, err error)
- func (m *Monitor) QueryGicCapabilities() (ret []GicCapability, err error)
- func (m *Monitor) QueryHotpluggableCpus() (ret []HotpluggableCPU, err error)
- func (m *Monitor) QueryIothreads() (ret []IOThreadInfo, err error)
- func (m *Monitor) QueryKVM() (ret KVMInfo, err error)
- func (m *Monitor) QueryMachines() (ret []MachineInfo, err error)
- func (m *Monitor) QueryMemdev() (ret []Memdev, err error)
- func (m *Monitor) QueryMemoryDevices() (ret []MemoryDeviceInfo, err error)
- func (m *Monitor) QueryMice() (ret []MouseInfo, err error)
- func (m *Monitor) QueryMigrate() (ret MigrationInfo, err error)
- func (m *Monitor) QueryMigrateCacheSize() (ret int64, err error)
- func (m *Monitor) QueryMigrateCapabilities() (ret []MigrationCapabilityStatus, err error)
- func (m *Monitor) QueryMigrateParameters() (ret MigrationParameters, err error)
- func (m *Monitor) QueryName() (ret NameInfo, err error)
- func (m *Monitor) QueryNamedBlockNodes() (ret []BlockDeviceInfo, err error)
- func (m *Monitor) QueryPCI() (ret []PCIInfo, err error)
- func (m *Monitor) QueryQMPSchema() (ret []SchemaInfo, err error)
- func (m *Monitor) QueryRocker(name string) (ret RockerSwitch, err error)
- func (m *Monitor) QueryRockerOfDpaFlows(name string, tblID *uint32) (ret []RockerOfDpaFlow, err error)
- func (m *Monitor) QueryRockerOfDpaGroups(name string, typ *uint8) (ret []RockerOfDpaGroup, err error)
- func (m *Monitor) QueryRockerPorts(name string) (ret []RockerPort, err error)
- func (m *Monitor) QueryRxFilter(name *string) (ret []RxFilterInfo, err error)
- func (m *Monitor) QuerySpice() (ret SpiceInfo, err error)
- func (m *Monitor) QueryStatus() (ret StatusInfo, err error)
- func (m *Monitor) QueryTPM() (ret []TPMInfo, err error)
- func (m *Monitor) QueryTPMModels() (ret []TPMModel, err error)
- func (m *Monitor) QueryTPMTypes() (ret []TPMType, err error)
- func (m *Monitor) QueryTarget() (ret TargetInfo, err error)
- func (m *Monitor) QueryUUID() (ret UUIDInfo, err error)
- func (m *Monitor) QueryVNC() (ret VNCInfo, err error)
- func (m *Monitor) QueryVNCServers() (ret []VNCInfo2, err error)
- func (m *Monitor) QueryVersion() (ret VersionInfo, err error)
- func (m *Monitor) Quit() (err error)
- func (m *Monitor) RemoveFD(fdsetID int64, fd *int64) (err error)
- func (m *Monitor) RingbufRead(device string, size int64, format *DataFormat) (ret string, err error)
- func (m *Monitor) RingbufWrite(device string, data string, format *DataFormat) (err error)
- func (m *Monitor) RtcResetReinjection() (err error)
- func (m *Monitor) Screendump(filename string) (err error)
- func (m *Monitor) SendKey(keys []KeyValue, holdTime *int64) (err error)
- func (m *Monitor) SetLink(name string, up bool) (err error)
- func (m *Monitor) SetPassword(protocol string, password string, connected *string) (err error)
- func (m *Monitor) Stop() (err error)
- func (m *Monitor) SystemPowerdown() (err error)
- func (m *Monitor) SystemReset() (err error)
- func (m *Monitor) SystemWakeup() (err error)
- func (m *Monitor) TraceEventGetState(name string, vcpu *int64) (ret []TraceEventInfo, err error)
- func (m *Monitor) TraceEventSetState(name string, enable bool, ignoreUnavailable *bool, vcpu *int64) (err error)
- func (m *Monitor) Transaction(actions []TransactionAction, properties *TransactionProperties) (err error)
- func (m *Monitor) XBlockdevChange(parent string, child *string, node *string) (err error)
- func (m *Monitor) XBlockdevDel(nodeName string) (err error)
- func (m *Monitor) XBlockdevInsertMedium(device *string, id *string, nodeName string) (err error)
- func (m *Monitor) XBlockdevRemoveMedium(device *string, id *string) (err error)
- func (m *Monitor) XenLoadDevicesState(filename string) (err error)
- func (m *Monitor) XenSaveDevicesState(filename string) (err error)
- func (m *Monitor) XenSetGlobalDirtyLog(enable bool) (err error)
- type MouseInfo
- type NameInfo
- type NetworkAddressFamily
- type NewImageMode
- type ObjectPropertyInfo
- type ObjectTypeInfo
- type PCIBridgeInfo
- type PCIBusInfo
- type PCIDeviceClass
- type PCIDeviceID
- type PCIDeviceInfo
- type PCIInfo
- type PCIMemoryRange
- type PCIMemoryRegion
- type PcdimmDeviceInfo
- type QCryptoBlockInfoLUKS
- type QCryptoBlockInfoLUKSSlot
- type QCryptoCipherAlgorithm
- type QCryptoCipherMode
- type QCryptoHashAlgorithm
- type QCryptoIvGenAlgorithm
- type QKeyCode
- type Qcow2OverlapCheckFlags
- type Qcow2OverlapCheckMode
- type Qcow2OverlapChecks
- type Qcow2OverlapChecksFlags
- type Qcow2OverlapChecksMode
- type QuorumOpType
- type QuorumReadPattern
- type ReplicationMode
- type RockerOfDpaFlow
- type RockerOfDpaFlowAction
- type RockerOfDpaFlowKey
- type RockerOfDpaFlowMask
- type RockerOfDpaGroup
- type RockerPort
- type RockerPortAutoneg
- type RockerPortDuplex
- type RockerSwitch
- type RunState
- type RxFilterInfo
- type RxState
- type SchemaInfo
- type SchemaInfoAlternate
- type SchemaInfoAlternateMember
- type SchemaInfoArray
- type SchemaInfoBuiltin
- type SchemaInfoCommand
- type SchemaInfoEnum
- type SchemaInfoEvent
- type SchemaInfoObject
- type SchemaInfoObjectMember
- type SchemaInfoObjectVariant
- type SchemaMetaType
- type SnapshotInfo
- type SocketAddress
- type SocketAddressFD
- type SocketAddressInet
- type SocketAddressUnix
- type SpiceBasicInfo
- type SpiceChannel
- type SpiceInfo
- type SpiceQueryMouseMode
- type SpiceServerInfo
- type StatusInfo
- type String
- type TPMInfo
- type TPMModel
- type TPMPassthroughOptions
- type TPMType
- type TPMTypeOptions
- type TPMTypeOptionsPassthrough
- type TargetInfo
- type TraceEventInfo
- type TraceEventState
- type TransactionAction
- type TransactionActionAbort
- type TransactionActionBlockDirtyBitmapAdd
- type TransactionActionBlockDirtyBitmapClear
- type TransactionActionBlockdevBackup
- type TransactionActionBlockdevSnapshot
- type TransactionActionBlockdevSnapshotInternalSync
- type TransactionActionBlockdevSnapshotSync
- type TransactionActionDriveBackup
- type TransactionProperties
- type UUIDInfo
- type UnixSocketAddress
- type VNCBasicInfo
- type VNCClientInfo
- type VNCInfo
- type VNCInfo2
- type VNCPrimaryAuth
- type VNCServerInfo
- type VNCVencryptSubAuth
- type VersionInfo
- type VersionTriple
- type WatchdogExpirationAction
- type XbzrleCacheStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACPIOSTInfo ¶
type ACPIOSTInfo struct { Device *string `json:"device,omitempty"` Slot string `json:"slot"` SlotType ACPISlotType `json:"slot-type"` Source int64 `json:"source"` Status int64 `json:"status"` }
ACPIOSTInfo implements the "ACPIOSTInfo" QMP API type.
type ACPISlotType ¶
type ACPISlotType int
ACPISlotType implements the "ACPISlotType" QMP API type.
const ( ACPISlotTypeDimm ACPISlotType = iota ACPISlotTypeCPU )
Known values of ACPISlotType.
func (ACPISlotType) MarshalJSON ¶
func (e ACPISlotType) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ACPISlotType) UnmarshalJSON ¶
func (e *ACPISlotType) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ActionCompletionMode ¶
type ActionCompletionMode int
ActionCompletionMode implements the "ActionCompletionMode" QMP API type.
const ( ActionCompletionModeIndividual ActionCompletionMode = iota ActionCompletionModeGrouped )
Known values of ActionCompletionMode.
func (ActionCompletionMode) MarshalJSON ¶
func (e ActionCompletionMode) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (ActionCompletionMode) String ¶
func (e ActionCompletionMode) String() string
String implements fmt.Stringer.
func (*ActionCompletionMode) UnmarshalJSON ¶
func (e *ActionCompletionMode) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BalloonInfo ¶
type BalloonInfo struct {
Actual int64 `json:"actual"`
}
BalloonInfo implements the "BalloonInfo" QMP API type.
type BlkdebugEvent ¶
type BlkdebugEvent int
BlkdebugEvent implements the "BlkdebugEvent" QMP API type.
const ( BlkdebugEventL1Update BlkdebugEvent = iota BlkdebugEventL1GrowAllocTable BlkdebugEventL1GrowWriteTable BlkdebugEventL1GrowActivateTable BlkdebugEventL2Load BlkdebugEventL2Update BlkdebugEventL2UpdateCompressed BlkdebugEventL2AllocCowRead BlkdebugEventL2AllocWrite BlkdebugEventReadAIO BlkdebugEventReadBackingAIO BlkdebugEventReadCompressed BlkdebugEventWriteAIO BlkdebugEventWriteCompressed BlkdebugEventVmstateLoad BlkdebugEventVmstateSave BlkdebugEventCowRead BlkdebugEventCowWrite BlkdebugEventReftableLoad BlkdebugEventReftableGrow BlkdebugEventReftableUpdate BlkdebugEventRefblockLoad BlkdebugEventRefblockUpdate BlkdebugEventRefblockUpdatePart BlkdebugEventRefblockAlloc BlkdebugEventRefblockAllocHookup BlkdebugEventRefblockAllocWrite BlkdebugEventRefblockAllocWriteBlocks BlkdebugEventRefblockAllocWriteTable BlkdebugEventRefblockAllocSwitchTable BlkdebugEventClusterAlloc BlkdebugEventClusterAllocBytes BlkdebugEventClusterFree BlkdebugEventFlushToOs BlkdebugEventFlushToDisk BlkdebugEventPwritevRmwHead BlkdebugEventPwritevRmwAfterHead BlkdebugEventPwritevRmwTail BlkdebugEventPwritevRmwAfterTail BlkdebugEventPwritev BlkdebugEventPwritevZero BlkdebugEventPwritevDone BlkdebugEventEmptyImagePrepare )
Known values of BlkdebugEvent.
func (BlkdebugEvent) MarshalJSON ¶
func (e BlkdebugEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BlkdebugEvent) String ¶
func (e BlkdebugEvent) String() string
String implements fmt.Stringer.
func (*BlkdebugEvent) UnmarshalJSON ¶
func (e *BlkdebugEvent) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BlkdebugInjectErrorOptions ¶
type BlkdebugInjectErrorOptions struct { Event BlkdebugEvent `json:"event"` State *int64 `json:"state,omitempty"` Errno *int64 `json:"errno,omitempty"` Sector *int64 `json:"sector,omitempty"` Once *bool `json:"once,omitempty"` Immediately *bool `json:"immediately,omitempty"` }
BlkdebugInjectErrorOptions implements the "BlkdebugInjectErrorOptions" QMP API type.
type BlkdebugSetStateOptions ¶
type BlkdebugSetStateOptions struct { Event BlkdebugEvent `json:"event"` State *int64 `json:"state,omitempty"` NewState int64 `json:"new_state"` }
BlkdebugSetStateOptions implements the "BlkdebugSetStateOptions" QMP API type.
type BlockDeviceIOStatus ¶
type BlockDeviceIOStatus int
BlockDeviceIOStatus implements the "BlockDeviceIoStatus" QMP API type.
const ( BlockDeviceIOStatusOK BlockDeviceIOStatus = iota BlockDeviceIOStatusFailed BlockDeviceIOStatusNospace )
Known values of BlockDeviceIOStatus.
func (BlockDeviceIOStatus) MarshalJSON ¶
func (e BlockDeviceIOStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BlockDeviceIOStatus) String ¶
func (e BlockDeviceIOStatus) String() string
String implements fmt.Stringer.
func (*BlockDeviceIOStatus) UnmarshalJSON ¶
func (e *BlockDeviceIOStatus) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BlockDeviceInfo ¶
type BlockDeviceInfo struct { File string `json:"file"` NodeName *string `json:"node-name,omitempty"` Ro bool `json:"ro"` Drv string `json:"drv"` BackingFile *string `json:"backing_file,omitempty"` BackingFileDepth int64 `json:"backing_file_depth"` Encrypted bool `json:"encrypted"` EncryptionKeyMissing bool `json:"encryption_key_missing"` DetectZeroes BlockdevDetectZeroesOptions `json:"detect_zeroes"` Bps int64 `json:"bps"` BpsRd int64 `json:"bps_rd"` BpsWr int64 `json:"bps_wr"` Iops int64 `json:"iops"` IopsRd int64 `json:"iops_rd"` IopsWr int64 `json:"iops_wr"` Image ImageInfo `json:"image"` BpsMax *int64 `json:"bps_max,omitempty"` BpsRdMax *int64 `json:"bps_rd_max,omitempty"` BpsWrMax *int64 `json:"bps_wr_max,omitempty"` IopsMax *int64 `json:"iops_max,omitempty"` IopsRdMax *int64 `json:"iops_rd_max,omitempty"` IopsWrMax *int64 `json:"iops_wr_max,omitempty"` BpsMaxLength *int64 `json:"bps_max_length,omitempty"` BpsRdMaxLength *int64 `json:"bps_rd_max_length,omitempty"` BpsWrMaxLength *int64 `json:"bps_wr_max_length,omitempty"` IopsMaxLength *int64 `json:"iops_max_length,omitempty"` IopsRdMaxLength *int64 `json:"iops_rd_max_length,omitempty"` IopsWrMaxLength *int64 `json:"iops_wr_max_length,omitempty"` IopsSize *int64 `json:"iops_size,omitempty"` Group *string `json:"group,omitempty"` Cache BlockdevCacheInfo `json:"cache"` WriteThreshold int64 `json:"write_threshold"` }
BlockDeviceInfo implements the "BlockDeviceInfo" QMP API type.
type BlockDeviceStats ¶
type BlockDeviceStats struct { RdBytes int64 `json:"rd_bytes"` WrBytes int64 `json:"wr_bytes"` RdOperations int64 `json:"rd_operations"` WrOperations int64 `json:"wr_operations"` FlushOperations int64 `json:"flush_operations"` FlushTotalTimeNs int64 `json:"flush_total_time_ns"` WrTotalTimeNs int64 `json:"wr_total_time_ns"` RdTotalTimeNs int64 `json:"rd_total_time_ns"` WrHighestOffset int64 `json:"wr_highest_offset"` RdMerged int64 `json:"rd_merged"` WrMerged int64 `json:"wr_merged"` IdleTimeNs *int64 `json:"idle_time_ns,omitempty"` FailedRdOperations int64 `json:"failed_rd_operations"` FailedWrOperations int64 `json:"failed_wr_operations"` FailedFlushOperations int64 `json:"failed_flush_operations"` InvalidRdOperations int64 `json:"invalid_rd_operations"` InvalidWrOperations int64 `json:"invalid_wr_operations"` InvalidFlushOperations int64 `json:"invalid_flush_operations"` AccountInvalid bool `json:"account_invalid"` AccountFailed bool `json:"account_failed"` TimedStats []BlockDeviceTimedStats `json:"timed_stats"` }
BlockDeviceStats implements the "BlockDeviceStats" QMP API type.
type BlockDeviceTimedStats ¶
type BlockDeviceTimedStats struct { IntervalLength int64 `json:"interval_length"` MinRdLatencyNs int64 `json:"min_rd_latency_ns"` MaxRdLatencyNs int64 `json:"max_rd_latency_ns"` AvgRdLatencyNs int64 `json:"avg_rd_latency_ns"` MinWrLatencyNs int64 `json:"min_wr_latency_ns"` MaxWrLatencyNs int64 `json:"max_wr_latency_ns"` AvgWrLatencyNs int64 `json:"avg_wr_latency_ns"` MinFlushLatencyNs int64 `json:"min_flush_latency_ns"` MaxFlushLatencyNs int64 `json:"max_flush_latency_ns"` AvgFlushLatencyNs int64 `json:"avg_flush_latency_ns"` AvgRdQueueDepth float64 `json:"avg_rd_queue_depth"` AvgWrQueueDepth float64 `json:"avg_wr_queue_depth"` }
BlockDeviceTimedStats implements the "BlockDeviceTimedStats" QMP API type.
type BlockDirtyBitmap ¶
BlockDirtyBitmap implements the "BlockDirtyBitmap" QMP API type.
type BlockDirtyBitmapAdd ¶
type BlockDirtyBitmapAdd struct { Node string `json:"node"` Name string `json:"name"` Granularity *uint32 `json:"granularity,omitempty"` }
BlockDirtyBitmapAdd implements the "BlockDirtyBitmapAdd" QMP API type.
type BlockDirtyInfo ¶
type BlockDirtyInfo struct { Name *string `json:"name,omitempty"` Count int64 `json:"count"` Granularity uint32 `json:"granularity"` Status DirtyBitmapStatus `json:"status"` }
BlockDirtyInfo implements the "BlockDirtyInfo" QMP API type.
type BlockErrorAction ¶
type BlockErrorAction int
BlockErrorAction implements the "BlockErrorAction" QMP API type.
const ( BlockErrorActionIgnore BlockErrorAction = iota BlockErrorActionReport BlockErrorActionStop )
Known values of BlockErrorAction.
func (BlockErrorAction) MarshalJSON ¶
func (e BlockErrorAction) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BlockErrorAction) String ¶
func (e BlockErrorAction) String() string
String implements fmt.Stringer.
func (*BlockErrorAction) UnmarshalJSON ¶
func (e *BlockErrorAction) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BlockIOThrottle ¶
type BlockIOThrottle struct { Device *string `json:"device,omitempty"` ID *string `json:"id,omitempty"` Bps int64 `json:"bps"` BpsRd int64 `json:"bps_rd"` BpsWr int64 `json:"bps_wr"` Iops int64 `json:"iops"` IopsRd int64 `json:"iops_rd"` IopsWr int64 `json:"iops_wr"` BpsMax *int64 `json:"bps_max,omitempty"` BpsRdMax *int64 `json:"bps_rd_max,omitempty"` BpsWrMax *int64 `json:"bps_wr_max,omitempty"` IopsMax *int64 `json:"iops_max,omitempty"` IopsRdMax *int64 `json:"iops_rd_max,omitempty"` IopsWrMax *int64 `json:"iops_wr_max,omitempty"` BpsMaxLength *int64 `json:"bps_max_length,omitempty"` BpsRdMaxLength *int64 `json:"bps_rd_max_length,omitempty"` BpsWrMaxLength *int64 `json:"bps_wr_max_length,omitempty"` IopsMaxLength *int64 `json:"iops_max_length,omitempty"` IopsRdMaxLength *int64 `json:"iops_rd_max_length,omitempty"` IopsWrMaxLength *int64 `json:"iops_wr_max_length,omitempty"` IopsSize *int64 `json:"iops_size,omitempty"` Group *string `json:"group,omitempty"` }
BlockIOThrottle implements the "BlockIOThrottle" QMP API type.
type BlockInfo ¶
type BlockInfo struct { Device string `json:"device"` Type string `json:"type"` Removable bool `json:"removable"` Locked bool `json:"locked"` Inserted *BlockDeviceInfo `json:"inserted,omitempty"` TrayOpen *bool `json:"tray_open,omitempty"` IOStatus *BlockDeviceIOStatus `json:"io-status,omitempty"` DirtyBitmaps []BlockDirtyInfo `json:"dirty-bitmaps,omitempty"` }
BlockInfo implements the "BlockInfo" QMP API type.
type BlockJobInfo ¶
type BlockJobInfo struct { Type string `json:"type"` Device string `json:"device"` Len int64 `json:"len"` Offset int64 `json:"offset"` Busy bool `json:"busy"` Paused bool `json:"paused"` Speed int64 `json:"speed"` IOStatus BlockDeviceIOStatus `json:"io-status"` Ready bool `json:"ready"` }
BlockJobInfo implements the "BlockJobInfo" QMP API type.
type BlockJobType ¶
type BlockJobType int
BlockJobType implements the "BlockJobType" QMP API type.
const ( BlockJobTypeCommit BlockJobType = iota BlockJobTypeStream BlockJobTypeMirror BlockJobTypeBackup )
Known values of BlockJobType.
func (BlockJobType) MarshalJSON ¶
func (e BlockJobType) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*BlockJobType) UnmarshalJSON ¶
func (e *BlockJobType) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BlockStats ¶
type BlockStats struct { Device *string `json:"device,omitempty"` NodeName *string `json:"node-name,omitempty"` Stats BlockDeviceStats `json:"stats"` Parent *BlockStats `json:"parent,omitempty"` Backing *BlockStats `json:"backing,omitempty"` }
BlockStats implements the "BlockStats" QMP API type.
type BlockdevAIOOptions ¶
type BlockdevAIOOptions int
BlockdevAIOOptions implements the "BlockdevAioOptions" QMP API type.
const ( BlockdevAIOOptionsThreads BlockdevAIOOptions = iota BlockdevAIOOptionsNative )
Known values of BlockdevAIOOptions.
func (BlockdevAIOOptions) MarshalJSON ¶
func (e BlockdevAIOOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BlockdevAIOOptions) String ¶
func (e BlockdevAIOOptions) String() string
String implements fmt.Stringer.
func (*BlockdevAIOOptions) UnmarshalJSON ¶
func (e *BlockdevAIOOptions) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BlockdevBackup ¶
type BlockdevBackup struct { JobID *string `json:"job-id,omitempty"` Device string `json:"device"` Target string `json:"target"` Sync MirrorSyncMode `json:"sync"` Speed *int64 `json:"speed,omitempty"` Compress *bool `json:"compress,omitempty"` OnSourceError *BlockdevOnError `json:"on-source-error,omitempty"` OnTargetError *BlockdevOnError `json:"on-target-error,omitempty"` }
BlockdevBackup implements the "BlockdevBackup" QMP API type.
type BlockdevCacheInfo ¶
type BlockdevCacheInfo struct { Writeback bool `json:"writeback"` Direct bool `json:"direct"` NoFlush bool `json:"no-flush"` }
BlockdevCacheInfo implements the "BlockdevCacheInfo" QMP API type.
type BlockdevCacheOptions ¶
type BlockdevCacheOptions struct { Direct *bool `json:"direct,omitempty"` NoFlush *bool `json:"no-flush,omitempty"` }
BlockdevCacheOptions implements the "BlockdevCacheOptions" QMP API type.
type BlockdevChangeReadOnlyMode ¶
type BlockdevChangeReadOnlyMode int
BlockdevChangeReadOnlyMode implements the "BlockdevChangeReadOnlyMode" QMP API type.
const ( BlockdevChangeReadOnlyModeRetain BlockdevChangeReadOnlyMode = iota BlockdevChangeReadOnlyModeReadOnly BlockdevChangeReadOnlyModeReadWrite )
Known values of BlockdevChangeReadOnlyMode.
func (BlockdevChangeReadOnlyMode) MarshalJSON ¶
func (e BlockdevChangeReadOnlyMode) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BlockdevChangeReadOnlyMode) String ¶
func (e BlockdevChangeReadOnlyMode) String() string
String implements fmt.Stringer.
func (*BlockdevChangeReadOnlyMode) UnmarshalJSON ¶
func (e *BlockdevChangeReadOnlyMode) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BlockdevDetectZeroesOptions ¶
type BlockdevDetectZeroesOptions int
BlockdevDetectZeroesOptions implements the "BlockdevDetectZeroesOptions" QMP API type.
const ( BlockdevDetectZeroesOptionsOff BlockdevDetectZeroesOptions = iota BlockdevDetectZeroesOptionsOn BlockdevDetectZeroesOptionsUnmap )
Known values of BlockdevDetectZeroesOptions.
func (BlockdevDetectZeroesOptions) MarshalJSON ¶
func (e BlockdevDetectZeroesOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BlockdevDetectZeroesOptions) String ¶
func (e BlockdevDetectZeroesOptions) String() string
String implements fmt.Stringer.
func (*BlockdevDetectZeroesOptions) UnmarshalJSON ¶
func (e *BlockdevDetectZeroesOptions) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BlockdevDiscardOptions ¶
type BlockdevDiscardOptions int
BlockdevDiscardOptions implements the "BlockdevDiscardOptions" QMP API type.
const ( BlockdevDiscardOptionsIgnore BlockdevDiscardOptions = iota BlockdevDiscardOptionsUnmap )
Known values of BlockdevDiscardOptions.
func (BlockdevDiscardOptions) MarshalJSON ¶
func (e BlockdevDiscardOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BlockdevDiscardOptions) String ¶
func (e BlockdevDiscardOptions) String() string
String implements fmt.Stringer.
func (*BlockdevDiscardOptions) UnmarshalJSON ¶
func (e *BlockdevDiscardOptions) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BlockdevDriver ¶
type BlockdevDriver int
BlockdevDriver implements the "BlockdevDriver" QMP API type.
const ( BlockdevDriverArchipelago BlockdevDriver = iota BlockdevDriverBlkdebug BlockdevDriverBlkverify BlockdevDriverBochs BlockdevDriverCloop BlockdevDriverDmg BlockdevDriverFile BlockdevDriverFTP BlockdevDriverFTPS BlockdevDriverGluster BlockdevDriverHostCdrom BlockdevDriverHostDevice BlockdevDriverHTTP BlockdevDriverHTTPS BlockdevDriverLUKS BlockdevDriverNullAIO BlockdevDriverNullCo BlockdevDriverParallels BlockdevDriverQcow BlockdevDriverQcow2 BlockdevDriverQed BlockdevDriverQuorum BlockdevDriverRaw BlockdevDriverReplication BlockdevDriverTftp BlockdevDriverVdi BlockdevDriverVhdx BlockdevDriverVMDK BlockdevDriverVpc BlockdevDriverVvfat )
Known values of BlockdevDriver.
func (BlockdevDriver) MarshalJSON ¶
func (e BlockdevDriver) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BlockdevDriver) String ¶
func (e BlockdevDriver) String() string
String implements fmt.Stringer.
func (*BlockdevDriver) UnmarshalJSON ¶
func (e *BlockdevDriver) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BlockdevOnError ¶
type BlockdevOnError int
BlockdevOnError implements the "BlockdevOnError" QMP API type.
const ( BlockdevOnErrorReport BlockdevOnError = iota BlockdevOnErrorIgnore BlockdevOnErrorEnospc BlockdevOnErrorStop BlockdevOnErrorAuto )
Known values of BlockdevOnError.
func (BlockdevOnError) MarshalJSON ¶
func (e BlockdevOnError) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (BlockdevOnError) String ¶
func (e BlockdevOnError) String() string
String implements fmt.Stringer.
func (*BlockdevOnError) UnmarshalJSON ¶
func (e *BlockdevOnError) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type BlockdevOptions ¶
type BlockdevOptions interface {
// contains filtered or unexported methods
}
BlockdevOptions implements the "BlockdevOptions" QMP API type.
Can be one of:
- BlockdevOptionsArchipelago
- BlockdevOptionsBlkdebug
- BlockdevOptionsBlkverify
- BlockdevOptionsBochs
- BlockdevOptionsCloop
- BlockdevOptionsDmg
- BlockdevOptionsFile
- BlockdevOptionsFTP
- BlockdevOptionsFTPS
- BlockdevOptionsGluster
- BlockdevOptionsHostCdrom
- BlockdevOptionsHostDevice
- BlockdevOptionsHTTP
- BlockdevOptionsHTTPS
- BlockdevOptionsLUKS
- BlockdevOptionsNullAIO
- BlockdevOptionsNullCo
- BlockdevOptionsParallels
- BlockdevOptionsQcow
- BlockdevOptionsQcow2
- BlockdevOptionsQed
- BlockdevOptionsQuorum
- BlockdevOptionsRaw
- BlockdevOptionsReplication
- BlockdevOptionsTftp
- BlockdevOptionsVdi
- BlockdevOptionsVhdx
- BlockdevOptionsVMDK
- BlockdevOptionsVpc
- BlockdevOptionsVvfat
type BlockdevOptionsArchipelago ¶
type BlockdevOptionsArchipelago struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Volume string `json:"volume"` Mport *int64 `json:"mport,omitempty"` Vport *int64 `json:"vport,omitempty"` Segment *string `json:"segment,omitempty"` }
BlockdevOptionsArchipelago is an implementation of BlockdevOptions.
func (BlockdevOptionsArchipelago) MarshalJSON ¶
func (s BlockdevOptionsArchipelago) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsBlkdebug ¶
type BlockdevOptionsBlkdebug struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Image BlockdevRef `json:"image"` Config *string `json:"config,omitempty"` Align *int64 `json:"align,omitempty"` InjectError []BlkdebugInjectErrorOptions `json:"inject-error,omitempty"` SetState []BlkdebugSetStateOptions `json:"set-state,omitempty"` }
BlockdevOptionsBlkdebug is an implementation of BlockdevOptions.
func (BlockdevOptionsBlkdebug) MarshalJSON ¶
func (s BlockdevOptionsBlkdebug) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsBlkverify ¶
type BlockdevOptionsBlkverify struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Test BlockdevRef `json:"test"` Raw BlockdevRef `json:"raw"` }
BlockdevOptionsBlkverify is an implementation of BlockdevOptions.
func (BlockdevOptionsBlkverify) MarshalJSON ¶
func (s BlockdevOptionsBlkverify) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsBochs ¶
type BlockdevOptionsBochs struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` File BlockdevRef `json:"file"` }
BlockdevOptionsBochs is an implementation of BlockdevOptions.
func (BlockdevOptionsBochs) MarshalJSON ¶
func (s BlockdevOptionsBochs) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsCloop ¶
type BlockdevOptionsCloop struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` File BlockdevRef `json:"file"` }
BlockdevOptionsCloop is an implementation of BlockdevOptions.
func (BlockdevOptionsCloop) MarshalJSON ¶
func (s BlockdevOptionsCloop) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsDmg ¶
type BlockdevOptionsDmg struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` File BlockdevRef `json:"file"` }
BlockdevOptionsDmg is an implementation of BlockdevOptions.
func (BlockdevOptionsDmg) MarshalJSON ¶
func (s BlockdevOptionsDmg) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsFTP ¶
type BlockdevOptionsFTP struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Filename string `json:"filename"` }
BlockdevOptionsFTP is an implementation of BlockdevOptions.
func (BlockdevOptionsFTP) MarshalJSON ¶
func (s BlockdevOptionsFTP) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsFTPS ¶
type BlockdevOptionsFTPS struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Filename string `json:"filename"` }
BlockdevOptionsFTPS is an implementation of BlockdevOptions.
func (BlockdevOptionsFTPS) MarshalJSON ¶
func (s BlockdevOptionsFTPS) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsFile ¶
type BlockdevOptionsFile struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Filename string `json:"filename"` AIO *BlockdevAIOOptions `json:"aio,omitempty"` }
BlockdevOptionsFile is an implementation of BlockdevOptions.
func (BlockdevOptionsFile) MarshalJSON ¶
func (s BlockdevOptionsFile) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsGluster ¶
type BlockdevOptionsGluster struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Volume string `json:"volume"` Path string `json:"path"` Server []GlusterServer `json:"server"` DebugLevel *int64 `json:"debug-level,omitempty"` Logfile *string `json:"logfile,omitempty"` }
BlockdevOptionsGluster is an implementation of BlockdevOptions.
func (BlockdevOptionsGluster) MarshalJSON ¶
func (s BlockdevOptionsGluster) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsHTTP ¶
type BlockdevOptionsHTTP struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Filename string `json:"filename"` }
BlockdevOptionsHTTP is an implementation of BlockdevOptions.
func (BlockdevOptionsHTTP) MarshalJSON ¶
func (s BlockdevOptionsHTTP) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsHTTPS ¶
type BlockdevOptionsHTTPS struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Filename string `json:"filename"` }
BlockdevOptionsHTTPS is an implementation of BlockdevOptions.
func (BlockdevOptionsHTTPS) MarshalJSON ¶
func (s BlockdevOptionsHTTPS) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsHostCdrom ¶
type BlockdevOptionsHostCdrom struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Filename string `json:"filename"` AIO *BlockdevAIOOptions `json:"aio,omitempty"` }
BlockdevOptionsHostCdrom is an implementation of BlockdevOptions.
func (BlockdevOptionsHostCdrom) MarshalJSON ¶
func (s BlockdevOptionsHostCdrom) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsHostDevice ¶
type BlockdevOptionsHostDevice struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Filename string `json:"filename"` AIO *BlockdevAIOOptions `json:"aio,omitempty"` }
BlockdevOptionsHostDevice is an implementation of BlockdevOptions.
func (BlockdevOptionsHostDevice) MarshalJSON ¶
func (s BlockdevOptionsHostDevice) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsLUKS ¶
type BlockdevOptionsLUKS struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` KeySecret *string `json:"key-secret,omitempty"` }
BlockdevOptionsLUKS is an implementation of BlockdevOptions.
func (BlockdevOptionsLUKS) MarshalJSON ¶
func (s BlockdevOptionsLUKS) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsNullAIO ¶
type BlockdevOptionsNullAIO struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Size *int64 `json:"size,omitempty"` LatencyNs *uint64 `json:"latency-ns,omitempty"` }
BlockdevOptionsNullAIO is an implementation of BlockdevOptions.
func (BlockdevOptionsNullAIO) MarshalJSON ¶
func (s BlockdevOptionsNullAIO) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsNullCo ¶
type BlockdevOptionsNullCo struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Size *int64 `json:"size,omitempty"` LatencyNs *uint64 `json:"latency-ns,omitempty"` }
BlockdevOptionsNullCo is an implementation of BlockdevOptions.
func (BlockdevOptionsNullCo) MarshalJSON ¶
func (s BlockdevOptionsNullCo) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsParallels ¶
type BlockdevOptionsParallels struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` File BlockdevRef `json:"file"` }
BlockdevOptionsParallels is an implementation of BlockdevOptions.
func (BlockdevOptionsParallels) MarshalJSON ¶
func (s BlockdevOptionsParallels) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsQcow ¶
type BlockdevOptionsQcow struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Backing BlockdevRef `json:"backing,omitempty"` }
BlockdevOptionsQcow is an implementation of BlockdevOptions.
func (BlockdevOptionsQcow) MarshalJSON ¶
func (s BlockdevOptionsQcow) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsQcow2 ¶
type BlockdevOptionsQcow2 struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` 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"` }
BlockdevOptionsQcow2 is an implementation of BlockdevOptions.
func (BlockdevOptionsQcow2) MarshalJSON ¶
func (s BlockdevOptionsQcow2) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsQed ¶
type BlockdevOptionsQed struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Backing BlockdevRef `json:"backing,omitempty"` }
BlockdevOptionsQed is an implementation of BlockdevOptions.
func (BlockdevOptionsQed) MarshalJSON ¶
func (s BlockdevOptionsQed) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsQuorum ¶
type BlockdevOptionsQuorum struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Blkverify *bool `json:"blkverify,omitempty"` Children []BlockdevRef `json:"children"` VoteThreshold int64 `json:"vote-threshold"` RewriteCorrupted *bool `json:"rewrite-corrupted,omitempty"` ReadPattern *QuorumReadPattern `json:"read-pattern,omitempty"` }
BlockdevOptionsQuorum is an implementation of BlockdevOptions.
func (BlockdevOptionsQuorum) MarshalJSON ¶
func (s BlockdevOptionsQuorum) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsRaw ¶
type BlockdevOptionsRaw struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` File BlockdevRef `json:"file"` }
BlockdevOptionsRaw is an implementation of BlockdevOptions.
func (BlockdevOptionsRaw) MarshalJSON ¶
func (s BlockdevOptionsRaw) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsReplication ¶
type BlockdevOptionsReplication struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Mode ReplicationMode `json:"mode"` TopID *string `json:"top-id,omitempty"` }
BlockdevOptionsReplication is an implementation of BlockdevOptions.
func (BlockdevOptionsReplication) MarshalJSON ¶
func (s BlockdevOptionsReplication) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsTftp ¶
type BlockdevOptionsTftp struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Filename string `json:"filename"` }
BlockdevOptionsTftp is an implementation of BlockdevOptions.
func (BlockdevOptionsTftp) MarshalJSON ¶
func (s BlockdevOptionsTftp) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsVMDK ¶
type BlockdevOptionsVMDK struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Backing BlockdevRef `json:"backing,omitempty"` }
BlockdevOptionsVMDK is an implementation of BlockdevOptions.
func (BlockdevOptionsVMDK) MarshalJSON ¶
func (s BlockdevOptionsVMDK) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsVdi ¶
type BlockdevOptionsVdi struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` File BlockdevRef `json:"file"` }
BlockdevOptionsVdi is an implementation of BlockdevOptions.
func (BlockdevOptionsVdi) MarshalJSON ¶
func (s BlockdevOptionsVdi) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsVhdx ¶
type BlockdevOptionsVhdx struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` File BlockdevRef `json:"file"` }
BlockdevOptionsVhdx is an implementation of BlockdevOptions.
func (BlockdevOptionsVhdx) MarshalJSON ¶
func (s BlockdevOptionsVhdx) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsVpc ¶
type BlockdevOptionsVpc struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` File BlockdevRef `json:"file"` }
BlockdevOptionsVpc is an implementation of BlockdevOptions.
func (BlockdevOptionsVpc) MarshalJSON ¶
func (s BlockdevOptionsVpc) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevOptionsVvfat ¶
type BlockdevOptionsVvfat struct { NodeName *string `json:"node-name,omitempty"` Discard *BlockdevDiscardOptions `json:"discard,omitempty"` Cache *BlockdevCacheOptions `json:"cache,omitempty"` ReadOnly *bool `json:"read-only,omitempty"` DetectZeroes *BlockdevDetectZeroesOptions `json:"detect-zeroes,omitempty"` Dir string `json:"dir"` FatType *int64 `json:"fat-type,omitempty"` Floppy *bool `json:"floppy,omitempty"` Label *string `json:"label,omitempty"` Rw *bool `json:"rw,omitempty"` }
BlockdevOptionsVvfat is an implementation of BlockdevOptions.
func (BlockdevOptionsVvfat) MarshalJSON ¶
func (s BlockdevOptionsVvfat) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type BlockdevRef ¶
type BlockdevRef interface {
// contains filtered or unexported methods
}
BlockdevRef implements the "BlockdevRef" QMP API type.
Can be one of:
- BlockdevRefDefinition
- BlockdevRefReference
type BlockdevRefDefinition ¶
type BlockdevRefDefinition BlockdevOptions
BlockdevRefDefinition is an implementation of BlockdevRef
type BlockdevRefReference ¶
type BlockdevRefReference string
BlockdevRefReference is an implementation of BlockdevRef
type BlockdevSnapshot ¶
BlockdevSnapshot implements the "BlockdevSnapshot" QMP API type.
type BlockdevSnapshotInternal ¶
BlockdevSnapshotInternal implements the "BlockdevSnapshotInternal" QMP API type.
type BlockdevSnapshotSync ¶
type BlockdevSnapshotSync struct { Device *string `json:"device,omitempty"` NodeName *string `json:"node-name,omitempty"` SnapshotFile string `json:"snapshot-file"` SnapshotNodeName *string `json:"snapshot-node-name,omitempty"` Format *string `json:"format,omitempty"` Mode *NewImageMode `json:"mode,omitempty"` }
BlockdevSnapshotSync implements the "BlockdevSnapshotSync" QMP API type.
type CPUDefinitionInfo ¶
type CPUDefinitionInfo struct { Name string `json:"name"` MigrationSafe *bool `json:"migration-safe,omitempty"` Static bool `json:"static"` }
CPUDefinitionInfo implements the "CpuDefinitionInfo" QMP API type.
type CPUInfo ¶
type CPUInfo interface {
// contains filtered or unexported methods
}
CPUInfo implements the "CpuInfo" QMP API type.
Can be one of:
- CPUInfoMIPS
- CPUInfoOther
- CPUInfoPPC
- CPUInfoSPARC
- CPUInfoTricore
- CPUInfoX86
type CPUInfoArch ¶
type CPUInfoArch int
CPUInfoArch implements the "CpuInfoArch" QMP API type.
const ( CPUInfoArchX86 CPUInfoArch = iota CPUInfoArchSPARC CPUInfoArchPPC CPUInfoArchMIPS CPUInfoArchTricore CPUInfoArchOther )
Known values of CPUInfoArch.
func (CPUInfoArch) MarshalJSON ¶
func (e CPUInfoArch) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*CPUInfoArch) UnmarshalJSON ¶
func (e *CPUInfoArch) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CPUInfoMIPS ¶
type CPUInfoMIPS struct { CPU int64 `json:"CPU"` Current bool `json:"current"` Halted bool `json:"halted"` QomPath string `json:"qom_path"` ThreadID int64 `json:"thread_id"` Pc int64 `json:"PC"` }
CPUInfoMIPS is an implementation of CPUInfo.
func (CPUInfoMIPS) MarshalJSON ¶
func (s CPUInfoMIPS) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type CPUInfoOther ¶
type CPUInfoOther struct { CPU int64 `json:"CPU"` Current bool `json:"current"` Halted bool `json:"halted"` QomPath string `json:"qom_path"` ThreadID int64 `json:"thread_id"` }
CPUInfoOther is an implementation of CPUInfo.
func (CPUInfoOther) MarshalJSON ¶
func (s CPUInfoOther) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type CPUInfoPPC ¶
type CPUInfoPPC struct { CPU int64 `json:"CPU"` Current bool `json:"current"` Halted bool `json:"halted"` QomPath string `json:"qom_path"` ThreadID int64 `json:"thread_id"` Nip int64 `json:"nip"` }
CPUInfoPPC is an implementation of CPUInfo.
func (CPUInfoPPC) MarshalJSON ¶
func (s CPUInfoPPC) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type CPUInfoSPARC ¶
type CPUInfoSPARC struct { CPU int64 `json:"CPU"` Current bool `json:"current"` Halted bool `json:"halted"` QomPath string `json:"qom_path"` ThreadID int64 `json:"thread_id"` Pc int64 `json:"pc"` Npc int64 `json:"npc"` }
CPUInfoSPARC is an implementation of CPUInfo.
func (CPUInfoSPARC) MarshalJSON ¶
func (s CPUInfoSPARC) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type CPUInfoTricore ¶
type CPUInfoTricore struct { CPU int64 `json:"CPU"` Current bool `json:"current"` Halted bool `json:"halted"` QomPath string `json:"qom_path"` ThreadID int64 `json:"thread_id"` Pc int64 `json:"PC"` }
CPUInfoTricore is an implementation of CPUInfo.
func (CPUInfoTricore) MarshalJSON ¶
func (s CPUInfoTricore) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type CPUInfoX86 ¶
type CPUInfoX86 struct { CPU int64 `json:"CPU"` Current bool `json:"current"` Halted bool `json:"halted"` QomPath string `json:"qom_path"` ThreadID int64 `json:"thread_id"` Pc int64 `json:"pc"` }
CPUInfoX86 is an implementation of CPUInfo.
func (CPUInfoX86) MarshalJSON ¶
func (s CPUInfoX86) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type CPUInstanceProperties ¶
type CPUInstanceProperties struct { NodeID *int64 `json:"node-id,omitempty"` SocketID *int64 `json:"socket-id,omitempty"` CoreID *int64 `json:"core-id,omitempty"` ThreadID *int64 `json:"thread-id,omitempty"` }
CPUInstanceProperties implements the "CpuInstanceProperties" QMP API type.
type CPUModelBaselineInfo ¶
type CPUModelBaselineInfo struct {
Model CPUModelInfo `json:"model"`
}
CPUModelBaselineInfo implements the "CpuModelBaselineInfo" QMP API type.
type CPUModelCompareInfo ¶
type CPUModelCompareInfo struct { Result CPUModelCompareResult `json:"result"` ResponsibleProperties []string `json:"responsible-properties"` }
CPUModelCompareInfo implements the "CpuModelCompareInfo" QMP API type.
type CPUModelCompareResult ¶
type CPUModelCompareResult int
CPUModelCompareResult implements the "CpuModelCompareResult" QMP API type.
const ( CPUModelCompareResultIncompatible CPUModelCompareResult = iota CPUModelCompareResultIdentical CPUModelCompareResultSuperset CPUModelCompareResultSubset )
Known values of CPUModelCompareResult.
func (CPUModelCompareResult) MarshalJSON ¶
func (e CPUModelCompareResult) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (CPUModelCompareResult) String ¶
func (e CPUModelCompareResult) String() string
String implements fmt.Stringer.
func (*CPUModelCompareResult) UnmarshalJSON ¶
func (e *CPUModelCompareResult) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CPUModelExpansionInfo ¶
type CPUModelExpansionInfo struct {
Model CPUModelInfo `json:"model"`
}
CPUModelExpansionInfo implements the "CpuModelExpansionInfo" QMP API type.
type CPUModelExpansionType ¶
type CPUModelExpansionType int
CPUModelExpansionType implements the "CpuModelExpansionType" QMP API type.
const ( CPUModelExpansionTypeStatic CPUModelExpansionType = iota CPUModelExpansionTypeFull )
Known values of CPUModelExpansionType.
func (CPUModelExpansionType) MarshalJSON ¶
func (e CPUModelExpansionType) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (CPUModelExpansionType) String ¶
func (e CPUModelExpansionType) String() string
String implements fmt.Stringer.
func (*CPUModelExpansionType) UnmarshalJSON ¶
func (e *CPUModelExpansionType) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CPUModelInfo ¶
type CPUModelInfo struct { Name string `json:"name"` Props *interface{} `json:"props,omitempty"` }
CPUModelInfo implements the "CpuModelInfo" QMP API type.
type ChardevBackend ¶
type ChardevBackend interface {
// contains filtered or unexported methods
}
ChardevBackend implements the "ChardevBackend" QMP API type.
Can be one of:
- ChardevBackendBraille
- ChardevBackendConsole
- ChardevBackendFile
- ChardevBackendMemory
- ChardevBackendMsmouse
- ChardevBackendMux
- ChardevBackendNull
- ChardevBackendParallel
- ChardevBackendPipe
- ChardevBackendPty
- ChardevBackendRingbuf
- ChardevBackendSerial
- ChardevBackendSocket
- ChardevBackendSpiceport
- ChardevBackendSpicevmc
- ChardevBackendStdio
- ChardevBackendTestdev
- ChardevBackendUDP
- ChardevBackendVc
type ChardevBackendBraille ¶
type ChardevBackendBraille ChardevCommon
ChardevBackendBraille is an implementation of ChardevBackend.
func (ChardevBackendBraille) MarshalJSON ¶
func (s ChardevBackendBraille) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendConsole ¶
type ChardevBackendConsole ChardevCommon
ChardevBackendConsole is an implementation of ChardevBackend.
func (ChardevBackendConsole) MarshalJSON ¶
func (s ChardevBackendConsole) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendFile ¶
type ChardevBackendFile ChardevFile
ChardevBackendFile is an implementation of ChardevBackend.
func (ChardevBackendFile) MarshalJSON ¶
func (s ChardevBackendFile) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendInfo ¶
type ChardevBackendInfo struct {
Name string `json:"name"`
}
ChardevBackendInfo implements the "ChardevBackendInfo" QMP API type.
type ChardevBackendMemory ¶
type ChardevBackendMemory ChardevRingbuf
ChardevBackendMemory is an implementation of ChardevBackend.
func (ChardevBackendMemory) MarshalJSON ¶
func (s ChardevBackendMemory) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendMsmouse ¶
type ChardevBackendMsmouse ChardevCommon
ChardevBackendMsmouse is an implementation of ChardevBackend.
func (ChardevBackendMsmouse) MarshalJSON ¶
func (s ChardevBackendMsmouse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendMux ¶
type ChardevBackendMux ChardevMux
ChardevBackendMux is an implementation of ChardevBackend.
func (ChardevBackendMux) MarshalJSON ¶
func (s ChardevBackendMux) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendNull ¶
type ChardevBackendNull ChardevCommon
ChardevBackendNull is an implementation of ChardevBackend.
func (ChardevBackendNull) MarshalJSON ¶
func (s ChardevBackendNull) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendParallel ¶
type ChardevBackendParallel ChardevHostdev
ChardevBackendParallel is an implementation of ChardevBackend.
func (ChardevBackendParallel) MarshalJSON ¶
func (s ChardevBackendParallel) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendPipe ¶
type ChardevBackendPipe ChardevHostdev
ChardevBackendPipe is an implementation of ChardevBackend.
func (ChardevBackendPipe) MarshalJSON ¶
func (s ChardevBackendPipe) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendPty ¶
type ChardevBackendPty ChardevCommon
ChardevBackendPty is an implementation of ChardevBackend.
func (ChardevBackendPty) MarshalJSON ¶
func (s ChardevBackendPty) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendRingbuf ¶
type ChardevBackendRingbuf ChardevRingbuf
ChardevBackendRingbuf is an implementation of ChardevBackend.
func (ChardevBackendRingbuf) MarshalJSON ¶
func (s ChardevBackendRingbuf) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendSerial ¶
type ChardevBackendSerial ChardevHostdev
ChardevBackendSerial is an implementation of ChardevBackend.
func (ChardevBackendSerial) MarshalJSON ¶
func (s ChardevBackendSerial) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendSocket ¶
type ChardevBackendSocket ChardevSocket
ChardevBackendSocket is an implementation of ChardevBackend.
func (ChardevBackendSocket) MarshalJSON ¶
func (s ChardevBackendSocket) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendSpiceport ¶
type ChardevBackendSpiceport ChardevSpicePort
ChardevBackendSpiceport is an implementation of ChardevBackend.
func (ChardevBackendSpiceport) MarshalJSON ¶
func (s ChardevBackendSpiceport) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendSpicevmc ¶
type ChardevBackendSpicevmc ChardevSpiceChannel
ChardevBackendSpicevmc is an implementation of ChardevBackend.
func (ChardevBackendSpicevmc) MarshalJSON ¶
func (s ChardevBackendSpicevmc) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendStdio ¶
type ChardevBackendStdio ChardevStdio
ChardevBackendStdio is an implementation of ChardevBackend.
func (ChardevBackendStdio) MarshalJSON ¶
func (s ChardevBackendStdio) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendTestdev ¶
type ChardevBackendTestdev ChardevCommon
ChardevBackendTestdev is an implementation of ChardevBackend.
func (ChardevBackendTestdev) MarshalJSON ¶
func (s ChardevBackendTestdev) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendUDP ¶
type ChardevBackendUDP ChardevUDP
ChardevBackendUDP is an implementation of ChardevBackend.
func (ChardevBackendUDP) MarshalJSON ¶
func (s ChardevBackendUDP) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevBackendVc ¶
type ChardevBackendVc ChardevVc
ChardevBackendVc is an implementation of ChardevBackend.
func (ChardevBackendVc) MarshalJSON ¶
func (s ChardevBackendVc) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ChardevCommon ¶
type ChardevCommon struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` }
ChardevCommon implements the "ChardevCommon" QMP API type.
type ChardevFile ¶
type ChardevFile struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` In *string `json:"in,omitempty"` Out string `json:"out"` Append *bool `json:"append,omitempty"` }
ChardevFile implements the "ChardevFile" QMP API type.
type ChardevHostdev ¶
type ChardevHostdev struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` Device string `json:"device"` }
ChardevHostdev implements the "ChardevHostdev" QMP API type.
type ChardevInfo ¶
type ChardevInfo struct { Label string `json:"label"` Filename string `json:"filename"` FrontendOpen bool `json:"frontend-open"` }
ChardevInfo implements the "ChardevInfo" QMP API type.
type ChardevMux ¶
type ChardevMux struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` Chardev string `json:"chardev"` }
ChardevMux implements the "ChardevMux" QMP API type.
type ChardevReturn ¶
type ChardevReturn struct {
Pty *string `json:"pty,omitempty"`
}
ChardevReturn implements the "ChardevReturn" QMP API type.
type ChardevRingbuf ¶
type ChardevRingbuf struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` Size *int64 `json:"size,omitempty"` }
ChardevRingbuf implements the "ChardevRingbuf" QMP API type.
type ChardevSocket ¶
type ChardevSocket struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` Addr SocketAddress `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"` Reconnect *int64 `json:"reconnect,omitempty"` }
ChardevSocket implements the "ChardevSocket" QMP API type.
func (*ChardevSocket) UnmarshalJSON ¶
func (s *ChardevSocket) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ChardevSpiceChannel ¶
type ChardevSpiceChannel struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` Type string `json:"type"` }
ChardevSpiceChannel implements the "ChardevSpiceChannel" QMP API type.
type ChardevSpicePort ¶
type ChardevSpicePort struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` Fqdn string `json:"fqdn"` }
ChardevSpicePort implements the "ChardevSpicePort" QMP API type.
type ChardevStdio ¶
type ChardevStdio struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` Signal *bool `json:"signal,omitempty"` }
ChardevStdio implements the "ChardevStdio" QMP API type.
type ChardevUDP ¶
type ChardevUDP struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` Remote SocketAddress `json:"remote"` Local SocketAddress `json:"local,omitempty"` }
ChardevUDP implements the "ChardevUdp" QMP API type.
func (*ChardevUDP) UnmarshalJSON ¶
func (s *ChardevUDP) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ChardevVc ¶
type ChardevVc struct { Logfile *string `json:"logfile,omitempty"` Logappend *bool `json:"logappend,omitempty"` Width *int64 `json:"width,omitempty"` Height *int64 `json:"height,omitempty"` Cols *int64 `json:"cols,omitempty"` Rows *int64 `json:"rows,omitempty"` }
ChardevVc implements the "ChardevVC" QMP API type.
type CommandInfo ¶
type CommandInfo struct {
Name string `json:"name"`
}
CommandInfo implements the "CommandInfo" QMP API type.
type CommandLineOptionInfo ¶
type CommandLineOptionInfo struct { Option string `json:"option"` Parameters []CommandLineParameterInfo `json:"parameters"` }
CommandLineOptionInfo implements the "CommandLineOptionInfo" QMP API type.
type CommandLineParameterInfo ¶
type CommandLineParameterInfo struct { Name string `json:"name"` Type CommandLineParameterType `json:"type"` Help *string `json:"help,omitempty"` Default *string `json:"default,omitempty"` }
CommandLineParameterInfo implements the "CommandLineParameterInfo" QMP API type.
type CommandLineParameterType ¶
type CommandLineParameterType int
CommandLineParameterType implements the "CommandLineParameterType" QMP API type.
const ( CommandLineParameterTypeString CommandLineParameterType = iota CommandLineParameterTypeBoolean CommandLineParameterTypefloat64 CommandLineParameterTypeuint64 )
Known values of CommandLineParameterType.
func (CommandLineParameterType) MarshalJSON ¶
func (e CommandLineParameterType) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (CommandLineParameterType) String ¶
func (e CommandLineParameterType) String() string
String implements fmt.Stringer.
func (*CommandLineParameterType) UnmarshalJSON ¶
func (e *CommandLineParameterType) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DataFormat ¶
type DataFormat int
DataFormat implements the "DataFormat" QMP API type.
const ( DataFormatUtf8 DataFormat = iota DataFormatBase64 )
Known values of DataFormat.
func (DataFormat) MarshalJSON ¶
func (e DataFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*DataFormat) UnmarshalJSON ¶
func (e *DataFormat) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DevicePropertyInfo ¶
type DevicePropertyInfo struct { Name string `json:"name"` Type string `json:"type"` Description *string `json:"description,omitempty"` }
DevicePropertyInfo implements the "DevicePropertyInfo" QMP API type.
type DirtyBitmapStatus ¶
type DirtyBitmapStatus int
DirtyBitmapStatus implements the "DirtyBitmapStatus" QMP API type.
const ( DirtyBitmapStatusActive DirtyBitmapStatus = iota DirtyBitmapStatusDisabled DirtyBitmapStatusFrozen )
Known values of DirtyBitmapStatus.
func (DirtyBitmapStatus) MarshalJSON ¶
func (e DirtyBitmapStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (DirtyBitmapStatus) String ¶
func (e DirtyBitmapStatus) String() string
String implements fmt.Stringer.
func (*DirtyBitmapStatus) UnmarshalJSON ¶
func (e *DirtyBitmapStatus) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DriveBackup ¶
type DriveBackup struct { JobID *string `json:"job-id,omitempty"` Device string `json:"device"` Target string `json:"target"` Format *string `json:"format,omitempty"` Sync MirrorSyncMode `json:"sync"` Mode *NewImageMode `json:"mode,omitempty"` Speed *int64 `json:"speed,omitempty"` Bitmap *string `json:"bitmap,omitempty"` Compress *bool `json:"compress,omitempty"` OnSourceError *BlockdevOnError `json:"on-source-error,omitempty"` OnTargetError *BlockdevOnError `json:"on-target-error,omitempty"` }
DriveBackup implements the "DriveBackup" QMP API type.
type DriveMirror ¶
type DriveMirror struct { JobID *string `json:"job-id,omitempty"` Device string `json:"device"` Target string `json:"target"` Format *string `json:"format,omitempty"` NodeName *string `json:"node-name,omitempty"` Replaces *string `json:"replaces,omitempty"` Sync MirrorSyncMode `json:"sync"` Mode *NewImageMode `json:"mode,omitempty"` Speed *int64 `json:"speed,omitempty"` Granularity *uint32 `json:"granularity,omitempty"` BufSize *int64 `json:"buf-size,omitempty"` OnSourceError *BlockdevOnError `json:"on-source-error,omitempty"` OnTargetError *BlockdevOnError `json:"on-target-error,omitempty"` Unmap *bool `json:"unmap,omitempty"` }
DriveMirror implements the "DriveMirror" QMP API type.
type DumpGuestMemoryCapability ¶
type DumpGuestMemoryCapability struct {
Formats []DumpGuestMemoryFormat `json:"formats"`
}
DumpGuestMemoryCapability implements the "DumpGuestMemoryCapability" QMP API type.
type DumpGuestMemoryFormat ¶
type DumpGuestMemoryFormat int
DumpGuestMemoryFormat implements the "DumpGuestMemoryFormat" QMP API type.
const ( DumpGuestMemoryFormatElf DumpGuestMemoryFormat = iota DumpGuestMemoryFormatKdumpZlib DumpGuestMemoryFormatKdumpLzo DumpGuestMemoryFormatKdumpSnappy )
Known values of DumpGuestMemoryFormat.
func (DumpGuestMemoryFormat) MarshalJSON ¶
func (e DumpGuestMemoryFormat) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (DumpGuestMemoryFormat) String ¶
func (e DumpGuestMemoryFormat) String() string
String implements fmt.Stringer.
func (*DumpGuestMemoryFormat) UnmarshalJSON ¶
func (e *DumpGuestMemoryFormat) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type DumpQueryResult ¶
type DumpQueryResult struct { Status DumpStatus `json:"status"` Completed int64 `json:"completed"` Total int64 `json:"total"` }
DumpQueryResult implements the "DumpQueryResult" QMP API type.
type DumpStatus ¶
type DumpStatus int
DumpStatus implements the "DumpStatus" QMP API type.
const ( DumpStatusNone DumpStatus = iota DumpStatusActive DumpStatusCompleted DumpStatusFailed )
Known values of DumpStatus.
func (DumpStatus) MarshalJSON ¶
func (e DumpStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*DumpStatus) UnmarshalJSON ¶
func (e *DumpStatus) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type EventInfo ¶
type EventInfo struct {
Name string `json:"name"`
}
EventInfo implements the "EventInfo" QMP API type.
type FdsetFDInfo ¶
FdsetFDInfo implements the "FdsetFdInfo" QMP API type.
type FdsetInfo ¶
type FdsetInfo struct { FdsetID int64 `json:"fdset-id"` Fds []FdsetFDInfo `json:"fds"` }
FdsetInfo implements the "FdsetInfo" QMP API type.
type GicCapability ¶
type GicCapability struct { Version int64 `json:"version"` Emulated bool `json:"emulated"` Kernel bool `json:"kernel"` }
GicCapability implements the "GICCapability" QMP API type.
type GlusterServer ¶
type GlusterServer interface {
// contains filtered or unexported methods
}
GlusterServer implements the "GlusterServer" QMP API type.
Can be one of:
- GlusterServerTCP
- GlusterServerUnix
type GlusterServerTCP ¶
type GlusterServerTCP struct { Host string `json:"host"` Port string `json:"port"` To *uint16 `json:"to,omitempty"` Ipv4 *bool `json:"ipv4,omitempty"` Ipv6 *bool `json:"ipv6,omitempty"` }
GlusterServerTCP is an implementation of GlusterServer.
func (GlusterServerTCP) MarshalJSON ¶
func (s GlusterServerTCP) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type GlusterServerUnix ¶
type GlusterServerUnix struct {
Path string `json:"path"`
}
GlusterServerUnix is an implementation of GlusterServer.
func (GlusterServerUnix) MarshalJSON ¶
func (s GlusterServerUnix) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type GlusterTransport ¶
type GlusterTransport int
GlusterTransport implements the "GlusterTransport" QMP API type.
const ( GlusterTransportUnix GlusterTransport = iota GlusterTransportTCP )
Known values of GlusterTransport.
func (GlusterTransport) MarshalJSON ¶
func (e GlusterTransport) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (GlusterTransport) String ¶
func (e GlusterTransport) String() string
String implements fmt.Stringer.
func (*GlusterTransport) UnmarshalJSON ¶
func (e *GlusterTransport) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type GuestPanicAction ¶
type GuestPanicAction int
GuestPanicAction implements the "GuestPanicAction" QMP API type.
const (
GuestPanicActionPause GuestPanicAction = iota
)
Known values of GuestPanicAction.
func (GuestPanicAction) MarshalJSON ¶
func (e GuestPanicAction) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (GuestPanicAction) String ¶
func (e GuestPanicAction) String() string
String implements fmt.Stringer.
func (*GuestPanicAction) UnmarshalJSON ¶
func (e *GuestPanicAction) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type HostMemPolicy ¶
type HostMemPolicy int
HostMemPolicy implements the "HostMemPolicy" QMP API type.
const ( HostMemPolicyDefault HostMemPolicy = iota HostMemPolicyPreferred HostMemPolicyBind HostMemPolicyInterleave )
Known values of HostMemPolicy.
func (HostMemPolicy) MarshalJSON ¶
func (e HostMemPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (HostMemPolicy) String ¶
func (e HostMemPolicy) String() string
String implements fmt.Stringer.
func (*HostMemPolicy) UnmarshalJSON ¶
func (e *HostMemPolicy) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type HotpluggableCPU ¶
type HotpluggableCPU struct { Type string `json:"type"` VcpusCount int64 `json:"vcpus-count"` Props CPUInstanceProperties `json:"props"` QomPath *string `json:"qom-path,omitempty"` }
HotpluggableCPU implements the "HotpluggableCPU" QMP API type.
type IOOperationType ¶
type IOOperationType int
IOOperationType implements the "IoOperationType" QMP API type.
const ( IOOperationTypeRead IOOperationType = iota IOOperationTypeWrite )
Known values of IOOperationType.
func (IOOperationType) MarshalJSON ¶
func (e IOOperationType) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (IOOperationType) String ¶
func (e IOOperationType) String() string
String implements fmt.Stringer.
func (*IOOperationType) UnmarshalJSON ¶
func (e *IOOperationType) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type IOThreadInfo ¶
IOThreadInfo implements the "IOThreadInfo" QMP API type.
type ImageInfo ¶
type ImageInfo struct { Filename string `json:"filename"` Format string `json:"format"` DirtyFlag *bool `json:"dirty-flag,omitempty"` ActualSize *int64 `json:"actual-size,omitempty"` VirtualSize int64 `json:"virtual-size"` ClusterSize *int64 `json:"cluster-size,omitempty"` Encrypted *bool `json:"encrypted,omitempty"` Compressed *bool `json:"compressed,omitempty"` BackingFilename *string `json:"backing-filename,omitempty"` FullBackingFilename *string `json:"full-backing-filename,omitempty"` BackingFilenameFormat *string `json:"backing-filename-format,omitempty"` Snapshots []SnapshotInfo `json:"snapshots,omitempty"` BackingImage *ImageInfo `json:"backing-image,omitempty"` FormatSpecific ImageInfoSpecific `json:"format-specific,omitempty"` }
ImageInfo implements the "ImageInfo" QMP API type.
func (*ImageInfo) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type ImageInfoSpecific ¶
type ImageInfoSpecific interface {
// contains filtered or unexported methods
}
ImageInfoSpecific implements the "ImageInfoSpecific" QMP API type.
Can be one of:
- ImageInfoSpecificLUKS
- ImageInfoSpecificQcow2
- ImageInfoSpecificVMDK
type ImageInfoSpecificLUKS ¶
type ImageInfoSpecificLUKS QCryptoBlockInfoLUKS
ImageInfoSpecificLUKS is an implementation of ImageInfoSpecific.
func (ImageInfoSpecificLUKS) MarshalJSON ¶
func (s ImageInfoSpecificLUKS) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ImageInfoSpecificQCow2 ¶
type ImageInfoSpecificQCow2 struct { Compat string `json:"compat"` LazyRefcounts *bool `json:"lazy-refcounts,omitempty"` Corrupt *bool `json:"corrupt,omitempty"` RefcountBits int64 `json:"refcount-bits"` }
ImageInfoSpecificQCow2 implements the "ImageInfoSpecificQCow2" QMP API type.
type ImageInfoSpecificQcow2 ¶
type ImageInfoSpecificQcow2 ImageInfoSpecificQCow2
ImageInfoSpecificQcow2 is an implementation of ImageInfoSpecific.
func (ImageInfoSpecificQcow2) MarshalJSON ¶
func (s ImageInfoSpecificQcow2) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type ImageInfoSpecificVMDK ¶
type ImageInfoSpecificVMDK struct { CreateType string `json:"create-type"` Cid int64 `json:"cid"` ParentCid int64 `json:"parent-cid"` Extents []ImageInfo `json:"extents"` }
ImageInfoSpecificVMDK implements the "ImageInfoSpecificVmdk" QMP API type.
func (ImageInfoSpecificVMDK) MarshalJSON ¶
func (s ImageInfoSpecificVMDK) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type InetSocketAddress ¶
type InetSocketAddress struct { Host string `json:"host"` Port string `json:"port"` To *uint16 `json:"to,omitempty"` Ipv4 *bool `json:"ipv4,omitempty"` Ipv6 *bool `json:"ipv6,omitempty"` }
InetSocketAddress implements the "InetSocketAddress" QMP API type.
type InputAxis ¶
type InputAxis int
InputAxis implements the "InputAxis" QMP API type.
func (InputAxis) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*InputAxis) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type InputBtnEvent ¶
type InputBtnEvent struct { Button InputButton `json:"button"` Down bool `json:"down"` }
InputBtnEvent implements the "InputBtnEvent" QMP API type.
type InputButton ¶
type InputButton int
InputButton implements the "InputButton" QMP API type.
const ( InputButtonLeft InputButton = iota InputButtonMiddle InputButtonRight InputButtonWheelUp InputButtonWheelDown )
Known values of InputButton.
func (InputButton) MarshalJSON ¶
func (e InputButton) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*InputButton) UnmarshalJSON ¶
func (e *InputButton) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type InputEvent ¶
type InputEvent interface {
// contains filtered or unexported methods
}
InputEvent implements the "InputEvent" QMP API type.
Can be one of:
- InputEventAbs
- InputEventBtn
- InputEventKey
- InputEventRel
type InputEventAbs ¶
type InputEventAbs InputMoveEvent
InputEventAbs is an implementation of InputEvent.
func (InputEventAbs) MarshalJSON ¶
func (s InputEventAbs) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type InputEventBtn ¶
type InputEventBtn InputBtnEvent
InputEventBtn is an implementation of InputEvent.
func (InputEventBtn) MarshalJSON ¶
func (s InputEventBtn) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type InputEventKey ¶
type InputEventKey InputKeyEvent
InputEventKey is an implementation of InputEvent.
func (InputEventKey) MarshalJSON ¶
func (s InputEventKey) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type InputEventRel ¶
type InputEventRel InputMoveEvent
InputEventRel is an implementation of InputEvent.
func (InputEventRel) MarshalJSON ¶
func (s InputEventRel) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type InputKeyEvent ¶
InputKeyEvent implements the "InputKeyEvent" QMP API type.
func (*InputKeyEvent) UnmarshalJSON ¶
func (s *InputKeyEvent) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type InputMoveEvent ¶
InputMoveEvent implements the "InputMoveEvent" QMP API type.
type JSONType ¶
type JSONType int
JSONType implements the "JSONType" QMP API type.
const ( JSONTypeString JSONType = iota JSONTypefloat64 JSONTypeint64 JSONTypeBoolean JSONTypeNull JSONTypeObject JSONTypeArray JSONTypeValue )
Known values of JSONType.
func (JSONType) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*JSONType) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type KeyValue ¶
type KeyValue interface {
// contains filtered or unexported methods
}
KeyValue implements the "KeyValue" QMP API type.
Can be one of:
- KeyValuefloat64
- KeyValueQcode
type KeyValueQcode ¶
type KeyValueQcode QKeyCode
KeyValueQcode is an implementation of KeyValue.
func (KeyValueQcode) MarshalJSON ¶
func (s KeyValueQcode) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type KeyValuefloat64 ¶
type KeyValuefloat64 int64
KeyValuefloat64 is an implementation of KeyValue.
func (KeyValuefloat64) MarshalJSON ¶
func (s KeyValuefloat64) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type MachineInfo ¶
type MachineInfo struct { Name string `json:"name"` Alias *string `json:"alias,omitempty"` IsDefault *bool `json:"is-default,omitempty"` CPUMax int64 `json:"cpu-max"` HotpluggableCpus bool `json:"hotpluggable-cpus"` }
MachineInfo implements the "MachineInfo" QMP API type.
type Memdev ¶
type Memdev struct { Size uint64 `json:"size"` Merge bool `json:"merge"` Dump bool `json:"dump"` Prealloc bool `json:"prealloc"` HostNodes []uint16 `json:"host-nodes"` Policy HostMemPolicy `json:"policy"` }
Memdev implements the "Memdev" QMP API type.
type MemoryDeviceInfo ¶
type MemoryDeviceInfo interface {
// contains filtered or unexported methods
}
MemoryDeviceInfo implements the "MemoryDeviceInfo" QMP API type.
Can be one of:
- MemoryDeviceInfoDimm
type MemoryDeviceInfoDimm ¶
type MemoryDeviceInfoDimm PcdimmDeviceInfo
MemoryDeviceInfoDimm is an implementation of MemoryDeviceInfo.
func (MemoryDeviceInfoDimm) MarshalJSON ¶
func (s MemoryDeviceInfoDimm) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type MigrationCapability ¶
type MigrationCapability int
MigrationCapability implements the "MigrationCapability" QMP API type.
const ( MigrationCapabilityXbzrle MigrationCapability = iota MigrationCapabilityRdmaPinAll MigrationCapabilityAutoConverge MigrationCapabilityZeroBlocks MigrationCapabilityCompress MigrationCapabilityEvents MigrationCapabilityPostcopyRAM )
Known values of MigrationCapability.
func (MigrationCapability) MarshalJSON ¶
func (e MigrationCapability) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (MigrationCapability) String ¶
func (e MigrationCapability) String() string
String implements fmt.Stringer.
func (*MigrationCapability) UnmarshalJSON ¶
func (e *MigrationCapability) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MigrationCapabilityStatus ¶
type MigrationCapabilityStatus struct { Capability MigrationCapability `json:"capability"` State bool `json:"state"` }
MigrationCapabilityStatus implements the "MigrationCapabilityStatus" QMP API type.
type MigrationInfo ¶
type MigrationInfo struct { Status *MigrationStatus `json:"status,omitempty"` RAM *MigrationStats `json:"ram,omitempty"` Disk *MigrationStats `json:"disk,omitempty"` XbzrleCache *XbzrleCacheStats `json:"xbzrle-cache,omitempty"` TotalTime *int64 `json:"total-time,omitempty"` ExpectedDowntime *int64 `json:"expected-downtime,omitempty"` Downtime *int64 `json:"downtime,omitempty"` SetupTime *int64 `json:"setup-time,omitempty"` CPUThrottlePercentage *int64 `json:"cpu-throttle-percentage,omitempty"` ErrorDesc *string `json:"error-desc,omitempty"` }
MigrationInfo implements the "MigrationInfo" QMP API type.
type MigrationParameters ¶
type MigrationParameters struct { CompressLevel *int64 `json:"compress-level,omitempty"` CompressThreads *int64 `json:"compress-threads,omitempty"` DecompressThreads *int64 `json:"decompress-threads,omitempty"` CPUThrottleInitial *int64 `json:"cpu-throttle-initial,omitempty"` CPUThrottleIncrement *int64 `json:"cpu-throttle-increment,omitempty"` TLSCreds *string `json:"tls-creds,omitempty"` TLSHostname *string `json:"tls-hostname,omitempty"` MaxBandwidth *int64 `json:"max-bandwidth,omitempty"` DowntimeLimit *int64 `json:"downtime-limit,omitempty"` }
MigrationParameters implements the "MigrationParameters" QMP API type.
type MigrationStats ¶
type MigrationStats struct { Transferred int64 `json:"transferred"` Remaining int64 `json:"remaining"` Total int64 `json:"total"` Duplicate int64 `json:"duplicate"` Skipped int64 `json:"skipped"` Normal int64 `json:"normal"` NormalBytes int64 `json:"normal-bytes"` DirtyPagesRate int64 `json:"dirty-pages-rate"` Mbps float64 `json:"mbps"` DirtySyncCount int64 `json:"dirty-sync-count"` PostcopyRequests int64 `json:"postcopy-requests"` }
MigrationStats implements the "MigrationStats" QMP API type.
type MigrationStatus ¶
type MigrationStatus int
MigrationStatus implements the "MigrationStatus" QMP API type.
const ( MigrationStatusNone MigrationStatus = iota MigrationStatusSetup MigrationStatusCancelling MigrationStatusCancelled MigrationStatusActive MigrationStatusPostcopyActive MigrationStatusCompleted MigrationStatusFailed )
Known values of MigrationStatus.
func (MigrationStatus) MarshalJSON ¶
func (e MigrationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (MigrationStatus) String ¶
func (e MigrationStatus) String() string
String implements fmt.Stringer.
func (*MigrationStatus) UnmarshalJSON ¶
func (e *MigrationStatus) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MirrorSyncMode ¶
type MirrorSyncMode int
MirrorSyncMode implements the "MirrorSyncMode" QMP API type.
const ( MirrorSyncModeTop MirrorSyncMode = iota MirrorSyncModeFull MirrorSyncModeNone MirrorSyncModeIncremental )
Known values of MirrorSyncMode.
func (MirrorSyncMode) MarshalJSON ¶
func (e MirrorSyncMode) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (MirrorSyncMode) String ¶
func (e MirrorSyncMode) String() string
String implements fmt.Stringer.
func (*MirrorSyncMode) UnmarshalJSON ¶
func (e *MirrorSyncMode) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor exposes the raw QMP command set.
func NewMonitor ¶
NewMonitor wraps a qmp.Monitor into a raw.Monitor.
func (*Monitor) BlockCommit ¶
func (m *Monitor) BlockCommit(jobID *string, device string, base *string, top *string, backingFile *string, speed *int64) (err error)
BlockCommit implements the "block-commit" QMP API call.
func (*Monitor) BlockDirtyBitmapAdd ¶
BlockDirtyBitmapAdd implements the "block-dirty-bitmap-add" QMP API call.
func (*Monitor) BlockDirtyBitmapClear ¶
BlockDirtyBitmapClear implements the "block-dirty-bitmap-clear" QMP API call.
func (*Monitor) BlockDirtyBitmapRemove ¶
BlockDirtyBitmapRemove implements the "block-dirty-bitmap-remove" QMP API call.
func (*Monitor) BlockJobCancel ¶
BlockJobCancel implements the "block-job-cancel" QMP API call.
func (*Monitor) BlockJobComplete ¶
BlockJobComplete implements the "block-job-complete" QMP API call.
func (*Monitor) BlockJobPause ¶
BlockJobPause implements the "block-job-pause" QMP API call.
func (*Monitor) BlockJobResume ¶
BlockJobResume implements the "block-job-resume" QMP API call.
func (*Monitor) BlockJobSetSpeed ¶
BlockJobSetSpeed implements the "block-job-set-speed" QMP API call.
func (*Monitor) BlockPasswd ¶
BlockPasswd implements the "block_passwd" QMP API call.
func (*Monitor) BlockResize ¶
BlockResize implements the "block_resize" QMP API call.
func (*Monitor) BlockSetIOThrottle ¶
func (m *Monitor) BlockSetIOThrottle(cmd *BlockIOThrottle) (err error)
BlockSetIOThrottle implements the "block_set_io_throttle" QMP API call.
func (*Monitor) BlockSetWriteThreshold ¶
BlockSetWriteThreshold implements the "block-set-write-threshold" QMP API call.
func (*Monitor) BlockStream ¶
func (m *Monitor) BlockStream(jobID *string, device string, base *string, backingFile *string, speed *int64, onError *BlockdevOnError) (err error)
BlockStream implements the "block-stream" QMP API call.
func (*Monitor) BlockdevAdd ¶
func (m *Monitor) BlockdevAdd(options BlockdevOptions) (err error)
BlockdevAdd implements the "blockdev-add" QMP API call.
func (*Monitor) BlockdevBackup ¶
func (m *Monitor) BlockdevBackup(cmd *BlockdevBackup) (err error)
BlockdevBackup implements the "blockdev-backup" QMP API call.
func (*Monitor) BlockdevChangeMedium ¶
func (m *Monitor) BlockdevChangeMedium(device *string, id *string, filename string, format *string, readOnlyMode *BlockdevChangeReadOnlyMode) (err error)
BlockdevChangeMedium implements the "blockdev-change-medium" QMP API call.
func (*Monitor) BlockdevCloseTray ¶
BlockdevCloseTray implements the "blockdev-close-tray" QMP API call.
func (*Monitor) BlockdevMirror ¶
func (m *Monitor) BlockdevMirror(jobID *string, device string, target string, replaces *string, sync MirrorSyncMode, speed *int64, granularity *uint32, bufSize *int64, onSourceError *BlockdevOnError, onTargetError *BlockdevOnError) (err error)
BlockdevMirror implements the "blockdev-mirror" QMP API call.
func (*Monitor) BlockdevOpenTray ¶
BlockdevOpenTray implements the "blockdev-open-tray" QMP API call.
func (*Monitor) BlockdevSnapshot ¶
BlockdevSnapshot implements the "blockdev-snapshot" QMP API call.
func (*Monitor) BlockdevSnapshotDeleteInternalSync ¶
func (m *Monitor) BlockdevSnapshotDeleteInternalSync(device string, id *string, name *string) (ret SnapshotInfo, err error)
BlockdevSnapshotDeleteInternalSync implements the "blockdev-snapshot-delete-internal-sync" QMP API call.
func (*Monitor) BlockdevSnapshotInternalSync ¶
BlockdevSnapshotInternalSync implements the "blockdev-snapshot-internal-sync" QMP API call.
func (*Monitor) BlockdevSnapshotSync ¶
func (m *Monitor) BlockdevSnapshotSync(device *string, nodeName *string, snapshotFile string, snapshotNodeName *string, format *string, mode *NewImageMode) (err error)
BlockdevSnapshotSync implements the "blockdev-snapshot-sync" QMP API call.
func (*Monitor) ChangeBackingFile ¶
func (m *Monitor) ChangeBackingFile(device string, imageNodeName string, backingFile string) (err error)
ChangeBackingFile implements the "change-backing-file" QMP API call.
func (*Monitor) ChangeVNCPassword ¶
ChangeVNCPassword implements the "change-vnc-password" QMP API call.
func (*Monitor) ChardevAdd ¶
func (m *Monitor) ChardevAdd(id string, backend ChardevBackend) (ret ChardevReturn, err error)
ChardevAdd implements the "chardev-add" QMP API call.
func (*Monitor) ChardevRemove ¶
ChardevRemove implements the "chardev-remove" QMP API call.
func (*Monitor) ClientMigrateInfo ¶
func (m *Monitor) ClientMigrateInfo(protocol string, hostname string, port *int64, tlsPort *int64, certSubject *string) (err error)
ClientMigrateInfo implements the "client_migrate_info" QMP API call.
func (*Monitor) DeviceListProperties ¶
func (m *Monitor) DeviceListProperties(typename string) (ret []DevicePropertyInfo, err error)
DeviceListProperties implements the "device-list-properties" QMP API call.
func (*Monitor) DriveBackup ¶
func (m *Monitor) DriveBackup(cmd *DriveBackup) (err error)
DriveBackup implements the "drive-backup" QMP API call.
func (*Monitor) DriveMirror ¶
func (m *Monitor) DriveMirror(cmd *DriveMirror) (err error)
DriveMirror implements the "drive-mirror" QMP API call.
func (*Monitor) DumpGuestMemory ¶
func (m *Monitor) DumpGuestMemory(paging bool, protocol string, detach *bool, begin *int64, length *int64, format *DumpGuestMemoryFormat) (err error)
DumpGuestMemory implements the "dump-guest-memory" QMP API call.
func (*Monitor) ExpirePassword ¶
ExpirePassword implements the "expire_password" QMP API call.
func (*Monitor) HumanMonitorCommand ¶
HumanMonitorCommand implements the "human-monitor-command" QMP API call.
func (*Monitor) InputSendEvent ¶
func (m *Monitor) InputSendEvent(device *string, head *int64, events []InputEvent) (err error)
InputSendEvent implements the "input-send-event" QMP API call.
func (*Monitor) MigrateCancel ¶
MigrateCancel implements the "migrate_cancel" QMP API call.
func (*Monitor) MigrateIncoming ¶
MigrateIncoming implements the "migrate-incoming" QMP API call.
func (*Monitor) MigrateSetCacheSize ¶
MigrateSetCacheSize implements the "migrate-set-cache-size" QMP API call.
func (*Monitor) MigrateSetCapabilities ¶
func (m *Monitor) MigrateSetCapabilities(capabilities []MigrationCapabilityStatus) (err error)
MigrateSetCapabilities implements the "migrate-set-capabilities" QMP API call.
func (*Monitor) MigrateSetDowntime ¶
MigrateSetDowntime implements the "migrate_set_downtime" QMP API call.
func (*Monitor) MigrateSetParameters ¶
func (m *Monitor) MigrateSetParameters(cmd *MigrationParameters) (err error)
MigrateSetParameters implements the "migrate-set-parameters" QMP API call.
func (*Monitor) MigrateSetSpeed ¶
MigrateSetSpeed implements the "migrate_set_speed" QMP API call.
func (*Monitor) MigrateStartPostcopy ¶
MigrateStartPostcopy implements the "migrate-start-postcopy" QMP API call.
func (*Monitor) NBDServerAdd ¶
NBDServerAdd implements the "nbd-server-add" QMP API call.
func (*Monitor) NBDServerStart ¶
func (m *Monitor) NBDServerStart(addr SocketAddress, tlsCreds *string) (err error)
NBDServerStart implements the "nbd-server-start" QMP API call.
func (*Monitor) NBDServerStop ¶
NBDServerStop implements the "nbd-server-stop" QMP API call.
func (*Monitor) QMPCapabilities ¶
QMPCapabilities implements the "qmp_capabilities" QMP API call.
func (*Monitor) QomList ¶
func (m *Monitor) QomList(path string) (ret []ObjectPropertyInfo, err error)
QomList implements the "qom-list" QMP API call.
func (*Monitor) QomListTypes ¶
func (m *Monitor) QomListTypes(implements *string, abstract *bool) (ret []ObjectTypeInfo, err error)
QomListTypes implements the "qom-list-types" QMP API call.
func (*Monitor) QueryACPIOspmStatus ¶
func (m *Monitor) QueryACPIOspmStatus() (ret []ACPIOSTInfo, err error)
QueryACPIOspmStatus implements the "query-acpi-ospm-status" QMP API call.
func (*Monitor) QueryBalloon ¶
func (m *Monitor) QueryBalloon() (ret BalloonInfo, err error)
QueryBalloon implements the "query-balloon" QMP API call.
func (*Monitor) QueryBlock ¶
QueryBlock implements the "query-block" QMP API call.
func (*Monitor) QueryBlockJobs ¶
func (m *Monitor) QueryBlockJobs() (ret []BlockJobInfo, err error)
QueryBlockJobs implements the "query-block-jobs" QMP API call.
func (*Monitor) QueryBlockstats ¶
func (m *Monitor) QueryBlockstats(queryNodes *bool) (ret []BlockStats, err error)
QueryBlockstats implements the "query-blockstats" QMP API call.
func (*Monitor) QueryCPUDefinitions ¶
func (m *Monitor) QueryCPUDefinitions() (ret []CPUDefinitionInfo, err error)
QueryCPUDefinitions implements the "query-cpu-definitions" QMP API call.
func (*Monitor) QueryCPUModelBaseline ¶
func (m *Monitor) QueryCPUModelBaseline(modela CPUModelInfo, modelb CPUModelInfo) (ret CPUModelBaselineInfo, err error)
QueryCPUModelBaseline implements the "query-cpu-model-baseline" QMP API call.
func (*Monitor) QueryCPUModelComparison ¶
func (m *Monitor) QueryCPUModelComparison(modela CPUModelInfo, modelb CPUModelInfo) (ret CPUModelCompareInfo, err error)
QueryCPUModelComparison implements the "query-cpu-model-comparison" QMP API call.
func (*Monitor) QueryCPUModelExpansion ¶
func (m *Monitor) QueryCPUModelExpansion(typ CPUModelExpansionType, model CPUModelInfo) (ret CPUModelExpansionInfo, err error)
QueryCPUModelExpansion implements the "query-cpu-model-expansion" QMP API call.
func (*Monitor) QueryChardev ¶
func (m *Monitor) QueryChardev() (ret []ChardevInfo, err error)
QueryChardev implements the "query-chardev" QMP API call.
func (*Monitor) QueryChardevBackends ¶
func (m *Monitor) QueryChardevBackends() (ret []ChardevBackendInfo, err error)
QueryChardevBackends implements the "query-chardev-backends" QMP API call.
func (*Monitor) QueryCommandLineOptions ¶
func (m *Monitor) QueryCommandLineOptions(option *string) (ret []CommandLineOptionInfo, err error)
QueryCommandLineOptions implements the "query-command-line-options" QMP API call.
func (*Monitor) QueryCommands ¶
func (m *Monitor) QueryCommands() (ret []CommandInfo, err error)
QueryCommands implements the "query-commands" QMP API call.
func (*Monitor) QueryDump ¶
func (m *Monitor) QueryDump() (ret DumpQueryResult, err error)
QueryDump implements the "query-dump" QMP API call.
func (*Monitor) QueryDumpGuestMemoryCapability ¶
func (m *Monitor) QueryDumpGuestMemoryCapability() (ret DumpGuestMemoryCapability, err error)
QueryDumpGuestMemoryCapability implements the "query-dump-guest-memory-capability" QMP API call.
func (*Monitor) QueryEvents ¶
QueryEvents implements the "query-events" QMP API call.
func (*Monitor) QueryFdsets ¶
QueryFdsets implements the "query-fdsets" QMP API call.
func (*Monitor) QueryGicCapabilities ¶
func (m *Monitor) QueryGicCapabilities() (ret []GicCapability, err error)
QueryGicCapabilities implements the "query-gic-capabilities" QMP API call.
func (*Monitor) QueryHotpluggableCpus ¶
func (m *Monitor) QueryHotpluggableCpus() (ret []HotpluggableCPU, err error)
QueryHotpluggableCpus implements the "query-hotpluggable-cpus" QMP API call.
func (*Monitor) QueryIothreads ¶
func (m *Monitor) QueryIothreads() (ret []IOThreadInfo, err error)
QueryIothreads implements the "query-iothreads" QMP API call.
func (*Monitor) QueryMachines ¶
func (m *Monitor) QueryMachines() (ret []MachineInfo, err error)
QueryMachines implements the "query-machines" QMP API call.
func (*Monitor) QueryMemdev ¶
QueryMemdev implements the "query-memdev" QMP API call.
func (*Monitor) QueryMemoryDevices ¶
func (m *Monitor) QueryMemoryDevices() (ret []MemoryDeviceInfo, err error)
QueryMemoryDevices implements the "query-memory-devices" QMP API call.
func (*Monitor) QueryMigrate ¶
func (m *Monitor) QueryMigrate() (ret MigrationInfo, err error)
QueryMigrate implements the "query-migrate" QMP API call.
func (*Monitor) QueryMigrateCacheSize ¶
QueryMigrateCacheSize implements the "query-migrate-cache-size" QMP API call.
func (*Monitor) QueryMigrateCapabilities ¶
func (m *Monitor) QueryMigrateCapabilities() (ret []MigrationCapabilityStatus, err error)
QueryMigrateCapabilities implements the "query-migrate-capabilities" QMP API call.
func (*Monitor) QueryMigrateParameters ¶
func (m *Monitor) QueryMigrateParameters() (ret MigrationParameters, err error)
QueryMigrateParameters implements the "query-migrate-parameters" QMP API call.
func (*Monitor) QueryNamedBlockNodes ¶
func (m *Monitor) QueryNamedBlockNodes() (ret []BlockDeviceInfo, err error)
QueryNamedBlockNodes implements the "query-named-block-nodes" QMP API call.
func (*Monitor) QueryQMPSchema ¶
func (m *Monitor) QueryQMPSchema() (ret []SchemaInfo, err error)
QueryQMPSchema implements the "query-qmp-schema" QMP API call.
func (*Monitor) QueryRocker ¶
func (m *Monitor) QueryRocker(name string) (ret RockerSwitch, err error)
QueryRocker implements the "query-rocker" QMP API call.
func (*Monitor) QueryRockerOfDpaFlows ¶
func (m *Monitor) QueryRockerOfDpaFlows(name string, tblID *uint32) (ret []RockerOfDpaFlow, err error)
QueryRockerOfDpaFlows implements the "query-rocker-of-dpa-flows" QMP API call.
func (*Monitor) QueryRockerOfDpaGroups ¶
func (m *Monitor) QueryRockerOfDpaGroups(name string, typ *uint8) (ret []RockerOfDpaGroup, err error)
QueryRockerOfDpaGroups implements the "query-rocker-of-dpa-groups" QMP API call.
func (*Monitor) QueryRockerPorts ¶
func (m *Monitor) QueryRockerPorts(name string) (ret []RockerPort, err error)
QueryRockerPorts implements the "query-rocker-ports" QMP API call.
func (*Monitor) QueryRxFilter ¶
func (m *Monitor) QueryRxFilter(name *string) (ret []RxFilterInfo, err error)
QueryRxFilter implements the "query-rx-filter" QMP API call.
func (*Monitor) QuerySpice ¶
QuerySpice implements the "query-spice" QMP API call.
func (*Monitor) QueryStatus ¶
func (m *Monitor) QueryStatus() (ret StatusInfo, err error)
QueryStatus implements the "query-status" QMP API call.
func (*Monitor) QueryTPMModels ¶
QueryTPMModels implements the "query-tpm-models" QMP API call.
func (*Monitor) QueryTPMTypes ¶
QueryTPMTypes implements the "query-tpm-types" QMP API call.
func (*Monitor) QueryTarget ¶
func (m *Monitor) QueryTarget() (ret TargetInfo, err error)
QueryTarget implements the "query-target" QMP API call.
func (*Monitor) QueryVNCServers ¶
QueryVNCServers implements the "query-vnc-servers" QMP API call.
func (*Monitor) QueryVersion ¶
func (m *Monitor) QueryVersion() (ret VersionInfo, err error)
QueryVersion implements the "query-version" QMP API call.
func (*Monitor) RingbufRead ¶
func (m *Monitor) RingbufRead(device string, size int64, format *DataFormat) (ret string, err error)
RingbufRead implements the "ringbuf-read" QMP API call.
func (*Monitor) RingbufWrite ¶
func (m *Monitor) RingbufWrite(device string, data string, format *DataFormat) (err error)
RingbufWrite implements the "ringbuf-write" QMP API call.
func (*Monitor) RtcResetReinjection ¶
RtcResetReinjection implements the "rtc-reset-reinjection" QMP API call.
func (*Monitor) Screendump ¶
Screendump implements the "screendump" QMP API call.
func (*Monitor) SetPassword ¶
SetPassword implements the "set_password" QMP API call.
func (*Monitor) SystemPowerdown ¶
SystemPowerdown implements the "system_powerdown" QMP API call.
func (*Monitor) SystemReset ¶
SystemReset implements the "system_reset" QMP API call.
func (*Monitor) SystemWakeup ¶
SystemWakeup implements the "system_wakeup" QMP API call.
func (*Monitor) TraceEventGetState ¶
func (m *Monitor) TraceEventGetState(name string, vcpu *int64) (ret []TraceEventInfo, err error)
TraceEventGetState implements the "trace-event-get-state" QMP API call.
func (*Monitor) TraceEventSetState ¶
func (m *Monitor) TraceEventSetState(name string, enable bool, ignoreUnavailable *bool, vcpu *int64) (err error)
TraceEventSetState implements the "trace-event-set-state" QMP API call.
func (*Monitor) Transaction ¶
func (m *Monitor) Transaction(actions []TransactionAction, properties *TransactionProperties) (err error)
Transaction implements the "transaction" QMP API call.
func (*Monitor) XBlockdevChange ¶
XBlockdevChange implements the "x-blockdev-change" QMP API call.
func (*Monitor) XBlockdevDel ¶
XBlockdevDel implements the "x-blockdev-del" QMP API call.
func (*Monitor) XBlockdevInsertMedium ¶
XBlockdevInsertMedium implements the "x-blockdev-insert-medium" QMP API call.
func (*Monitor) XBlockdevRemoveMedium ¶
XBlockdevRemoveMedium implements the "x-blockdev-remove-medium" QMP API call.
func (*Monitor) XenLoadDevicesState ¶
XenLoadDevicesState implements the "xen-load-devices-state" QMP API call.
func (*Monitor) XenSaveDevicesState ¶
XenSaveDevicesState implements the "xen-save-devices-state" QMP API call.
func (*Monitor) XenSetGlobalDirtyLog ¶
XenSetGlobalDirtyLog implements the "xen-set-global-dirty-log" QMP API call.
type MouseInfo ¶
type MouseInfo struct { Name string `json:"name"` Index int64 `json:"index"` Current bool `json:"current"` Absolute bool `json:"absolute"` }
MouseInfo implements the "MouseInfo" QMP API type.
type NameInfo ¶
type NameInfo struct {
Name *string `json:"name,omitempty"`
}
NameInfo implements the "NameInfo" QMP API type.
type NetworkAddressFamily ¶
type NetworkAddressFamily int
NetworkAddressFamily implements the "NetworkAddressFamily" QMP API type.
const ( NetworkAddressFamilyIpv4 NetworkAddressFamily = iota NetworkAddressFamilyIpv6 NetworkAddressFamilyUnix NetworkAddressFamilyUnknown )
Known values of NetworkAddressFamily.
func (NetworkAddressFamily) MarshalJSON ¶
func (e NetworkAddressFamily) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (NetworkAddressFamily) String ¶
func (e NetworkAddressFamily) String() string
String implements fmt.Stringer.
func (*NetworkAddressFamily) UnmarshalJSON ¶
func (e *NetworkAddressFamily) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type NewImageMode ¶
type NewImageMode int
NewImageMode implements the "NewImageMode" QMP API type.
const ( NewImageModeExisting NewImageMode = iota NewImageModeAbsolutePaths )
Known values of NewImageMode.
func (NewImageMode) MarshalJSON ¶
func (e NewImageMode) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*NewImageMode) UnmarshalJSON ¶
func (e *NewImageMode) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ObjectPropertyInfo ¶
ObjectPropertyInfo implements the "ObjectPropertyInfo" QMP API type.
type ObjectTypeInfo ¶
type ObjectTypeInfo struct {
Name string `json:"name"`
}
ObjectTypeInfo implements the "ObjectTypeInfo" QMP API type.
type PCIBridgeInfo ¶
type PCIBridgeInfo struct { Bus PCIBusInfo `json:"bus"` Devices []PCIDeviceInfo `json:"devices,omitempty"` }
PCIBridgeInfo implements the "PciBridgeInfo" QMP API type.
type PCIBusInfo ¶
type PCIBusInfo struct { Number int64 `json:"number"` Secondary int64 `json:"secondary"` Subordinate int64 `json:"subordinate"` IORange PCIMemoryRange `json:"io_range"` MemoryRange PCIMemoryRange `json:"memory_range"` PrefetchableRange PCIMemoryRange `json:"prefetchable_range"` }
PCIBusInfo implements the "PciBusInfo" QMP API type.
type PCIDeviceClass ¶
PCIDeviceClass implements the "PciDeviceClass" QMP API type.
type PCIDeviceID ¶
PCIDeviceID implements the "PciDeviceId" QMP API type.
type PCIDeviceInfo ¶
type PCIDeviceInfo struct { Bus int64 `json:"bus"` Slot int64 `json:"slot"` Function int64 `json:"function"` ClassInfo PCIDeviceClass `json:"class_info"` ID PCIDeviceID `json:"id"` Irq *int64 `json:"irq,omitempty"` QdevID string `json:"qdev_id"` PCIBridge *PCIBridgeInfo `json:"pci_bridge,omitempty"` Regions []PCIMemoryRegion `json:"regions"` }
PCIDeviceInfo implements the "PciDeviceInfo" QMP API type.
type PCIInfo ¶
type PCIInfo struct { Bus int64 `json:"bus"` Devices []PCIDeviceInfo `json:"devices"` }
PCIInfo implements the "PciInfo" QMP API type.
type PCIMemoryRange ¶
PCIMemoryRange implements the "PciMemoryRange" QMP API type.
type PCIMemoryRegion ¶
type PCIMemoryRegion struct { Bar int64 `json:"bar"` Type string `json:"type"` Address int64 `json:"address"` Size int64 `json:"size"` Prefetch *bool `json:"prefetch,omitempty"` MemType64 *bool `json:"mem_type_64,omitempty"` }
PCIMemoryRegion implements the "PciMemoryRegion" QMP API type.
type PcdimmDeviceInfo ¶
type PcdimmDeviceInfo struct { ID *string `json:"id,omitempty"` Addr int64 `json:"addr"` Size int64 `json:"size"` Slot int64 `json:"slot"` Node int64 `json:"node"` Memdev string `json:"memdev"` Hotplugged bool `json:"hotplugged"` Hotpluggable bool `json:"hotpluggable"` }
PcdimmDeviceInfo implements the "PCDIMMDeviceInfo" QMP API type.
type QCryptoBlockInfoLUKS ¶
type QCryptoBlockInfoLUKS struct { CipherAlg QCryptoCipherAlgorithm `json:"cipher-alg"` CipherMode QCryptoCipherMode `json:"cipher-mode"` IvgenAlg QCryptoIvGenAlgorithm `json:"ivgen-alg"` IvgenHashAlg *QCryptoHashAlgorithm `json:"ivgen-hash-alg,omitempty"` HashAlg QCryptoHashAlgorithm `json:"hash-alg"` PayloadOffset int64 `json:"payload-offset"` MasterKeyIters int64 `json:"master-key-iters"` UUID string `json:"uuid"` Slots []QCryptoBlockInfoLUKSSlot `json:"slots"` }
QCryptoBlockInfoLUKS implements the "QCryptoBlockInfoLUKS" QMP API type.
type QCryptoBlockInfoLUKSSlot ¶
type QCryptoBlockInfoLUKSSlot struct { Active bool `json:"active"` Iters *int64 `json:"iters,omitempty"` Stripes *int64 `json:"stripes,omitempty"` KeyOffset int64 `json:"key-offset"` }
QCryptoBlockInfoLUKSSlot implements the "QCryptoBlockInfoLUKSSlot" QMP API type.
type QCryptoCipherAlgorithm ¶
type QCryptoCipherAlgorithm int
QCryptoCipherAlgorithm implements the "QCryptoCipherAlgorithm" QMP API type.
const ( QCryptoCipherAlgorithmAes128 QCryptoCipherAlgorithm = iota QCryptoCipherAlgorithmAes192 QCryptoCipherAlgorithmAes256 QCryptoCipherAlgorithmDesRfb QCryptoCipherAlgorithmCast5128 QCryptoCipherAlgorithmSerpent128 QCryptoCipherAlgorithmSerpent192 QCryptoCipherAlgorithmSerpent256 QCryptoCipherAlgorithmTwofish128 QCryptoCipherAlgorithmTwofish192 QCryptoCipherAlgorithmTwofish256 )
Known values of QCryptoCipherAlgorithm.
func (QCryptoCipherAlgorithm) MarshalJSON ¶
func (e QCryptoCipherAlgorithm) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (QCryptoCipherAlgorithm) String ¶
func (e QCryptoCipherAlgorithm) String() string
String implements fmt.Stringer.
func (*QCryptoCipherAlgorithm) UnmarshalJSON ¶
func (e *QCryptoCipherAlgorithm) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type QCryptoCipherMode ¶
type QCryptoCipherMode int
QCryptoCipherMode implements the "QCryptoCipherMode" QMP API type.
const ( QCryptoCipherModeEcb QCryptoCipherMode = iota QCryptoCipherModeCbc QCryptoCipherModeXts )
Known values of QCryptoCipherMode.
func (QCryptoCipherMode) MarshalJSON ¶
func (e QCryptoCipherMode) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (QCryptoCipherMode) String ¶
func (e QCryptoCipherMode) String() string
String implements fmt.Stringer.
func (*QCryptoCipherMode) UnmarshalJSON ¶
func (e *QCryptoCipherMode) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type QCryptoHashAlgorithm ¶
type QCryptoHashAlgorithm int
QCryptoHashAlgorithm implements the "QCryptoHashAlgorithm" QMP API type.
const ( QCryptoHashAlgorithmMd5 QCryptoHashAlgorithm = iota QCryptoHashAlgorithmSha1 QCryptoHashAlgorithmSha224 QCryptoHashAlgorithmSha256 QCryptoHashAlgorithmSha384 QCryptoHashAlgorithmSha512 QCryptoHashAlgorithmRipemd160 )
Known values of QCryptoHashAlgorithm.
func (QCryptoHashAlgorithm) MarshalJSON ¶
func (e QCryptoHashAlgorithm) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (QCryptoHashAlgorithm) String ¶
func (e QCryptoHashAlgorithm) String() string
String implements fmt.Stringer.
func (*QCryptoHashAlgorithm) UnmarshalJSON ¶
func (e *QCryptoHashAlgorithm) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type QCryptoIvGenAlgorithm ¶
type QCryptoIvGenAlgorithm int
QCryptoIvGenAlgorithm implements the "QCryptoIVGenAlgorithm" QMP API type.
const ( QCryptoIvGenAlgorithmPlain QCryptoIvGenAlgorithm = iota QCryptoIvGenAlgorithmPlain64 QCryptoIvGenAlgorithmEssiv )
Known values of QCryptoIvGenAlgorithm.
func (QCryptoIvGenAlgorithm) MarshalJSON ¶
func (e QCryptoIvGenAlgorithm) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (QCryptoIvGenAlgorithm) String ¶
func (e QCryptoIvGenAlgorithm) String() string
String implements fmt.Stringer.
func (*QCryptoIvGenAlgorithm) UnmarshalJSON ¶
func (e *QCryptoIvGenAlgorithm) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type QKeyCode ¶
type QKeyCode int
QKeyCode implements the "QKeyCode" QMP API type.
const ( QKeyCodeUnmapped QKeyCode = iota QKeyCodeShift QKeyCodeShiftR QKeyCodeAlt QKeyCodeAltR QKeyCodeAltgr QKeyCodeAltgrR 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 QKeyCodeKpComma QKeyCodeKpEquals QKeyCodePower )
Known values of QKeyCode.
func (QKeyCode) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*QKeyCode) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type Qcow2OverlapCheckFlags ¶
type Qcow2OverlapCheckFlags struct { Template *Qcow2OverlapCheckMode `json:"template,omitempty"` MainHeader *bool `json:"main-header,omitempty"` ActiveL1 *bool `json:"active-l1,omitempty"` ActiveL2 *bool `json:"active-l2,omitempty"` RefcountTable *bool `json:"refcount-table,omitempty"` RefcountBlock *bool `json:"refcount-block,omitempty"` SnapshotTable *bool `json:"snapshot-table,omitempty"` InactiveL1 *bool `json:"inactive-l1,omitempty"` InactiveL2 *bool `json:"inactive-l2,omitempty"` }
Qcow2OverlapCheckFlags implements the "Qcow2OverlapCheckFlags" QMP API type.
type Qcow2OverlapCheckMode ¶
type Qcow2OverlapCheckMode int
Qcow2OverlapCheckMode implements the "Qcow2OverlapCheckMode" QMP API type.
const ( Qcow2OverlapCheckModeNone Qcow2OverlapCheckMode = iota Qcow2OverlapCheckModeConstant Qcow2OverlapCheckModeCached Qcow2OverlapCheckModeAll )
Known values of Qcow2OverlapCheckMode.
func (Qcow2OverlapCheckMode) MarshalJSON ¶
func (e Qcow2OverlapCheckMode) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (Qcow2OverlapCheckMode) String ¶
func (e Qcow2OverlapCheckMode) String() string
String implements fmt.Stringer.
func (*Qcow2OverlapCheckMode) UnmarshalJSON ¶
func (e *Qcow2OverlapCheckMode) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type Qcow2OverlapChecks ¶
type Qcow2OverlapChecks interface {
// contains filtered or unexported methods
}
Qcow2OverlapChecks implements the "Qcow2OverlapChecks" QMP API type.
Can be one of:
- Qcow2OverlapChecksFlags
- Qcow2OverlapChecksMode
type Qcow2OverlapChecksFlags ¶
type Qcow2OverlapChecksFlags Qcow2OverlapCheckFlags
Qcow2OverlapChecksFlags is an implementation of Qcow2OverlapChecks
type Qcow2OverlapChecksMode ¶
type Qcow2OverlapChecksMode Qcow2OverlapCheckMode
Qcow2OverlapChecksMode is an implementation of Qcow2OverlapChecks
type QuorumOpType ¶
type QuorumOpType int
QuorumOpType implements the "QuorumOpType" QMP API type.
const ( QuorumOpTypeRead QuorumOpType = iota QuorumOpTypeWrite QuorumOpTypeFlush )
Known values of QuorumOpType.
func (QuorumOpType) MarshalJSON ¶
func (e QuorumOpType) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*QuorumOpType) UnmarshalJSON ¶
func (e *QuorumOpType) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type QuorumReadPattern ¶
type QuorumReadPattern int
QuorumReadPattern implements the "QuorumReadPattern" QMP API type.
const ( QuorumReadPatternQuorum QuorumReadPattern = iota QuorumReadPatternFifo )
Known values of QuorumReadPattern.
func (QuorumReadPattern) MarshalJSON ¶
func (e QuorumReadPattern) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (QuorumReadPattern) String ¶
func (e QuorumReadPattern) String() string
String implements fmt.Stringer.
func (*QuorumReadPattern) UnmarshalJSON ¶
func (e *QuorumReadPattern) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ReplicationMode ¶
type ReplicationMode int
ReplicationMode implements the "ReplicationMode" QMP API type.
const ( ReplicationModePrimary ReplicationMode = iota ReplicationModeSecondary )
Known values of ReplicationMode.
func (ReplicationMode) MarshalJSON ¶
func (e ReplicationMode) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (ReplicationMode) String ¶
func (e ReplicationMode) String() string
String implements fmt.Stringer.
func (*ReplicationMode) UnmarshalJSON ¶
func (e *ReplicationMode) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type RockerOfDpaFlow ¶
type RockerOfDpaFlow struct { Cookie uint64 `json:"cookie"` Hits uint64 `json:"hits"` Key RockerOfDpaFlowKey `json:"key"` Mask RockerOfDpaFlowMask `json:"mask"` Action RockerOfDpaFlowAction `json:"action"` }
RockerOfDpaFlow implements the "RockerOfDpaFlow" QMP API type.
type RockerOfDpaFlowAction ¶
type RockerOfDpaFlowAction struct { GotoTbl *uint32 `json:"goto-tbl,omitempty"` GroupID *uint32 `json:"group-id,omitempty"` TunnelLport *uint32 `json:"tunnel-lport,omitempty"` VlanID *uint16 `json:"vlan-id,omitempty"` NewVlanID *uint16 `json:"new-vlan-id,omitempty"` OutPport *uint32 `json:"out-pport,omitempty"` }
RockerOfDpaFlowAction implements the "RockerOfDpaFlowAction" QMP API type.
type RockerOfDpaFlowKey ¶
type RockerOfDpaFlowKey struct { Priority uint32 `json:"priority"` TblID uint32 `json:"tbl-id"` InPport *uint32 `json:"in-pport,omitempty"` TunnelID *uint32 `json:"tunnel-id,omitempty"` VlanID *uint16 `json:"vlan-id,omitempty"` EthType *uint16 `json:"eth-type,omitempty"` EthSrc *string `json:"eth-src,omitempty"` EthDst *string `json:"eth-dst,omitempty"` IPProto *uint8 `json:"ip-proto,omitempty"` IPTos *uint8 `json:"ip-tos,omitempty"` IPDst *string `json:"ip-dst,omitempty"` }
RockerOfDpaFlowKey implements the "RockerOfDpaFlowKey" QMP API type.
type RockerOfDpaFlowMask ¶
type RockerOfDpaFlowMask struct { InPport *uint32 `json:"in-pport,omitempty"` TunnelID *uint32 `json:"tunnel-id,omitempty"` VlanID *uint16 `json:"vlan-id,omitempty"` EthSrc *string `json:"eth-src,omitempty"` EthDst *string `json:"eth-dst,omitempty"` IPProto *uint8 `json:"ip-proto,omitempty"` IPTos *uint8 `json:"ip-tos,omitempty"` }
RockerOfDpaFlowMask implements the "RockerOfDpaFlowMask" QMP API type.
type RockerOfDpaGroup ¶
type RockerOfDpaGroup struct { ID uint32 `json:"id"` Type uint8 `json:"type"` VlanID *uint16 `json:"vlan-id,omitempty"` Pport *uint32 `json:"pport,omitempty"` Index *uint32 `json:"index,omitempty"` OutPport *uint32 `json:"out-pport,omitempty"` GroupID *uint32 `json:"group-id,omitempty"` SetVlanID *uint16 `json:"set-vlan-id,omitempty"` PopVlan *uint8 `json:"pop-vlan,omitempty"` GroupIds []uint32 `json:"group-ids,omitempty"` SetEthSrc *string `json:"set-eth-src,omitempty"` SetEthDst *string `json:"set-eth-dst,omitempty"` TTLCheck *uint8 `json:"ttl-check,omitempty"` }
RockerOfDpaGroup implements the "RockerOfDpaGroup" QMP API type.
type RockerPort ¶
type RockerPort struct { Name string `json:"name"` Enabled bool `json:"enabled"` LinkUp bool `json:"link-up"` Speed uint32 `json:"speed"` Duplex RockerPortDuplex `json:"duplex"` Autoneg RockerPortAutoneg `json:"autoneg"` }
RockerPort implements the "RockerPort" QMP API type.
type RockerPortAutoneg ¶
type RockerPortAutoneg int
RockerPortAutoneg implements the "RockerPortAutoneg" QMP API type.
const ( RockerPortAutonegOff RockerPortAutoneg = iota RockerPortAutonegOn )
Known values of RockerPortAutoneg.
func (RockerPortAutoneg) MarshalJSON ¶
func (e RockerPortAutoneg) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (RockerPortAutoneg) String ¶
func (e RockerPortAutoneg) String() string
String implements fmt.Stringer.
func (*RockerPortAutoneg) UnmarshalJSON ¶
func (e *RockerPortAutoneg) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type RockerPortDuplex ¶
type RockerPortDuplex int
RockerPortDuplex implements the "RockerPortDuplex" QMP API type.
const ( RockerPortDuplexHalf RockerPortDuplex = iota RockerPortDuplexFull )
Known values of RockerPortDuplex.
func (RockerPortDuplex) MarshalJSON ¶
func (e RockerPortDuplex) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (RockerPortDuplex) String ¶
func (e RockerPortDuplex) String() string
String implements fmt.Stringer.
func (*RockerPortDuplex) UnmarshalJSON ¶
func (e *RockerPortDuplex) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type RockerSwitch ¶
type RockerSwitch struct { Name string `json:"name"` ID uint64 `json:"id"` Ports uint32 `json:"ports"` }
RockerSwitch implements the "RockerSwitch" QMP API type.
type RunState ¶
type RunState int
RunState implements the "RunState" QMP API type.
const ( RunStateDebug RunState = iota RunStateInmigrate RunStateInternalError RunStateIOError RunStatePaused RunStatePostmigrate RunStatePrelaunch RunStateFinishMigrate RunStateRestoreVM RunStateRunning RunStateSaveVM RunStateShutdown RunStateSuspended RunStateWatchdog RunStateGuestPanicked )
Known values of RunState.
func (RunState) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*RunState) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type RxFilterInfo ¶
type RxFilterInfo struct { Name string `json:"name"` Promiscuous bool `json:"promiscuous"` Multicast RxState `json:"multicast"` Unicast RxState `json:"unicast"` Vlan RxState `json:"vlan"` BroadcastAllowed bool `json:"broadcast-allowed"` MulticastOverflow bool `json:"multicast-overflow"` UnicastOverflow bool `json:"unicast-overflow"` MainMac string `json:"main-mac"` VlanTable []int64 `json:"vlan-table"` UnicastTable []string `json:"unicast-table"` MulticastTable []string `json:"multicast-table"` }
RxFilterInfo implements the "RxFilterInfo" QMP API type.
type RxState ¶
type RxState int
RxState implements the "RxState" QMP API type.
func (RxState) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*RxState) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type SchemaInfo ¶
type SchemaInfo interface {
// contains filtered or unexported methods
}
SchemaInfo implements the "SchemaInfo" QMP API type.
Can be one of:
- SchemaInfoAlternate
- SchemaInfoArray
- SchemaInfoBuiltin
- SchemaInfoCommand
- SchemaInfoEnum
- SchemaInfoEvent
- SchemaInfoObject
type SchemaInfoAlternate ¶
type SchemaInfoAlternate struct { Name string `json:"name"` Members []SchemaInfoAlternateMember `json:"members"` }
SchemaInfoAlternate is an implementation of SchemaInfo.
func (SchemaInfoAlternate) MarshalJSON ¶
func (s SchemaInfoAlternate) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type SchemaInfoAlternateMember ¶
type SchemaInfoAlternateMember struct {
Type string `json:"type"`
}
SchemaInfoAlternateMember implements the "SchemaInfoAlternateMember" QMP API type.
type SchemaInfoArray ¶
SchemaInfoArray is an implementation of SchemaInfo.
func (SchemaInfoArray) MarshalJSON ¶
func (s SchemaInfoArray) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type SchemaInfoBuiltin ¶
SchemaInfoBuiltin is an implementation of SchemaInfo.
func (SchemaInfoBuiltin) MarshalJSON ¶
func (s SchemaInfoBuiltin) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type SchemaInfoCommand ¶
type SchemaInfoCommand struct { Name string `json:"name"` ArgType string `json:"arg-type"` RetType string `json:"ret-type"` }
SchemaInfoCommand is an implementation of SchemaInfo.
func (SchemaInfoCommand) MarshalJSON ¶
func (s SchemaInfoCommand) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type SchemaInfoEnum ¶
SchemaInfoEnum is an implementation of SchemaInfo.
func (SchemaInfoEnum) MarshalJSON ¶
func (s SchemaInfoEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type SchemaInfoEvent ¶
SchemaInfoEvent is an implementation of SchemaInfo.
func (SchemaInfoEvent) MarshalJSON ¶
func (s SchemaInfoEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type SchemaInfoObject ¶
type SchemaInfoObject struct { Name string `json:"name"` Members []SchemaInfoObjectMember `json:"members"` Tag *string `json:"tag,omitempty"` Variants []SchemaInfoObjectVariant `json:"variants,omitempty"` }
SchemaInfoObject is an implementation of SchemaInfo.
func (SchemaInfoObject) MarshalJSON ¶
func (s SchemaInfoObject) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type SchemaInfoObjectMember ¶
type SchemaInfoObjectMember struct { Name string `json:"name"` Type string `json:"type"` Default *interface{} `json:"default,omitempty"` }
SchemaInfoObjectMember implements the "SchemaInfoObjectMember" QMP API type.
type SchemaInfoObjectVariant ¶
SchemaInfoObjectVariant implements the "SchemaInfoObjectVariant" QMP API type.
type SchemaMetaType ¶
type SchemaMetaType int
SchemaMetaType implements the "SchemaMetaType" QMP API type.
const ( SchemaMetaTypeBuiltin SchemaMetaType = iota SchemaMetaTypeEnum SchemaMetaTypeArray SchemaMetaTypeObject SchemaMetaTypeAlternate SchemaMetaTypeCommand SchemaMetaTypeEvent )
Known values of SchemaMetaType.
func (SchemaMetaType) MarshalJSON ¶
func (e SchemaMetaType) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (SchemaMetaType) String ¶
func (e SchemaMetaType) String() string
String implements fmt.Stringer.
func (*SchemaMetaType) UnmarshalJSON ¶
func (e *SchemaMetaType) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SnapshotInfo ¶
type SnapshotInfo struct { ID string `json:"id"` Name string `json:"name"` VMStateSize int64 `json:"vm-state-size"` DateSec int64 `json:"date-sec"` DateNsec int64 `json:"date-nsec"` VMClockSec int64 `json:"vm-clock-sec"` VMClockNsec int64 `json:"vm-clock-nsec"` }
SnapshotInfo implements the "SnapshotInfo" QMP API type.
type SocketAddress ¶
type SocketAddress interface {
// contains filtered or unexported methods
}
SocketAddress implements the "SocketAddress" QMP API type.
Can be one of:
- SocketAddressFD
- SocketAddressInet
- SocketAddressUnix
type SocketAddressFD ¶
type SocketAddressFD String
SocketAddressFD is an implementation of SocketAddress.
func (SocketAddressFD) MarshalJSON ¶
func (s SocketAddressFD) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type SocketAddressInet ¶
type SocketAddressInet InetSocketAddress
SocketAddressInet is an implementation of SocketAddress.
func (SocketAddressInet) MarshalJSON ¶
func (s SocketAddressInet) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type SocketAddressUnix ¶
type SocketAddressUnix UnixSocketAddress
SocketAddressUnix is an implementation of SocketAddress.
func (SocketAddressUnix) MarshalJSON ¶
func (s SocketAddressUnix) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type SpiceBasicInfo ¶
type SpiceBasicInfo struct { Host string `json:"host"` Port string `json:"port"` Family NetworkAddressFamily `json:"family"` }
SpiceBasicInfo implements the "SpiceBasicInfo" QMP API type.
type SpiceChannel ¶
type SpiceChannel struct { Host string `json:"host"` Port string `json:"port"` Family NetworkAddressFamily `json:"family"` ConnectionID int64 `json:"connection-id"` ChannelType int64 `json:"channel-type"` ChannelID int64 `json:"channel-id"` TLS bool `json:"tls"` }
SpiceChannel implements the "SpiceChannel" QMP API type.
type SpiceInfo ¶
type SpiceInfo struct { Enabled bool `json:"enabled"` Migrated bool `json:"migrated"` Host *string `json:"host,omitempty"` Port *int64 `json:"port,omitempty"` TLSPort *int64 `json:"tls-port,omitempty"` Auth *string `json:"auth,omitempty"` CompiledVersion *string `json:"compiled-version,omitempty"` MouseMode SpiceQueryMouseMode `json:"mouse-mode"` Channels []SpiceChannel `json:"channels,omitempty"` }
SpiceInfo implements the "SpiceInfo" QMP API type.
type SpiceQueryMouseMode ¶
type SpiceQueryMouseMode int
SpiceQueryMouseMode implements the "SpiceQueryMouseMode" QMP API type.
const ( SpiceQueryMouseModeClient SpiceQueryMouseMode = iota SpiceQueryMouseModeServer SpiceQueryMouseModeUnknown )
Known values of SpiceQueryMouseMode.
func (SpiceQueryMouseMode) MarshalJSON ¶
func (e SpiceQueryMouseMode) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (SpiceQueryMouseMode) String ¶
func (e SpiceQueryMouseMode) String() string
String implements fmt.Stringer.
func (*SpiceQueryMouseMode) UnmarshalJSON ¶
func (e *SpiceQueryMouseMode) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SpiceServerInfo ¶
type SpiceServerInfo struct { Host string `json:"host"` Port string `json:"port"` Family NetworkAddressFamily `json:"family"` Auth *string `json:"auth,omitempty"` }
SpiceServerInfo implements the "SpiceServerInfo" QMP API type.
type StatusInfo ¶
type StatusInfo struct { Running bool `json:"running"` Singlestep bool `json:"singlestep"` Status RunState `json:"status"` }
StatusInfo implements the "StatusInfo" QMP API type.
type String ¶
type String struct {
Str string `json:"str"`
}
String implements the "String" QMP API type.
type TPMInfo ¶
type TPMInfo struct { ID string `json:"id"` Model TPMModel `json:"model"` Options TPMTypeOptions `json:"options"` }
TPMInfo implements the "TPMInfo" QMP API type.
func (*TPMInfo) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type TPMModel ¶
type TPMModel int
TPMModel implements the "TpmModel" QMP API type.
func (TPMModel) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*TPMModel) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type TPMPassthroughOptions ¶
type TPMPassthroughOptions struct { Path *string `json:"path,omitempty"` CancelPath *string `json:"cancel-path,omitempty"` }
TPMPassthroughOptions implements the "TPMPassthroughOptions" QMP API type.
type TPMType ¶
type TPMType int
TPMType implements the "TpmType" QMP API type.
func (TPMType) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*TPMType) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type TPMTypeOptions ¶
type TPMTypeOptions interface {
// contains filtered or unexported methods
}
TPMTypeOptions implements the "TpmTypeOptions" QMP API type.
Can be one of:
- TPMTypeOptionsPassthrough
type TPMTypeOptionsPassthrough ¶
type TPMTypeOptionsPassthrough TPMPassthroughOptions
TPMTypeOptionsPassthrough is an implementation of TPMTypeOptions.
func (TPMTypeOptionsPassthrough) MarshalJSON ¶
func (s TPMTypeOptionsPassthrough) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type TargetInfo ¶
type TargetInfo struct {
Arch string `json:"arch"`
}
TargetInfo implements the "TargetInfo" QMP API type.
type TraceEventInfo ¶
type TraceEventInfo struct { Name string `json:"name"` State TraceEventState `json:"state"` Vcpu bool `json:"vcpu"` }
TraceEventInfo implements the "TraceEventInfo" QMP API type.
type TraceEventState ¶
type TraceEventState int
TraceEventState implements the "TraceEventState" QMP API type.
const ( TraceEventStateDisabled TraceEventStateEnabled )
Known values of TraceEventState.
func (TraceEventState) MarshalJSON ¶
func (e TraceEventState) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (TraceEventState) String ¶
func (e TraceEventState) String() string
String implements fmt.Stringer.
func (*TraceEventState) UnmarshalJSON ¶
func (e *TraceEventState) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type TransactionAction ¶
type TransactionAction interface {
// contains filtered or unexported methods
}
TransactionAction implements the "TransactionAction" QMP API type.
Can be one of:
- TransactionActionAbort
- TransactionActionBlockDirtyBitmapAdd
- TransactionActionBlockDirtyBitmapClear
- TransactionActionBlockdevBackup
- TransactionActionBlockdevSnapshot
- TransactionActionBlockdevSnapshotInternalSync
- TransactionActionBlockdevSnapshotSync
- TransactionActionDriveBackup
type TransactionActionAbort ¶
type TransactionActionAbort Abort
TransactionActionAbort is an implementation of TransactionAction.
func (TransactionActionAbort) MarshalJSON ¶
func (s TransactionActionAbort) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type TransactionActionBlockDirtyBitmapAdd ¶
type TransactionActionBlockDirtyBitmapAdd BlockDirtyBitmapAdd
TransactionActionBlockDirtyBitmapAdd is an implementation of TransactionAction.
func (TransactionActionBlockDirtyBitmapAdd) MarshalJSON ¶
func (s TransactionActionBlockDirtyBitmapAdd) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type TransactionActionBlockDirtyBitmapClear ¶
type TransactionActionBlockDirtyBitmapClear BlockDirtyBitmap
TransactionActionBlockDirtyBitmapClear is an implementation of TransactionAction.
func (TransactionActionBlockDirtyBitmapClear) MarshalJSON ¶
func (s TransactionActionBlockDirtyBitmapClear) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type TransactionActionBlockdevBackup ¶
type TransactionActionBlockdevBackup BlockdevBackup
TransactionActionBlockdevBackup is an implementation of TransactionAction.
func (TransactionActionBlockdevBackup) MarshalJSON ¶
func (s TransactionActionBlockdevBackup) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type TransactionActionBlockdevSnapshot ¶
type TransactionActionBlockdevSnapshot BlockdevSnapshot
TransactionActionBlockdevSnapshot is an implementation of TransactionAction.
func (TransactionActionBlockdevSnapshot) MarshalJSON ¶
func (s TransactionActionBlockdevSnapshot) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type TransactionActionBlockdevSnapshotInternalSync ¶
type TransactionActionBlockdevSnapshotInternalSync BlockdevSnapshotInternal
TransactionActionBlockdevSnapshotInternalSync is an implementation of TransactionAction.
func (TransactionActionBlockdevSnapshotInternalSync) MarshalJSON ¶
func (s TransactionActionBlockdevSnapshotInternalSync) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type TransactionActionBlockdevSnapshotSync ¶
type TransactionActionBlockdevSnapshotSync BlockdevSnapshotSync
TransactionActionBlockdevSnapshotSync is an implementation of TransactionAction.
func (TransactionActionBlockdevSnapshotSync) MarshalJSON ¶
func (s TransactionActionBlockdevSnapshotSync) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type TransactionActionDriveBackup ¶
type TransactionActionDriveBackup DriveBackup
TransactionActionDriveBackup is an implementation of TransactionAction.
func (TransactionActionDriveBackup) MarshalJSON ¶
func (s TransactionActionDriveBackup) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
type TransactionProperties ¶
type TransactionProperties struct {
CompletionMode *ActionCompletionMode `json:"completion-mode,omitempty"`
}
TransactionProperties implements the "TransactionProperties" QMP API type.
type UUIDInfo ¶
type UUIDInfo struct {
UUID string `json:"UUID"`
}
UUIDInfo implements the "UuidInfo" QMP API type.
type UnixSocketAddress ¶
type UnixSocketAddress struct {
Path string `json:"path"`
}
UnixSocketAddress implements the "UnixSocketAddress" QMP API type.
type VNCBasicInfo ¶
type VNCBasicInfo struct { Host string `json:"host"` Service string `json:"service"` Family NetworkAddressFamily `json:"family"` Websocket bool `json:"websocket"` }
VNCBasicInfo implements the "VncBasicInfo" QMP API type.
type VNCClientInfo ¶
type VNCClientInfo struct { Host string `json:"host"` Service string `json:"service"` Family NetworkAddressFamily `json:"family"` Websocket bool `json:"websocket"` X509Dname *string `json:"x509_dname,omitempty"` SaslUsername *string `json:"sasl_username,omitempty"` }
VNCClientInfo implements the "VncClientInfo" QMP API type.
type VNCInfo ¶
type VNCInfo struct { Enabled bool `json:"enabled"` Host *string `json:"host,omitempty"` Family *NetworkAddressFamily `json:"family,omitempty"` Service *string `json:"service,omitempty"` Auth *string `json:"auth,omitempty"` Clients []VNCClientInfo `json:"clients,omitempty"` }
VNCInfo implements the "VncInfo" QMP API type.
type VNCInfo2 ¶
type VNCInfo2 struct { ID string `json:"id"` Server []VNCBasicInfo `json:"server"` Clients []VNCClientInfo `json:"clients"` Auth VNCPrimaryAuth `json:"auth"` Vencrypt *VNCVencryptSubAuth `json:"vencrypt,omitempty"` Display *string `json:"display,omitempty"` }
VNCInfo2 implements the "VncInfo2" QMP API type.
type VNCPrimaryAuth ¶
type VNCPrimaryAuth int
VNCPrimaryAuth implements the "VncPrimaryAuth" QMP API type.
const ( VNCPrimaryAuthNone VNCPrimaryAuth = iota VNCPrimaryAuthVNC VNCPrimaryAuthRa2 VNCPrimaryAuthRa2Ne VNCPrimaryAuthTight VNCPrimaryAuthUltra VNCPrimaryAuthTLS VNCPrimaryAuthVencrypt VNCPrimaryAuthSasl )
Known values of VNCPrimaryAuth.
func (VNCPrimaryAuth) MarshalJSON ¶
func (e VNCPrimaryAuth) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (VNCPrimaryAuth) String ¶
func (e VNCPrimaryAuth) String() string
String implements fmt.Stringer.
func (*VNCPrimaryAuth) UnmarshalJSON ¶
func (e *VNCPrimaryAuth) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type VNCServerInfo ¶
type VNCServerInfo struct { Host string `json:"host"` Service string `json:"service"` Family NetworkAddressFamily `json:"family"` Websocket bool `json:"websocket"` Auth *string `json:"auth,omitempty"` }
VNCServerInfo implements the "VncServerInfo" QMP API type.
type VNCVencryptSubAuth ¶
type VNCVencryptSubAuth int
VNCVencryptSubAuth implements the "VncVencryptSubAuth" QMP API type.
const ( VNCVencryptSubAuthPlain VNCVencryptSubAuth = iota VNCVencryptSubAuthTLSNone VNCVencryptSubAuthX509None VNCVencryptSubAuthTLSVNC VNCVencryptSubAuthX509VNC VNCVencryptSubAuthTLSPlain VNCVencryptSubAuthX509Plain VNCVencryptSubAuthTLSSasl VNCVencryptSubAuthX509Sasl )
Known values of VNCVencryptSubAuth.
func (VNCVencryptSubAuth) MarshalJSON ¶
func (e VNCVencryptSubAuth) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (VNCVencryptSubAuth) String ¶
func (e VNCVencryptSubAuth) String() string
String implements fmt.Stringer.
func (*VNCVencryptSubAuth) UnmarshalJSON ¶
func (e *VNCVencryptSubAuth) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type VersionInfo ¶
type VersionInfo struct { Qemu VersionTriple `json:"qemu"` Package string `json:"package"` }
VersionInfo implements the "VersionInfo" QMP API type.
type VersionTriple ¶
type VersionTriple struct { Major int64 `json:"major"` Minor int64 `json:"minor"` Micro int64 `json:"micro"` }
VersionTriple implements the "VersionTriple" QMP API type.
type WatchdogExpirationAction ¶
type WatchdogExpirationAction int
WatchdogExpirationAction implements the "WatchdogExpirationAction" QMP API type.
const ( WatchdogExpirationActionReset WatchdogExpirationAction = iota WatchdogExpirationActionShutdown WatchdogExpirationActionPoweroff WatchdogExpirationActionPause WatchdogExpirationActionDebug WatchdogExpirationActionNone WatchdogExpirationActionInjectNmi )
Known values of WatchdogExpirationAction.
func (WatchdogExpirationAction) MarshalJSON ¶
func (e WatchdogExpirationAction) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (WatchdogExpirationAction) String ¶
func (e WatchdogExpirationAction) String() string
String implements fmt.Stringer.
func (*WatchdogExpirationAction) UnmarshalJSON ¶
func (e *WatchdogExpirationAction) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements json.Unmarshaler.
type XbzrleCacheStats ¶
type XbzrleCacheStats struct { CacheSize int64 `json:"cache-size"` Bytes int64 `json:"bytes"` Pages int64 `json:"pages"` CacheMiss int64 `json:"cache-miss"` CacheMissRate float64 `json:"cache-miss-rate"` Overflow int64 `json:"overflow"` }
XbzrleCacheStats implements the "XBZRLECacheStats" QMP API type.