v1alpha1

package
v0.0.0-...-240ab6b Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=maths.tableflip.dev

Index

Constants

View Source
const (
	// AddConditionReady is set when the revision is starting to materialize
	// runtime resources, and becomes true when those resources are ready.
	AddConditionReady = apis.ConditionReady
)
View Source
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

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: maths.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

func (in *Add) DeepCopy() *Add

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

func (*Add) DeepCopyInto

func (in *Add) DeepCopyInto(out *Add)

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

func (*Add) DeepCopyObject

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

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

func (a *Add) GetStatus() *duckv1.Status

GetStatus retrieves the status of the resource. Implements the KRShaped interface.

func (*Add) SetDefaults

func (a *Add) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*Add) Validate

func (a *Add) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

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

func (in *AddList) DeepCopy() *AddList

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

func (*AddList) DeepCopyInto

func (in *AddList) DeepCopyInto(out *AddList)

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

func (*AddList) DeepCopyObject

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

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

func (in *AddSpec) DeepCopy() *AddSpec

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

func (*AddSpec) DeepCopyInto

func (in *AddSpec) DeepCopyInto(out *AddSpec)

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

func (*AddSpec) Validate

func (as *AddSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

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

func (in *AddStatus) DeepCopy() *AddStatus

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

func (*AddStatus) DeepCopyInto

func (in *AddStatus) DeepCopyInto(out *AddStatus)

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

func (as *AddStatus) MarkResultsMissing(Operand string)

type Operand

type Operand struct {
	Ref   *duckv1.KReference `json:"ref,omitempty"`
	Value *int               `json:"value,omitempty"`
}

func (*Operand) DeepCopy

func (in *Operand) DeepCopy() *Operand

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

func (*Operand) DeepCopyInto

func (in *Operand) DeepCopyInto(out *Operand)

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

func (in *Subtract) DeepCopy() *Subtract

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

func (*Subtract) DeepCopyInto

func (in *Subtract) DeepCopyInto(out *Subtract)

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

func (*Subtract) DeepCopyObject

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

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

func (a *Subtract) GetStatus() *duckv1.Status

GetStatus retrieves the status of the resource. Implements the KRShaped interface.

func (*Subtract) SetDefaults

func (a *Subtract) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*Subtract) Validate

func (a *Subtract) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL