Documentation ¶
Index ¶
- type Alternate
- type Alternative
- type Branch
- type Command
- type CommandData
- type CommandDataEmbed
- type CommandDataRef
- type Cond
- type CondAll
- type CondAny
- type CondIf
- type CondNot
- type Enum
- type EnumValue
- type Event
- type EventData
- type EventDataSelector
- type EventDataUnboxed
- type Feature
- type Include
- type Member
- type Node
- type Pragma
- type Root
- type Struct
- type Tree
- type TypeRef
- type TypeRefArray
- type Union
- type UnionBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alternate ¶
type Alternate struct { Name string Data []Alternative If *Cond Features []Feature }
Alternate is a QAPI type that describes what types can be suitable alternates.
type Alternative ¶
Alternative is one such alternative that could be contained in an Alternate.
type Command ¶
type Command struct { Name string Data CommandData Returns *TypeRef SuccessResponse *bool Gen *bool AllowOOB *bool AllowPreconfig *bool Coroutine *bool Boxed *bool If *Cond Features []Feature }
Command is a QAPI type that describes a QMP command that can be sent to the QEMU process.
type CommandData ¶
type CommandData struct { Embed *CommandDataEmbed Ref *CommandDataRef }
CommandData contains the Command's fields.
type CommandDataEmbed ¶
type CommandDataEmbed struct {
Members []Member
}
CommandDataEmbed refers to the fields to embed in the Command.
type CommandDataRef ¶
type CommandDataRef string
CommandDataRef refers to another QAPI type that should be used as the argument for this Command.
type Cond ¶
Cond expresses the conditions under which the upstream QEMU code generator will include a type or field.
type CondAll ¶
type CondAll []string
CondAll will result in code generation if all of the specified config options are set.
type CondAny ¶
type CondAny []string
CondAny will result in code generation if any of the specified config options are set.
type CondIf ¶
type CondIf string
CondIf will result in code generation if the specified config option is set.
type CondNot ¶
type CondNot string
CondNot will result in code generation if the specified config option is not set.
type EventData ¶
type EventData struct { Boxed bool Selector EventDataSelector }
EventData contains an Event's data.
type EventDataSelector ¶
type EventDataSelector struct { Ref string Embed *EventDataUnboxed }
EventDataSelector contains the name of the event's boxed type or its own fields that comprise the event.
type EventDataUnboxed ¶
EventDataUnboxed contains the event's own fields, rather than embedding another type's fields as its fields.
type Include ¶
type Include string
Include is a QAPI node that refers to another QAPI document that contains dependent types.
type Node ¶
type Node interface {
QAPINode()
}
Node is a marker interface that indentifies the implementing concrete type as a QAPI type.
type Pragma ¶
type Pragma struct { DocRequired bool CommandNameExceptions []string CommandReturnExceptions []string MemberNameExceptions []string }
Pragma is a QAPI node that parameterizes the upstream QEMU QAPI code generator.
type Root ¶
type Root struct{}
Root is the root of the QAPI document. On its own, it is unremarkable. Client code will want to visit its subtrees.
type TypeRef ¶
type TypeRef struct { Type string TypeArray TypeRefArray }
TypeRef refers to a QAPI type or an array of a QAPI type. If it is an array type, then TypeArray will be set and Type will be the empty string and vice versa.
type TypeRefArray ¶
type TypeRefArray string
TypeRefArray is a stronger Go type for expressing a string that is meant to represent an array of a QAPI type.