Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConTypeBridged ConnectionMode = "bridged" ConTypeOVS = "ovs" ConTypeDirect = "direct" ConTypePassthrough = "passthrough" ConTypeSRIOV = "sriov" ConTypeVirtualNetwork = "virtnetwork" ConTypeError = "error" )
View Source
const UnlimitedAlloc = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appearance ¶
type Appearance struct { Type ConnectionMode `xml:"mode_type,attr"` Appear string `xml:"appear,attr"` }
type ConnectionMode ¶
type ConnectionMode string
type GuestNic ¶
type GuestNic struct {
PCI *PciAddress `xml:"guest_nics>pci"`
}
type Mode ¶
type Mode struct { Type ConnectionMode `xml:"type,attr"` VnicDriver string `xml:"vnic_driver,attr"` Tmplt *Template `xml:"template"` }
type PciAddress ¶
type XMLInputData ¶
func ParseXMLInput ¶
func ParseXMLInput(config string) (*XMLInputData, error)
ParseXMLInputFile is responsible for parsing a given configuration file representing appropriate input data to a srtuctured form
func ParseXMLInputBuf ¶
func ParseXMLInputBuf(data []byte) (*XMLInputData, error)
ParseXMLInputBuf is responsible for parsing a given stream of bytes representing appropriate input data to a srtuctured form
Click to show internal directories.
Click to hide internal directories.