Documentation
¶
Index ¶
Constants ¶
View Source
const ( //no state DOMAIN_NOSTATE = DomainState(0) //the domain is running DOMAIN_RUNNING = DomainState(1) //the domain is blocked on resource DOMAIN_BLOCKED = DomainState(2) //the domain is paused by user DOMAIN_PAUSED = DomainState(3) //the domain is being shut down DOMAIN_SHUTDOWN = DomainState(4) //the domain is shut off DOMAIN_SHUTOFF = DomainState(5) //the domain is crashed DOMAIN_CRASHED = DomainState(6) //the domain is suspended by guest power management DOMAIN_PMSUSPENDED = DomainState(7) //this enum value will increase over time as new events are added to the libvirt API. It reflects the last state supported by this version of the libvirt API. DOMAIN_LAST = DomainState(8) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct { Device string `xml:"device,attr"` Source DiskSource `xml:"source"` Target DiskTarget `xml:"target"` }
type DiskSource ¶
type DiskSource struct {
File string `xml:"file,attr"`
}
type DiskTarget ¶
type DiskTarget struct {
Device string `xml:"dev,attr"`
}
type DomainState ¶
type DomainState uint8
type Interface ¶
type Interface struct { Source InterfaceSource `xml:"source"` Target InterfaceTarget `xml:"target"` }
type InterfaceSource ¶
type InterfaceSource struct {
Bridge string `xml:"bridge,attr"`
}
type InterfaceTarget ¶
type InterfaceTarget struct {
Device string `xml:"dev,attr"`
}
type Metadata ¶
type Metadata struct {
NovaInstance NovaInstance `xml:"instance"`
}
type NovaFlavor ¶ added in v1.3.0
type NovaFlavor struct {
FlavorName string `xml:"name,attr"`
}
type NovaInstance ¶
type NovaInstance struct { XMLName xml.Name `xml:"instance"` Name string `xml:"name"` Owner NovaOwner `xml:"owner"` Flavor NovaFlavor `xml:"flavor"` }
type NovaOwner ¶ added in v1.0.0
type NovaOwner struct { XMLName xml.Name `xml:"owner"` User NovaUser `xml:"user"` Project NovaProject `xml:"project"` }
type NovaProject ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.