Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=openebs.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( //SchemeBuilder applies all the stored functions to the scheme, will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder //AddToScheme applies all the stored functions to the scheme, will stay in k8s.io/kubernetes. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: openebsio.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Disk ¶
type Disk struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DiskSpec `json:"spec"` Status DiskStatus `json:"status"` }
Disk describes disk resource.
func (*Disk) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Disk.
func (*Disk) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Disk) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DiskCapacity ¶
type DiskCapacity struct { Storage uint64 `json:"storage"` // disk size in bytes LogicalSectorSize uint32 `json:"logicalSectorSize"` // disk logical size in bytes }
func (*DiskCapacity) DeepCopy ¶
func (in *DiskCapacity) DeepCopy() *DiskCapacity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskCapacity.
func (*DiskCapacity) DeepCopyInto ¶
func (in *DiskCapacity) DeepCopyInto(out *DiskCapacity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskDetails ¶
type DiskDetails struct { Model string `json:"model"` // Model is model of disk Compliance string `json:"compliance"` // Implemented standards/specifications version such as SPC-1, SPC-2, etc Serial string `json:"serial"` // Serial is serial no of disk Vendor string `json:"vendor"` // Vendor is vendor of disk FirmwareRevision string `json:"firmwareRevision"` // disk firmware revision }
DiskDetails contains basic and static info of a disk
func (*DiskDetails) DeepCopy ¶
func (in *DiskDetails) DeepCopy() *DiskDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskDetails.
func (*DiskDetails) DeepCopyInto ¶
func (in *DiskDetails) DeepCopyInto(out *DiskDetails)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskDevLink ¶
type DiskDevLink struct { Kind string `json:"kind,omitempty"` // Kind is the type of link like by-id or by-path. Links []string `json:"links,omitempty"` // Links are the soft links of Type type }
DiskDevlink holds the maping between type and links like by-id type or by-path type link
type DiskList ¶
type DiskList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Disk `json:"items"` }
DiskList is a list of Disk object resources
func (*DiskList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskList.
func (*DiskList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DiskList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DiskSpec ¶
type DiskSpec struct { Path string `json:"path"` //Path contain devpath (e.g. /dev/sdb) Capacity DiskCapacity `json:"capacity"` //Capacity Details DiskDetails `json:"details"` //Details contains static attributes (model, serial ..) DevLinks []DiskDevLink `json:"devlinks,omitempty"` //DevLinks contains soft links of one disk }
DiskSpec is the specification for the disk stored as CRD
func (*DiskSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskSpec.
func (*DiskSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiskStatus ¶
type DiskStatus struct {
State string `json:"state"` //current state of the disk (Active/Inactive)
}
func (*DiskStatus) DeepCopy ¶
func (in *DiskStatus) DeepCopy() *DiskStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskStatus.
func (*DiskStatus) DeepCopyInto ¶
func (in *DiskStatus) DeepCopyInto(out *DiskStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.