v1beta1

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the carina v1beta1 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: "v1beta1"}

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

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

	Spec   NodeStorageResourceSpec   `json:"spec,omitempty"`
	Status NodeStorageResourceStatus `json:"status,omitempty"`
}

NodeStorageResource is the Schema for the nodestorageresources API

func (*NodeStorageResource) DeepCopy

func (in *NodeStorageResource) DeepCopy() *NodeStorageResource

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

func (*NodeStorageResource) DeepCopyInto

func (in *NodeStorageResource) DeepCopyInto(out *NodeStorageResource)

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

func (*NodeStorageResource) DeepCopyObject

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

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

type NodeStorageResourceList

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

NodeStorageResourceList contains a list of NodeStorageResource

func (*NodeStorageResourceList) DeepCopy

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

func (*NodeStorageResourceList) DeepCopyInto

func (in *NodeStorageResourceList) DeepCopyInto(out *NodeStorageResourceList)

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

func (*NodeStorageResourceList) DeepCopyObject

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

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

type NodeStorageResourceSpec

type NodeStorageResourceSpec struct {

	// Foo is an example field of NodeStorageResource. Edit nodestorageresource_types.go to remove/update
	NodeName string `json:"nodeName,omitempty"`
}

NodeStorageResourceSpec defines the desired state of NodeStorageResource

func (*NodeStorageResourceSpec) DeepCopy

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

func (*NodeStorageResourceSpec) DeepCopyInto

func (in *NodeStorageResourceSpec) DeepCopyInto(out *NodeStorageResourceSpec)

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

type NodeStorageResourceStatus

type NodeStorageResourceStatus struct {

	// +optional
	SyncTime metav1.Time `json:"syncTime,omitempty"`
	// Capacity represents the total resources of a node.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
	// +optional
	Capacity map[string]resource.Quantity `json:"capacity,omitempty"`
	// Allocatable represents the resources of a node that are available for scheduling.
	// Defaults to Capacity.
	// +optional
	Allocatable map[string]resource.Quantity `json:"allocatable,omitempty"`
	// +optional
	VgGroups []api.VgGroup `json:"vgGroups,omitempty"`
	// +optional
	Disks []api.Disk `json:"disks,,omitempty"`
	// +optional
	RAIDs []api.Raid `json:"raids,omitempty"`
}

NodeStorageResourceStatus defines the observed state of NodeStorageResource

func (*NodeStorageResourceStatus) DeepCopy

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

func (*NodeStorageResourceStatus) DeepCopyInto

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