Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +groupName=direct.csi.min.io
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Resource(resource string) schema.GroupResource
- type DirectCSIDrive
- type DirectCSIDriveCondition
- type DirectCSIDriveList
- type DirectCSIDriveReason
- type DirectCSIDriveSpec
- type DirectCSIDriveStatus
- type DirectCSIVolume
- type DirectCSIVolumeCondition
- type DirectCSIVolumeList
- type DirectCSIVolumeReason
- type DirectCSIVolumeStatus
- type DriveStatus
- type RequestedFormat
Constants ¶
const ( Group = "direct.csi.min.io" Version = "v1alpha1" )
const ( DirectCSIVolumeFinalizerPVProtection = Group + "/pv-protection" DirectCSIVolumeFinalizerPurgeProtection = Group + "/purge-protection" DirectCSIDriveFinalizerDataProtection = Group + "/data-protection" DirectCSIDriveFinalizerPrefix = Group + ".volume/" )
const ( DirectCSIDriveConditionOwned DirectCSIDriveCondition = "Owned" DirectCSIDriveConditionMounted = "Mounted" DirectCSIDriveConditionFormatted = "Formatted" DirectCSIDriveConditionInitialized = "Initialized" )
const ( DirectCSIDriveReasonNotAdded DirectCSIDriveReason = "NotAdded" DirectCSIDriveReasonAdded = "Added" DirectCSIDriveReasonInitialized = "Initialized" )
const ( DriveStatusInUse DriveStatus = "InUse" DriveStatusAvailable = "Available" DriveStatusReady = "Ready" DriveStatusTerminating = "Terminating" )
Variables ¶
var ( // SchemeBuilder points to a list of functions added to Scheme. SchemeBuilder runtime.SchemeBuilder // AddToScheme applies all stored functions to Scheme. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type DirectCSIDrive ¶
type DirectCSIDrive struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec DirectCSIDriveSpec `json:"spec"` Status DirectCSIDriveStatus `json:"status,omitempty"` }
func (*DirectCSIDrive) DeepCopy ¶
func (in *DirectCSIDrive) DeepCopy() *DirectCSIDrive
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectCSIDrive.
func (*DirectCSIDrive) DeepCopyInto ¶
func (in *DirectCSIDrive) DeepCopyInto(out *DirectCSIDrive)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DirectCSIDrive) DeepCopyObject ¶
func (in *DirectCSIDrive) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DirectCSIDriveCondition ¶
type DirectCSIDriveCondition string
type DirectCSIDriveList ¶
type DirectCSIDriveList struct { metav1.TypeMeta `json:",inline"` // metdata is the standard list metadata. // +optional metav1.ListMeta `json:"metadata"` Items []DirectCSIDrive `json:"items"` }
func (*DirectCSIDriveList) DeepCopy ¶
func (in *DirectCSIDriveList) DeepCopy() *DirectCSIDriveList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectCSIDriveList.
func (*DirectCSIDriveList) DeepCopyInto ¶
func (in *DirectCSIDriveList) DeepCopyInto(out *DirectCSIDriveList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DirectCSIDriveList) DeepCopyObject ¶
func (in *DirectCSIDriveList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DirectCSIDriveReason ¶
type DirectCSIDriveReason string
type DirectCSIDriveSpec ¶
type DirectCSIDriveSpec struct { // +optional RequestedFormat *RequestedFormat `json:"requestedFormat,omitempty"` // required DirectCSIOwned bool `json:"directCSIOwned"` // +optional DriveTaint map[string]string `json:"driveTaint,omitempty"` }
func (*DirectCSIDriveSpec) DeepCopy ¶
func (in *DirectCSIDriveSpec) DeepCopy() *DirectCSIDriveSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectCSIDriveSpec.
func (*DirectCSIDriveSpec) DeepCopyInto ¶
func (in *DirectCSIDriveSpec) DeepCopyInto(out *DirectCSIDriveSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DirectCSIDriveStatus ¶
type DirectCSIDriveStatus struct { Path string `json:"path"` // +optional AllocatedCapacity int64 `json:"allocatedCapacity,omitempty"` // +optional FreeCapacity int64 `json:"freeCapacity,omitempty"` // +optional RootPartition string `json:"rootPartition,omitempty"` // +optional PartitionNum int `json:"partitionNum,omitempty"` // +optional Filesystem string `json:"filesystem,omitempty"` // +optional Mountpoint string `json:"mountpoint,omitempty"` // +listType=atomic // +optional MountOptions []string `json:"mountOptions,omitempty"` // +optional NodeName string `json:"nodeName"` // +optional DriveStatus DriveStatus `json:"driveStatus,omitempty"` // +optional ModelNumber string `json:"modelNumber,omitempty"` // +optional SerialNumber string `json:"serialNumber,omitempty"` // +optional TotalCapacity int64 `json:"totalCapacity,omitempty"` // +optional PhysicalBlockSize int64 `json:"physicalBlockSize,omitempty"` // +optional LogicalBlockSize int64 `json:"logicalBlockSize,omitempty"` // +optional Topology map[string]string `json:"topology,omitempty"` // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` }
func (*DirectCSIDriveStatus) DeepCopy ¶
func (in *DirectCSIDriveStatus) DeepCopy() *DirectCSIDriveStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectCSIDriveStatus.
func (*DirectCSIDriveStatus) DeepCopyInto ¶
func (in *DirectCSIDriveStatus) DeepCopyInto(out *DirectCSIDriveStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DirectCSIVolume ¶
type DirectCSIVolume struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Status DirectCSIVolumeStatus `json:"status,omitempty"` }
func (*DirectCSIVolume) DeepCopy ¶
func (in *DirectCSIVolume) DeepCopy() *DirectCSIVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectCSIVolume.
func (*DirectCSIVolume) DeepCopyInto ¶
func (in *DirectCSIVolume) DeepCopyInto(out *DirectCSIVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DirectCSIVolume) DeepCopyObject ¶
func (in *DirectCSIVolume) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DirectCSIVolumeCondition ¶
type DirectCSIVolumeCondition string
const ( DirectCSIVolumeConditionPublished DirectCSIVolumeCondition = "Published" DirectCSIVolumeConditionStaged = "Staged" )
type DirectCSIVolumeList ¶
type DirectCSIVolumeList struct { metav1.TypeMeta `json:",inline"` // metdata is the standard list metadata. // +optional metav1.ListMeta `json:"metadata"` Items []DirectCSIVolume `json:"items"` }
func (*DirectCSIVolumeList) DeepCopy ¶
func (in *DirectCSIVolumeList) DeepCopy() *DirectCSIVolumeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectCSIVolumeList.
func (*DirectCSIVolumeList) DeepCopyInto ¶
func (in *DirectCSIVolumeList) DeepCopyInto(out *DirectCSIVolumeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DirectCSIVolumeList) DeepCopyObject ¶
func (in *DirectCSIVolumeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DirectCSIVolumeReason ¶
type DirectCSIVolumeReason string
const ( DirectCSIVolumeReasonNotInUse DirectCSIVolumeReason = "NotInUse" DirectCSIVolumeReasonInUse = "InUse" )
type DirectCSIVolumeStatus ¶
type DirectCSIVolumeStatus struct { // +optional Drive string `json:"drive,omitempty"` // +optional NodeName string `json:"nodeName,omitempty"` // +optional HostPath string `json:"hostPath,omitempty"` // +optional StagingPath string `json:"stagingPath,omitempty"` // +optional ContainerPath string `json:"containerPath,omitempty"` // +optional TotalCapacity int64 `json:"totalCapacity"` // +optional AvailableCapacity int64 `json:"availableCapacity"` // +optional UsedCapacity int64 `json:"usedCapacity"` // +optional // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` }
func (*DirectCSIVolumeStatus) DeepCopy ¶
func (in *DirectCSIVolumeStatus) DeepCopy() *DirectCSIVolumeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectCSIVolumeStatus.
func (*DirectCSIVolumeStatus) DeepCopyInto ¶
func (in *DirectCSIVolumeStatus) DeepCopyInto(out *DirectCSIVolumeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DriveStatus ¶
type DriveStatus string
type RequestedFormat ¶
type RequestedFormat struct { // +optional Force bool `json:"force,omitempty"` // +optional Purge bool `json:"purge,omitempty"` // +optional Filesystem string `json:"filesystem,omitempty"` // +optional Mountpoint string `json:"mountpoint,omitempty"` // +listType=atomic // +optional MountOptions []string `json:"mountOptions,omitempty"` }
func (*RequestedFormat) DeepCopy ¶
func (in *RequestedFormat) DeepCopy() *RequestedFormat
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequestedFormat.
func (*RequestedFormat) DeepCopyInto ¶
func (in *RequestedFormat) DeepCopyInto(out *RequestedFormat)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.