Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=maths.tableflip.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Add
- func (in *Add) DeepCopy() *Add
- func (in *Add) DeepCopyInto(out *Add)
- func (in *Add) DeepCopyObject() runtime.Object
- func (a *Add) GetConditionSet() apis.ConditionSet
- func (*Add) GetGroupVersionKind() schema.GroupVersionKind
- func (a *Add) GetStatus() *duckv1.Status
- func (a *Add) SetDefaults(ctx context.Context)
- func (a *Add) Validate(ctx context.Context) *apis.FieldError
- type AddList
- type AddSpec
- type AddStatus
- type Operand
- type Subtract
- func (in *Subtract) DeepCopy() *Subtract
- func (in *Subtract) DeepCopyInto(out *Subtract)
- func (in *Subtract) DeepCopyObject() runtime.Object
- func (a *Subtract) GetConditionSet() apis.ConditionSet
- func (*Subtract) GetGroupVersionKind() schema.GroupVersionKind
- func (a *Subtract) GetStatus() *duckv1.Status
- func (a *Subtract) SetDefaults(ctx context.Context)
- func (a *Subtract) Validate(ctx context.Context) *apis.FieldError
- type SubtractList
- type SubtractSpec
- type SubtractStatus
Constants ¶
const ( // AddConditionReady is set when the revision is starting to materialize // runtime resources, and becomes true when those resources are ready. AddConditionReady = apis.ConditionReady )
const ( // SubtractConditionReady is set when the revision is starting to materialize // runtime resources, and becomes true when those resources are ready. SubtractConditionReady = apis.ConditionReady )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: maths.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Add ¶
type Add struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Add (from the client). // +optional Spec AddSpec `json:"spec,omitempty"` // Status communicates the observed state of the Add (from the controller). // +optional Status AddStatus `json:"status,omitempty"` }
+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Add) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Add.
func (*Add) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Add) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Add) GetConditionSet ¶
func (a *Add) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*Add) GetGroupVersionKind ¶
func (*Add) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*Add) GetStatus ¶
GetStatus retrieves the status of the resource. Implements the KRShaped interface.
func (*Add) SetDefaults ¶
SetDefaults implements apis.Defaultable
type AddList ¶
type AddList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Add `json:"items"` }
AddList is a list of Add resources
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AddList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddList.
func (*AddList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AddSpec ¶
type AddSpec struct {
Operands []Operand `json:"add"`
}
AddSpec holds the desired state of the Add (from the client).
func (*AddSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddSpec.
func (*AddSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddStatus ¶
type AddStatus struct { duckv1.Status `json:",inline"` Expression string `json:"expression,omitempty"` Result int `json:"result"` }
AddStatus communicates the observed state of the Add (from the controller).
func (*AddStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddStatus.
func (*AddStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddStatus) InitializeConditions ¶
func (as *AddStatus) InitializeConditions()
InitializeConditions sets the initial values to the conditions.
func (*AddStatus) MarkComputed ¶
func (as *AddStatus) MarkComputed()
func (*AddStatus) MarkResultsMissing ¶
type Operand ¶
type Operand struct { Ref *duckv1.KReference `json:"ref,omitempty"` Value *int `json:"value,omitempty"` }
func (*Operand) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Operand.
func (*Operand) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Subtract ¶
type Subtract struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Subtract (from the client). // +optional Spec SubtractSpec `json:"spec,omitempty"` // Status communicates the observed state of the Subtract (from the controller). // +optional Status SubtractStatus `json:"status,omitempty"` }
+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Subtract) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subtract.
func (*Subtract) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Subtract) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Subtract) GetConditionSet ¶
func (a *Subtract) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*Subtract) GetGroupVersionKind ¶
func (*Subtract) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*Subtract) GetStatus ¶
GetStatus retrieves the status of the resource. Implements the KRShaped interface.
func (*Subtract) SetDefaults ¶
SetDefaults implements apis.Defaultable
type SubtractList ¶
type SubtractList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Subtract `json:"items"` }
SubtractList is a list of Subtract resources
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SubtractList) DeepCopy ¶
func (in *SubtractList) DeepCopy() *SubtractList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubtractList.
func (*SubtractList) DeepCopyInto ¶
func (in *SubtractList) DeepCopyInto(out *SubtractList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubtractList) DeepCopyObject ¶
func (in *SubtractList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubtractSpec ¶
type SubtractSpec struct {
Operands []Operand `json:"sub"`
}
SubtractSpec holds the desired state of the Subtract (from the client).
func (*SubtractSpec) DeepCopy ¶
func (in *SubtractSpec) DeepCopy() *SubtractSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubtractSpec.
func (*SubtractSpec) DeepCopyInto ¶
func (in *SubtractSpec) DeepCopyInto(out *SubtractSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubtractSpec) Validate ¶
func (as *SubtractSpec) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type SubtractStatus ¶
type SubtractStatus struct { duckv1.Status `json:",inline"` Expression string `json:"expression,omitempty"` Result int `json:"result"` }
SubtractStatus communicates the observed state of the Subtract (from the controller).
func (*SubtractStatus) DeepCopy ¶
func (in *SubtractStatus) DeepCopy() *SubtractStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubtractStatus.
func (*SubtractStatus) DeepCopyInto ¶
func (in *SubtractStatus) DeepCopyInto(out *SubtractStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubtractStatus) InitializeConditions ¶
func (as *SubtractStatus) InitializeConditions()
InitializeConditions sets the initial values to the conditions.
func (*SubtractStatus) MarkComputed ¶
func (as *SubtractStatus) MarkComputed()
func (*SubtractStatus) MarkResultsMissing ¶
func (as *SubtractStatus) MarkResultsMissing(Operand string)