Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group +kubebuilder:object:generate=true +groupName=storage.api.onmetal.de
Index ¶
- Variables
- func Convert_storage_VolumeAccess_To_v1alpha1_VolumeAccess(in *storage.VolumeAccess, out *VolumeAccess, s conversion.Scope) error
- func Convert_storage_VolumeClassList_To_v1alpha1_VolumeClassList(in *storage.VolumeClassList, out *VolumeClassList, s conversion.Scope) error
- func Convert_storage_VolumeClass_To_v1alpha1_VolumeClass(in *storage.VolumeClass, out *VolumeClass, s conversion.Scope) error
- func Convert_storage_VolumeCondition_To_v1alpha1_VolumeCondition(in *storage.VolumeCondition, out *VolumeCondition, s conversion.Scope) error
- func Convert_storage_VolumeList_To_v1alpha1_VolumeList(in *storage.VolumeList, out *VolumeList, s conversion.Scope) error
- func Convert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition(in *storage.VolumePoolCondition, out *VolumePoolCondition, s conversion.Scope) error
- func Convert_storage_VolumePoolList_To_v1alpha1_VolumePoolList(in *storage.VolumePoolList, out *VolumePoolList, s conversion.Scope) error
- func Convert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec(in *storage.VolumePoolSpec, out *VolumePoolSpec, s conversion.Scope) error
- func Convert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus(in *storage.VolumePoolStatus, out *VolumePoolStatus, s conversion.Scope) error
- func Convert_storage_VolumePool_To_v1alpha1_VolumePool(in *storage.VolumePool, out *VolumePool, s conversion.Scope) error
- func Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(in *storage.VolumeSpec, out *VolumeSpec, s conversion.Scope) error
- func Convert_storage_VolumeStatus_To_v1alpha1_VolumeStatus(in *storage.VolumeStatus, out *VolumeStatus, s conversion.Scope) error
- func Convert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec(in *storage.VolumeTemplateSpec, out *VolumeTemplateSpec, s conversion.Scope) error
- func Convert_storage_Volume_To_v1alpha1_Volume(in *storage.Volume, out *Volume, s conversion.Scope) error
- func Convert_v1alpha1_VolumeAccess_To_storage_VolumeAccess(in *VolumeAccess, out *storage.VolumeAccess, s conversion.Scope) error
- func Convert_v1alpha1_VolumeClassList_To_storage_VolumeClassList(in *VolumeClassList, out *storage.VolumeClassList, s conversion.Scope) error
- func Convert_v1alpha1_VolumeClass_To_storage_VolumeClass(in *VolumeClass, out *storage.VolumeClass, s conversion.Scope) error
- func Convert_v1alpha1_VolumeCondition_To_storage_VolumeCondition(in *VolumeCondition, out *storage.VolumeCondition, s conversion.Scope) error
- func Convert_v1alpha1_VolumeList_To_storage_VolumeList(in *VolumeList, out *storage.VolumeList, s conversion.Scope) error
- func Convert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition(in *VolumePoolCondition, out *storage.VolumePoolCondition, s conversion.Scope) error
- func Convert_v1alpha1_VolumePoolList_To_storage_VolumePoolList(in *VolumePoolList, out *storage.VolumePoolList, s conversion.Scope) error
- func Convert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec(in *VolumePoolSpec, out *storage.VolumePoolSpec, s conversion.Scope) error
- func Convert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus(in *VolumePoolStatus, out *storage.VolumePoolStatus, s conversion.Scope) error
- func Convert_v1alpha1_VolumePool_To_storage_VolumePool(in *VolumePool, out *storage.VolumePool, s conversion.Scope) error
- func Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(in *VolumeSpec, out *storage.VolumeSpec, s conversion.Scope) error
- func Convert_v1alpha1_VolumeStatus_To_storage_VolumeStatus(in *VolumeStatus, out *storage.VolumeStatus, s conversion.Scope) error
- func Convert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec(in *VolumeTemplateSpec, out *storage.VolumeTemplateSpec, s conversion.Scope) error
- func Convert_v1alpha1_Volume_To_storage_Volume(in *Volume, out *storage.Volume, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(name string) schema.GroupResource
- type Volume
- type VolumeAccess
- type VolumeClass
- type VolumeClassList
- type VolumeCondition
- type VolumeConditionType
- type VolumeList
- type VolumePhase
- type VolumePool
- type VolumePoolCondition
- type VolumePoolConditionType
- type VolumePoolList
- type VolumePoolSpec
- type VolumePoolState
- type VolumePoolStatus
- type VolumeSpec
- type VolumeState
- type VolumeStatus
- type VolumeTemplateSpec
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "storage.api.onmetal.de", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( // VolumeClassFinalizer is the finalizer for VolumeClass. VolumeClassFinalizer = SchemeGroupVersion.Group + "/volumeclass" )
var VolumeGK = schema.GroupKind{ Group: SchemeGroupVersion.Group, Kind: "Volume", }
VolumeGK is a helper to easily access the GroupKind information of an Volume
Functions ¶
func Convert_storage_VolumeAccess_To_v1alpha1_VolumeAccess ¶ added in v0.0.10
func Convert_storage_VolumeAccess_To_v1alpha1_VolumeAccess(in *storage.VolumeAccess, out *VolumeAccess, s conversion.Scope) error
Convert_storage_VolumeAccess_To_v1alpha1_VolumeAccess is an autogenerated conversion function.
func Convert_storage_VolumeClassList_To_v1alpha1_VolumeClassList ¶ added in v0.0.10
func Convert_storage_VolumeClassList_To_v1alpha1_VolumeClassList(in *storage.VolumeClassList, out *VolumeClassList, s conversion.Scope) error
Convert_storage_VolumeClassList_To_v1alpha1_VolumeClassList is an autogenerated conversion function.
func Convert_storage_VolumeClass_To_v1alpha1_VolumeClass ¶ added in v0.0.10
func Convert_storage_VolumeClass_To_v1alpha1_VolumeClass(in *storage.VolumeClass, out *VolumeClass, s conversion.Scope) error
Convert_storage_VolumeClass_To_v1alpha1_VolumeClass is an autogenerated conversion function.
func Convert_storage_VolumeCondition_To_v1alpha1_VolumeCondition ¶ added in v0.0.11
func Convert_storage_VolumeCondition_To_v1alpha1_VolumeCondition(in *storage.VolumeCondition, out *VolumeCondition, s conversion.Scope) error
Convert_storage_VolumeCondition_To_v1alpha1_VolumeCondition is an autogenerated conversion function.
func Convert_storage_VolumeList_To_v1alpha1_VolumeList ¶ added in v0.0.10
func Convert_storage_VolumeList_To_v1alpha1_VolumeList(in *storage.VolumeList, out *VolumeList, s conversion.Scope) error
Convert_storage_VolumeList_To_v1alpha1_VolumeList is an autogenerated conversion function.
func Convert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition ¶ added in v0.0.10
func Convert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition(in *storage.VolumePoolCondition, out *VolumePoolCondition, s conversion.Scope) error
Convert_storage_VolumePoolCondition_To_v1alpha1_VolumePoolCondition is an autogenerated conversion function.
func Convert_storage_VolumePoolList_To_v1alpha1_VolumePoolList ¶ added in v0.0.10
func Convert_storage_VolumePoolList_To_v1alpha1_VolumePoolList(in *storage.VolumePoolList, out *VolumePoolList, s conversion.Scope) error
Convert_storage_VolumePoolList_To_v1alpha1_VolumePoolList is an autogenerated conversion function.
func Convert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec ¶ added in v0.0.10
func Convert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec(in *storage.VolumePoolSpec, out *VolumePoolSpec, s conversion.Scope) error
Convert_storage_VolumePoolSpec_To_v1alpha1_VolumePoolSpec is an autogenerated conversion function.
func Convert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus ¶ added in v0.0.10
func Convert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus(in *storage.VolumePoolStatus, out *VolumePoolStatus, s conversion.Scope) error
Convert_storage_VolumePoolStatus_To_v1alpha1_VolumePoolStatus is an autogenerated conversion function.
func Convert_storage_VolumePool_To_v1alpha1_VolumePool ¶ added in v0.0.10
func Convert_storage_VolumePool_To_v1alpha1_VolumePool(in *storage.VolumePool, out *VolumePool, s conversion.Scope) error
Convert_storage_VolumePool_To_v1alpha1_VolumePool is an autogenerated conversion function.
func Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec ¶ added in v0.0.10
func Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec(in *storage.VolumeSpec, out *VolumeSpec, s conversion.Scope) error
Convert_storage_VolumeSpec_To_v1alpha1_VolumeSpec is an autogenerated conversion function.
func Convert_storage_VolumeStatus_To_v1alpha1_VolumeStatus ¶ added in v0.0.10
func Convert_storage_VolumeStatus_To_v1alpha1_VolumeStatus(in *storage.VolumeStatus, out *VolumeStatus, s conversion.Scope) error
Convert_storage_VolumeStatus_To_v1alpha1_VolumeStatus is an autogenerated conversion function.
func Convert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec ¶ added in v0.0.12
func Convert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec(in *storage.VolumeTemplateSpec, out *VolumeTemplateSpec, s conversion.Scope) error
Convert_storage_VolumeTemplateSpec_To_v1alpha1_VolumeTemplateSpec is an autogenerated conversion function.
func Convert_storage_Volume_To_v1alpha1_Volume ¶ added in v0.0.10
func Convert_storage_Volume_To_v1alpha1_Volume(in *storage.Volume, out *Volume, s conversion.Scope) error
Convert_storage_Volume_To_v1alpha1_Volume is an autogenerated conversion function.
func Convert_v1alpha1_VolumeAccess_To_storage_VolumeAccess ¶ added in v0.0.10
func Convert_v1alpha1_VolumeAccess_To_storage_VolumeAccess(in *VolumeAccess, out *storage.VolumeAccess, s conversion.Scope) error
Convert_v1alpha1_VolumeAccess_To_storage_VolumeAccess is an autogenerated conversion function.
func Convert_v1alpha1_VolumeClassList_To_storage_VolumeClassList ¶ added in v0.0.10
func Convert_v1alpha1_VolumeClassList_To_storage_VolumeClassList(in *VolumeClassList, out *storage.VolumeClassList, s conversion.Scope) error
Convert_v1alpha1_VolumeClassList_To_storage_VolumeClassList is an autogenerated conversion function.
func Convert_v1alpha1_VolumeClass_To_storage_VolumeClass ¶ added in v0.0.10
func Convert_v1alpha1_VolumeClass_To_storage_VolumeClass(in *VolumeClass, out *storage.VolumeClass, s conversion.Scope) error
Convert_v1alpha1_VolumeClass_To_storage_VolumeClass is an autogenerated conversion function.
func Convert_v1alpha1_VolumeCondition_To_storage_VolumeCondition ¶ added in v0.0.11
func Convert_v1alpha1_VolumeCondition_To_storage_VolumeCondition(in *VolumeCondition, out *storage.VolumeCondition, s conversion.Scope) error
Convert_v1alpha1_VolumeCondition_To_storage_VolumeCondition is an autogenerated conversion function.
func Convert_v1alpha1_VolumeList_To_storage_VolumeList ¶ added in v0.0.10
func Convert_v1alpha1_VolumeList_To_storage_VolumeList(in *VolumeList, out *storage.VolumeList, s conversion.Scope) error
Convert_v1alpha1_VolumeList_To_storage_VolumeList is an autogenerated conversion function.
func Convert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition ¶ added in v0.0.10
func Convert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition(in *VolumePoolCondition, out *storage.VolumePoolCondition, s conversion.Scope) error
Convert_v1alpha1_VolumePoolCondition_To_storage_VolumePoolCondition is an autogenerated conversion function.
func Convert_v1alpha1_VolumePoolList_To_storage_VolumePoolList ¶ added in v0.0.10
func Convert_v1alpha1_VolumePoolList_To_storage_VolumePoolList(in *VolumePoolList, out *storage.VolumePoolList, s conversion.Scope) error
Convert_v1alpha1_VolumePoolList_To_storage_VolumePoolList is an autogenerated conversion function.
func Convert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec ¶ added in v0.0.10
func Convert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec(in *VolumePoolSpec, out *storage.VolumePoolSpec, s conversion.Scope) error
Convert_v1alpha1_VolumePoolSpec_To_storage_VolumePoolSpec is an autogenerated conversion function.
func Convert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus ¶ added in v0.0.10
func Convert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus(in *VolumePoolStatus, out *storage.VolumePoolStatus, s conversion.Scope) error
Convert_v1alpha1_VolumePoolStatus_To_storage_VolumePoolStatus is an autogenerated conversion function.
func Convert_v1alpha1_VolumePool_To_storage_VolumePool ¶ added in v0.0.10
func Convert_v1alpha1_VolumePool_To_storage_VolumePool(in *VolumePool, out *storage.VolumePool, s conversion.Scope) error
Convert_v1alpha1_VolumePool_To_storage_VolumePool is an autogenerated conversion function.
func Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec ¶ added in v0.0.10
func Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec(in *VolumeSpec, out *storage.VolumeSpec, s conversion.Scope) error
Convert_v1alpha1_VolumeSpec_To_storage_VolumeSpec is an autogenerated conversion function.
func Convert_v1alpha1_VolumeStatus_To_storage_VolumeStatus ¶ added in v0.0.10
func Convert_v1alpha1_VolumeStatus_To_storage_VolumeStatus(in *VolumeStatus, out *storage.VolumeStatus, s conversion.Scope) error
Convert_v1alpha1_VolumeStatus_To_storage_VolumeStatus is an autogenerated conversion function.
func Convert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec ¶ added in v0.0.12
func Convert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec(in *VolumeTemplateSpec, out *storage.VolumeTemplateSpec, s conversion.Scope) error
Convert_v1alpha1_VolumeTemplateSpec_To_storage_VolumeTemplateSpec is an autogenerated conversion function.
func Convert_v1alpha1_Volume_To_storage_Volume ¶ added in v0.0.10
func Convert_v1alpha1_Volume_To_storage_Volume(in *Volume, out *storage.Volume, s conversion.Scope) error
Convert_v1alpha1_Volume_To_storage_Volume is an autogenerated conversion function.
func RegisterConversions ¶ added in v0.0.10
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶ added in v0.0.10
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶ added in v0.0.10
func Resource(name string) schema.GroupResource
Types ¶
type Volume ¶
type Volume struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec VolumeSpec `json:"spec,omitempty"`
Status VolumeStatus `json:"status,omitempty"`
}
Volume is the Schema for the volumes API
func (*Volume) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.
func (*Volume) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Volume) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeAccess ¶ added in v0.0.10
type VolumeAccess struct {
// SecretRef references the Secret containing the access credentials to consume a Volume.
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
// Driver is the name of the drive to use for this volume. Required.
Driver string `json:"driver"`
// VolumeAttributes are attributes of the volume to use.
VolumeAttributes map[string]string `json:"volumeAttributes,omitempty"`
}
VolumeAccess represents information on how to access a volume.
func (*VolumeAccess) DeepCopy ¶ added in v0.0.10
func (in *VolumeAccess) DeepCopy() *VolumeAccess
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAccess.
func (*VolumeAccess) DeepCopyInto ¶ added in v0.0.10
func (in *VolumeAccess) DeepCopyInto(out *VolumeAccess)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeClass ¶ added in v0.0.10
type VolumeClass struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// Capabilities describes the capabilities of a VolumeClass.
Capabilities corev1.ResourceList `json:"capabilities,omitempty"`
}
VolumeClass is the Schema for the volumeclasses API
func (*VolumeClass) DeepCopy ¶ added in v0.0.10
func (in *VolumeClass) DeepCopy() *VolumeClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeClass.
func (*VolumeClass) DeepCopyInto ¶ added in v0.0.10
func (in *VolumeClass) DeepCopyInto(out *VolumeClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeClass) DeepCopyObject ¶ added in v0.0.10
func (in *VolumeClass) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeClassList ¶ added in v0.0.10
type VolumeClassList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []VolumeClass `json:"items"`
}
VolumeClassList contains a list of VolumeClass
func (*VolumeClassList) DeepCopy ¶ added in v0.0.10
func (in *VolumeClassList) DeepCopy() *VolumeClassList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeClassList.
func (*VolumeClassList) DeepCopyInto ¶ added in v0.0.10
func (in *VolumeClassList) DeepCopyInto(out *VolumeClassList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeClassList) DeepCopyObject ¶ added in v0.0.10
func (in *VolumeClassList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeCondition ¶ added in v0.0.9
type VolumeCondition struct {
// Type is the type of the condition.
Type VolumeConditionType `json:"type"`
// Status is the status of the condition.
Status corev1.ConditionStatus `json:"status"`
// Reason is a machine-readable indication of why the condition is in a certain state.
Reason string `json:"reason,omitempty"`
// Message is a human-readable explanation of why the condition has a certain reason / state.
Message string `json:"message,omitempty"`
// ObservedGeneration represents the .metadata.generation that the condition was set based upon.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// LastTransitionTime is the last time the status of a condition has transitioned from one state to another.
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
}
VolumeCondition is one of the conditions of a volume.
func (*VolumeCondition) DeepCopy ¶ added in v0.0.9
func (in *VolumeCondition) DeepCopy() *VolumeCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeCondition.
func (*VolumeCondition) DeepCopyInto ¶ added in v0.0.9
func (in *VolumeCondition) DeepCopyInto(out *VolumeCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeConditionType ¶ added in v0.0.9
type VolumeConditionType string
VolumeConditionType is a type a VolumeCondition can have.
type VolumeList ¶
type VolumeList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Volume `json:"items"`
}
VolumeList contains a list of Volume
func (*VolumeList) DeepCopy ¶
func (in *VolumeList) DeepCopy() *VolumeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeList.
func (*VolumeList) DeepCopyInto ¶
func (in *VolumeList) DeepCopyInto(out *VolumeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeList) DeepCopyObject ¶
func (in *VolumeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumePhase ¶ added in v0.0.10
type VolumePhase string
VolumePhase represents the binding phase of a Volume.
const ( // VolumePhaseUnbound is used for any Volume that not bound. VolumePhaseUnbound VolumePhase = "Unbound" // VolumePhasePending is used for any Volume that is currently awaiting binding. VolumePhasePending VolumePhase = "Pending" // VolumePhaseBound is used for any Volume that is properly bound. VolumePhaseBound VolumePhase = "Bound" )
type VolumePool ¶ added in v0.0.10
type VolumePool struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec VolumePoolSpec `json:"spec,omitempty"`
Status VolumePoolStatus `json:"status,omitempty"`
}
VolumePool is the Schema for the volumepools API
func (*VolumePool) DeepCopy ¶ added in v0.0.10
func (in *VolumePool) DeepCopy() *VolumePool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumePool.
func (*VolumePool) DeepCopyInto ¶ added in v0.0.10
func (in *VolumePool) DeepCopyInto(out *VolumePool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumePool) DeepCopyObject ¶ added in v0.0.10
func (in *VolumePool) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumePoolCondition ¶ added in v0.0.10
type VolumePoolCondition struct {
// Type is the type of the condition.
Type VolumePoolConditionType `json:"type"`
// Status is the status of the condition.
Status corev1.ConditionStatus `json:"status"`
// Reason is a machine-readable indication of why the condition is in a certain state.
Reason string `json:"reason"`
// Message is a human-readable explanation of why the condition has a certain reason / state.
Message string `json:"message"`
// ObservedGeneration represents the .metadata.generation that the condition was set based upon.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// LastTransitionTime is the last time the status of a condition has transitioned from one state to another.
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
}
VolumePoolCondition is one of the conditions of a volume.
func (*VolumePoolCondition) DeepCopy ¶ added in v0.0.10
func (in *VolumePoolCondition) DeepCopy() *VolumePoolCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumePoolCondition.
func (*VolumePoolCondition) DeepCopyInto ¶ added in v0.0.10
func (in *VolumePoolCondition) DeepCopyInto(out *VolumePoolCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumePoolConditionType ¶ added in v0.0.10
type VolumePoolConditionType string
VolumePoolConditionType is a type a VolumePoolCondition can have.
type VolumePoolList ¶ added in v0.0.10
type VolumePoolList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []VolumePool `json:"items"`
}
VolumePoolList contains a list of VolumePool
func (*VolumePoolList) DeepCopy ¶ added in v0.0.10
func (in *VolumePoolList) DeepCopy() *VolumePoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumePoolList.
func (*VolumePoolList) DeepCopyInto ¶ added in v0.0.10
func (in *VolumePoolList) DeepCopyInto(out *VolumePoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumePoolList) DeepCopyObject ¶ added in v0.0.10
func (in *VolumePoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumePoolSpec ¶ added in v0.0.10
type VolumePoolSpec struct {
// ProviderID identifies the VolumePool on provider side.
ProviderID string `json:"providerID"`
// Taints of the VolumePool. Only Volumes who tolerate all the taints
// will land in the VolumePool.
Taints []commonv1alpha1.Taint `json:"taints,omitempty"`
}
VolumePoolSpec defines the desired state of VolumePool
func (*VolumePoolSpec) DeepCopy ¶ added in v0.0.10
func (in *VolumePoolSpec) DeepCopy() *VolumePoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumePoolSpec.
func (*VolumePoolSpec) DeepCopyInto ¶ added in v0.0.10
func (in *VolumePoolSpec) DeepCopyInto(out *VolumePoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumePoolState ¶ added in v0.0.10
type VolumePoolState string
const ( VolumePoolStateAvailable VolumePoolState = "Available" VolumePoolStatePending VolumePoolState = "Pending" VolumePoolStateNotAvailable VolumePoolState = "NotAvailable" )
type VolumePoolStatus ¶ added in v0.0.10
type VolumePoolStatus struct {
State VolumePoolState `json:"state,omitempty"`
Conditions []VolumePoolCondition `json:"conditions,omitempty"`
// AvailableVolumeClasses list the references of any supported VolumeClass of this pool
AvailableVolumeClasses []corev1.LocalObjectReference `json:"availableVolumeClasses,omitempty"`
// Available list the available capacity of a VolumePool.
Available corev1.ResourceList `json:"available,omitempty"`
// Used indicates how much capacity has been used in a VolumePool.
Used corev1.ResourceList `json:"used,omitempty"`
}
VolumePoolStatus defines the observed state of VolumePool
func (*VolumePoolStatus) DeepCopy ¶ added in v0.0.10
func (in *VolumePoolStatus) DeepCopy() *VolumePoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumePoolStatus.
func (*VolumePoolStatus) DeepCopyInto ¶ added in v0.0.10
func (in *VolumePoolStatus) DeepCopyInto(out *VolumePoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSpec ¶
type VolumeSpec struct {
// VolumeClassRef is the VolumeClass of a volume
VolumeClassRef corev1.LocalObjectReference `json:"volumeClassRef"`
// VolumePoolSelector selects a suitable VolumePoolRef by the given labels.
VolumePoolSelector map[string]string `json:"volumePoolSelector,omitempty"`
// VolumePoolRef indicates which VolumePool to use for a volume.
// If unset, the scheduler will figure out a suitable VolumePoolRef.
VolumePoolRef *corev1.LocalObjectReference `json:"volumePoolRef,omitempty"`
// ClaimRef is the reference to the claiming entity of the Volume.
ClaimRef *commonv1alpha1.LocalUIDReference `json:"claimRef,omitempty"`
// Resources is a description of the volume's resources and capacity.
Resources corev1.ResourceList `json:"resources,omitempty"`
// Image is an optional image to bootstrap the volume with.
Image string `json:"image,omitempty"`
// ImagePullSecretRef is an optional secret for pulling the image of a volume.
ImagePullSecretRef *corev1.LocalObjectReference `json:"imagePullSecretRef,omitempty"`
// Unclaimable marks the volume as unclaimable.
Unclaimable bool `json:"unclaimable,omitempty"`
// Tolerations define tolerations the Volume has. Only any VolumePool whose taints
// covered by Tolerations will be considered to host the Volume.
Tolerations []commonv1alpha1.Toleration `json:"tolerations,omitempty"`
}
VolumeSpec defines the desired state of Volume
func (*VolumeSpec) DeepCopy ¶
func (in *VolumeSpec) DeepCopy() *VolumeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSpec.
func (*VolumeSpec) DeepCopyInto ¶
func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeState ¶ added in v0.0.9
type VolumeState string
VolumeState represents the infrastructure state of a Volume.
const ( // VolumeStatePending reports whether a Volume is about to be ready. VolumeStatePending VolumeState = "Pending" // VolumeStateAvailable reports whether a Volume is available to be used. VolumeStateAvailable VolumeState = "Available" // VolumeStateError reports that a Volume is in an error state. VolumeStateError VolumeState = "Error" )
type VolumeStatus ¶
type VolumeStatus struct {
// State represents the infrastructure state of a Volume.
State VolumeState `json:"state,omitempty"`
// LastStateTransitionTime is the last time the State transitioned between values.
LastStateTransitionTime *metav1.Time `json:"lastStateTransitionTime,omitempty"`
// Phase represents the binding phase of a Volume.
Phase VolumePhase `json:"phase,omitempty"`
// LastPhaseTransitionTime is the last time the Phase transitioned between values.
LastPhaseTransitionTime *metav1.Time `json:"lastPhaseTransitionTime,omitempty"`
// Access specifies how to access a Volume.
// This is set by the volume provider when the volume is provisioned.
Access *VolumeAccess `json:"access,omitempty"`
// Conditions are the conditions of a volume.
Conditions []VolumeCondition `json:"conditions,omitempty"`
}
VolumeStatus defines the observed state of Volume
func (*VolumeStatus) DeepCopy ¶
func (in *VolumeStatus) DeepCopy() *VolumeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeStatus.
func (*VolumeStatus) DeepCopyInto ¶
func (in *VolumeStatus) DeepCopyInto(out *VolumeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeTemplateSpec ¶ added in v0.0.12
type VolumeTemplateSpec struct {
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec VolumeSpec `json:"spec,omitempty"`
}
VolumeTemplateSpec is the specification of a Volume template.
func (*VolumeTemplateSpec) DeepCopy ¶ added in v0.0.12
func (in *VolumeTemplateSpec) DeepCopy() *VolumeTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeTemplateSpec.
func (*VolumeTemplateSpec) DeepCopyInto ¶ added in v0.0.12
func (in *VolumeTemplateSpec) DeepCopyInto(out *VolumeTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.