| 1 | package qapischemascip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/ |
| 2 | |
| 3 | import ( |
| 4 | "errorsscip-go gomod github.com/golang/go/src go1.18 errors/" |
| 5 | |
| 6 | "github.com/digitalocean/go-qemu/qapi-schema/internal/lexscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema/internal/lex`/" |
| 7 | "github.com/digitalocean/go-qemu/qapi-schema/internal/parsescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema/internal/parse`/" |
| 8 | ) |
| 9 | |
| 10 | // Parse parses a QAPI input document and returns its parse tree. |
| 11 | func Parsescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Parse().(input string) (*Treescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Tree#, error) { |
| 12 | tokens := lexscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema/internal/lex`/.Lexscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema/internal/lex`/Lex().(input) |
| 13 | |
| 14 | schema, err := parsescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema/internal/parse`/.Parsescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema/internal/parse`/Parse().(schemaParserscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/schemaParser., tokens) |
| 15 | if errorsscip-go gomod github.com/golang/go/src go1.18 errors/.Isscip-go gomod github.com/golang/go/src go1.18 errors/Is().(err, parsescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema/internal/parse`/.ErrNonExhaustiveParsescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema/internal/parse`/ErrNonExhaustiveParse.) { |
| 16 | err = nil |
| 17 | } |
| 18 | return schema, err |
| 19 | } |
| 20 | |
| 21 | // Node is a marker interface that indentifies the implementing |
| 22 | // concrete type as a QAPI type. |
| 23 | type Nodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Node# interface { |
| 24 | QAPINodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Node#QAPINode.() |
| 25 | } |
| 26 | |
| 27 | // Tree is a QAPI parse tree. |
| 28 | type Treescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Tree# struct { |
| 29 | Nodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Tree#Node. Nodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Node# |
| 30 | Childrenscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Tree#Children. []*Treescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Tree# |
| 31 | } |
| 32 | |
| 33 | // Root is the root of the QAPI document. On its own, it is |
| 34 | // unremarkable. Client code will want to visit its subtrees. |
| 35 | type Rootscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Root# struct{} |
| 36 | |
| 37 | // QAPINode marks Root as a QAPI node. |
| 38 | func (r Rootscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Root#) QAPINodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Root#QAPINode().() {} |
| 39 | |
| 40 | // Include is a QAPI node that refers to another QAPI document |
| 41 | // that contains dependent types. |
| 42 | type Includescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Include# string |
| 43 | |
| 44 | // QAPINode marks Include as a QAPI node. |
| 45 | func (i Includescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Include#) QAPINodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Include#QAPINode().() {} |
| 46 | |
| 47 | // Pragma is a QAPI node that parameterizes the upstream QEMU |
| 48 | // QAPI code generator. |
| 49 | type Pragmascip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Pragma# struct { |
| 50 | DocRequiredscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Pragma#DocRequired. bool |
| 51 | CommandNameExceptionsscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Pragma#CommandNameExceptions. []string |
| 52 | CommandReturnExceptionsscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Pragma#CommandReturnExceptions. []string |
| 53 | MemberNameExceptionsscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Pragma#MemberNameExceptions. []string |
| 54 | } |
| 55 | |
| 56 | // QAPINode marks Pragma as a QAPI node. |
| 57 | func (p Pragmascip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Pragma#) QAPINodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Pragma#QAPINode().() {} |
| 58 | |
| 59 | // Cond expresses the conditions under which the upstream QEMU |
| 60 | // code generator will include a type or field. |
| 61 | type Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# struct { |
| 62 | Ifscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond#If. *CondIfscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CondIf# |
| 63 | Allscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond#All. *CondAllscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CondAll# |
| 64 | Anyscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond#Any. *CondAnyscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CondAny# |
| 65 | Notscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond#Not. *CondNotscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CondNot# |
| 66 | } |
| 67 | |
| 68 | // CondIf will result in code generation if the specified config |
| 69 | // option is set. |
| 70 | type CondIfscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CondIf# string |
| 71 | |
| 72 | // CondNot will result in code generation if the specified config |
| 73 | // option is not set. |
| 74 | type CondNotscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CondNot# string |
| 75 | |
| 76 | // CondAll will result in code generation if all of the specified |
| 77 | // config options are set. |
| 78 | type CondAllscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CondAll# []string |
| 79 | |
| 80 | // CondAny will result in code generation if any of the specified |
| 81 | // config options are set. |
| 82 | type CondAnyscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CondAny# []string |
| 83 | |
| 84 | // Feature specifies a QAPI document feature. |
| 85 | type Featurescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature# struct { |
| 86 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature#Name. string |
| 87 | Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature#Cond. Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 88 | } |
| 89 | |
| 90 | // TypeRef refers to a QAPI type or an array of a QAPI type. |
| 91 | // If it is an array type, then TypeArray will be set and Type |
| 92 | // will be the empty string and vice versa. |
| 93 | type TypeRefscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/TypeRef# struct { |
| 94 | Typescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/TypeRef#Type. string |
| 95 | TypeArrayscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/TypeRef#TypeArray. TypeRefArrayscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/TypeRefArray# |
| 96 | } |
| 97 | |
| 98 | // TypeRefArray is a stronger Go type for expressing a string |
| 99 | // that is meant to represent an array of a QAPI type. |
| 100 | type TypeRefArrayscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/TypeRefArray# string |
| 101 | |
| 102 | // Enum is a QAPI type whose value is only one of many defined |
| 103 | // variants. |
| 104 | type Enumscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Enum# struct { |
| 105 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Enum#Name. string |
| 106 | Valuesscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Enum#Values. []EnumValuescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EnumValue# |
| 107 | Prefixscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Enum#Prefix. string |
| 108 | Ifscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Enum#If. *Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 109 | Featuresscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Enum#Features. []Featurescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature# |
| 110 | } |
| 111 | |
| 112 | // QAPINode marks Enum as a QAPI node. |
| 113 | func (e *Enumscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Enum#) QAPINodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Enum#QAPINode().() {} |
| 114 | |
| 115 | // EnumValue is one possible variant for a QAPI enum. |
| 116 | type EnumValuescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EnumValue# struct { |
| 117 | Valuescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EnumValue#Value. string |
| 118 | Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EnumValue#Cond. *Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 119 | Featuresscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EnumValue#Features. []Featurescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature# |
| 120 | } |
| 121 | |
| 122 | // Struct is a QAPI type that is a combined record of many |
| 123 | // other types. |
| 124 | type Structscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Struct# struct { |
| 125 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Struct#Name. string |
| 126 | Membersscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Struct#Members. []Memberscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Member# |
| 127 | Basescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Struct#Base. string |
| 128 | Ifscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Struct#If. *Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 129 | Featuresscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Struct#Features. []Featurescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature# |
| 130 | } |
| 131 | |
| 132 | // QAPINode marks Struct as a QAPI node. |
| 133 | func (s *Structscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Struct#) QAPINodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Struct#QAPINode().() {} |
| 134 | |
| 135 | // Member is a field type for a QAPI object. |
| 136 | type Memberscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Member# struct { |
| 137 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Member#Name. string |
| 138 | Typescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Member#Type. TypeRefscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/TypeRef# |
| 139 | Ifscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Member#If. *Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 140 | Featuresscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Member#Features. []Featurescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature# |
| 141 | Optionalscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Member#Optional. bool |
| 142 | } |
| 143 | |
| 144 | // Union is a QAPI type that is like a sum-type enum. |
| 145 | type Unionscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Union# struct { |
| 146 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Union#Name. string |
| 147 | Basescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Union#Base. UnionBasescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/UnionBase# |
| 148 | Discriminatorscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Union#Discriminator. string |
| 149 | Branchesscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Union#Branches. []Branchscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Branch# |
| 150 | Ifscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Union#If. *Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 151 | Featuresscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Union#Features. []Featurescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature# |
| 152 | } |
| 153 | |
| 154 | // QAPINode marks Union as a QAPI node. |
| 155 | func (u *Unionscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Union#) QAPINodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Union#QAPINode().() {} |
| 156 | |
| 157 | // UnionBase is the base object of the union. |
| 158 | type UnionBasescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/UnionBase# struct { |
| 159 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/UnionBase#Name. string |
| 160 | Membersscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/UnionBase#Members. []Memberscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Member# |
| 161 | } |
| 162 | |
| 163 | // Branch describes one of the active variants for the Union type. |
| 164 | type Branchscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Branch# struct { |
| 165 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Branch#Name. string |
| 166 | Typescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Branch#Type. TypeRefscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/TypeRef# |
| 167 | Ifscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Branch#If. *Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 168 | } |
| 169 | |
| 170 | // Event is a QAPI type that describes something that has happened. |
| 171 | type Eventscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Event# struct { |
| 172 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Event#Name. string |
| 173 | Datascip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Event#Data. EventDatascip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventData# |
| 174 | Ifscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Event#If. *Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 175 | Featuresscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Event#Features. []Featurescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature# |
| 176 | } |
| 177 | |
| 178 | // QAPINode marks Event as a QAPI node. |
| 179 | func (e *Eventscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Event#) QAPINodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Event#QAPINode().() {} |
| 180 | |
| 181 | // EventData contains an Event's data. |
| 182 | type EventDatascip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventData# struct { |
| 183 | Boxedscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventData#Boxed. bool |
| 184 | Selectorscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventData#Selector. EventDataSelectorscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventDataSelector# |
| 185 | } |
| 186 | |
| 187 | // EventDataSelector contains the name of the event's boxed type |
| 188 | // or its own fields that comprise the event. |
| 189 | type EventDataSelectorscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventDataSelector# struct { |
| 190 | Refscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventDataSelector#Ref. string |
| 191 | Embedscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventDataSelector#Embed. *EventDataUnboxedscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventDataUnboxed# |
| 192 | } |
| 193 | |
| 194 | // EventDataUnboxed contains the event's own fields, rather than |
| 195 | // embedding another type's fields as its fields. |
| 196 | type EventDataUnboxedscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventDataUnboxed# struct { |
| 197 | Typescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventDataUnboxed#Type. string |
| 198 | Membersscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/EventDataUnboxed#Members. []Memberscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Member# |
| 199 | } |
| 200 | |
| 201 | // Command is a QAPI type that describes a QMP command that can be |
| 202 | // sent to the QEMU process. |
| 203 | type Commandscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command# struct { |
| 204 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#Name. string |
| 205 | Datascip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#Data. CommandDatascip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CommandData# |
| 206 | Returnsscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#Returns. *TypeRefscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/TypeRef# |
| 207 | SuccessResponsescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#SuccessResponse. *bool |
| 208 | Genscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#Gen. *bool |
| 209 | AllowOOBscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#AllowOOB. *bool |
| 210 | AllowPreconfigscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#AllowPreconfig. *bool |
| 211 | Coroutinescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#Coroutine. *bool |
| 212 | Boxedscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#Boxed. *bool |
| 213 | Ifscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#If. *Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 214 | Featuresscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#Features. []Featurescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature# |
| 215 | } |
| 216 | |
| 217 | // QAPINode marks Command as a QAPI node. |
| 218 | func (c *Commandscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#) QAPINodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Command#QAPINode().() {} |
| 219 | |
| 220 | // CommandData contains the Command's fields. |
| 221 | type CommandDatascip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CommandData# struct { |
| 222 | Embedscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CommandData#Embed. *CommandDataEmbedscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CommandDataEmbed# |
| 223 | Refscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CommandData#Ref. *CommandDataRefscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CommandDataRef# |
| 224 | } |
| 225 | |
| 226 | // CommandDataRef refers to another QAPI type that should be |
| 227 | // used as the argument for this Command. |
| 228 | type CommandDataRefscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CommandDataRef# string |
| 229 | |
| 230 | // CommandDataEmbed refers to the fields to embed in the |
| 231 | // Command. |
| 232 | type CommandDataEmbedscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CommandDataEmbed# struct { |
| 233 | Membersscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/CommandDataEmbed#Members. []Memberscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Member# |
| 234 | } |
| 235 | |
| 236 | // Alternate is a QAPI type that describes what types can |
| 237 | // be suitable alternates. |
| 238 | type Alternatescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternate# struct { |
| 239 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternate#Name. string |
| 240 | Datascip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternate#Data. []Alternativescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternative# |
| 241 | Ifscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternate#If. *Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 242 | Featuresscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternate#Features. []Featurescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Feature# |
| 243 | } |
| 244 | |
| 245 | // QAPINode marks Alternate as a QAPI node. |
| 246 | func (a *Alternatescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternate#) QAPINodescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternate#QAPINode().() {} |
| 247 | |
| 248 | // Alternative is one such alternative that could be contained |
| 249 | // in an Alternate. |
| 250 | type Alternativescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternative# struct { |
| 251 | Namescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternative#Name. string |
| 252 | Typescip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternative#Type. TypeRefscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/TypeRef# |
| 253 | Ifscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Alternative#If. *Condscip-go gomod github.com/digitalocean/go-qemu . `github.com/digitalocean/go-qemu/qapi-schema`/Cond# |
| 254 | } |