libvirt_schema

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 1 Imported by: 0

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 Devices

type Devices struct {
	Disks      []Disk      `xml:"disk"`
	Interfaces []Interface `xml:"interface"`
}

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 Domain

type Domain struct {
	Devices  Devices  `xml:"devices"`
	Name     string   `xml:"name"`
	UUID     string   `xml:"uuid"`
	Metadata Metadata `xml:"metadata"`
}

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

type NovaProject struct {
	ProjectId   string `xml:"uuid,attr"`
	ProjectName string `xml:",chardata"`
}

type NovaUser added in v1.0.0

type NovaUser struct {
	UserId   string `xml:"uuid,attr"`
	UserName string `xml:",chardata"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL