v1alpha1

package
v0.0.0-...-75bf5e5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.zerok.ai

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "operator.zerok.ai", Version: "v1alpha1"}

	// 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 Condition

type Condition string

+k8s:deepcopy-gen=true

const (
	AND Condition = "AND"
	OR  Condition = "OR"
)

type DataType

type DataType string

type ExecutorName

type ExecutorName string

type ExecutorType

type ExecutorType string
const (
	OTEL ExecutorType = "OTEL"
)

type ExecutorTypeEnum

type ExecutorTypeEnum struct {
	OTEL ExecutorType
	EBPF ExecutorType
}

func (*ExecutorTypeEnum) DeepCopy

func (in *ExecutorTypeEnum) DeepCopy() *ExecutorTypeEnum

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

func (*ExecutorTypeEnum) DeepCopyInto

func (in *ExecutorTypeEnum) DeepCopyInto(out *ExecutorTypeEnum)

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

type Filter

type Filter struct {
	Type      string    `json:"type"`
	Condition Condition `json:"condition"`
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	Filters      *Filters      `json:"filters,omitempty"`
	WorkloadKeys *WorkloadKeys `json:"workload_keys,omitempty"`
}

+k8s:deepcopy-gen=false

func (*Filter) DeepCopy

func (in *Filter) DeepCopy() *Filter

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

func (*Filter) DeepCopyInto

func (in *Filter) DeepCopyInto(out *Filter)

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

type Filters

type Filters []Filter

+k8s:deepcopy-gen=false

func (Filters) DeepCopy

func (in Filters) DeepCopy() Filters

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

func (Filters) DeepCopyInto

func (in Filters) DeepCopyInto(out *Filters)

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

type GroupBy

type GroupBy struct {
	WorkloadKey string `json:"workload_key"`
	Title       string `json:"title"`
	Hash        string `json:"hash"`
}

+k8s:deepcopy-gen=true

func (*GroupBy) DeepCopy

func (in *GroupBy) DeepCopy() *GroupBy

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

func (*GroupBy) DeepCopyInto

func (in *GroupBy) DeepCopyInto(out *GroupBy)

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

type InputTypes

type InputTypes string

type OperatorTypes

type OperatorTypes string

type ProtocolName

type ProtocolName string

type RateLimit

type RateLimit struct {
	BucketMaxSize    int    `json:"bucket_max_size"`
	BucketRefillSize int    `json:"bucket_refill_size"`
	TickDuration     string `json:"tick_duration"`
}

+k8s:deepcopy-gen=true

func (*RateLimit) DeepCopy

func (in *RateLimit) DeepCopy() *RateLimit

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

func (*RateLimit) DeepCopyInto

func (in *RateLimit) DeepCopyInto(out *RateLimit)

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

type Rule

type Rule struct {
	Type       string `json:"type"`
	*RuleGroup `json:""`
	*RuleLeaf  `json:""`
}

+k8s:deepcopy-gen=true

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

type RuleGroup

type RuleGroup struct {
	Condition *Condition `json:"condition,omitempty"`
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Schemaless
	Rules Rules `json:"rules,omitempty"`
}

+k8s:deepcopy-gen=true

func (*RuleGroup) DeepCopy

func (in *RuleGroup) DeepCopy() *RuleGroup

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

func (*RuleGroup) DeepCopyInto

func (in *RuleGroup) DeepCopyInto(out *RuleGroup)

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

type RuleLeaf

type RuleLeaf struct {
	ID       *string        `json:"id,omitempty"`
	Datatype *DataType      `json:"datatype,omitempty"`
	Operator *OperatorTypes `json:"operator,omitempty"`
	Value    *ValueTypes    `json:"value,omitempty"`
	JsonPath *[]string      `json:"json_path,omitempty"`
}

+k8s:deepcopy-gen=true

func (*RuleLeaf) DeepCopy

func (in *RuleLeaf) DeepCopy() *RuleLeaf

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

func (*RuleLeaf) DeepCopyInto

func (in *RuleLeaf) DeepCopyInto(out *RuleLeaf)

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

type Rules

type Rules []Rule

+k8s:deepcopy-gen=true

func (Rules) DeepCopy

func (in Rules) DeepCopy() Rules

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

func (Rules) DeepCopyInto

func (in Rules) DeepCopyInto(out *Rules)

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

