Documentation ¶
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 denotes group name. Group = "direct.csi.min.io" // Version denotes API version. Version = "v1alpha1" )
const ( // DirectCSIVolumeFinalizerPVProtection denotes PV protection finalizer. DirectCSIVolumeFinalizerPVProtection = Group + "/pv-protection" // DirectCSIVolumeFinalizerPurgeProtection denotes purge protection finalizer. DirectCSIVolumeFinalizerPurgeProtection = Group + "/purge-protection" // DirectCSIDriveFinalizerDataProtection denotes data protection finalizer. DirectCSIDriveFinalizerDataProtection = Group + "/data-protection" // DirectCSIDriveFinalizerPrefix denotes prefix finalizer. DirectCSIDriveFinalizerPrefix = Group + ".volume/" )
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"` }
DirectCSIDrive denotes drive CRD object.
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
DirectCSIDriveCondition denotes drive condition.
const ( // DirectCSIDriveConditionOwned denotes "Owned" drive condition. DirectCSIDriveConditionOwned DirectCSIDriveCondition = "Owned" // DirectCSIDriveConditionMounted denotes "Mounted" drive condition. DirectCSIDriveConditionMounted DirectCSIDriveCondition = "Mounted" // DirectCSIDriveConditionFormatted denotes "Formatted" drive condition. DirectCSIDriveConditionFormatted DirectCSIDriveCondition = "Formatted" // DirectCSIDriveConditionInitialized denotes "Initialized" drive condition. DirectCSIDriveConditionInitialized DirectCSIDriveCondition = "Initialized" )
type DirectCSIDriveList ¶
type DirectCSIDriveList struct { metav1.TypeMeta `json:",inline"` // metdata is the standard list metadata. // +optional metav1.ListMeta `json:"metadata"` Items []DirectCSIDrive `json:"items"` }
DirectCSIDriveList denotes list of drives.
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
DirectCSIDriveReason denotes drive reason.
const ( // DirectCSIDriveReasonNotAdded denotes "NotAdded" drive reason. DirectCSIDriveReasonNotAdded DirectCSIDriveReason = "NotAdded" // DirectCSIDriveReasonAdded denotes "Added" drive reason. DirectCSIDriveReasonAdded DirectCSIDriveReason = "Added" // DirectCSIDriveReasonInitialized denotes "Initialized" drive reason. DirectCSIDriveReasonInitialized DirectCSIDriveReason = "Initialized" )
type DirectCSIDriveSpec ¶
type DirectCSIDriveSpec struct { // +optional RequestedFormat *RequestedFormat `json:"requestedFormat,omitempty"` // required DirectCSIOwned bool `json:"directCSIOwned"` // +optional DriveTaint map[string]string `json:"driveTaint,omitempty"` }
DirectCSIDriveSpec denotes drive specification.
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"` }
DirectCSIDriveStatus denotes drive information.
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"` }
DirectCSIVolume denotes volume CRD object.
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
DirectCSIVolumeCondition denotes volume condition.
const ( // DirectCSIVolumeConditionPublished denotes "Published" volume condition. DirectCSIVolumeConditionPublished DirectCSIVolumeCondition = "Published" // DirectCSIVolumeConditionStaged denotes "Staged" volume condition. DirectCSIVolumeConditionStaged DirectCSIVolumeCondition = "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"` }
DirectCSIVolumeList denotes list of volumes.
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
DirectCSIVolumeReason denotes volume reason.
const ( // DirectCSIVolumeReasonNotInUse denotes "NotInUse" volume reason. DirectCSIVolumeReasonNotInUse DirectCSIVolumeReason = "NotInUse" // DirectCSIVolumeReasonInUse denotes "InUse" volume reason. DirectCSIVolumeReasonInUse DirectCSIVolumeReason = "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"` }
DirectCSIVolumeStatus denotes volume information.
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
DriveStatus denotes drive status.
const ( // DriveStatusInUse denotes "InUse" drive status. DriveStatusInUse DriveStatus = "InUse" // DriveStatusAvailable denotes "Available" drive status. DriveStatusAvailable DriveStatus = "Available" DriveStatusUnavailable DriveStatus = "Unavailable" // DriveStatusReady denotes "Ready" drive status. DriveStatusReady DriveStatus = "Ready" // DriveStatusTerminating denotes "Terminating" drive status. DriveStatusTerminating DriveStatus = "Terminating" )
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"` }
RequestedFormat denotes drive format request information.
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.