libvirtxml

package
v0.0.0-...-c6cf541 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name  Name
	Value string
}

type Capabilities

type Capabilities struct {
	// contains filtered or unexported fields
}

func NewCapabilitiesForXML

func NewCapabilitiesForXML(xmlDoc string) (*Capabilities, error)

func (Capabilities) Guests

func (s Capabilities) Guests() []CapabilitiesGuest

func (Capabilities) Host

func (s Capabilities) Host() CapabilitiesHost

type CapabilitiesGuest

type CapabilitiesGuest struct {
	// contains filtered or unexported fields
}

func (CapabilitiesGuest) Arch

func (CapabilitiesGuest) OSType

func (s CapabilitiesGuest) OSType() string

type CapabilitiesGustArch

type CapabilitiesGustArch struct {
	// contains filtered or unexported fields
}

func (CapabilitiesGustArch) Emulator

func (s CapabilitiesGustArch) Emulator() string

func (CapabilitiesGustArch) Name

func (s CapabilitiesGustArch) Name() string

type CapabilitiesHost

type CapabilitiesHost struct {
	// contains filtered or unexported fields
}

func (CapabilitiesHost) CPU

func (CapabilitiesHost) UUID

func (s CapabilitiesHost) UUID() string

type CapabilitiesHostCPU

type CapabilitiesHostCPU struct {
	// contains filtered or unexported fields
}

func (CapabilitiesHostCPU) Arch

func (s CapabilitiesHostCPU) Arch() string

type Document

type Document struct {
	ProcInst *xml.ProcInst
	Root     *Node
	CharData string
	Comments string
}

func (*Document) Marshal

func (d *Document) Marshal() (string, error)

func (*Document) Unmarshal

func (d *Document) Unmarshal(xmlDoc string) error

type Domain

type Domain struct {
	// contains filtered or unexported fields
}

func NewDomainForXML

func NewDomainForXML(xmlDoc string) (*Domain, error)

func (Domain) Devices

func (s Domain) Devices() DomainDevices

func (Domain) ID

func (s Domain) ID() string

func (Domain) MarshalToXML

func (s Domain) MarshalToXML() (string, error)

func (Domain) Memory

func (s Domain) Memory() DomainMemory

func (Domain) Metadata

func (s Domain) Metadata() Metadata

func (Domain) Name

func (s Domain) Name() string

func (Domain) SetID

func (s Domain) SetID(value string)

func (Domain) SetName

func (s Domain) SetName(value string)

func (Domain) SetUUID

func (s Domain) SetUUID(value string)

func (Domain) UUID

func (s Domain) UUID() string

func (Domain) VCPU

func (s Domain) VCPU() DomainVCPU

type DomainChannel

type DomainChannel struct {
	// contains filtered or unexported fields
}

func (DomainChannel) SetSourcePath

func (s DomainChannel) SetSourcePath(value string)

func (DomainChannel) SetType

func (s DomainChannel) SetType(value string)

func (DomainChannel) SourcePath

func (s DomainChannel) SourcePath() string

func (DomainChannel) Type

func (s DomainChannel) Type() string

type DomainDevices

type DomainDevices struct {
	// contains filtered or unexported fields
}

func (DomainDevices) Channels

func (s DomainDevices) Channels() []DomainChannel

func (DomainDevices) Disks

func (s DomainDevices) Disks() []DomainDisk

func (DomainDevices) Emulator

func (s DomainDevices) Emulator() string

func (DomainDevices) Filesystems

func (s DomainDevices) Filesystems() []DomainFilesystem

func (DomainDevices) Graphics

func (s DomainDevices) Graphics() []DomainGraphic

func (DomainDevices) Interfaces

func (s DomainDevices) Interfaces() []DomainInterface

func (DomainDevices) NewDisk

func (s DomainDevices) NewDisk() DomainDisk

func (DomainDevices) NewFilesystem

func (s DomainDevices) NewFilesystem() DomainFilesystem

func (DomainDevices) NewInterface

func (s DomainDevices) NewInterface() DomainInterface

func (DomainDevices) SetDisks

func (s DomainDevices) SetDisks(disks []DomainDisk)

func (DomainDevices) SetEmulator

func (s DomainDevices) SetEmulator(value string)

type DomainDisk

type DomainDisk struct {
	// contains filtered or unexported fields
}

func (DomainDisk) Device

func (s DomainDisk) Device() string

func (DomainDisk) Driver

func (s DomainDisk) Driver() DomainDiskDriver

func (DomainDisk) Readonly

func (s DomainDisk) Readonly() bool

func (DomainDisk) SetDevice

func (s DomainDisk) SetDevice(value string)

func (DomainDisk) SetReadonly

func (s DomainDisk) SetReadonly(value bool)

func (DomainDisk) SetShareable

func (s DomainDisk) SetShareable(value bool)

