v1beta1

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: AGPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Group   = "direct.csi.min.io"
	Version = "v1beta1"
)
View Source
const (
	DirectCSIVolumeFinalizerPVProtection    = Group + "/pv-protection"
	DirectCSIVolumeFinalizerPurgeProtection = Group + "/purge-protection"

	DirectCSIDriveFinalizerDataProtection = Group + "/data-protection"
	DirectCSIDriveFinalizerPrefix         = Group + ".volume/"
)

Variables

View Source
var (
	// SchemeBuilder points to a list of functions added to Scheme.
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme applies all stored functions to Scheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_v1alpha1_DirectCSIDriveList_To_v1beta1_DirectCSIDriveList

func Convert_v1alpha1_DirectCSIDriveList_To_v1beta1_DirectCSIDriveList(in *v1alpha1.DirectCSIDriveList, out *DirectCSIDriveList, s conversion.Scope) error

Convert_v1alpha1_DirectCSIDriveList_To_v1beta1_DirectCSIDriveList is an autogenerated conversion function.

func Convert_v1alpha1_DirectCSIDriveSpec_To_v1beta1_DirectCSIDriveSpec

func Convert_v1alpha1_DirectCSIDriveSpec_To_v1beta1_DirectCSIDriveSpec(in *v1alpha1.DirectCSIDriveSpec, out *DirectCSIDriveSpec, s conversion.Scope) error

Convert_v1alpha1_DirectCSIDriveSpec_To_v1beta1_DirectCSIDriveSpec is an autogenerated conversion function.

func Convert_v1alpha1_DirectCSIDriveStatus_To_v1beta1_DirectCSIDriveStatus

func Convert_v1alpha1_DirectCSIDriveStatus_To_v1beta1_DirectCSIDriveStatus(in *v1alpha1.DirectCSIDriveStatus, out *DirectCSIDriveStatus, s conversion.Scope) error

Convert_v1alpha1_DirectCSIDriveStatus_To_v1beta1_DirectCSIDriveStatus is an autogenerated conversion function.

func Convert_v1alpha1_DirectCSIDrive_To_v1beta1_DirectCSIDrive

func Convert_v1alpha1_DirectCSIDrive_To_v1beta1_DirectCSIDrive(in *v1alpha1.DirectCSIDrive, out *DirectCSIDrive, s conversion.Scope) error

Convert_v1alpha1_DirectCSIDrive_To_v1beta1_DirectCSIDrive is an autogenerated conversion function.

func Convert_v1alpha1_DirectCSIVolumeList_To_v1beta1_DirectCSIVolumeList

func Convert_v1alpha1_DirectCSIVolumeList_To_v1beta1_DirectCSIVolumeList(in *v1alpha1.DirectCSIVolumeList, out *DirectCSIVolumeList, s conversion.Scope) error

Convert_v1alpha1_DirectCSIVolumeList_To_v1beta1_DirectCSIVolumeList is an autogenerated conversion function.

func Convert_v1alpha1_DirectCSIVolumeStatus_To_v1beta1_DirectCSIVolumeStatus

func Convert_v1alpha1_DirectCSIVolumeStatus_To_v1beta1_DirectCSIVolumeStatus(in *v1alpha1.DirectCSIVolumeStatus, out *DirectCSIVolumeStatus, s conversion.Scope) error

Convert_v1alpha1_DirectCSIVolumeStatus_To_v1beta1_DirectCSIVolumeStatus is an autogenerated conversion function.

func Convert_v1alpha1_DirectCSIVolume_To_v1beta1_DirectCSIVolume

func Convert_v1alpha1_DirectCSIVolume_To_v1beta1_DirectCSIVolume(in *v1alpha1.DirectCSIVolume, out *DirectCSIVolume, s conversion.Scope) error

Convert_v1alpha1_DirectCSIVolume_To_v1beta1_DirectCSIVolume is an autogenerated conversion function.

func Convert_v1alpha1_RequestedFormat_To_v1beta1_RequestedFormat

func Convert_v1alpha1_RequestedFormat_To_v1beta1_RequestedFormat(in *v1alpha1.RequestedFormat, out *RequestedFormat, s conversion.Scope) error

Convert_v1alpha1_RequestedFormat_To_v1beta1_RequestedFormat is an autogenerated conversion function.

func Convert_v1beta1_DirectCSIDriveList_To_v1alpha1_DirectCSIDriveList

func Convert_v1beta1_DirectCSIDriveList_To_v1alpha1_DirectCSIDriveList(in *DirectCSIDriveList, out *v1alpha1.DirectCSIDriveList, s conversion.Scope) error

Convert_v1beta1_DirectCSIDriveList_To_v1alpha1_DirectCSIDriveList is an autogenerated conversion function.

func Convert_v1beta1_DirectCSIDriveSpec_To_v1alpha1_DirectCSIDriveSpec

func Convert_v1beta1_DirectCSIDriveSpec_To_v1alpha1_DirectCSIDriveSpec(in *DirectCSIDriveSpec, out *v1alpha1.DirectCSIDriveSpec, s conversion.Scope) error

Convert_v1beta1_DirectCSIDriveSpec_To_v1alpha1_DirectCSIDriveSpec is an autogenerated conversion function.

func Convert_v1beta1_DirectCSIDriveStatus_To_v1alpha1_DirectCSIDriveStatus

func Convert_v1beta1_DirectCSIDriveStatus_To_v1alpha1_DirectCSIDriveStatus(in *DirectCSIDriveStatus, out *v1alpha1.DirectCSIDriveStatus, s conversion.Scope) error

Convert_v1beta1_DirectCSIDriveStatus_To_v1alpha1_DirectCSIDriveStatus is an autogenerated conversion function.

func Convert_v1beta1_DirectCSIDrive_To_v1alpha1_DirectCSIDrive

func Convert_v1beta1_DirectCSIDrive_To_v1alpha1_DirectCSIDrive(in *DirectCSIDrive, out *v1alpha1.DirectCSIDrive, s conversion.Scope) error

Convert_v1beta1_DirectCSIDrive_To_v1alpha1_DirectCSIDrive is an autogenerated conversion function.

func Convert_v1beta1_DirectCSIVolumeList_To_v1alpha1_DirectCSIVolumeList

func Convert_v1beta1_DirectCSIVolumeList_To_v1alpha1_DirectCSIVolumeList(in *DirectCSIVolumeList, out *v1alpha1.DirectCSIVolumeList, s conversion.Scope) error

Convert_v1beta1_DirectCSIVolumeList_To_v1alpha1_DirectCSIVolumeList is an autogenerated conversion function.

func Convert_v1beta1_DirectCSIVolumeStatus_To_v1alpha1_DirectCSIVolumeStatus

func Convert_v1beta1_DirectCSIVolumeStatus_To_v1alpha1_DirectCSIVolumeStatus(in *DirectCSIVolumeStatus, out *v1alpha1.DirectCSIVolumeStatus, s conversion.Scope) error

Convert_v1beta1_DirectCSIVolumeStatus_To_v1alpha1_DirectCSIVolumeStatus is an autogenerated conversion function.

func Convert_v1beta1_DirectCSIVolume_To_v1alpha1_DirectCSIVolume

func Convert_v1beta1_DirectCSIVolume_To_v1alpha1_DirectCSIVolume(in *DirectCSIVolume, out *v1alpha1.DirectCSIVolume, s conversion.Scope) error

Convert_v1beta1_DirectCSIVolume_To_v1alpha1_DirectCSIVolume is an autogenerated conversion function.

func Convert_v1beta1_RequestedFormat_To_v1alpha1_RequestedFormat

func Convert_v1beta1_RequestedFormat_To_v1alpha1_RequestedFormat(in *RequestedFormat, out *v1alpha1.RequestedFormat, s conversion.Scope) error

Convert_v1beta1_RequestedFormat_To_v1alpha1_RequestedFormat is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AccessTier

type AccessTier string
const (
	AccessTierWarm    AccessTier = "Warm"
	AccessTierHot     AccessTier = "Hot"
	AccessTierCold    AccessTier = "Cold"
	AccessTierUnknown AccessTier = "Unknown"
)

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.

func (*DirectCSIDrive) MatchAccessTier

func (drive *DirectCSIDrive) MatchAccessTier(accessTierList []AccessTier) bool

func (*DirectCSIDrive) MatchGlob

func (drive *DirectCSIDrive) MatchGlob(nodes, drives, status []string) bool

type DirectCSIDriveCondition

type DirectCSIDriveCondition string
const (
	DirectCSIDriveConditionOwned       DirectCSIDriveCondition = "Owned"
	DirectCSIDriveConditionMounted     DirectCSIDriveCondition = "Mounted"
	DirectCSIDriveConditionFormatted   DirectCSIDriveCondition = "Formatted"
	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"`
}

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 DirectCSIDriveMessage

type DirectCSIDriveMessage string
const (
	DirectCSIDriveMessageMounted      DirectCSIDriveMessage = "Mounted"
	DirectCSIDriveMessageNotMounted   DirectCSIDriveMessage = "NotMounted"
	DirectCSIDriveMessageFormatted    DirectCSIDriveMessage = "Formatted"
	DirectCSIDriveMessageNotFormatted DirectCSIDriveMessage = "NotFormatted"
)

type DirectCSIDriveReason

type DirectCSIDriveReason string
const (
	DirectCSIDriveReasonNotAdded    DirectCSIDriveReason = "NotAdded"
	DirectCSIDriveReasonAdded       DirectCSIDriveReason = "Added"
	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"`
}

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
	AccessTier AccessTier `json:"accessTier,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

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.

func (*DirectCSIVolume) MatchPodName added in v1.3.4

func (volume *DirectCSIVolume) MatchPodName(patterns []string) bool

MatchPodName matches pod name of this volume with atleast of the patterns.

func (*DirectCSIVolume) MatchPodNamespace added in v1.3.4

func (volume *DirectCSIVolume) MatchPodNamespace(patterns []string) bool

MatchPodNamespace matches pod namespace of this volume with atleast of the patterns.

func (*DirectCSIVolume) MatchStatus

func (volume *DirectCSIVolume) MatchStatus(statusList []string) bool

type DirectCSIVolumeCondition

type DirectCSIVolumeCondition string
const (
	DirectCSIVolumeConditionPublished DirectCSIVolumeCondition = "Published"
	DirectCSIVolumeConditionStaged    DirectCSIVolumeCondition = "Staged"
	DirectCSIVolumeConditionReady     DirectCSIVolumeCondition = "Ready"
)

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    DirectCSIVolumeReason = "InUse"
	DirectCSIVolumeReasonReady    DirectCSIVolumeReason = "Ready"
	DirectCSIVolumeReasonNotReady DirectCSIVolumeReason = "NotReady"
)

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

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
const (
	DriveStatusInUse       DriveStatus = "InUse"
	DriveStatusAvailable   DriveStatus = "Available"
	DriveStatusUnavailable DriveStatus = "Unavailable"
	DriveStatusReady       DriveStatus = "Ready"
	DriveStatusTerminating DriveStatus = "Terminating"
	DriveStatusReleased    DriveStatus = "Released"
)

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.

Jump to

Keyboard shortcuts

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