Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the storage v1alpha1 API group +kubebuilder:object:generate=true +groupName=storage.onmetal.de
Index ¶
- Constants
- Variables
- type StorageClass
- type StorageClassCapability
- type StorageClassCapacity
- type StorageClassList
- type StorageClassSpec
- type StorageClassStatus
- type StoragePool
- type StoragePoolList
- type StoragePoolSpec
- type StoragePoolStatus
- type Volume
- type VolumeAttachment
- type VolumeAttachmentList
- type VolumeAttachmentSpec
- type VolumeAttachmentStatus
- type VolumeList
- type VolumeSource
- type VolumeSpec
- type VolumeStatus
Constants ¶
const ( PrivacyDisk = "disk" PrivacyCluster = "cluster" )
const ( StoragePoolStateAvailable = "Available" StoragePoolStatePending = "Pending" StoragePoolStateNotAvailable = "NotAvailable" )
const ( VolumeStateAvailable = "Available" VolumeStatePending = "Pending" VolumeStateAttached = "Attached" VolumeStateError = "Error" )
const ( VolumeAttachmentStateAttachde = "Attached" VolumeAttachmentStateInvalid = "Invalid" VolumeAttachmentStateError = "Error" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "storage.onmetal.de", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type StorageClass ¶
type StorageClass struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StorageClassSpec `json:"spec,omitempty"` Status StorageClassStatus `json:"status,omitempty"` }
StorageClass is the Schema for the storageclasses API
func (*StorageClass) DeepCopy ¶
func (in *StorageClass) DeepCopy() *StorageClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass.
func (*StorageClass) DeepCopyInto ¶
func (in *StorageClass) DeepCopyInto(out *StorageClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageClass) DeepCopyObject ¶
func (in *StorageClass) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageClassCapability ¶ added in v0.0.4
type StorageClassCapability struct { // Name is the name of a capability Name string `json:"name"` // Value is the value of a capability Value intstr.IntOrString `json:"value"` }
StorageClassCapability describes one attribute of the StorageClass
func (*StorageClassCapability) DeepCopy ¶ added in v0.0.4
func (in *StorageClassCapability) DeepCopy() *StorageClassCapability
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassCapability.
func (*StorageClassCapability) DeepCopyInto ¶ added in v0.0.4
func (in *StorageClassCapability) DeepCopyInto(out *StorageClassCapability)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageClassCapacity ¶ added in v0.0.4
type StorageClassCapacity struct { // Name is the name of a storage class capacity Name string `json:"name"` // Capacity is the quantity of a capacity Capacity *resource.Quantity `json:"capacity,omitempty"` }
StorageClassCapacity defines capacity attribute of a storage class
func (*StorageClassCapacity) DeepCopy ¶ added in v0.0.4
func (in *StorageClassCapacity) DeepCopy() *StorageClassCapacity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassCapacity.
func (*StorageClassCapacity) DeepCopyInto ¶ added in v0.0.4
func (in *StorageClassCapacity) DeepCopyInto(out *StorageClassCapacity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageClassList ¶
type StorageClassList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []StorageClass `json:"items"` }
StorageClassList contains a list of StorageClass
func (*StorageClassList) DeepCopy ¶
func (in *StorageClassList) DeepCopy() *StorageClassList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList.
func (*StorageClassList) DeepCopyInto ¶
func (in *StorageClassList) DeepCopyInto(out *StorageClassList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageClassList) DeepCopyObject ¶
func (in *StorageClassList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageClassSpec ¶
type StorageClassSpec struct { // Capabilities describes the capabilities of a storage class Capabilities []StorageClassCapability `json:"capabilities"` // Description is a human readable description of a storage class Description string `json:"description,omitempty"` }
StorageClassSpec defines the desired state of StorageClass
func (*StorageClassSpec) DeepCopy ¶
func (in *StorageClassSpec) DeepCopy() *StorageClassSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassSpec.
func (*StorageClassSpec) DeepCopyInto ¶
func (in *StorageClassSpec) DeepCopyInto(out *StorageClassSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageClassStatus ¶
type StorageClassStatus struct { // Availability describes the regions and zones where this MachineClass is available Availability common.Availability `json:"availability,omitempty"` }
StorageClassStatus defines the observed state of StorageClass
func (*StorageClassStatus) DeepCopy ¶
func (in *StorageClassStatus) DeepCopy() *StorageClassStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassStatus.
func (*StorageClassStatus) DeepCopyInto ¶
func (in *StorageClassStatus) DeepCopyInto(out *StorageClassStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StoragePool ¶ added in v0.0.4
type StoragePool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StoragePoolSpec `json:"spec,omitempty"` Status StoragePoolStatus `json:"status,omitempty"` }
StoragePool is the Schema for the storagepools API
func (*StoragePool) DeepCopy ¶ added in v0.0.4
func (in *StoragePool) DeepCopy() *StoragePool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePool.
func (*StoragePool) DeepCopyInto ¶ added in v0.0.4
func (in *StoragePool) DeepCopyInto(out *StoragePool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StoragePool) DeepCopyObject ¶ added in v0.0.4
func (in *StoragePool) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StoragePoolList ¶ added in v0.0.4
type StoragePoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []StoragePool `json:"items"` }
StoragePoolList contains a list of StoragePool
func (*StoragePoolList) DeepCopy ¶ added in v0.0.4
func (in *StoragePoolList) DeepCopy() *StoragePoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePoolList.
func (*StoragePoolList) DeepCopyInto ¶ added in v0.0.4
func (in *StoragePoolList) DeepCopyInto(out *StoragePoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StoragePoolList) DeepCopyObject ¶ added in v0.0.4
func (in *StoragePoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StoragePoolSpec ¶ added in v0.0.4
type StoragePoolSpec struct { // Region defines the region of the storage pool Region string `json:"region,omitempty"` // Privacy defines the privacy scope of the storage pool Privacy string `json:"privacy"` // Replication indicates the replication factor in the storage pool // +kubebuilder:validation:Minimum:=0 Replication int `json:"replication,omitempty"` // Capacity list the available capacity of a storage pool Capacity []StorageClassCapacity `json:"capacity,omitempty"` }
StoragePoolSpec defines the desired state of StoragePool
func (*StoragePoolSpec) DeepCopy ¶ added in v0.0.4
func (in *StoragePoolSpec) DeepCopy() *StoragePoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePoolSpec.
func (*StoragePoolSpec) DeepCopyInto ¶ added in v0.0.4
func (in *StoragePoolSpec) DeepCopyInto(out *StoragePoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StoragePoolStatus ¶ added in v0.0.4
type StoragePoolStatus struct { common.StateFields `json:",inline"` // Used indicates how much capacity has been used in a storage pool Used []StorageClassCapacity `json:"used,omitempty"` }
StoragePoolStatus defines the observed state of StoragePool
func (*StoragePoolStatus) DeepCopy ¶ added in v0.0.4
func (in *StoragePoolStatus) DeepCopy() *StoragePoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePoolStatus.
func (*StoragePoolStatus) DeepCopyInto ¶ added in v0.0.4
func (in *StoragePoolStatus) DeepCopyInto(out *StoragePoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 VolumeAttachment ¶
type VolumeAttachment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VolumeAttachmentSpec `json:"spec,omitempty"` Status VolumeAttachmentStatus `json:"status,omitempty"` }
VolumeAttachment is the Schema for the volumeattachments API
func (*VolumeAttachment) DeepCopy ¶
func (in *VolumeAttachment) DeepCopy() *VolumeAttachment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachment.
func (*VolumeAttachment) DeepCopyInto ¶
func (in *VolumeAttachment) DeepCopyInto(out *VolumeAttachment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeAttachment) DeepCopyObject ¶
func (in *VolumeAttachment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeAttachmentList ¶
type VolumeAttachmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VolumeAttachment `json:"items"` }
VolumeAttachmentList contains a list of VolumeAttachment
func (*VolumeAttachmentList) DeepCopy ¶
func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentList.
func (*VolumeAttachmentList) DeepCopyInto ¶
func (in *VolumeAttachmentList) DeepCopyInto(out *VolumeAttachmentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeAttachmentList) DeepCopyObject ¶
func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeAttachmentSpec ¶
type VolumeAttachmentSpec struct { // Volume is a reference of the volume object which should be attached Volume common.ScopeReference `json:"volume,omitempty"` // Machine is a reference of the machine object which the volume should be attached to Machine common.ScopeReference `json:"machine"` // Device defines the device on the host for a volume Device string `json:"device,omitempty"` // Source references either an image or a snapshot Source VolumeSource `json:"source,omitempty"` }
VolumeAttachmentSpec defines the desired state of VolumeAttachment
func (*VolumeAttachmentSpec) DeepCopy ¶
func (in *VolumeAttachmentSpec) DeepCopy() *VolumeAttachmentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSpec.
func (*VolumeAttachmentSpec) DeepCopyInto ¶
func (in *VolumeAttachmentSpec) DeepCopyInto(out *VolumeAttachmentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeAttachmentStatus ¶
type VolumeAttachmentStatus struct { common.StateFields `json:",inline"` // Device describes the device of the volume on the host Device string `json:"device,omitempty"` }
VolumeAttachmentStatus defines the observed state of VolumeAttachment
func (*VolumeAttachmentStatus) DeepCopy ¶
func (in *VolumeAttachmentStatus) DeepCopy() *VolumeAttachmentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentStatus.
func (*VolumeAttachmentStatus) DeepCopyInto ¶
func (in *VolumeAttachmentStatus) DeepCopyInto(out *VolumeAttachmentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 VolumeSource ¶ added in v0.0.4
type VolumeSource struct { // Image defines the image name of the referenced image Image common.ScopeReference `json:"image,omitempty"` // Snapshot defines the snapshot which should be used Snapshot common.ScopeReference `json:"snapshot,omitempty"` }
VolumeSource defines the source of a volume which can be either an image or a snapshot
func (*VolumeSource) DeepCopy ¶ added in v0.0.4
func (in *VolumeSource) DeepCopy() *VolumeSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSource.
func (*VolumeSource) DeepCopyInto ¶ added in v0.0.4
func (in *VolumeSource) DeepCopyInto(out *VolumeSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSpec ¶
type VolumeSpec struct { // StorageClass is the storage class of a volume StorageClass string `json:"storage_class"` // StoragePool indicates which storage pool to use for a volume StoragePool common.ScopeReference `json:"storagepool"` // Size defines the size of the volume Size *resource.Quantity `json:"size"` }
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 VolumeStatus ¶
type VolumeStatus struct {
common.StateFields `json:",inline"`
}
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.