libvirtxml

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFormat

type DefaultFormat struct {
	Type string `xml:"type,attr"`
}

type Enum

type Enum struct {
	Name  string   `xml:"name,attr"`
	Value []string `xml:"value"`
}

type Host added in v0.1.35

type Host struct {
	Name string `xml:"name,attr"`
	Port int    `xml:"port,attr"`
}

type Initiator added in v0.1.35

type Initiator struct {
	Iqn Iqn `xml:"iqn"`
}

type Iqn added in v0.1.35

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

type Pool

type Pool struct {
	Type        string      `xml:"type,attr"`
	Supported   string      `xml:"supported,attr"`
	VolOptions  VolOptions  `xml:"volOptions"`
	PoolOptions PoolOptions `xml:"poolOptions"`
}

type PoolOptions

type PoolOptions struct {
	DefaultFormat DefaultFormat `xml:"defaultFormat"`
	Enum          Enum          `xml:"enum"`
}

type Source added in v0.1.35

type Source struct {
	XMLName   xml.Name  `xml:"source"`
	Host      Host      `xml:"host"`
	Initiator Initiator `xml:"initiator"`
}

func (*Source) Marshal added in v0.1.35

func (source *Source) Marshal() (string, virest.Error, bool)

func (*Source) Unmarshal added in v0.1.35

func (source *Source) Unmarshal(doc string) (virest.Error, bool)

type Sources added in v0.1.35

type Sources struct {
	XMLName xml.Name                       `xml:"sources"`
	Source  []libvirtxml.StoragePoolSource `xml:"source"`
}

func (*Sources) Marshal added in v0.1.35

func (sources *Sources) Marshal() (string, virest.Error, bool)

func (*Sources) Unmarshal added in v0.1.35

func (sources *Sources) Unmarshal(doc string) (virest.Error, bool)

type StoragepoolCapabilities

type StoragepoolCapabilities struct {
	XMLName xml.Name `xml:"storagepoolCapabilities"`
	Pool    []Pool   `xml:"pool"`
}

Storage Pool Capabilities xml not found inside https://pkg.go.dev/libvirt.org/go/libvirtxml.

func (*StoragepoolCapabilities) Marshal

func (storagepoolCapabilities *StoragepoolCapabilities) Marshal() (string, virest.Error, bool)

func (*StoragepoolCapabilities) Unmarshal

func (storagepoolCapabilities *StoragepoolCapabilities) Unmarshal(doc string) (virest.Error, bool)

type VolOptions

type VolOptions struct {
	DefaultFormat DefaultFormat `xml:"defaultFormat"`
	Enum          Enum          `xml:"enum"`
}

Jump to

Keyboard shortcuts

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