type ValueTypes

type ValueTypes string

type Workload

type Workload struct {
	Rule model.Rule `json:"rule,omitempty"`
}

+k8s:deepcopy-gen=true

func (*Workload) DeepCopy

func (in *Workload) DeepCopy() *Workload

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

func (*Workload) DeepCopyInto

func (in *Workload) DeepCopyInto(out *Workload)

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

type WorkloadKeys

type WorkloadKeys []string

+k8s:deepcopy-gen=true

func (WorkloadKeys) DeepCopy

func (in WorkloadKeys) DeepCopy() WorkloadKeys

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

func (WorkloadKeys) DeepCopyInto

func (in WorkloadKeys) DeepCopyInto(out *WorkloadKeys)

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

type Workloads

type Workloads map[string]Workload

+k8s:deepcopy-gen=true

func (Workloads) DeepCopy

func (in Workloads) DeepCopy() Workloads

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

func (Workloads) DeepCopyInto

func (in Workloads) DeepCopyInto(out *Workloads)

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

type ZerokProbe

type ZerokProbe struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ZerokProbeSpec   `json:"spec,omitempty"`
	Status            ZerokProbeStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status ZerokProbe is used to specify rules to filter the spans generated by the services ZerokProbe is the CRD schema for crating probe

func (*ZerokProbe) DeepCopy

func (in *ZerokProbe) DeepCopy() *ZerokProbe

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

func (*ZerokProbe) DeepCopyInto

func (in *ZerokProbe) DeepCopyInto(out *ZerokProbe)

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

func (*ZerokProbe) DeepCopyObject

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

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

type ZerokProbeList

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

ZerokProbeList contains a list of ZerokProbe

func (*ZerokProbeList) DeepCopy

func (in *ZerokProbeList) DeepCopy() *ZerokProbeList

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

func (*ZerokProbeList) DeepCopyInto

func (in *ZerokProbeList) DeepCopyInto(out *ZerokProbeList)

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

func (*ZerokProbeList) DeepCopyObject

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

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

type ZerokProbePhase

type ZerokProbePhase string

ZerokPronePhase is a label for the condition of a Probe at the current time. +enum

const (
	// ProbePending means the Probe has been accepted by the system,
	// has not been started. This includes time before being bound to a node,
	ProbePending ZerokProbePhase = "Pending"
	// ProbeRunning means the probe has
	// validating the probe and storing in DB
	ProbeRunning ZerokProbePhase = "Running"
	// ProbeSucceeded means that all validations are done stored in DB
	ProbeSucceeded ZerokProbePhase = "Succeeded"
	// ProbeFailed means that all validations are failing or redis storage is failing
	ProbeFailed ZerokProbePhase = "Failed"
	// ProbeUnknown means that for some reason the state of the probe could not be obtained, typically due
	// to an error in communicating with redis
	ProbeUnknown ZerokProbePhase = "Unknown"
	// ProbeDeleting means that the probe is being deleted
	ProbeDeleting ZerokProbePhase = "Deleting"
)

These are the valid statuses of pods.

type ZerokProbeSpec

type ZerokProbeSpec struct {
	Title     string      `json:"title"`
	Enabled   bool        `json:"enabled"`
	Workloads Workloads   `json:"workloads,omitempty"`
	Filter    Filter      `json:"filter,omitempty"`
	GroupBy   []GroupBy   `json:"group_by,omitempty"`
	RateLimit []RateLimit `json:"rate_limit,omitempty"`
}

+k8s:deepcopy-gen=true

func (*ZerokProbeSpec) DeepCopy

func (in *ZerokProbeSpec) DeepCopy() *ZerokProbeSpec

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

func (*ZerokProbeSpec) DeepCopyInto

func (in *ZerokProbeSpec) DeepCopyInto(out *ZerokProbeSpec)

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

type ZerokProbeStatus

type ZerokProbeStatus struct {

	// +optional
	Phase ZerokProbePhase `json:"phase,omitempty"`

	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

ZerokProbeStatus defines the observed state of Probe

func (*ZerokProbeStatus) DeepCopy

func (in *ZerokProbeStatus) DeepCopy() *ZerokProbeStatus

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

func (*ZerokProbeStatus) DeepCopyInto

func (in *ZerokProbeStatus) DeepCopyInto(out *ZerokProbeStatus)

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