v1

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the carina v1 API group +kubebuilder:object:generate=true +groupName=carina.storage.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "carina.storage.io", Version: "v1"}

	// 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 LogicVolume

type LogicVolume struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   LogicVolumeSpec   `json:"spec,omitempty"`
	Status LogicVolumeStatus `json:"status,omitempty"`
}

LogicVolume is the Schema for the logicvolumes API

func (*LogicVolume) DeepCopy

func (in *LogicVolume) DeepCopy() *LogicVolume

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogicVolume.

func (*LogicVolume) DeepCopyInto

func (in *LogicVolume) DeepCopyInto(out *LogicVolume)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LogicVolume) DeepCopyObject

func (in *LogicVolume) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*LogicVolume) IsCompatibleWith

func (lv *LogicVolume) IsCompatibleWith(lv2 *LogicVolume) bool

IsCompatibleWith returns true if the LogicalVolume is compatible.

type LogicVolumeList

type LogicVolumeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []LogicVolume `json:"items"`
}

LogicVolumeList contains a list of LogicVolume

func (*LogicVolumeList) DeepCopy

func (in *LogicVolumeList) DeepCopy() *LogicVolumeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogicVolumeList.

func (*LogicVolumeList) DeepCopyInto

func (in *LogicVolumeList) DeepCopyInto(out *LogicVolumeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LogicVolumeList) DeepCopyObject

func (in *LogicVolumeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LogicVolumeSpec

type LogicVolumeSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	NodeName    string            `json:"nodeName"`
	Size        resource.Quantity `json:"size"`
	DeviceGroup string            `json:"deviceGroup"`
	Pvc         string            `json:"pvc"`
	NameSpace   string            `json:"nameSpace"`
}

LogicVolumeSpec defines the desired state of LogicVolume

func (*LogicVolumeSpec) DeepCopy

func (in *LogicVolumeSpec) DeepCopy() *LogicVolumeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogicVolumeSpec.

func (*LogicVolumeSpec) DeepCopyInto

func (in *LogicVolumeSpec) DeepCopyInto(out *LogicVolumeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LogicVolumeStatus

type LogicVolumeStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	VolumeID    string             `json:"volumeID,omitempty"`
	Code        codes.Code         `json:"code,omitempty"`
	Message     string             `json:"message,omitempty"`
	CurrentSize *resource.Quantity `json:"currentSize,omitempty"`
	Status      string             `json:"status,omitempty"`
	DeviceMajor uint32             `json:"deviceMajor,omitempty"`
	DeviceMinor uint32             `json:"deviceMinor,omitempty"`
}

LogicVolumeStatus defines the observed state of LogicVolume

func (*LogicVolumeStatus) DeepCopy

func (in *LogicVolumeStatus) DeepCopy() *LogicVolumeStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LogicVolumeStatus.

func (*LogicVolumeStatus) DeepCopyInto

func (in *LogicVolumeStatus) DeepCopyInto(out *LogicVolumeStatus)

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