| 1 | // Copyright 2017 Kumina, https://kumina.nl/ |
| 2 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | // you may not use this file except in compliance with the License. |
| 4 | // You may obtain a copy of the License at |
| 5 | // |
| 6 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | // |
| 8 | // Unless required by applicable law or agreed to in writing, software |
| 9 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | // See the License for the specific language governing permissions and |
| 12 | // limitations under the License. |
| 13 | |
| 14 | package libvirt_schemascip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/ |
| 15 | |
| 16 | type Domainscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Domain# struct { |
| 17 | Devicesscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Domain#Devices. Devicesscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Devices# `xml:"devices"` |
| 18 | Metadatascip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Domain#Metadata. Metadatascip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Metadata# `xml:"metadata"` |
| 19 | UUIDscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Domain#UUID. string `xml:"uuid"` |
| 20 | } |
| 21 | |
| 22 | type Metadatascip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Metadata# struct { |
| 23 | // The actual xml tag is nova:instance, but we don't care about the namespaces |
| 24 | NovaInstancescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Metadata#NovaInstance. NovaInstancescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaInstance# `xml:"instance"` |
| 25 | } |
| 26 | |
| 27 | type NovaInstancescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaInstance# struct { |
| 28 | Namescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaInstance#Name. string `xml:"name"` |
| 29 | Flavorscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaInstance#Flavor. NovaFlavorscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaFlavor# `xml:"flavor"` |
| 30 | Ownerscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaInstance#Owner. NovaOwnerscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaOwner# `xml:"owner"` |
| 31 | } |
| 32 | |
| 33 | type NovaFlavorscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaFlavor# struct { |
| 34 | Namescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaFlavor#Name. string `xml:"name,attr"` |
| 35 | } |
| 36 | |
| 37 | type NovaOwnerscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaOwner# struct { |
| 38 | ProjectNamescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/NovaOwner#ProjectName. string `xml:"project"` |
| 39 | } |
| 40 | |
| 41 | type Devicesscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Devices# struct { |
| 42 | Disksscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Devices#Disks. []Diskscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Disk# `xml:"disk"` |
| 43 | Interfacesscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Devices#Interfaces. []Interfacescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Interface# `xml:"interface"` |
| 44 | } |
| 45 | |
| 46 | type Diskscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Disk# struct { |
| 47 | Devicescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Disk#Device. string `xml:"device,attr"` |
| 48 | Sourcescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Disk#Source. DiskSourcescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/DiskSource# `xml:"source"` |
| 49 | Targetscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Disk#Target. DiskTargetscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/DiskTarget# `xml:"target"` |
| 50 | } |
| 51 | |
| 52 | type DiskSourcescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/DiskSource# struct { |
| 53 | Filescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/DiskSource#File. string `xml:"file,attr"` |
| 54 | } |
| 55 | |
| 56 | type DiskTargetscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/DiskTarget# struct { |
| 57 | Devicescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/DiskTarget#Device. string `xml:"dev,attr"` |
| 58 | } |
| 59 | |
| 60 | type Interfacescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Interface# struct { |
| 61 | Sourcescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Interface#Source. InterfaceSourcescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/InterfaceSource# `xml:"source"` |
| 62 | Targetscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/Interface#Target. InterfaceTargetscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/InterfaceTarget# `xml:"target"` |
| 63 | } |
| 64 | |
| 65 | type InterfaceSourcescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/InterfaceSource# struct { |
| 66 | Bridgescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/InterfaceSource#Bridge. string `xml:"bridge,attr"` |
| 67 | } |
| 68 | |
| 69 | type InterfaceTargetscip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/InterfaceTarget# struct { |
| 70 | Devicescip-go gomod github.com/kumina/libvirt_exporter . `github.com/kumina/libvirt_exporter/libvirt_schema`/InterfaceTarget#Device. string `xml:"dev,attr"` |
| 71 | } |