func (DomainDisk) SetType

func (s DomainDisk) SetType(value string)

func (DomainDisk) Shareable

func (s DomainDisk) Shareable() bool

func (DomainDisk) Source

func (s DomainDisk) Source() DomainDiskSource

func (DomainDisk) Target

func (s DomainDisk) Target() DomainDiskTarget

func (DomainDisk) Type

func (s DomainDisk) Type() string

type DomainDiskDriver

type DomainDiskDriver struct {
	// contains filtered or unexported fields
}

func (DomainDiskDriver) Name

func (s DomainDiskDriver) Name() string

func (DomainDiskDriver) SetName

func (s DomainDiskDriver) SetName(value string)

func (DomainDiskDriver) SetType

func (s DomainDiskDriver) SetType(value string)

func (DomainDiskDriver) Type

func (s DomainDiskDriver) Type() string

type DomainDiskSource

type DomainDiskSource struct {
	// contains filtered or unexported fields
}

func (DomainDiskSource) File

func (s DomainDiskSource) File() string

func (DomainDiskSource) Mode

func (s DomainDiskSource) Mode() string

func (DomainDiskSource) Pool

func (s DomainDiskSource) Pool() string

func (DomainDiskSource) SetFile

func (s DomainDiskSource) SetFile(value string)

func (DomainDiskSource) SetMode

func (s DomainDiskSource) SetMode(value string)

func (DomainDiskSource) SetPool

func (s DomainDiskSource) SetPool(value string)

func (DomainDiskSource) SetVolume

func (s DomainDiskSource) SetVolume(value string)

func (DomainDiskSource) Volume

func (s DomainDiskSource) Volume() string

type DomainDiskTarget

type DomainDiskTarget struct {
	// contains filtered or unexported fields
}

func (DomainDiskTarget) Bus

func (s DomainDiskTarget) Bus() string

func (DomainDiskTarget) Dev

func (s DomainDiskTarget) Dev() string

func (DomainDiskTarget) SetBus

func (s DomainDiskTarget) SetBus(value string)

func (DomainDiskTarget) SetDev

func (s DomainDiskTarget) SetDev(value string)

type DomainFilesystem

type DomainFilesystem struct {
	// contains filtered or unexported fields
}

func (DomainFilesystem) Accessmode

func (s DomainFilesystem) Accessmode() string

func (DomainFilesystem) Readonly

func (s DomainFilesystem) Readonly() bool

func (DomainFilesystem) SetAccessmode

func (s DomainFilesystem) SetAccessmode(value string)

func (DomainFilesystem) SetReadonly

func (s DomainFilesystem) SetReadonly(value bool)

func (DomainFilesystem) SetSourceDir

func (s DomainFilesystem) SetSourceDir(value string)

func (DomainFilesystem) SetTargetDir

func (s DomainFilesystem) SetTargetDir(value string)

func (DomainFilesystem) SetType

func (s DomainFilesystem) SetType(value string)

func (DomainFilesystem) SourceDir

func (s DomainFilesystem) SourceDir() string

func (DomainFilesystem) TargetDir

func (s DomainFilesystem) TargetDir() string

func (DomainFilesystem) Type

func (s DomainFilesystem) Type() string

type DomainGraphic

type DomainGraphic struct {
	// contains filtered or unexported fields
}

func (DomainGraphic) Port

func (s DomainGraphic) Port() int

func (DomainGraphic) SetPort

func (s DomainGraphic) SetPort(value int)

type DomainInterface

type DomainInterface struct {
	// contains filtered or unexported fields
}

func (DomainInterface) MACAddress

func (s DomainInterface) MACAddress() string

func (DomainInterface) ModelType

func (s DomainInterface) ModelType() string

func (DomainInterface) SetMACAddress

func (s DomainInterface) SetMACAddress(value string)

func (DomainInterface) SetModelType

func (s DomainInterface) SetModelType(value string)

func (DomainInterface) SetTargetDevice

func (s DomainInterface) SetTargetDevice(value string)

func (DomainInterface) SetType

func (s DomainInterface) SetType(value string)

func (DomainInterface) Source

func (DomainInterface) TargetDevice

func (s DomainInterface) TargetDevice() string

func (DomainInterface) Type

func (s DomainInterface) Type() string

type DomainInterfaceSource

type DomainInterfaceSource struct {
	// contains filtered or unexported fields
}

func (DomainInterfaceSource) Network

func (s DomainInterfaceSource) Network() string

func (DomainInterfaceSource) SetNetwork

func (s DomainInterfaceSource) SetNetwork(value string)

type DomainMemory

type DomainMemory struct {
	// contains filtered or unexported fields
}

func (DomainMemory) SetUnit

func (s DomainMemory) SetUnit(value string)

func (DomainMemory) SetValue

func (s DomainMemory) SetValue(value uint64)

