selectors

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Selector_Expression_Operator_name = map[int32]string{
		0: "Equals",
		1: "DoubleEquals",
		2: "NotEquals",
		3: "In",
		4: "NotIn",
		5: "Exists",
		6: "DoesNotExist",
		7: "GreaterThan",
		8: "LessThan",
	}
	Selector_Expression_Operator_value = map[string]int32{
		"Equals":       0,
		"DoubleEquals": 1,
		"NotEquals":    2,
		"In":           3,
		"NotIn":        4,
		"Exists":       5,
		"DoesNotExist": 6,
		"GreaterThan":  7,
		"LessThan":     8,
	}
)

Enum value maps for Selector_Expression_Operator.

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_core_selectors_selectors_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Selector

type Selector struct {
	Namespaces []string          `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	Labels     map[string]string `` /* 153-byte string literal not displayed */
	// Expressions allow for more flexible Route Tables label matching, such as equality-based requirements, set-based requirements, or a combination of both.
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#equality-based-requirement
	Expressions []*Selector_Expression `protobuf:"bytes,3,rep,name=expressions,proto3" json:"expressions,omitempty"`
	// contains filtered or unexported fields
}

func (*Selector) Clone

func (m *Selector) Clone() proto.Message

Clone function

func (*Selector) Descriptor deprecated

func (*Selector) Descriptor() ([]byte, []int)

Deprecated: Use Selector.ProtoReflect.Descriptor instead.

func (*Selector) Equal

func (m *Selector) Equal(that interface{}) bool

Equal function

func (*Selector) GetExpressions

func (x *Selector) GetExpressions() []*Selector_Expression

func (*Selector) GetLabels

func (x *Selector) GetLabels() map[string]string

func (*Selector) GetNamespaces

func (x *Selector) GetNamespaces() []string

func (*Selector) Hash

func (m *Selector) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Selector) ProtoMessage

func (*Selector) ProtoMessage()

func (*Selector) ProtoReflect

func (x *Selector) ProtoReflect() protoreflect.Message

func (*Selector) Reset

func (x *Selector) Reset()

func (*Selector) String

func (x *Selector) String() string

type Selector_Expression

type Selector_Expression struct {

	// Kubernetes label key, must conform to Kubernetes syntax requirements
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The operator can only be in, notin, =, ==, !=, exists, ! (DoesNotExist), gt (GreaterThan), lt (LessThan).
	Operator Selector_Expression_Operator `` /* 132-byte string literal not displayed */
	Values   []string                     `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Selector_Expression) Clone

func (m *Selector_Expression) Clone() proto.Message

Clone function

func (*Selector_Expression) Descriptor deprecated

func (*Selector_Expression) Descriptor() ([]byte, []int)

Deprecated: Use Selector_Expression.ProtoReflect.Descriptor instead.

func (*Selector_Expression) Equal

func (m *Selector_Expression) Equal(that interface{}) bool

Equal function

func (*Selector_Expression) GetKey

func (x *Selector_Expression) GetKey() string

func (*Selector_Expression) GetOperator

func (*Selector_Expression) GetValues

func (x *Selector_Expression) GetValues() []string

func (*Selector_Expression) Hash

func (m *Selector_Expression) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Selector_Expression) ProtoMessage

func (*Selector_Expression) ProtoMessage()

func (*Selector_Expression) ProtoReflect

func (x *Selector_Expression) ProtoReflect() protoreflect.Message

func (*Selector_Expression) Reset

func (x *Selector_Expression) Reset()

func (*Selector_Expression) String

func (x *Selector_Expression) String() string

type Selector_Expression_Operator

type Selector_Expression_Operator int32

Selector expression operator, while the set-based syntax differs from Kubernetes (kubernetes: `key: !mylabel`, gloo: `key: mylabel, operator: "!"` | kubernetes: `key: mylabel`, gloo: `key: mylabel, operator: exists`), the functionality remains the same.

const (
	// =
	Selector_Expression_Equals Selector_Expression_Operator = 0
	// ==
	Selector_Expression_DoubleEquals Selector_Expression_Operator = 1
	// !=
	Selector_Expression_NotEquals Selector_Expression_Operator = 2
	// in
	Selector_Expression_In Selector_Expression_Operator = 3
	// notin
	Selector_Expression_NotIn Selector_Expression_Operator = 4
	// exists
	Selector_Expression_Exists Selector_Expression_Operator = 5
	// !
	Selector_Expression_DoesNotExist Selector_Expression_Operator = 6
	// gt
	Selector_Expression_GreaterThan Selector_Expression_Operator = 7
	// lt
	Selector_Expression_LessThan Selector_Expression_Operator = 8
)

func (Selector_Expression_Operator) Descriptor

func (Selector_Expression_Operator) Enum

func (Selector_Expression_Operator) EnumDescriptor deprecated

func (Selector_Expression_Operator) EnumDescriptor() ([]byte, []int)

Deprecated: Use Selector_Expression_Operator.Descriptor instead.

func (Selector_Expression_Operator) Number

func (Selector_Expression_Operator) String

func (Selector_Expression_Operator) Type

Jump to

Keyboard shortcuts

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