v1

package
v0.0.0-...-5e9423d Latest Latest
Warning

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

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

Documentation

Overview

Package v1 contains API Schema definitions for the calculator v1 API group +kubebuilder:object:generate=true +groupName=calculator.sample.domain

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.domain", 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 Sum

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

	Spec   SumSpec   `json:"spec,omitempty"`
	Status SumStatus `json:"status,omitempty"`
}

Sum is the Schema for the sums API

func (*Sum) DeepCopy

func (in *Sum) DeepCopy() *Sum

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

func (*Sum) DeepCopyInto

func (in *Sum) DeepCopyInto(out *Sum)

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

func (*Sum) DeepCopyObject

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

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

func (*Sum) SetupWebhookWithManager

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

func (*Sum) ValidateCreate

func (r *Sum) ValidateCreate() error

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

func (*Sum) ValidateDelete

func (r *Sum) ValidateDelete() error

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

func (*Sum) ValidateUpdate

func (r *Sum) ValidateUpdate(old runtime.Object) error

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

type SumList

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

SumList contains a list of Sum

func (*SumList) DeepCopy

func (in *SumList) DeepCopy() *SumList

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

func (*SumList) DeepCopyInto

func (in *SumList) DeepCopyInto(out *SumList)

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

func (*SumList) DeepCopyObject

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

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

type SumSpec

type SumSpec struct {
	NumberOne int `json:"numberOne,omitempty"`
	NumberTwo int `json:"numberTwo,omitempty"`
}

SumSpec defines the desired state of Sum

func (*SumSpec) DeepCopy

func (in *SumSpec) DeepCopy() *SumSpec

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

func (*SumSpec) DeepCopyInto

func (in *SumSpec) DeepCopyInto(out *SumSpec)

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

type SumStatus

type SumStatus struct {
	Result int `json:"result,omitempty"`
}

SumStatus defines the observed state of Sum

func (*SumStatus) DeepCopy

func (in *SumStatus) DeepCopy() *SumStatus

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

func (*SumStatus) DeepCopyInto

func (in *SumStatus) DeepCopyInto(out *SumStatus)

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