func (DomainMemory) Unit

func (s DomainMemory) Unit() string

func (DomainMemory) Value

func (s DomainMemory) Value() string

type DomainVCPU

type DomainVCPU struct {
	// contains filtered or unexported fields
}

func (DomainVCPU) SetValue

func (s DomainVCPU) SetValue(value uint)

func (DomainVCPU) Value

func (s DomainVCPU) Value() uint

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

func (Metadata) FindNodes

func (d Metadata) FindNodes(name Name) []*Node

func (Metadata) NewNode

func (s Metadata) NewNode(name Name) *Node

type Name

type Name struct {
	Local string
	Space string
}

func NewName

func NewName(namespace string, local string) Name

type NetworDomain

type NetworDomain struct {
	// contains filtered or unexported fields
}

func (NetworDomain) LocalOnly

func (s NetworDomain) LocalOnly() bool

func (NetworDomain) Name

func (s NetworDomain) Name() string

func (NetworDomain) SetLocalOnly

func (s NetworDomain) SetLocalOnly(value bool)

func (NetworDomain) SetName

func (s NetworDomain) SetName(value string)

type Network

type Network struct {
	// contains filtered or unexported fields
}

func NewNetwork

func NewNetwork() Network

func NewNetworkForXML

func NewNetworkForXML(xmlDoc string) (*Network, error)

func (Network) Bridge

func (s Network) Bridge() NetworkBridge

func (Network) DNS

func (s Network) DNS() NetworkDNS

func (Network) Domain

func (s Network) Domain() NetworDomain

func (Network) Forward

func (s Network) Forward() NetworkForward

func (Network) Hostnames

func (s Network) Hostnames() []string

func (Network) Hosts

func (s Network) Hosts() []NetworkDNSHost

func (Network) IPs

func (s Network) IPs() []NetworkIP

func (Network) MACAddress

func (s Network) MACAddress() string

func (Network) MarshalToXML

func (s Network) MarshalToXML() (string, error)

func (Network) Metadata

func (s Network) Metadata() Metadata

func (Network) Name

func (s Network) Name() string

func (Network) NewIP

func (s Network) NewIP() NetworkIP

func (Network) SetHostnames

func (s Network) SetHostnames(values []string)

func (Network) SetIPs

func (s Network) SetIPs(ips []NetworkIP)

func (Network) SetName

func (s Network) SetName(value string)

func (Network) SetUUID

func (s Network) SetUUID(value string)

func (Network) UUID

func (s Network) UUID() string

type NetworkBridge

type NetworkBridge struct {
	// contains filtered or unexported fields
}

func (NetworkBridge) Name

func (s NetworkBridge) Name() string

func (NetworkBridge) STP

func (s NetworkBridge) STP() bool

func (NetworkBridge) SetName

func (s NetworkBridge) SetName(value string)

func (NetworkBridge) SetSTP

func (s NetworkBridge) SetSTP(value bool)

type NetworkDNS

type NetworkDNS struct {
	// contains filtered or unexported fields
}

func (NetworkDNS) Enable

func (s NetworkDNS) Enable() bool

func (NetworkDNS) ForwardPlainNames

func (s NetworkDNS) ForwardPlainNames() bool

func (NetworkDNS) SetEnable

func (s NetworkDNS) SetEnable(value bool)

func (NetworkDNS) SetForwardPlainNames

func (s NetworkDNS) SetForwardPlainNames(value bool)

type NetworkDNSHost

type NetworkDNSHost struct {
	// contains filtered or unexported fields
}

func (NetworkDNSHost) IP

func (s NetworkDNSHost) IP() string

func (NetworkDNSHost) SetEnable

func (s NetworkDNSHost) SetEnable(value string)

type NetworkForward

type NetworkForward struct {
	// contains filtered or unexported fields
}

func (NetworkForward) Mode

func (s NetworkForward) Mode() string

func (NetworkForward) SetMode

func (s NetworkForward) SetMode(value string)

func (NetworkForward) SetNATPortRange

func (s NetworkForward) SetNATPortRange(start int, end int)

type NetworkIP

type NetworkIP struct {
	// contains filtered or unexported fields
}

func (NetworkIP) Address

func (s NetworkIP) Address() string

func (NetworkIP) Family

func (s NetworkIP) Family() string

func (NetworkIP) Netmask

func (s NetworkIP) Netmask() string

func (NetworkIP) Prefix

func (s NetworkIP) Prefix() int

func (NetworkIP) SetAddress

func (s NetworkIP) SetAddress(value string)

func (NetworkIP) SetDHCPRange

func (s NetworkIP) SetDHCPRange(start string, end string)

func (NetworkIP) SetFamily

func (s NetworkIP) SetFamily(value string)

func (NetworkIP) SetNetmask

func (s NetworkIP) SetNetmask(value string)

