v1alpha1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpressionSelector

type ExpressionSelector struct {
	// match is a map of {expression,value} pairs. A single {expression,value} in the match
	// map is equivalent to an element of matchExpressions, whose expression field is "expression", the
	// operator is "In", and the values array contains only "value". The requirements are ANDed.
	// +optional
	Match map[string]string `json:"match,omitempty" protobuf:"bytes,1,rep,name=match"`
	// matchExpressions is a list of field selector requirements. The requirements are ANDed.
	// +optional
	MatchExpressions []ExpressionSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,2,rep,name=matchExpressions"`
}

A expression selector is a query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty selector matches all objects. A null selector matches no objects. +structType=atomic

func (*ExpressionSelector) DeepCopy

func (in *ExpressionSelector) DeepCopy() *ExpressionSelector

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

func (*ExpressionSelector) DeepCopyInto

func (in *ExpressionSelector) DeepCopyInto(out *ExpressionSelector)

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

type ExpressionSelectorRequirement

type ExpressionSelectorRequirement struct {
	// expression is a cel expression
	// +patchMergeKey=expression
	// +patchStrategy=merge
	Expression string `json:"expression" patchStrategy:"merge" patchMergeKey:"expression" protobuf:"bytes,1,opt,name=expression"`
	// operator represents a expression's relationship to a set of values.
	Operator SelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator"`
	// values is an array of string values. If the operator is In or NotIn,
	// the values array must be non-empty. If the operator is Exists or DoesNotExist,
	// the values array must be empty.
	// +optional
	Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"`
}

A expression selector requirement is a selector that contains values, an expression, and an operator that relates the expression and values.

func (*ExpressionSelectorRequirement) DeepCopy

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

func (*ExpressionSelectorRequirement) DeepCopyInto

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

type SelectorOperator

type SelectorOperator string

A label selector operator is the set of operators that can be used in a selector requirement.

const (
	SelectorOpEquals       SelectorOperator = "Equals"
	SelectorOpDoubleEquals SelectorOperator = "DoubleEquals"
	SelectorOpNotEquals    SelectorOperator = "NotEquals"
	SelectorOpIn           SelectorOperator = "In"
	SelectorOpNotIn        SelectorOperator = "NotIn"
	SelectorOpExists       SelectorOperator = "Exists"
	SelectorOpDoesNotExist SelectorOperator = "DoesNotExist"
	SelectorOpGreaterThan  SelectorOperator = "GreaterThan"
	SelectorOpLessThan     SelectorOperator = "LessThan"
)

Jump to

Keyboard shortcuts

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