v1alpha1

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AttributeFirstClassDiskUUID is the SCSI Disk Identifier
	AttributeFirstClassDiskUUID = "diskUUID"

	// AttributeCnsVolumeID represents the volume ID in CNS.
	AttributeCnsVolumeID = "cnsVolumeId"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CnsNodeVmAttachment

type CnsNodeVmAttachment struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CnsNodeVmAttachmentSpec   `json:"spec,omitempty"`
	Status CnsNodeVmAttachmentStatus `json:"status,omitempty"`
}

CnsNodeVmAttachment is the Schema for the cnsnodevmattachments API

func (*CnsNodeVmAttachment) DeepCopy

func (in *CnsNodeVmAttachment) DeepCopy() *CnsNodeVmAttachment

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CnsNodeVmAttachment.

func (*CnsNodeVmAttachment) DeepCopyInto

func (in *CnsNodeVmAttachment) DeepCopyInto(out *CnsNodeVmAttachment)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CnsNodeVmAttachment) DeepCopyObject

func (in *CnsNodeVmAttachment) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CnsNodeVmAttachmentList

type CnsNodeVmAttachmentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CnsNodeVmAttachment `json:"items"`
}

CnsNodeVmAttachmentList contains a list of CnsNodeVmAttachment

func (*CnsNodeVmAttachmentList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CnsNodeVmAttachmentList.

func (*CnsNodeVmAttachmentList) DeepCopyInto

func (in *CnsNodeVmAttachmentList) DeepCopyInto(out *CnsNodeVmAttachmentList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CnsNodeVmAttachmentList) DeepCopyObject

func (in *CnsNodeVmAttachmentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CnsNodeVmAttachmentSpec

type CnsNodeVmAttachmentSpec struct {
	// NodeUUID indicates the UUID of the node where the volume needs to be attached to.
	// Here NodeUUID is the bios UUID of the node.
	NodeUUID string `json:"nodeuuid"`

	// VolumeName indicates the name of the volume on the supervisor Cluster.
	// This is guaranteed to be unique in Supervisor cluster.
	VolumeName string `json:"volumename"`
}

CnsNodeVmAttachmentSpec defines the desired state of CnsNodeVmAttachment +k8s:openapi-gen=true

func (*CnsNodeVmAttachmentSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CnsNodeVmAttachmentSpec.

func (*CnsNodeVmAttachmentSpec) DeepCopyInto

func (in *CnsNodeVmAttachmentSpec) DeepCopyInto(out *CnsNodeVmAttachmentSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CnsNodeVmAttachmentStatus

type CnsNodeVmAttachmentStatus struct {
	// Indicates the volume is successfully attached.
	// This field must only be set by the entity completing the attach
	// operation, i.e. the CNS Operator.
	Attached bool `json:"attached"`

	// Before successful attach, this field is populated with CNS volume ID.
	// Upon successful attach, this field is populated with any information
	// returned by the attach operation. This field must only be set by the entity
	// completing the attach operation, i.e. the CNS Operator
	AttachmentMetadata map[string]string `json:"metadata,omitempty"`

	// The last error encountered during attach/detach operation, if any.
	// This field must only be set by the entity completing the attach
	// operation, i.e. the CNS Operator.
	// +optional
	Error string `json:"error,omitempty"`
}

CnsNodeVmAttachmentStatus defines the observed state of CnsNodeVmAttachment +k8s:openapi-gen=true

func (*CnsNodeVmAttachmentStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CnsNodeVmAttachmentStatus.

func (*CnsNodeVmAttachmentStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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