func (NetworkIP) SetPrefix

func (s NetworkIP) SetPrefix(value int)

type Node

type Node struct {
	Name       Name
	Attributes []*Attribute
	Nodes      []*Node
	CharData   string
	Comments   string
}

func NewNode

func NewNode(name Name) *Node

type StoragePool

type StoragePool struct {
	// contains filtered or unexported fields
}

func NewStoragePool

func NewStoragePool() StoragePool

func NewStoragePoolForXML

func NewStoragePoolForXML(xmlDoc string) (*StoragePool, error)

func (StoragePool) MarshalToXML

func (s StoragePool) MarshalToXML() (string, error)

func (StoragePool) SetType

func (s StoragePool) SetType(value string)

func (StoragePool) Target

func (s StoragePool) Target() StoragePoolTarget

func (StoragePool) Type

func (s StoragePool) Type() string

type StoragePoolTarget

type StoragePoolTarget struct {
	// contains filtered or unexported fields
}

func (StoragePoolTarget) Path

func (s StoragePoolTarget) Path() string

func (StoragePoolTarget) SetPath

func (s StoragePoolTarget) SetPath(value string)

type StorageVolume

type StorageVolume struct {
	// contains filtered or unexported fields
}

func NewStorageVolume

func NewStorageVolume() StorageVolume

func NewStorageVolumeForXML

func NewStorageVolumeForXML(xmlDoc string) (*StorageVolume, error)

func (StorageVolume) Allocation

func (s StorageVolume) Allocation() StorageVolumeSize

func (StorageVolume) BackingStore

func (s StorageVolume) BackingStore() StorageVolumeBackingStore

func (StorageVolume) Capacity

func (s StorageVolume) Capacity() StorageVolumeSize

func (StorageVolume) Key

func (s StorageVolume) Key() string

func (StorageVolume) MarshalToXML

func (s StorageVolume) MarshalToXML() (string, error)

func (StorageVolume) Name

func (s StorageVolume) Name() string

func (StorageVolume) SetKey

func (s StorageVolume) SetKey(value string)

func (StorageVolume) SetName

func (s StorageVolume) SetName(value string)

func (StorageVolume) SetType

func (s StorageVolume) SetType(value string)

func (StorageVolume) Target

func (StorageVolume) Type

func (s StorageVolume) Type() string

type StorageVolumeBackingStore

type StorageVolumeBackingStore struct {
	// contains filtered or unexported fields
}

func (StorageVolumeBackingStore) Format

func (StorageVolumeBackingStore) Path

func (StorageVolumeBackingStore) Permissions

func (StorageVolumeBackingStore) RemoveTimestamps

func (s StorageVolumeBackingStore) RemoveTimestamps()

func (StorageVolumeBackingStore) SetPath

func (s StorageVolumeBackingStore) SetPath(value string)

type StorageVolumePermissions

type StorageVolumePermissions struct {
	// contains filtered or unexported fields
}

func (StorageVolumePermissions) Group

func (s StorageVolumePermissions) Group() uint64

func (StorageVolumePermissions) Mode

func (StorageVolumePermissions) Owner

func (s StorageVolumePermissions) Owner() uint64

func (StorageVolumePermissions) SetGroup

func (s StorageVolumePermissions) SetGroup(value uint64)

func (StorageVolumePermissions) SetMode

func (s StorageVolumePermissions) SetMode(value string)

func (StorageVolumePermissions) SetOwner

func (s StorageVolumePermissions) SetOwner(value uint64)

type StorageVolumeSize

type StorageVolumeSize struct {
	// contains filtered or unexported fields
}

func (StorageVolumeSize) SetUnit

func (s StorageVolumeSize) SetUnit(value string)

func (StorageVolumeSize) SetValue

func (s StorageVolumeSize) SetValue(value uint64)

func (StorageVolumeSize) Unit

func (s StorageVolumeSize) Unit() string

func (StorageVolumeSize) Value

func (s StorageVolumeSize) Value() uint64

type StorageVolumeTarget

type StorageVolumeTarget struct {
	// contains filtered or unexported fields
}

func (StorageVolumeTarget) Format

func (StorageVolumeTarget) Path

func (s StorageVolumeTarget) Path() string

func (StorageVolumeTarget) Permissions

func (StorageVolumeTarget) RemoveTimestamps

func (s StorageVolumeTarget) RemoveTimestamps()

func (StorageVolumeTarget) SetPath

func (s StorageVolumeTarget) SetPath(value string)

type StorageVolumeTargetFormat

type StorageVolumeTargetFormat struct {
	// contains filtered or unexported fields
}

func (StorageVolumeTargetFormat) SetType

func (s StorageVolumeTargetFormat) SetType(value string)

func (StorageVolumeTargetFormat) Type

Jump to

Keyboard shortcuts

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