Documentation ¶
Index ¶
- Variables
- type Selector
- func (m *Selector) Clone() proto.Message
- func (*Selector) Descriptor() ([]byte, []int)deprecated
- func (m *Selector) Equal(that interface{}) bool
- func (x *Selector) GetExpressions() []*Selector_Expression
- func (x *Selector) GetLabels() map[string]string
- func (x *Selector) GetNamespaces() []string
- func (m *Selector) Hash(hasher hash.Hash64) (uint64, error)deprecated
- func (m *Selector) HashUnique(hasher hash.Hash64) (uint64, error)
- func (*Selector) ProtoMessage()
- func (x *Selector) ProtoReflect() protoreflect.Message
- func (x *Selector) Reset()
- func (x *Selector) String() string
- type Selector_Expression
- func (m *Selector_Expression) Clone() proto.Message
- func (*Selector_Expression) Descriptor() ([]byte, []int)deprecated
- func (m *Selector_Expression) Equal(that interface{}) bool
- func (x *Selector_Expression) GetKey() string
- func (x *Selector_Expression) GetOperator() Selector_Expression_Operator
- func (x *Selector_Expression) GetValues() []string
- func (m *Selector_Expression) Hash(hasher hash.Hash64) (uint64, error)deprecated
- func (m *Selector_Expression) HashUnique(hasher hash.Hash64) (uint64, error)
- func (*Selector_Expression) ProtoMessage()
- func (x *Selector_Expression) ProtoReflect() protoreflect.Message
- func (x *Selector_Expression) Reset()
- func (x *Selector_Expression) String() string
- type Selector_Expression_Operator
- func (Selector_Expression_Operator) Descriptor() protoreflect.EnumDescriptor
- func (x Selector_Expression_Operator) Enum() *Selector_Expression_Operator
- func (Selector_Expression_Operator) EnumDescriptor() ([]byte, []int)deprecated
- func (x Selector_Expression_Operator) Number() protoreflect.EnumNumber
- func (x Selector_Expression_Operator) String() string
- func (Selector_Expression_Operator) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
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.
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) Descriptor
deprecated
func (*Selector) GetExpressions ¶
func (x *Selector) GetExpressions() []*Selector_Expression
func (*Selector) GetNamespaces ¶
func (*Selector) HashUnique ¶ added in v1.18.0
HashUnique function generates a hash of the object that is unique to the object by hashing field name and value pairs. Replaces Hash due to original hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions.
func (*Selector) ProtoMessage ¶
func (*Selector) ProtoMessage()
func (*Selector) ProtoReflect ¶
func (x *Selector) ProtoReflect() protoreflect.Message
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 (x *Selector_Expression) GetOperator() Selector_Expression_Operator
func (*Selector_Expression) GetValues ¶
func (x *Selector_Expression) GetValues() []string
func (*Selector_Expression) Hash
deprecated
func (m *Selector_Expression) Hash(hasher hash.Hash64) (uint64, error)
Hash function
Deprecated: due to hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions. Prefer the HashUnique function instead.
func (*Selector_Expression) HashUnique ¶ added in v1.18.0
func (m *Selector_Expression) HashUnique(hasher hash.Hash64) (uint64, error)
HashUnique function generates a hash of the object that is unique to the object by hashing field name and value pairs. Replaces Hash due to original hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions.
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) Descriptor() protoreflect.EnumDescriptor
func (Selector_Expression_Operator) Enum ¶
func (x Selector_Expression_Operator) Enum() *Selector_Expression_Operator
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 (x Selector_Expression_Operator) Number() protoreflect.EnumNumber
func (Selector_Expression_Operator) String ¶
func (x Selector_Expression_Operator) String() string
func (Selector_Expression_Operator) Type ¶
func (Selector_Expression_Operator) Type() protoreflect.EnumType