types

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 2 Imported by: 74

Documentation

Index

Constants

View Source
const (
	QuerySelectionNameTypeVolumeType             = QuerySelectionNameType("VOLUME_TYPE")
	QuerySelectionNameTypeVolumeName             = QuerySelectionNameType("VOLUME_NAME")
	QuerySelectionNameTypeBackingObjectDetails   = QuerySelectionNameType("BACKING_OBJECT_DETAILS")
	QuerySelectionNameTypeComplianceStatus       = QuerySelectionNameType("COMPLIANCE_STATUS")
	QuerySelectionNameTypeDataStoreAccessibility = QuerySelectionNameType("DATASTORE_ACCESSIBILITY_STATUS")
)
View Source
const (
	CnsKubernetesEntityTypePVC = CnsKubernetesEntityType("PERSISTENT_VOLUME_CLAIM")
	CnsKubernetesEntityTypePV  = CnsKubernetesEntityType("PERSISTENT_VOLUME")
	CnsKubernetesEntityTypePOD = CnsKubernetesEntityType("POD")
)
View Source
const (
	CnsQuerySelectionName_VOLUME_NAME                    = CnsQuerySelectionNameType("VOLUME_NAME")
	CnsQuerySelectionName_VOLUME_TYPE                    = CnsQuerySelectionNameType("VOLUME_TYPE")
	CnsQuerySelectionName_BACKING_OBJECT_DETAILS         = CnsQuerySelectionNameType("BACKING_OBJECT_DETAILS")
	CnsQuerySelectionName_COMPLIANCE_STATUS              = CnsQuerySelectionNameType("COMPLIANCE_STATUS")
	CnsQuerySelectionName_DATASTORE_ACCESSIBILITY_STATUS = CnsQuerySelectionNameType("DATASTORE_ACCESSIBILITY_STATUS")
)
View Source
const (
	CnsClusterTypeKubernetes = CnsClusterType("KUBERNETES")
)
View Source
const (
	CnsVolumeTypeBlock = CnsVolumeType("BLOCK")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCnsBackingObjectDetails

type BaseCnsBackingObjectDetails interface {
	GetCnsBackingObjectDetails() *CnsBackingObjectDetails
}

type BaseCnsEntityMetadata

type BaseCnsEntityMetadata interface {
	GetCnsEntityMetadata() *CnsEntityMetadata
}

type BaseCnsFault

type BaseCnsFault interface {
	GetCnsFault() *CnsFault
}

type BaseCnsVolumeOperationResult

type BaseCnsVolumeOperationResult interface {
	GetCnsVolumeOperationResult() *CnsVolumeOperationResult
}

type CnsAttachVolume

type CnsAttachVolume CnsAttachVolumeRequestType

type CnsAttachVolumeRequestType

type CnsAttachVolumeRequestType struct {
	This        types.ManagedObjectReference `xml:"_this"`
	AttachSpecs []CnsVolumeAttachDetachSpec  `xml:"attachSpecs,omitempty"`
}

type CnsAttachVolumeResponse

type CnsAttachVolumeResponse struct {
	Returnval types.ManagedObjectReference `xml:"returnval"`
}

type CnsBackingObjectDetails

type CnsBackingObjectDetails struct {
	types.DynamicData

	CapacityInMb int64 `xml:"capacityInMb,omitempty"`
}

func (*CnsBackingObjectDetails) GetCnsBackingObjectDetails

func (b *CnsBackingObjectDetails) GetCnsBackingObjectDetails() *CnsBackingObjectDetails

type CnsBlockBackingDetails

type CnsBlockBackingDetails struct {
	CnsBackingObjectDetails

	BackingDiskId string `xml:"backingDiskId,omitempty"`
}

type CnsClusterType

type CnsClusterType string

type CnsContainerCluster

type CnsContainerCluster struct {
	types.DynamicData

	ClusterType string `xml:"clusterType"`
	ClusterId   string `xml:"clusterId"`
	VSphereUser string `xml:"vSphereUser"`
}

type CnsCreateVolume

type CnsCreateVolume CnsCreateVolumeRequestType

type CnsCreateVolumeRequestType

type CnsCreateVolumeRequestType struct {
	This        types.ManagedObjectReference `xml:"_this"`
	CreateSpecs []CnsVolumeCreateSpec        `xml:"createSpecs,omitempty"`
}

type CnsCreateVolumeResponse

type CnsCreateVolumeResponse struct {
	Returnval types.ManagedObjectReference `xml:"returnval"`
}

type CnsCursor

type CnsCursor struct {
	types.DynamicData

	Offset       int64 `xml:"offset"`
	Limit        int64 `xml:"limit"`
	TotalRecords int64 `xml:"totalRecords,omitempty"`
}

type CnsDeleteVolume

type CnsDeleteVolume CnsDeleteVolumeRequestType

type CnsDeleteVolumeRequestType

type CnsDeleteVolumeRequestType struct {
	This       types.ManagedObjectReference `xml:"_this"`
	VolumeIds  []CnsVolumeId                `xml:"volumeIds"`
	DeleteDisk bool                         `xml:"deleteDisk"`
}

type CnsDeleteVolumeResponse

type CnsDeleteVolumeResponse struct {
	Returnval types.ManagedObjectReference `xml:"returnval"`
}

type CnsDetachVolume

type CnsDetachVolume CnsDetachVolumeRequestType

type CnsDetachVolumeRequestType

type CnsDetachVolumeRequestType struct {
	This        types.ManagedObjectReference `xml:"_this"`
	DetachSpecs []CnsVolumeAttachDetachSpec  `xml:"detachSpecs,omitempty"`
}

type CnsDetachVolumeResponse

type CnsDetachVolumeResponse struct {
	Returnval types.ManagedObjectReference `xml:"returnval"`
}

type CnsEntityMetadata

type CnsEntityMetadata struct {
	types.DynamicData

	EntityName string           `xml:"entityName"`
	Labels     []types.KeyValue `xml:"labels,omitempty"`
	Delete     bool             `xml:"delete,omitempty"`
}

func (*CnsEntityMetadata) GetCnsEntityMetadata

func (b *CnsEntityMetadata) GetCnsEntityMetadata() *CnsEntityMetadata

type CnsFault

type CnsFault struct {
	Fault            *types.BaseMethodFault `xml:"fault,typeattr"`
	LocalizedMessage string                 `xml:"localizedMessage,omitempty"`
}

func (*CnsFault) GetCnsFault

func (b *CnsFault) GetCnsFault() *CnsFault

type CnsKubernetesEntityMetadata

type CnsKubernetesEntityMetadata struct {
	CnsEntityMetadata

	EntityType string `xml:"entityType"`
	Namespace  string `xml:"namespace,omitempty"`
}

type CnsKubernetesEntityType

type CnsKubernetesEntityType string

type CnsQueryAllVolume

type CnsQueryAllVolume CnsQueryAllVolumeRequestType

type CnsQueryAllVolumeRequestType

type CnsQueryAllVolumeRequestType struct {
	This      types.ManagedObjectReference `xml:"_this"`
	Filter    CnsQueryFilter               `xml:"filter"`
	Selection CnsQuerySelection            `xml:"selection"`
}

type CnsQueryAllVolumeResponse

type CnsQueryAllVolumeResponse struct {
	Returnval CnsQueryResult `xml:"returnval"`
}

type CnsQueryFilter

type CnsQueryFilter struct {
	types.DynamicData

	VolumeIds           []CnsVolumeId                  `xml:"volumeIds,omitempty"`
	Names               []string                       `xml:"names,omitempty"`
	ContainerClusterIds []string                       `xml:"containerClusterIds,omitempty"`
	StoragePolicyId     string                         `xml:"storagePolicyId,omitempty"`
	Datastores          []types.ManagedObjectReference `xml:"datastores,omitempty"`
	Labels              []types.KeyValue               `xml:"labels,omitempty"`
	Cursor              *CnsCursor                     `xml:"cursor,omitempty"`
}

type CnsQueryResult

type CnsQueryResult struct {
	types.DynamicData

	Volumes []CnsVolume `xml:"volumes,omitempty"`
	Cursor  CnsCursor   `xml:"cursor"`
}

type CnsQuerySelection

type CnsQuerySelection struct {
	types.DynamicData

	Names []string `xml:"names,omitempty"`
}

type CnsQuerySelectionNameType

type CnsQuerySelectionNameType string

type CnsQueryVolume

type CnsQueryVolume CnsQueryVolumeRequestType

type CnsQueryVolumeRequestType

type CnsQueryVolumeRequestType struct {
	This   types.ManagedObjectReference `xml:"_this"`
	Filter CnsQueryFilter               `xml:"filter"`
}

type CnsQueryVolumeResponse

type CnsQueryVolumeResponse struct {
	Returnval CnsQueryResult `xml:"returnval"`
}

type CnsUpdateVolumeMetadataRequestType

type CnsUpdateVolumeMetadataRequestType struct {
	This        types.ManagedObjectReference  `xml:"_this"`
	UpdateSpecs []CnsVolumeMetadataUpdateSpec `xml:"updateSpecs,omitempty"`
}

type CnsUpdateVolumeMetadataResponse

type CnsUpdateVolumeMetadataResponse struct {
	Returnval types.ManagedObjectReference `xml:"returnval"`
}

type CnsVolume

type CnsVolume struct {
	types.DynamicData

	VolumeId                     CnsVolumeId             `xml:"volumeId"`
	Name                         string                  `xml:"name,omitempty"`
	VolumeType                   string                  `xml:"volumeType,omitempty"`
	DatastoreUrl                 string                  `xml:"datastoreUrl,omitempty"`
	Metadata                     CnsVolumeMetadata       `xml:"metadata,omitempty"`
	BackingObjectDetails         CnsBackingObjectDetails `xml:"backingObjectDetails,omitempty"`
	ComplianceStatus             string                  `xml:"complianceStatus,omitempty"`
	DatastoreAccessibilityStatus string                  `xml:"datastoreAccessibilityStatus,omitempty"`
	StoragePolicyId              string                  `xml:"storagePolicyId,omitempty"`
}

type CnsVolumeAttachDetachSpec

type CnsVolumeAttachDetachSpec struct {
	types.DynamicData

	VolumeId CnsVolumeId                  `xml:"volumeId"`
	Vm       types.ManagedObjectReference `xml:"vm"`
}

type CnsVolumeAttachResult

type CnsVolumeAttachResult struct {
	CnsVolumeOperationResult

	DiskUUID string `xml:"diskUUID,omitempty"`
}

type CnsVolumeCreateResult

type CnsVolumeCreateResult struct {
	CnsVolumeOperationResult
	Name string `xml:"name,omitempty"`
}

type CnsVolumeCreateSpec

type CnsVolumeCreateSpec struct {
	types.DynamicData
	Name                 string                                `xml:"name"`
	VolumeType           string                                `xml:"volumeType"`
	Datastores           []types.ManagedObjectReference        `xml:"datastores,omitempty"`
	Metadata             CnsVolumeMetadata                     `xml:"metadata,omitempty"`
	BackingObjectDetails BaseCnsBackingObjectDetails           `xml:"backingObjectDetails,typeattr"`
	Profile              []types.BaseVirtualMachineProfileSpec `xml:"profile,omitempty,typeattr"`
}

type CnsVolumeId

type CnsVolumeId struct {
	types.DynamicData

	Id string `xml:"id"`
}

type CnsVolumeMetadata

type CnsVolumeMetadata struct {
	types.DynamicData

	ContainerCluster CnsContainerCluster     `xml:"containerCluster"`
	EntityMetadata   []BaseCnsEntityMetadata `xml:"entityMetadata,typeattr,omitempty"`
}

type CnsVolumeMetadataUpdateSpec

type CnsVolumeMetadataUpdateSpec struct {
	types.DynamicData

	VolumeId CnsVolumeId       `xml:"volumeId"`
	Metadata CnsVolumeMetadata `xml:"metadata,omitempty"`
}

type CnsVolumeOperationBatchResult

type CnsVolumeOperationBatchResult struct {
	types.DynamicData

	VolumeResults []BaseCnsVolumeOperationResult `xml:"volumeResults,omitempty,typeattr"`
}

type CnsVolumeOperationResult

type CnsVolumeOperationResult struct {
	types.DynamicData

	VolumeId CnsVolumeId `xml:"volumeId,omitempty"`
	Fault    *CnsFault   `xml:"fault,omitempty"`
}

func (*CnsVolumeOperationResult) GetCnsVolumeOperationResult

func (b *CnsVolumeOperationResult) GetCnsVolumeOperationResult() *CnsVolumeOperationResult

type CnsVolumeType

type CnsVolumeType string

type QuerySelectionNameType

type QuerySelectionNameType string

Jump to

Keyboard shortcuts

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