Documentation ¶
Index ¶
- type AnnotationSection
- type CIMResourceAllocationSettingData
- type CIMStorageAllocationSettingData
- type CIMVirtualSystemSettingData
- type Content
- type DeploymentOptionConfiguration
- type DeploymentOptionSection
- type DiskSection
- type Envelope
- type EulaSection
- type File
- type Network
- type NetworkSection
- type OperatingSystemSection
- type ProductSection
- type Property
- type PropertyConfigurationValue
- type ResourceAllocationSection
- type ResourceAllocationSettingData
- type Section
- type StorageAllocationSettingData
- type VirtualDiskDesc
- type VirtualHardwareSection
- type VirtualSystem
- type VirtualSystemSettingData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationSection ¶
AnnotationSection is annotation section
type CIMResourceAllocationSettingData ¶
type CIMResourceAllocationSettingData struct { AddressOnParent *string `xml:"rasd:AddressOnParent"` Address *string `xml:"rasd:Address"` AllocationUnits *string `xml:"rasd:AllocationUnits"` AutomaticAllocation *bool `xml:"rasd:AutomaticAllocation"` AutomaticDeallocation *bool `xml:"rasd:AutomaticDeallocation"` Caption *string `xml:"rasd:Caption"` Connection []string `xml:"rasd:Connection"` ConsumerVisibility *uint16 `xml:"rasd:ConsumerVisibility"` Description *string `xml:"rasd:Description"` ElementName string `xml:"rasd:ElementName"` HostResource []string `xml:"rasd:HostResource"` InstanceID string `xml:"rasd:InstanceID"` Limit *uint64 `xml:"rasd:Limit"` MappingBehavior *uint `xml:"rasd:MappingBehavior"` OtherResourceType *string `xml:"rasd:OtherResourceType"` Parent *string `xml:"rasd:Parent"` PoolID *string `xml:"rasd:PoolID"` Reservation *uint64 `xml:"rasd:Reservation"` ResourceSubType *string `xml:"rasd:ResourceSubType"` ResourceType *uint16 `xml:"rasd:ResourceType"` VirtualQuantity *uint `xml:"rasd:VirtualQuantity"` VirtualQuantityUnits *string `xml:"rasd:VirtualQuantityUnits"` Weight *uint `xml:"rasd:Weight"` }
CIMResourceAllocationSettingData represents ResourceAllocationSetting element
type CIMStorageAllocationSettingData ¶
type CIMStorageAllocationSettingData struct { ElementName string `xml:"rasd:ElementName"` InstanceID string `xml:"rasd:InstanceID"` ResourceType *uint16 `xml:"rasd:ResourceType"` OtherResourceType *string `xml:"rasd:OtherResourceType"` ResourceSubType *string `xml:"rasd:ResourceSubType"` Access *uint16 `xml:"rasd:Access"` Address *string `xml:"rasd:Address"` AddressOnParent *string `xml:"rasd:AddressOnParent"` AllocationUnits *string `xml:"rasd:AllocationUnits"` AutomaticAllocation *bool `xml:"rasd:AutomaticAllocation"` AutomaticDeallocation *bool `xml:"rasd:AutomaticDeallocation"` Caption *string `xml:"rasd:Caption"` ChangeableType *uint16 `xml:"rasd:ChangeableType"` ComponentSetting []types.AnyType `xml:"rasd:ComponentSetting"` ConfigurationName *string `xml:"rasd:ConfigurationName"` Connection []string `xml:"rasd:Connection"` ConsumerVisibility *uint16 `xml:"rasd:ConsumerVisibility"` Description *string `xml:"rasd:Description"` Generation *uint64 `xml:"rasd:Generation"` HostExtentName *string `xml:"rasd:HostExtentName"` HostExtentNameFormat *uint16 `xml:"rasd:HostExtentNameFormat"` HostExtentNameNamespace *uint16 `xml:"rasd:HostExtentNameNamespace"` HostExtentStartingAddress *uint64 `xml:"rasd:HostExtentStartingAddress"` HostResource []string `xml:"rasd:HostResource"` HostResourceBlockSize *uint64 `xml:"rasd:HostResourceBlockSize"` Limit *uint64 `xml:"rasd:Limit"` MappingBehavior *uint `xml:"rasd:MappingBehavior"` OtherHostExtentNameFormat *string `xml:"rasd:OtherHostExtentNameFormat"` OtherHostExtentNameNamespace *string `xml:"rasd:OtherHostExtentNameNamespace"` Parent *string `xml:"rasd:Parent"` PoolID *string `xml:"rasd:PoolID"` Reservation *uint64 `xml:"rasd:Reservation"` SoID *string `xml:"rasd:SoID"` SoOrgID *string `xml:"rasd:SoOrgID"` VirtualQuantity *uint `xml:"rasd:VirtualQuantity"` VirtualQuantityUnits *string `xml:"rasd:VirtualQuantityUnits"` VirtualResourceBlockSize *uint64 `xml:"rasd:VirtualResourceBlockSize"` Weight *uint `xml:"rasd:Weight"` }
CIMStorageAllocationSettingData represents StorageAllocationSetting
type CIMVirtualSystemSettingData ¶
type CIMVirtualSystemSettingData struct { AutomaticRecoveryAction *uint8 `xml:"vssd:AutomaticRecoveryAction"` AutomaticShutdownAction *uint8 `xml:"vssd:AutomaticShutdownAction"` AutomaticStartupAction *uint8 `xml:"vssd:AutomaticStartupAction"` AutomaticStartupActionDelay *string `xml:"vssd:AutomaticStartupActionDelay>Interval"` AutomaticStartupActionSequenceNumber *uint16 `xml:"vssd:AutomaticStartupActionSequenceNumber"` Caption *string `xml:"vssd:Caption"` ConfigurationDataRoot *string `xml:"vssd:ConfigurationDataRoot"` ConfigurationFile *string `xml:"vssd:ConfigurationFile"` ConfigurationID *string `xml:"vssd:ConfigurationID"` CreationTime *string `xml:"vssd:CreationTime"` Description *string `xml:"vssd:Description"` ElementName string `xml:"vssd:ElementName"` InstanceID string `xml:"vssd:InstanceID"` LogDataRoot *string `xml:"vssd:LogDataRoot"` Notes []string `xml:"vssd:Notes"` RecoveryFile *string `xml:"vssd:RecoveryFile"` SnapshotDataRoot *string `xml:"vssd:SnapshotDataRoot"` SuspendDataRoot *string `xml:"vssd:SuspendDataRoot"` SwapFileDataRoot *string `xml:"vssd:SwapFileDataRoot"` VirtualSystemIdentifier *string `xml:"vssd:VirtualSystemIdentifier"` VirtualSystemType *string `xml:"vssd:VirtualSystemType"` }
CIMVirtualSystemSettingData represents VirtualSystemSetting element
type Content ¶
type Content struct { ID string `xml:"id,attr"` Info string `xml:"Info"` Name *string `xml:"Name"` }
Content is a base struct for other named OVF elements
type DeploymentOptionConfiguration ¶
type DeploymentOptionConfiguration struct { ID string `xml:"id,attr"` Default *bool `xml:"default,attr"` Label string `xml:"Label"` Description string `xml:"Description"` }
DeploymentOptionConfiguration represents deployment options
type DeploymentOptionSection ¶
type DeploymentOptionSection struct { Section Configuration []DeploymentOptionConfiguration `xml:"Configuration"` }
DeploymentOptionSection represents deployment options
type DiskSection ¶
type DiskSection struct { Section Disks []VirtualDiskDesc `xml:"Disk"` }
DiskSection represents disk section
type Envelope ¶
type Envelope struct { XMLName xml.Name `xml:"http://schemas.dmtf.org/ovf/envelope/1 Envelope"` XMLNSCIM string `xml:"xmlns:cim,attr"` XMLNSOVF string `xml:"xmlns:ovf,attr"` XMLNSRASD string `xml:"xmlns:rasd,attr"` XMLNSVMW string `xml:"xmlns:vmw,attr"` XMLNSVSSD string `xml:"xmlns:vssd,attr"` XMLNSXSI string `xml:"xmlns:xsi,attr"` References []File `xml:"References>File"` // Package level meta-data Annotation *AnnotationSection `xml:"AnnotationSection"` Product *ProductSection `xml:"ProductSection"` Network *NetworkSection `xml:"NetworkSection"` Disk *DiskSection `xml:"DiskSection"` OperatingSystem *OperatingSystemSection `xml:"OperatingSystemSection"` Eula *EulaSection `xml:"EulaSection"` VirtualHardware *VirtualHardwareSection `xml:"VirtualHardwareSection"` ResourceAllocation *ResourceAllocationSection `xml:"ResourceAllocationSection"` DeploymentOption *DeploymentOptionSection `xml:"DeploymentOptionSection"` // Content: A VirtualSystem or a VirtualSystemCollection VirtualSystem *VirtualSystem `xml:"VirtualSystem"` }
Envelope represents OVF descriptor
type EulaSection ¶
EulaSection represents EULA section
type File ¶
type File struct { ID string `xml:"id,attr"` Href string `xml:"href,attr"` Size uint `xml:"size,attr"` Compression *string `xml:"compression,attr"` ChunkSize *int `xml:"chunkSize,attr"` }
File represents file element
type NetworkSection ¶
NetworkSection represents network section
type OperatingSystemSection ¶
type OperatingSystemSection struct { Section ID int16 `xml:"id,attr"` Version *string `xml:"version,attr"` OSType *string `xml:"osType,attr"` Description *string `xml:"Description"` }
OperatingSystemSection represents operating system section
type ProductSection ¶
type ProductSection struct { Section Class *string `xml:"class,attr"` Instance *string `xml:"instance,attr"` Product string `xml:"Product"` Vendor string `xml:"Vendor"` Version string `xml:"Version"` FullVersion string `xml:"FullVersion"` ProductURL string `xml:"ProductUrl"` VendorURL string `xml:"VendorUrl"` AppURL string `xml:"AppUrl"` Property []Property `xml:"Property"` }
ProductSection is product section
type Property ¶
type Property struct { Key string `xml:"key,attr"` Type string `xml:"type,attr"` Qualifiers *string `xml:"qualifiers,attr"` UserConfigurable *bool `xml:"userConfigurable,attr"` Default *string `xml:"value,attr"` Password *bool `xml:"password,attr"` Label *string `xml:"Label"` Description *string `xml:"Description"` Values []PropertyConfigurationValue `xml:"Value"` }
Property represents a property
type PropertyConfigurationValue ¶
type PropertyConfigurationValue struct { Value string `xml:"value,attr"` Configuration *string `xml:"configuration,attr"` }
PropertyConfigurationValue represents property configuration value
type ResourceAllocationSection ¶
type ResourceAllocationSection struct { Section Item []ResourceAllocationSettingData `xml:"Item"` }
ResourceAllocationSection represents resource allocations
type ResourceAllocationSettingData ¶
type ResourceAllocationSettingData struct { CIMResourceAllocationSettingData Bound *string `xml:"bound,attr"` Configuration *string `xml:"configuration,attr"` Required *bool `xml:"required,attr"` }
ResourceAllocationSettingData represents resource allocation settings
type StorageAllocationSettingData ¶
type StorageAllocationSettingData struct { CIMStorageAllocationSettingData Required *bool `xml:"required,attr"` Configuration *string `xml:"configuration,attr"` Bound *string `xml:"bound,attr"` }
StorageAllocationSettingData represents storage allocation settings
type VirtualDiskDesc ¶
type VirtualDiskDesc struct { DiskID string `xml:"ovf:diskId,attr"` FileRef *string `xml:"ovf:fileRef,attr"` Capacity string `xml:"ovf:capacity,attr"` CapacityAllocationUnits *string `xml:"ovf:capacityAllocationUnits,attr"` Format *string `xml:"ovf:format,attr"` PopulatedSize *int `xml:"ovf:populatedSize,attr"` ParentRef *string `xml:"ovf:parentRef,attr"` }
VirtualDiskDesc represents virtual disk description
type VirtualHardwareSection ¶
type VirtualHardwareSection struct { Section ID *string `xml:"id,attr"` Transport *string `xml:"transport,attr"` System *VirtualSystemSettingData `xml:"System"` Item []ResourceAllocationSettingData `xml:"Item"` StorageItem []StorageAllocationSettingData `xml:"StorageItem"` }
VirtualHardwareSection represents virtual hardware section
type VirtualSystem ¶
type VirtualSystem struct { Content Annotation []AnnotationSection `xml:"AnnotationSection"` Product []ProductSection `xml:"ProductSection"` OperatingSystem []OperatingSystemSection `xml:"OperatingSystemSection"` Eula []EulaSection `xml:"EulaSection"` VirtualHardware []VirtualHardwareSection `xml:"VirtualHardwareSection"` }
VirtualSystem represents OVF virtual system
type VirtualSystemSettingData ¶
type VirtualSystemSettingData struct {
CIMVirtualSystemSettingData
}
VirtualSystemSettingData represents virtual system settings