v1alpha1

package
v0.0.0-...-ee89920 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the calculator v1alpha1 API group +kubebuilder:object:generate=true +groupName=calculator.sample-k8s-ctrl.github.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "calculator.sample-k8s-ctrl.github.com", Version: "v1alpha1"}

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

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

	Spec   CalculatorSpec   `json:"spec,omitempty"`
	Status CalculatorStatus `json:"status,omitempty"`
}

Calculator is the Schema for the calculators API

func (*Calculator) DeepCopy

func (in *Calculator) DeepCopy() *Calculator

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

func (*Calculator) DeepCopyInto

func (in *Calculator) DeepCopyInto(out *Calculator)

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

func (*Calculator) DeepCopyObject

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

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

func (*Calculator) Default

func (r *Calculator) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Calculator) SetupWebhookWithManager

func (r *Calculator) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*Calculator) ValidateCreate

func (r *Calculator) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Calculator) ValidateDelete

func (r *Calculator) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Calculator) ValidateUpdate

func (r *Calculator) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type CalculatorList

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

CalculatorList contains a list of Calculator

func (*CalculatorList) DeepCopy

func (in *CalculatorList) DeepCopy() *CalculatorList

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

func (*CalculatorList) DeepCopyInto

func (in *CalculatorList) DeepCopyInto(out *CalculatorList)

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

func (*CalculatorList) DeepCopyObject

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

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

type CalculatorSpec

type CalculatorSpec struct {

	// Foo is an example field of Calculator. Edit calculator_types.go to remove/update
	NumberOne int    `json:"numberone"`
	NumberTwo int    `json:"numbertwo"`
	Operation string `json:"operation"`
}

CalculatorSpec defines the desired state of Calculator

func (*CalculatorSpec) DeepCopy

func (in *CalculatorSpec) DeepCopy() *CalculatorSpec

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

func (*CalculatorSpec) DeepCopyInto

func (in *CalculatorSpec) DeepCopyInto(out *CalculatorSpec)

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

type CalculatorStatus

type CalculatorStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Result int `json:"result"`
}

CalculatorStatus defines the observed state of Calculator

func (*CalculatorStatus) DeepCopy

func (in *CalculatorStatus) DeepCopy() *CalculatorStatus

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

func (*CalculatorStatus) DeepCopyInto

func (in *CalculatorStatus) DeepCopyInto(out *CalculatorStatus)

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