Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the hwameistor v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=hwameistor.io
Package v1alpha1 contains API Schema definitions for the hwameistor v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=hwameistor
Index ¶
- Constants
- Variables
- func AddToScheme(s *runtime.Scheme) error
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AccessibilityTopology
- type Disk
- type DiskAttributes
- type DiskClaimDescription
- type DiskClaimStatus
- type FileSystemInfo
- type LocalDisk
- type LocalDiskClaim
- type LocalDiskClaimList
- type LocalDiskClaimSpec
- type LocalDiskClaimState
- type LocalDiskClaimStatus
- type LocalDiskList
- type LocalDiskNode
- type LocalDiskNodeList
- type LocalDiskNodeSpec
- type LocalDiskNodeStatus
- type LocalDiskSpec
- type LocalDiskState
- type LocalDiskStatus
- type LocalDiskVolume
- type LocalDiskVolumeList
- type LocalDiskVolumeSpec
- type LocalDiskVolumeStatus
- type MountPoint
- type PartitionInfo
- type RAIDInfo
- type SmartAssessResult
- type SmartInfo
- type State
- type VolumeAccessMode
- type VolumeAccessType
- type VolumeCapability
Constants ¶
const ( VolumeCapability_AccessType_Block = "Block" VolumeCapability_AccessType_Mount = "Mount" )
const ( // Can only be published once as read/write on a single node, at // any given time. VolumeCapability_AccessMode_SINGLE_NODE_WRITER = csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "hwameistor.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var AddToSchemes runtime.SchemeBuilder
AddToSchemes may be used to add all resources defined in the project to a Scheme for Local Storage Member
Functions ¶
func AddToScheme ¶ added in v0.1.1
AddToScheme adds all Resources to the Scheme for Local Storage Member
func Kind ¶ added in v0.1.1
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func Resource ¶ added in v0.1.1
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AccessibilityTopology ¶ added in v0.1.2
type AccessibilityTopology struct { // One of the volume replica must be located at this node Node string `json:"node,omitempty"` // zones where the volume replicas should be distributed across, it's Optional // +kubebuilder:default:={default} Zones []string `json:"zones,omitempty"` // regions where the volume replicas should be distributed across, it's Optional // +kubebuilder:default:={default} Regions []string `json:"regions,omitempty"` }
AccessibilityTopology of the volume
func (*AccessibilityTopology) DeepCopy ¶ added in v0.1.2
func (in *AccessibilityTopology) DeepCopy() *AccessibilityTopology
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessibilityTopology.
func (*AccessibilityTopology) DeepCopyInto ¶ added in v0.1.2
func (in *AccessibilityTopology) DeepCopyInto(out *AccessibilityTopology)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Disk ¶ added in v0.1.2
type Disk struct { // DevPath DevPath string `json:"devPath"` // Capacity Capacity int64 `json:"capacity,omitempty"` // DiskType SSD/HDD/NVME... DiskType string `json:"diskType"` // Status Status string `json:"status"` }
func (*Disk) DeepCopy ¶ added in v0.1.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Disk.
func (*Disk) DeepCopyInto ¶ added in v0.1.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskAttributes ¶
type DiskAttributes struct { // Type is the disk type, such as ata, scsi, nvme, megaraid,N, ... Type string `json:"type,omitempty"` // DeviceType represents the type of device like // sparse, disk, partition, lvm, crypt DevType string `json:"devType,omitempty"` // Vendor is who provides the disk Vendor string `json:"vendor,omitempty"` // Product is a class of disks the vendor produces Product string `json:"product,omitempty"` // PCIVendorID is the ID of the PCI vendor, for NVMe disk only PCIVendorID string `json:"pciVendorID,omitempty"` // ModelName is the name of disk model ModelName string `json:"modelName,omitempty"` // SerialNumber is a unique number assigned to a disk SerialNumber string `json:"serialNumber,omitempty"` // FormFactor is the disk size, like 2.5 inches FormFactor string `json:"formFactor,omitempty"` // RotationRate is the rate of the disk rotation RotationRate int64 `json:"rotationRate,omitempty"` // Protocol is for data transport, such as ATA, SCSI, NVMe Protocol string `json:"protocol,omitempty"` }
DiskAttributes represent certain hardware/static attributes of the disk
func (*DiskAttributes) DeepCopy ¶
func (in *DiskAttributes) DeepCopy() *DiskAttributes
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskAttributes.
func (*DiskAttributes) DeepCopyInto ¶
func (in *DiskAttributes) DeepCopyInto(out *DiskAttributes)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskClaimDescription ¶
type DiskClaimDescription struct { // DiskType represents the type of drive like SSD, HDD etc., // +optional DiskType string `json:"diskType,omitempty"` // Capacity of the disk in bytes Capacity int64 `json:"capacity,omitempty"` }
DiskClaimDescription defines the details of the disk that should be claimed
func (*DiskClaimDescription) DeepCopy ¶
func (in *DiskClaimDescription) DeepCopy() *DiskClaimDescription
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskClaimDescription.
func (*DiskClaimDescription) DeepCopyInto ¶
func (in *DiskClaimDescription) DeepCopyInto(out *DiskClaimDescription)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskClaimStatus ¶
type DiskClaimStatus string
DiskClaimStatus is a typed string for phase field of BlockDeviceClaim.
const ( // LocalDiskClaimStatusEmpty represents that the LocalDiskClaim was just created. DiskClaimStatusEmpty DiskClaimStatus = "" // LocalDiskClaimStatusPending represents LocalDiskClaim has not been assigned devices yet. Rather // search is going on for matching disks. LocalDiskClaimStatusPending DiskClaimStatus = "Pending" // LocalDiskClaimStatusBound represents LocalDiskClaim has been assigned backing disk and ready for use. LocalDiskClaimStatusBound DiskClaimStatus = "Bound" )
LocalDiskClaim CR, when created pass through phases before it got some Disks Assigned.
type FileSystemInfo ¶
type FileSystemInfo struct { // Type represents the FileSystem type of the disk // +optional Type string `json:"fsType,omitempty"` // MountPoint represents the mountpoint of the disk // +optional Mountpoint string `json:"mountPoint,omitempty"` }
FileSystemInfo defines the filesystem type and mountpoint of the disk if it exists
func (*FileSystemInfo) DeepCopy ¶
func (in *FileSystemInfo) DeepCopy() *FileSystemInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileSystemInfo.
func (*FileSystemInfo) DeepCopyInto ¶
func (in *FileSystemInfo) DeepCopyInto(out *FileSystemInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalDisk ¶
type LocalDisk struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LocalDiskSpec `json:"spec,omitempty"` Status LocalDiskStatus `json:"status,omitempty"` }
LocalDisk is the Schema for the localdisks API +kubebuilder:resource:scope=Cluster,shortName=ld +kubebuilder:printcolumn:JSONPath=".spec.nodeName",name=NodeMatch,type=string +kubebuilder:printcolumn:JSONPath=".spec.claimRef.name",name=Claim,type=string +kubebuilder:printcolumn:JSONPath=".status.claimState",name=Phase,type=string
func (*LocalDisk) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDisk.
func (*LocalDisk) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalDisk) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalDiskClaim ¶
type LocalDiskClaim struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LocalDiskClaimSpec `json:"spec,omitempty"` Status LocalDiskClaimStatus `json:"status,omitempty"` }
LocalDiskClaim is the Schema for the localdiskclaims API +kubebuilder:validation:Required +kubebuilder:printcolumn:JSONPath=".spec.nodeName",name=NodeMatch,type=string +kubebuilder:printcolumn:JSONPath=".status.status",name=Phase,type=string +kubebuilder:resource:scope=Cluster,shortName=ldc
func (*LocalDiskClaim) DeepCopy ¶
func (in *LocalDiskClaim) DeepCopy() *LocalDiskClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskClaim.
func (*LocalDiskClaim) DeepCopyInto ¶
func (in *LocalDiskClaim) DeepCopyInto(out *LocalDiskClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalDiskClaim) DeepCopyObject ¶
func (in *LocalDiskClaim) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalDiskClaimList ¶
type LocalDiskClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []LocalDiskClaim `json:"items"` }
LocalDiskClaimList contains a list of LocalDiskClaim
func (*LocalDiskClaimList) DeepCopy ¶
func (in *LocalDiskClaimList) DeepCopy() *LocalDiskClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskClaimList.
func (*LocalDiskClaimList) DeepCopyInto ¶
func (in *LocalDiskClaimList) DeepCopyInto(out *LocalDiskClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalDiskClaimList) DeepCopyObject ¶
func (in *LocalDiskClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalDiskClaimSpec ¶
type LocalDiskClaimSpec struct { // +kubebuilder:validation:Required // NodeName represents where disk has to be claimed. NodeName string `json:"nodeName"` // Description of the disk to be claimed // +optional Description DiskClaimDescription `json:"description,omitempty"` // DiskRefs represents which disks are assigned to the LocalDiskClaim DiskRefs []*v1.ObjectReference `json:"diskRefs,omitempty"` }
LocalDiskClaimSpec defines the desired state of LocalDiskClaim
func (*LocalDiskClaimSpec) DeepCopy ¶
func (in *LocalDiskClaimSpec) DeepCopy() *LocalDiskClaimSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskClaimSpec.
func (*LocalDiskClaimSpec) DeepCopyInto ¶
func (in *LocalDiskClaimSpec) DeepCopyInto(out *LocalDiskClaimSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalDiskClaimState ¶
type LocalDiskClaimState string
LocalDiskClaimState defines the observed state of LocalDisk
const ( // LocalDiskUnclaimed represents that the disk is not bound to any LDC, // and is available for claiming. LocalDiskUnclaimed LocalDiskClaimState = "Unclaimed" // LocalDiskReleased represents that the disk is released from the LDC, LocalDiskReleased LocalDiskClaimState = "Released" // LocalDiskClaimed represents that the disk is bound to a LDC LocalDiskClaimed LocalDiskClaimState = "Claimed" // LocalDiskInUse represents that the disk is in use but not claimed by a LDC LocalDiskInUse LocalDiskClaimState = "Inuse" // LocalDiskReserved represents that the disk will be used in the feature LocalDiskReserved LocalDiskClaimState = "Reserved" )
type LocalDiskClaimStatus ¶
type LocalDiskClaimStatus struct { // Status represents the current statue of the claim Status DiskClaimStatus `json:"status,omitempty"` }
LocalDiskClaimStatus defines the observed state of LocalDiskClaim
func (*LocalDiskClaimStatus) DeepCopy ¶
func (in *LocalDiskClaimStatus) DeepCopy() *LocalDiskClaimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskClaimStatus.
func (*LocalDiskClaimStatus) DeepCopyInto ¶
func (in *LocalDiskClaimStatus) DeepCopyInto(out *LocalDiskClaimStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalDiskList ¶
type LocalDiskList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []LocalDisk `json:"items"` }
LocalDiskList contains a list of LocalDisk
func (*LocalDiskList) DeepCopy ¶
func (in *LocalDiskList) DeepCopy() *LocalDiskList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskList.
func (*LocalDiskList) DeepCopyInto ¶
func (in *LocalDiskList) DeepCopyInto(out *LocalDiskList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalDiskList) DeepCopyObject ¶
func (in *LocalDiskList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalDiskNode ¶ added in v0.1.2
type LocalDiskNode struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LocalDiskNodeSpec `json:"spec,omitempty"` Status LocalDiskNodeStatus `json:"status,omitempty"` }
LocalDiskNode is the Schema for the localdisknodes API +kubebuilder:resource:path=localdisknodes,scope=Cluster,shortName=ldn +kubebuilder:printcolumn:JSONPath=".status.totalDisk",name=TotalDisk,type=integer +kubebuilder:printcolumn:JSONPath=".status.allocatableDisk",name=FreeDisk,type=integer
func (*LocalDiskNode) DeepCopy ¶ added in v0.1.2
func (in *LocalDiskNode) DeepCopy() *LocalDiskNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskNode.
func (*LocalDiskNode) DeepCopyInto ¶ added in v0.1.2
func (in *LocalDiskNode) DeepCopyInto(out *LocalDiskNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalDiskNode) DeepCopyObject ¶ added in v0.1.2
func (in *LocalDiskNode) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalDiskNodeList ¶ added in v0.1.2
type LocalDiskNodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []LocalDiskNode `json:"items"` }
LocalDiskNodeList contains a list of LocalDiskNode
func (*LocalDiskNodeList) DeepCopy ¶ added in v0.1.2
func (in *LocalDiskNodeList) DeepCopy() *LocalDiskNodeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskNodeList.
func (*LocalDiskNodeList) DeepCopyInto ¶ added in v0.1.2
func (in *LocalDiskNodeList) DeepCopyInto(out *LocalDiskNodeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalDiskNodeList) DeepCopyObject ¶ added in v0.1.2
func (in *LocalDiskNodeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalDiskNodeSpec ¶ added in v0.1.2
type LocalDiskNodeSpec struct { // AttachNode represent where disk is attached AttachNode string `json:"attachNode"` }
LocalDiskNodeSpec defines the desired state of LocalDiskNode
func (*LocalDiskNodeSpec) DeepCopy ¶ added in v0.1.2
func (in *LocalDiskNodeSpec) DeepCopy() *LocalDiskNodeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskNodeSpec.
func (*LocalDiskNodeSpec) DeepCopyInto ¶ added in v0.1.2
func (in *LocalDiskNodeSpec) DeepCopyInto(out *LocalDiskNodeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalDiskNodeStatus ¶ added in v0.1.2
type LocalDiskNodeStatus struct { // Disks key is the name of LocalDisk Disks map[string]Disk `json:"disks,omitempty"` // TotalDisk TotalDisk int64 `json:"totalDisk,omitempty"` // AllocatableDisk AllocatableDisk int64 `json:"allocatableDisk,omitempty"` }
LocalDiskNodeStatus defines the observed state of LocalDiskNode
func (*LocalDiskNodeStatus) DeepCopy ¶ added in v0.1.2
func (in *LocalDiskNodeStatus) DeepCopy() *LocalDiskNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskNodeStatus.
func (*LocalDiskNodeStatus) DeepCopyInto ¶ added in v0.1.2
func (in *LocalDiskNodeStatus) DeepCopyInto(out *LocalDiskNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalDiskSpec ¶
type LocalDiskSpec struct { // NodeName represents the node where the disk is attached // +kubebuilder:validation:Required NodeName string `json:"nodeName"` // UUID global unique identifier of the disk UUID string `json:"uuid,omitempty"` // DevicePath is the disk path in the OS DevicePath string `json:"devicePath,omitempty"` // Capacity of the disk in bytes Capacity int64 `json:"capacity,omitempty"` // HasPartition represents if the disk has partitions or not HasPartition bool `json:"partitioned,omitempty"` // PartitionInfo contains partition information // +optional PartitionInfo []PartitionInfo `json:"partitionInfo,omitempty"` // HasRAID identifies if the disk is a raid disk or not HasRAID bool `json:"isRaid,omitempty"` // RAIDInfo contains RAID information // +optional RAIDInfo RAIDInfo `json:"raidInfo,omitempty"` // HasSmartInfo identified if the disk supports SMART or not HasSmartInfo bool `json:"supportSmart,omitempty"` // SmartInfo contains infos collected by smartctl // +optional SmartInfo SmartInfo `json:"smartInfo,omitempty"` // DiskAttributes has hardware/static attributes of the disk DiskAttributes DiskAttributes `json:"diskAttributes,omitempty"` // State is the current state of the disk (Active/Inactive/Unknown) // +kubebuilder:validation:Enum:=Active;Inactive;Unknown State LocalDiskState `json:"state,omitempty"` // ClaimRef is the reference to the LDC which has claimed this LD // +optional ClaimRef *v1.ObjectReference `json:"claimRef,omitempty"` }
LocalDiskSpec defines the desired state of LocalDisk
func (*LocalDiskSpec) DeepCopy ¶
func (in *LocalDiskSpec) DeepCopy() *LocalDiskSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskSpec.
func (*LocalDiskSpec) DeepCopyInto ¶
func (in *LocalDiskSpec) DeepCopyInto(out *LocalDiskSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalDiskState ¶
type LocalDiskState string
LocalDiskState defines the observed state of the local disk
const ( // LocalDiskActive is the state for the disk that is connected LocalDiskActive LocalDiskState = "Active" // LocalDiskInactive is the state for the disk that is disconnected LocalDiskInactive LocalDiskState = "Inactive" // LocalDiskUnknown is the state for the disk that cannot be determined // at this time(whether attached or detached) LocalDiskUnknown LocalDiskState = "Unknown" )
type LocalDiskStatus ¶
type LocalDiskStatus struct { // State represents the claim state of the disk // +kubebuilder:validation:Enum:=Claimed;Unclaimed;Released;Reserved;Inuse State LocalDiskClaimState `json:"claimState,omitempty"` }
LocalDiskStatus defines the observed state of LocalDisk
func (*LocalDiskStatus) DeepCopy ¶
func (in *LocalDiskStatus) DeepCopy() *LocalDiskStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskStatus.
func (*LocalDiskStatus) DeepCopyInto ¶
func (in *LocalDiskStatus) DeepCopyInto(out *LocalDiskStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalDiskVolume ¶ added in v0.1.2
type LocalDiskVolume struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LocalDiskVolumeSpec `json:"spec,omitempty"` Status LocalDiskVolumeStatus `json:"status,omitempty"` }
LocalDiskVolume is the Schema for the localdiskvolumes API +kubebuilder:resource:path=localdiskvolumes,scope=Cluster,shortName=ldv +kubebuilder:printcolumn:JSONPath=".spec.accessibility.node",name=Node,type=string +kubebuilder:printcolumn:JSONPath=".status.devPath",name=Disk,type=string +kubebuilder:printcolumn:JSONPath=".status.allocatedCapacityBytes",name=AllocatedCap,type=integer +kubebuilder:printcolumn:JSONPath=".spec.diskType",name=Type,type=string +kubebuilder:printcolumn:JSONPath=".status.state",name=Status,type=string
func (*LocalDiskVolume) DeepCopy ¶ added in v0.1.2
func (in *LocalDiskVolume) DeepCopy() *LocalDiskVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskVolume.
func (*LocalDiskVolume) DeepCopyInto ¶ added in v0.1.2
func (in *LocalDiskVolume) DeepCopyInto(out *LocalDiskVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalDiskVolume) DeepCopyObject ¶ added in v0.1.2
func (in *LocalDiskVolume) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalDiskVolumeList ¶ added in v0.1.2
type LocalDiskVolumeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []LocalDiskVolume `json:"items"` }
LocalDiskVolumeList contains a list of LocalDiskVolume
func (*LocalDiskVolumeList) DeepCopy ¶ added in v0.1.2
func (in *LocalDiskVolumeList) DeepCopy() *LocalDiskVolumeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskVolumeList.
func (*LocalDiskVolumeList) DeepCopyInto ¶ added in v0.1.2
func (in *LocalDiskVolumeList) DeepCopyInto(out *LocalDiskVolumeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalDiskVolumeList) DeepCopyObject ¶ added in v0.1.2
func (in *LocalDiskVolumeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalDiskVolumeSpec ¶ added in v0.1.2
type LocalDiskVolumeSpec struct { // DiskType represents the type of drive like SSD, HDD etc., DiskType string `json:"diskType"` // RequiredCapacityBytes RequiredCapacityBytes int64 `json:"requiredCapacityBytes,omitempty"` // Accessibility is the topology requirement of the volume. It describes how to locate and distribute the volume replicas Accessibility AccessibilityTopology `json:"accessibility,omitempty"` // PersistentVolumeClaimName is the reference of the associated PVC PersistentVolumeClaimName string `json:"persistentVolumeClaimName,omitempty"` }
LocalDiskVolumeSpec defines the desired state of LocalDiskVolume
func (*LocalDiskVolumeSpec) DeepCopy ¶ added in v0.1.2
func (in *LocalDiskVolumeSpec) DeepCopy() *LocalDiskVolumeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskVolumeSpec.
func (*LocalDiskVolumeSpec) DeepCopyInto ¶ added in v0.1.2
func (in *LocalDiskVolumeSpec) DeepCopyInto(out *LocalDiskVolumeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalDiskVolumeStatus ¶ added in v0.1.2
type LocalDiskVolumeStatus struct { // LocalDiskName is disk name which is used to create this volume LocalDiskName string `json:"localDiskName,omitempty"` // DevPath is the disk path in the OS DevPath string `json:"devPath"` // AllocatedCapacityBytes is the real allocated capacity in bytes AllocatedCapacityBytes int64 `json:"allocatedCapacityBytes,omitempty"` // MountPoints MountPoints []MountPoint `json:"mountPoints,omitempty"` // State is the phase of volume replica, e.g. Creating, Ready, NotReady, ToBeDeleted, Deleted State State `json:"state,omitempty"` }
LocalDiskVolumeStatus defines the observed state of LocalDiskVolume
func (*LocalDiskVolumeStatus) DeepCopy ¶ added in v0.1.2
func (in *LocalDiskVolumeStatus) DeepCopy() *LocalDiskVolumeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalDiskVolumeStatus.
func (*LocalDiskVolumeStatus) DeepCopyInto ¶ added in v0.1.2
func (in *LocalDiskVolumeStatus) DeepCopyInto(out *LocalDiskVolumeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MountPoint ¶ added in v0.1.2
type MountPoint struct { // TargetPath TargetPath string `json:"targetPath,omitempty"` // VolumeCap VolumeCap VolumeCapability `json:"volumeCap,omitempty"` // FsTye FsTye string `json:"fsTye,omitempty"` // MountOptions MountOptions []string `json:"mountOptions,omitempty"` // Phase indicates the volume's next or current operation Phase State `json:"phase,omitempty"` }
MountPoint
func (*MountPoint) DeepCopy ¶ added in v0.1.2
func (in *MountPoint) DeepCopy() *MountPoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MountPoint.
func (*MountPoint) DeepCopyInto ¶ added in v0.1.2
func (in *MountPoint) DeepCopyInto(out *MountPoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PartitionInfo ¶
type PartitionInfo struct { // Path represents the partition path in the OS Path string `json:"path"` // HasFileSystem represents whether the filesystem is included HasFileSystem bool `json:"hasFileSystem"` // FileSystem contains mount point and filesystem type // +optional FileSystem FileSystemInfo `json:"filesystem,omitempty"` }
PartitionInfo contains partition information(e.g. FileSystem)
func (*PartitionInfo) DeepCopy ¶
func (in *PartitionInfo) DeepCopy() *PartitionInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionInfo.
func (*PartitionInfo) DeepCopyInto ¶
func (in *PartitionInfo) DeepCopyInto(out *PartitionInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RAIDInfo ¶
type RAIDInfo struct { // RAIDMaster is the master of the RAID disk, it works for only RAID slave disk, e.g. /dev/bus/0 RAIDMaster string `json:"raidMaster,omitempty"` }
RAIDInfo contains infos of raid
func (*RAIDInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RAIDInfo.
func (*RAIDInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SmartAssessResult ¶
type SmartAssessResult string
SmartAssessResult defines the result of self-assessment test
const ( // // AssessPassed indicates the disk is healthy AssessPassed SmartAssessResult = "Passed" // AssessFailed indicates the disk is unhealthy AssessFailed SmartAssessResult = "Failed" )
type SmartInfo ¶
type SmartInfo struct { // OverallHealth identifies if the disk is healthy or not OverallHealth SmartAssessResult `json:"overallHealth"` }
SmartInfo contains info collected by smartctl
func (*SmartInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SmartInfo.
func (*SmartInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type State ¶ added in v0.1.2
type State string
State is state type of resources
const ( // blow state is for mountpoint MountPointStateEmpty State = "" MountPointToBeMounted State = "ToBeMounted" MountPointToBeUnMount State = "ToBeUnMount" MountPointMounted State = "Mounted" MountPointNotReady State = "NotReady" // blow state is for volume crd VolumeStateEmpty State = "" VolumeStateCreated State = "Created" VolumeStateReady State = "Ready" VolumeStateNotReady State = "NotReady" VolumeStateToBeUnmount State = "ToBeUnmount" VolumeStateToBeDeleted State = "ToBeDeleted" VolumeStateDeleted State = "Deleted" )
type VolumeAccessMode ¶ added in v0.1.2
type VolumeAccessMode int32
type VolumeAccessType ¶ added in v0.1.2
type VolumeAccessType string
type VolumeCapability ¶ added in v0.1.2
type VolumeCapability struct { AccessMode VolumeAccessMode `json:"accessMode,omitempty"` AccessType VolumeAccessType `json:"accessType,omitempty"` }
func (*VolumeCapability) DeepCopy ¶ added in v0.1.2
func (in *VolumeCapability) DeepCopy() *VolumeCapability
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeCapability.
func (*VolumeCapability) DeepCopyInto ¶ added in v0.1.2
func (in *VolumeCapability) DeepCopyInto(out *VolumeCapability)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.