v1

package
v0.0.0-...-7aad2e3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the operator v1 API group +kubebuilder:object:generate=true +groupName=cyphernetes-operator.cyphernet.es

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cyphernetes-operator.cyphernet.es", 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 DynamicOperator

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

	Spec   DynamicOperatorSpec   `json:"spec,omitempty"`
	Status DynamicOperatorStatus `json:"status,omitempty"`
}

DynamicOperator is the Schema for the dynamicoperators API

func (*DynamicOperator) DeepCopy

func (in *DynamicOperator) DeepCopy() *DynamicOperator

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

func (*DynamicOperator) DeepCopyInto

func (in *DynamicOperator) DeepCopyInto(out *DynamicOperator)

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

func (*DynamicOperator) DeepCopyObject

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

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

type DynamicOperatorList

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

DynamicOperatorList contains a list of DynamicOperator

func (*DynamicOperatorList) DeepCopy

func (in *DynamicOperatorList) DeepCopy() *DynamicOperatorList

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

func (*DynamicOperatorList) DeepCopyInto

func (in *DynamicOperatorList) DeepCopyInto(out *DynamicOperatorList)

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

func (*DynamicOperatorList) DeepCopyObject

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

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

type DynamicOperatorSpec

type DynamicOperatorSpec struct {
	// ResourceKind specifies the Kubernetes resource kind to watch
	// +kubebuilder:validation:Required
	ResourceKind string `json:"resourceKind"`

	// Namespace specifies the namespace to watch. If empty, it watches all namespaces
	Namespace string `json:"namespace,omitempty"`

	// OnCreate is the Cyphernetes query to execute when a resource is created
	OnCreate string `json:"onCreate,omitempty"`

	// OnUpdate is the Cyphernetes query to execute when a resource is updated
	OnUpdate string `json:"onUpdate,omitempty"`

	// OnDelete is the Cyphernetes query to execute when a resource is deleted
	OnDelete string `json:"onDelete,omitempty"`
}

DynamicOperatorSpec defines the desired state of DynamicOperator +kubebuilder:validation:XValidation:rule="self.onCreate != \"\" || self.onUpdate != \"\" || self.onDelete != \"\"",message="At least one of onCreate, onUpdate, or onDelete must be specified"

func (*DynamicOperatorSpec) DeepCopy

func (in *DynamicOperatorSpec) DeepCopy() *DynamicOperatorSpec

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

func (*DynamicOperatorSpec) DeepCopyInto

func (in *DynamicOperatorSpec) DeepCopyInto(out *DynamicOperatorSpec)

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

type DynamicOperatorStatus

type DynamicOperatorStatus struct {
	// ActiveWatchers is the number of active watchers for this DynamicOperator
	ActiveWatchers int `json:"activeWatchers"`

	// LastExecutedQuery is the last Cyphernetes query that was executed
	LastExecutedQuery string `json:"lastExecutedQuery,omitempty"`

	// LastExecutionTime is the timestamp of the last query execution
	LastExecutionTime *metav1.Time `json:"lastExecutionTime,omitempty"`
}

DynamicOperatorStatus defines the observed state of DynamicOperator

func (*DynamicOperatorStatus) DeepCopy

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

func (*DynamicOperatorStatus) DeepCopyInto

func (in *DynamicOperatorStatus) DeepCopyInto(out *DynamicOperatorStatus)

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