libvirt_schema

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

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"`
	Metadata Metadata `xml:"metadata"`
	UUID     string   `xml:"uuid"`
}

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 {
	// The actual xml tag is nova:instance, but we don't care about the namespaces
	NovaInstance NovaInstance `xml:"instance"`
}

type NovaFlavor

type NovaFlavor struct {
	Name string `xml:"name,attr"`
}

type NovaInstance

type NovaInstance struct {
	Name   string     `xml:"name"`
	Flavor NovaFlavor `xml:"flavor"`
	Owner  NovaOwner  `xml:"owner"`
}

type NovaOwner

type NovaOwner struct {
	ProjectName string `xml:"project"`
}

Jump to

Keyboard shortcuts

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