v1

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1 contains API Schema definitions for the topolvm v1 API group +kubebuilder:object:generate=true +groupName=topolvm.cybozu.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "topolvm.cybozu.com", 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 ClassState

type ClassState struct {
	Name         string        `json:"className,omitempty"`
	VgName       string        `json:"vgName,omitempty"`
	State        string        `json:"state,omitempty"`
	DeviceStates []DeviceState `json:"deviceStates,omitempty"`
}

func (*ClassState) DeepCopy

func (in *ClassState) DeepCopy() *ClassState

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

func (*ClassState) DeepCopyInto

func (in *ClassState) DeepCopyInto(out *ClassState)

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

type DeviceClass

type DeviceClass struct {
	ClassName  string `json:"className" yaml:"name"`
	VgName     string `json:"volumeGroup" yaml:"volume-group"`
	Device     []Disk `json:"devices" yaml:"devices,omitempty"`
	Default    bool   `json:"default" yaml:"default"`
	SpareGb    uint64 `json:"spareGb,omitempty" yaml:"spare-gb,omitempty"`
	Stripe     uint   `json:"stripe,omitempty" yaml:"stripe,omitempty"`
	StripeSize string `json:"stripeSize,omitempty" yaml:"stripe-size,omitempty"`
}

func (*DeviceClass) DeepCopy

func (in *DeviceClass) DeepCopy() *DeviceClass

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

func (*DeviceClass) DeepCopyInto

func (in *DeviceClass) DeepCopyInto(out *DeviceClass)

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

type DeviceState

type DeviceState struct {
	Name    string `json:"name,omitempty"`
	State   string `json:"state,omitempty"`
	Message string `json:"message,omitempty"`
}

func (*DeviceState) DeepCopy

func (in *DeviceState) DeepCopy() *DeviceState

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

func (*DeviceState) DeepCopyInto

func (in *DeviceState) DeepCopyInto(out *DeviceState)

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

type Disk

type Disk struct {
	Name string `json:"name"`
}

func (*Disk) DeepCopy

func (in *Disk) DeepCopy() *Disk

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

func (*Disk) DeepCopyInto

func (in *Disk) DeepCopyInto(out *Disk)

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

type NodeDevices

type NodeDevices struct {
	NodeName      string        `json:"nodeName"`
	DeviceClasses []DeviceClass `json:"classes"`
}

func (*NodeDevices) DeepCopy

func (in *NodeDevices) DeepCopy() *NodeDevices

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

func (*NodeDevices) DeepCopyInto

func (in *NodeDevices) DeepCopyInto(out *NodeDevices)

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

type NodeStorageState

type NodeStorageState struct {
	Node           string       `json:"node"`
	FailClasses    []ClassState `json:"failClasses"`
	SuccessClasses []ClassState `json:"successClasses"`
}

func (*NodeStorageState) DeepCopy

func (in *NodeStorageState) DeepCopy() *NodeStorageState

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

func (*NodeStorageState) DeepCopyInto

func (in *NodeStorageState) DeepCopyInto(out *NodeStorageState)

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

type TopolvmCluster

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

	Spec   TopolvmClusterSpec   `json:"spec,omitempty"`
	Status TopolvmClusterStatus `json:"status,omitempty"`
}

TopolvmCluster is the Schema for the topolvmclusters API

func (*TopolvmCluster) DeepCopy

func (in *TopolvmCluster) DeepCopy() *TopolvmCluster

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

func (*TopolvmCluster) DeepCopyInto

func (in *TopolvmCluster) DeepCopyInto(out *TopolvmCluster)

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

func (*TopolvmCluster) DeepCopyObject

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

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

type TopolvmClusterList

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

TopolvmClusterList contains a list of TopolvmCluster

func (*TopolvmClusterList) DeepCopy

func (in *TopolvmClusterList) DeepCopy() *TopolvmClusterList

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

func (*TopolvmClusterList) DeepCopyInto

func (in *TopolvmClusterList) DeepCopyInto(out *TopolvmClusterList)

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

func (*TopolvmClusterList) DeepCopyObject

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

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

type TopolvmClusterSpec

type TopolvmClusterSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	TopolvmVersion string        `json:"topolvmVersion"`
	DeviceClasses  []NodeDevices `json:"deviceClasses"`
}

TopolvmClusterSpec defines the desired state of TopolvmCluster

func (*TopolvmClusterSpec) DeepCopy

func (in *TopolvmClusterSpec) DeepCopy() *TopolvmClusterSpec

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

func (*TopolvmClusterSpec) DeepCopyInto

func (in *TopolvmClusterSpec) DeepCopyInto(out *TopolvmClusterSpec)

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

type TopolvmClusterStatus

type TopolvmClusterStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	NodeStorageStatus []NodeStorageState `json:"nodeStorageState"`
}

TopolvmClusterStatus defines the observed state of TopolvmCluster

func (*TopolvmClusterStatus) DeepCopy

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

func (*TopolvmClusterStatus) DeepCopyInto

func (in *TopolvmClusterStatus) DeepCopyInto(out *TopolvmClusterStatus)

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