Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the calculator v1 API group +kubebuilder:object:generate=true +groupName=calculator.sample.domain
Index ¶
- Variables
- type Sum
- func (in *Sum) DeepCopy() *Sum
- func (in *Sum) DeepCopyInto(out *Sum)
- func (in *Sum) DeepCopyObject() runtime.Object
- func (r *Sum) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Sum) ValidateCreate() error
- func (r *Sum) ValidateDelete() error
- func (r *Sum) ValidateUpdate(old runtime.Object) error
- type SumList
- type SumSpec
- type SumStatus
Constants ¶
This section is empty.
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sum.
func (*Sum) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Sum) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Sum) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Sum) ValidateDelete ¶
ValidateDelete 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SumList.
func (*SumList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SumList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SumSpec.
func (*SumSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SumStatus.
func (*SumStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.