ova

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeCPU     = "3"
	TypeMemory  = "4"
	TypeIDE     = "5"
	TypeSCSI    = "6"
	TypeNetwork = "10"
	TypeFloppy  = "14"
	TypeCDROM   = "15"
	TypeDisk    = "17"
	TypeUSB     = "23"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskDetails

type DiskDetails struct {
	Capacity                string `xml:"capacity,attr"`
	CapacityAllocationUnits string `xml:"capacityAllocationUnits,attr"`
	DiskID                  string `xml:"diskId,attr"`
	FileRef                 string `xml:"fileRef,attr"`
	Format                  string `xml:"format,attr"`
	PopulatedSize           string `xml:"populatedSize,attr"`
}

type DiskSection

type DiskSection struct {
	Info string `xml:"Info"`
	Disk []DiskDetails
}

type Envelope

type Envelope struct {
	File           []References   `xml:"References>File"`
	DiskSection    DiskSection    `xml:"DiskSection"`
	NetworkSection NetworkSection `xml:"NetworkSection"`
	VirtualSystem  VirtualSystem  `xml:"VirtualSystem"`
}

func ReadOVF

func ReadOVF(path string) (*Envelope, error)

type Network

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

type NetworkSection

type NetworkSection struct {
	Info    string  `xml:"Info"`
	Network Network `xml:"Network"`
}

type OperatingSystem

type OperatingSystem struct {
	ID          string `xml:"id,attr"`
	OSType      string `xml:"osType,attr"`
	Info        string `xml:"Info"`
	Description string `xml:"Description"`
}

type References

type References struct {
	HRef string `xml:"href,attr"`
	ID   string `xml:"id,attr"`
	Size string `xml:"size,attr"`
}

type VirtualHardware

type VirtualHardware struct {
	Info   string                `xml:"Info"`
	System VirtualHardwareSystem `xml:"System"`
	Items  []VirtualHardwareItem `xml:"Item"`
}

type VirtualHardwareItem

type VirtualHardwareItem struct {
	Required            string `xml:"required,attr"`
	Address             string `xml:"Address"`
	AddressOnParent     string `xml:"AddressOnParent"`
	AllocationUnits     string `xml:"AllocationUnits"`
	AutomaticAllocation string `xml:"AutomaticAllocation"`
	Connection          string `xml:"Connection"`
	Description         string `xml:"Description"`
	ElementName         string `xml:"ElementName"`
	HostResource        string `xml:"HostResource"`
	InstanceID          string `xml:"InstanceID"`
	Parent              string `xml:"Parent"`
	ResourceSubType     string `xml:"ResourceSubType"`
	ResourceType        string `xml:"ResourceType"`
	VirtualQuantity     string `xml:"VirtualQuantity"`
}

type VirtualHardwareSystem

type VirtualHardwareSystem struct {
	ElementName             string `xml:"ElementName"`
	InstanceID              string `xml:"InstanceID"`
	VirtualSystemIdentifier string `xml:"VirtualSystemIdentifier"`
	VirtualSystemType       string `xml:"VirtualSystemType"`
}

type VirtualSystem

type VirtualSystem struct {
	ID              string          `xml:"id,attr"`
	Info            string          `xml:"Info"`
	Name            string          `xml:"Name"`
	OperatingSystem OperatingSystem `xml:"OperatingSystemSection"`
	VirtualHardware VirtualHardware `xml:"VirtualHardwareSection"`
}

Jump to

Keyboard shortcuts

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