drivecrd

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package drivecrd contains API Schema definitions for the drive v1 API group +groupName=csi-baremetal.dell.com +versionName=v1

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersionDrive is group version used to register these objects
	GroupVersionDrive = schema.GroupVersion{Group: v1.CSICRsGroupVersion, Version: v1.Version}

	// SchemeBuilderDrive is used to add go types to the GroupVersionKind scheme
	SchemeBuilderDrive = &crScheme.Builder{GroupVersion: GroupVersionDrive}

	// AddToSchemeDrive adds the types in this group-version to the given scheme.
	AddToSchemeDrive = SchemeBuilderDrive.AddToScheme
)

Functions

This section is empty.

Types

type Drive

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

	Spec api.Drive `json:"spec,omitempty"`
}

Drive is the Schema for the drives API +kubebuilder:resource:scope=Cluster +kubebuilder:printcolumn:name="SIZE",type="string",JSONPath=".spec.Size",description="Drive capacity" +kubebuilder:printcolumn:name="TYPE",type="string",JSONPath=".spec.Type",description="Drive type (HDD/LVG/NVME)" +kubebuilder:printcolumn:name="HEALTH",type="string",JSONPath=".spec.Health",description="Drive health status" +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".spec.Status",description="Drive status online/offline",priority=1 +kubebuilder:printcolumn:name="USAGE",type="string",JSONPath=".spec.Usage",description="Drive usage",priority=1 +kubebuilder:printcolumn:name="SYSTEM",type="string",JSONPath=".spec.IsSystem",description="Is system disk",priority=1 +kubebuilder:printcolumn:name="PATH",type="string",JSONPath=".spec.Path",description="Drive path",priority=1 +kubebuilder:printcolumn:name="SERIAL NUMBER",type="string",JSONPath=".spec.SerialNumber",description="Drive serial number" +kubebuilder:printcolumn:name="NODE",type="string",JSONPath=".spec.NodeId",description="Drive node location" +kubebuilder:printcolumn:name="SLOT",type="string",JSONPath=".spec.Slot",description="Drive slot" +kubebuilder:printcolumn:name="Security Status",type="string",JSONPath=".spec.SecurityStatus",description="SED drive security status" +kubebuilder:printcolumn:name="Encryption Capable",type="string",JSONPath=".spec.EncryptionCapable",description="SED drive or not" +kubebuilder:printcolumn:name="Encryption Protocol",type="string",JSONPath=".spec.EncryptionProtocol",description="SED encryption protocol"

func (*Drive) DeepCopy

func (in *Drive) DeepCopy() *Drive

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

func (*Drive) DeepCopyInto

func (in *Drive) DeepCopyInto(out *Drive)

Need to declare this method because api.Volume doesn't have DeepCopyInto

func (*Drive) DeepCopyObject

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

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

func (*Drive) Equals

func (in *Drive) Equals(drive *api.Drive) bool

func (*Drive) GetDriveDescription

func (in *Drive) GetDriveDescription() string

type DriveList

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

DriveList contains a list of Drive +kubebuilder:object:generate=true

func (*DriveList) DeepCopy

func (in *DriveList) DeepCopy() *DriveList

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

func (*DriveList) DeepCopyInto

func (in *DriveList) DeepCopyInto(out *DriveList)

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

func (*DriveList) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

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