v1

package
v0.0.0-...-3a1da1c Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the v1 API group +kubebuilder:object:generate=true +groupName=mycontroller.org

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "mycontroller.org", 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
)
View Source
var (
	MyControllerPhaseFailed  = "Failed"
	MyControllerPhaseRunning = "Running"
)

Functions

This section is empty.

Types

type MyController

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

	Spec   MyControllerSpec   `json:"spec,omitempty"`
	Status MyControllerStatus `json:"status,omitempty"`
}

MyController is the Schema for the mycontrollers API

func (*MyController) DeepCopy

func (in *MyController) DeepCopy() *MyController

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

func (*MyController) DeepCopyInto

func (in *MyController) DeepCopyInto(out *MyController)

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

func (*MyController) DeepCopyObject

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

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

type MyControllerList

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

MyControllerList contains a list of MyController

func (*MyControllerList) DeepCopy

func (in *MyControllerList) DeepCopy() *MyControllerList

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

func (*MyControllerList) DeepCopyInto

func (in *MyControllerList) DeepCopyInto(out *MyControllerList)

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

func (*MyControllerList) DeepCopyObject

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

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

type MyControllerSpec

type MyControllerSpec struct {
	Secret           string              `json:"secret"`
	DisableAnalytics bool                `json:"disable_analytics"`
	LogLevel         string              `json:"log_level"`
	Storage          MyControllerStorage `json:"storage,omitempty"`
}

MyControllerSpec defines the desired state of MyController

func (*MyControllerSpec) DeepCopy

func (in *MyControllerSpec) DeepCopy() *MyControllerSpec

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

func (*MyControllerSpec) DeepCopyInto

func (in *MyControllerSpec) DeepCopyInto(out *MyControllerSpec)

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

type MyControllerStatus

type MyControllerStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Phase string `json:"phase"`
}

MyControllerStatus defines the observed state of MyController

func (*MyControllerStatus) DeepCopy

func (in *MyControllerStatus) DeepCopy() *MyControllerStatus

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

func (*MyControllerStatus) DeepCopyInto

func (in *MyControllerStatus) DeepCopyInto(out *MyControllerStatus)

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

type MyControllerStorage

type MyControllerStorage struct {
	StorageClassName string             `json:"storage_class_name,omitempty"`
	SizeData         *resource.Quantity `json:"data_size,omitempty"`
	SizeMetric       *resource.Quantity `json:"metric_size,omitempty"`
}

func (*MyControllerStorage) DeepCopy

func (in *MyControllerStorage) DeepCopy() *MyControllerStorage

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

func (*MyControllerStorage) DeepCopyInto

func (in *MyControllerStorage) DeepCopyInto(out *MyControllerStorage)

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