Documentation ¶
Overview ¶
Code generated by protoc-gen-deepcopy. DO NOT EDIT.
Index ¶
- Variables
- type EqualsMatchExpression
- func (in *EqualsMatchExpression) DeepCopy() *EqualsMatchExpression
- func (in *EqualsMatchExpression) DeepCopyInterface() interface{}
- func (in *EqualsMatchExpression) DeepCopyInto(out *EqualsMatchExpression)
- func (*EqualsMatchExpression) Descriptor() ([]byte, []int)deprecated
- func (x *EqualsMatchExpression) GetLabel() string
- func (x *EqualsMatchExpression) GetValue() string
- func (msg *EqualsMatchExpression) MarshalJSON() ([]byte, error)
- func (*EqualsMatchExpression) ProtoMessage()
- func (x *EqualsMatchExpression) ProtoReflect() protoreflect.Message
- func (x *EqualsMatchExpression) Reset()
- func (x *EqualsMatchExpression) String() string
- func (msg *EqualsMatchExpression) UnmarshalJSON(b []byte) error
- type K8SLabelMatcherRequirement
- func (in *K8SLabelMatcherRequirement) DeepCopy() *K8SLabelMatcherRequirement
- func (in *K8SLabelMatcherRequirement) DeepCopyInterface() interface{}
- func (in *K8SLabelMatcherRequirement) DeepCopyInto(out *K8SLabelMatcherRequirement)
- func (*K8SLabelMatcherRequirement) Descriptor() ([]byte, []int)deprecated
- func (x *K8SLabelMatcherRequirement) GetKey() string
- func (x *K8SLabelMatcherRequirement) GetOperator() string
- func (x *K8SLabelMatcherRequirement) GetValues() []string
- func (msg *K8SLabelMatcherRequirement) MarshalJSON() ([]byte, error)
- func (*K8SLabelMatcherRequirement) ProtoMessage()
- func (x *K8SLabelMatcherRequirement) ProtoReflect() protoreflect.Message
- func (x *K8SLabelMatcherRequirement) Reset()
- func (x *K8SLabelMatcherRequirement) String() string
- func (msg *K8SLabelMatcherRequirement) UnmarshalJSON(b []byte) error
- type LabelMatcher
- func (in *LabelMatcher) DeepCopy() *LabelMatcher
- func (in *LabelMatcher) DeepCopyInterface() interface{}
- func (in *LabelMatcher) DeepCopyInto(out *LabelMatcher)
- func (*LabelMatcher) Descriptor() ([]byte, []int)deprecated
- func (x *LabelMatcher) GetExpression() *MatchExpression
- func (x *LabelMatcher) GetMatchExpressions() []*K8SLabelMatcherRequirement
- func (x *LabelMatcher) GetMatchLabels() map[string]string
- func (msg *LabelMatcher) MarshalJSON() ([]byte, error)
- func (*LabelMatcher) ProtoMessage()
- func (x *LabelMatcher) ProtoReflect() protoreflect.Message
- func (x *LabelMatcher) Reset()
- func (x *LabelMatcher) String() string
- func (msg *LabelMatcher) UnmarshalJSON(b []byte) error
- type MatchExpression
- func (in *MatchExpression) DeepCopy() *MatchExpression
- func (in *MatchExpression) DeepCopyInterface() interface{}
- func (in *MatchExpression) DeepCopyInto(out *MatchExpression)
- func (*MatchExpression) Descriptor() ([]byte, []int)deprecated
- func (x *MatchExpression) GetAll() *MatchExpression_List
- func (x *MatchExpression) GetAny() *MatchExpression_List
- func (x *MatchExpression) GetLabelEquals() *EqualsMatchExpression
- func (x *MatchExpression) GetLabelExists() string
- func (x *MatchExpression) GetLabelMatches() *MatchesMatchExpression
- func (x *MatchExpression) GetNot() *MatchExpression
- func (m *MatchExpression) GetVariant() isMatchExpression_Variant
- func (msg *MatchExpression) MarshalJSON() ([]byte, error)
- func (*MatchExpression) ProtoMessage()
- func (x *MatchExpression) ProtoReflect() protoreflect.Message
- func (x *MatchExpression) Reset()
- func (x *MatchExpression) String() string
- func (msg *MatchExpression) UnmarshalJSON(b []byte) error
- type MatchExpression_All
- type MatchExpression_Any
- type MatchExpression_LabelEquals
- type MatchExpression_LabelExists
- type MatchExpression_LabelMatches
- type MatchExpression_List
- func (in *MatchExpression_List) DeepCopy() *MatchExpression_List
- func (in *MatchExpression_List) DeepCopyInterface() interface{}
- func (in *MatchExpression_List) DeepCopyInto(out *MatchExpression_List)
- func (*MatchExpression_List) Descriptor() ([]byte, []int)deprecated
- func (x *MatchExpression_List) GetOf() []*MatchExpression
- func (msg *MatchExpression_List) MarshalJSON() ([]byte, error)
- func (*MatchExpression_List) ProtoMessage()
- func (x *MatchExpression_List) ProtoReflect() protoreflect.Message
- func (x *MatchExpression_List) Reset()
- func (x *MatchExpression_List) String() string
- func (msg *MatchExpression_List) UnmarshalJSON(b []byte) error
- type MatchExpression_Not
- type MatchesMatchExpression
- func (in *MatchesMatchExpression) DeepCopy() *MatchesMatchExpression
- func (in *MatchesMatchExpression) DeepCopyInterface() interface{}
- func (in *MatchesMatchExpression) DeepCopyInto(out *MatchesMatchExpression)
- func (*MatchesMatchExpression) Descriptor() ([]byte, []int)deprecated
- func (x *MatchesMatchExpression) GetLabel() string
- func (x *MatchesMatchExpression) GetRegex() string
- func (msg *MatchesMatchExpression) MarshalJSON() ([]byte, error)
- func (*MatchesMatchExpression) ProtoMessage()
- func (x *MatchesMatchExpression) ProtoReflect() protoreflect.Message
- func (x *MatchesMatchExpression) Reset()
- func (x *MatchesMatchExpression) String() string
- func (msg *MatchesMatchExpression) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var File_aperture_common_labelmatcher_v1_labelmatcher_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EqualsMatchExpression ¶
type EqualsMatchExpression struct { // Name of the label to equal match the value. Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty" validate:"required"` // @gotags: validate:"required" // Exact value that the label should be equal to. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Label selector expression of the equal form "label == value".
func (*EqualsMatchExpression) DeepCopy ¶ added in v0.1.2
func (in *EqualsMatchExpression) DeepCopy() *EqualsMatchExpression
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EqualsMatchExpression. Required by controller-gen.
func (*EqualsMatchExpression) DeepCopyInterface ¶ added in v0.1.2
func (in *EqualsMatchExpression) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new EqualsMatchExpression. Required by controller-gen.
func (*EqualsMatchExpression) DeepCopyInto ¶ added in v0.1.2
func (in *EqualsMatchExpression) DeepCopyInto(out *EqualsMatchExpression)
DeepCopyInto supports using EqualsMatchExpression within kubernetes types, where deepcopy-gen is used.
func (*EqualsMatchExpression) Descriptor
deprecated
func (*EqualsMatchExpression) Descriptor() ([]byte, []int)
Deprecated: Use EqualsMatchExpression.ProtoReflect.Descriptor instead.
func (*EqualsMatchExpression) GetLabel ¶
func (x *EqualsMatchExpression) GetLabel() string
func (*EqualsMatchExpression) GetValue ¶
func (x *EqualsMatchExpression) GetValue() string
func (*EqualsMatchExpression) MarshalJSON ¶
func (msg *EqualsMatchExpression) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*EqualsMatchExpression) ProtoMessage ¶
func (*EqualsMatchExpression) ProtoMessage()
func (*EqualsMatchExpression) ProtoReflect ¶
func (x *EqualsMatchExpression) ProtoReflect() protoreflect.Message
func (*EqualsMatchExpression) Reset ¶
func (x *EqualsMatchExpression) Reset()
func (*EqualsMatchExpression) String ¶
func (x *EqualsMatchExpression) String() string
func (*EqualsMatchExpression) UnmarshalJSON ¶
func (msg *EqualsMatchExpression) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type K8SLabelMatcherRequirement ¶
type K8SLabelMatcherRequirement struct { // Label key that the selector applies to. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty" validate:"required"` // @gotags: validate:"required" // Logical operator which represents a key's relationship to a set of values. // Valid operators are In, NotIn, Exists and DoesNotExist. Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty" validate:"oneof=In NotIn Exists DoesNotExists"` // @gotags: validate:"oneof=In NotIn Exists DoesNotExists" // An array of string values that relates to the key by an operator. // 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. Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
Label selector requirement which is a selector that contains values, a key, and an operator that relates the key and values.
func (*K8SLabelMatcherRequirement) DeepCopy ¶ added in v0.1.2
func (in *K8SLabelMatcherRequirement) DeepCopy() *K8SLabelMatcherRequirement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8SLabelMatcherRequirement. Required by controller-gen.
func (*K8SLabelMatcherRequirement) DeepCopyInterface ¶ added in v0.1.2
func (in *K8SLabelMatcherRequirement) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new K8SLabelMatcherRequirement. Required by controller-gen.
func (*K8SLabelMatcherRequirement) DeepCopyInto ¶ added in v0.1.2
func (in *K8SLabelMatcherRequirement) DeepCopyInto(out *K8SLabelMatcherRequirement)
DeepCopyInto supports using K8SLabelMatcherRequirement within kubernetes types, where deepcopy-gen is used.
func (*K8SLabelMatcherRequirement) Descriptor
deprecated
func (*K8SLabelMatcherRequirement) Descriptor() ([]byte, []int)
Deprecated: Use K8SLabelMatcherRequirement.ProtoReflect.Descriptor instead.
func (*K8SLabelMatcherRequirement) GetKey ¶
func (x *K8SLabelMatcherRequirement) GetKey() string
func (*K8SLabelMatcherRequirement) GetOperator ¶
func (x *K8SLabelMatcherRequirement) GetOperator() string
func (*K8SLabelMatcherRequirement) GetValues ¶
func (x *K8SLabelMatcherRequirement) GetValues() []string
func (*K8SLabelMatcherRequirement) MarshalJSON ¶
func (msg *K8SLabelMatcherRequirement) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*K8SLabelMatcherRequirement) ProtoMessage ¶
func (*K8SLabelMatcherRequirement) ProtoMessage()
func (*K8SLabelMatcherRequirement) ProtoReflect ¶
func (x *K8SLabelMatcherRequirement) ProtoReflect() protoreflect.Message
func (*K8SLabelMatcherRequirement) Reset ¶
func (x *K8SLabelMatcherRequirement) Reset()
func (*K8SLabelMatcherRequirement) String ¶
func (x *K8SLabelMatcherRequirement) String() string
func (*K8SLabelMatcherRequirement) UnmarshalJSON ¶
func (msg *K8SLabelMatcherRequirement) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type LabelMatcher ¶
type LabelMatcher struct { // A map of {key,value} pairs representing labels to be matched. // A single {key,value} in the matchLabels requires that the label "key" is present and equal to "value". // // Note: The requirements are ANDed. MatchLabels map[string]string `` /* 182-byte string literal not displayed */ // List of k8s-style label matcher requirements. // // Note: The requirements are ANDed. MatchExpressions []*K8SLabelMatcherRequirement `protobuf:"bytes,2,rep,name=match_expressions,json=matchExpressions,proto3" json:"match_expressions,omitempty"` // An arbitrary expression to be evaluated on the labels. Expression *MatchExpression `protobuf:"bytes,3,opt,name=expression,proto3" json:"expression,omitempty"` // contains filtered or unexported fields }
Allows to define rules whether a map of [labels](/concepts/flow-control/flow-label.md) should be considered a match or not
It provides three ways to define requirements: - matchLabels - matchExpressions - arbitrary expression
If multiple requirements are set, they are all ANDed. An empty label matcher always matches.
func (*LabelMatcher) DeepCopy ¶ added in v0.1.2
func (in *LabelMatcher) DeepCopy() *LabelMatcher
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelMatcher. Required by controller-gen.
func (*LabelMatcher) DeepCopyInterface ¶ added in v0.1.2
func (in *LabelMatcher) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LabelMatcher. Required by controller-gen.
func (*LabelMatcher) DeepCopyInto ¶ added in v0.1.2
func (in *LabelMatcher) DeepCopyInto(out *LabelMatcher)
DeepCopyInto supports using LabelMatcher within kubernetes types, where deepcopy-gen is used.
func (*LabelMatcher) Descriptor
deprecated
func (*LabelMatcher) Descriptor() ([]byte, []int)
Deprecated: Use LabelMatcher.ProtoReflect.Descriptor instead.
func (*LabelMatcher) GetExpression ¶
func (x *LabelMatcher) GetExpression() *MatchExpression
func (*LabelMatcher) GetMatchExpressions ¶
func (x *LabelMatcher) GetMatchExpressions() []*K8SLabelMatcherRequirement
func (*LabelMatcher) GetMatchLabels ¶
func (x *LabelMatcher) GetMatchLabels() map[string]string
func (*LabelMatcher) MarshalJSON ¶
func (msg *LabelMatcher) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*LabelMatcher) ProtoMessage ¶
func (*LabelMatcher) ProtoMessage()
func (*LabelMatcher) ProtoReflect ¶
func (x *LabelMatcher) ProtoReflect() protoreflect.Message
func (*LabelMatcher) Reset ¶
func (x *LabelMatcher) Reset()
func (*LabelMatcher) String ¶
func (x *LabelMatcher) String() string
func (*LabelMatcher) UnmarshalJSON ¶
func (msg *LabelMatcher) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type MatchExpression ¶
type MatchExpression struct { // @gotags: validate:"required" // // Types that are assignable to Variant: // *MatchExpression_Not // *MatchExpression_All // *MatchExpression_Any // *MatchExpression_LabelExists // *MatchExpression_LabelEquals // *MatchExpression_LabelMatches Variant isMatchExpression_Variant `protobuf_oneof:"variant" validate:"required"` // contains filtered or unexported fields }
Defines a [map<string, string> → bool] expression to be evaluated on labels
MatchExpression has multiple variants, exactly one should be set.
Example: ```yaml all:
of: - label_exists: foo - label_equals: { label = app, value = frobnicator }
```
func (*MatchExpression) DeepCopy ¶ added in v0.1.2
func (in *MatchExpression) DeepCopy() *MatchExpression
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchExpression. Required by controller-gen.
func (*MatchExpression) DeepCopyInterface ¶ added in v0.1.2
func (in *MatchExpression) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new MatchExpression. Required by controller-gen.
func (*MatchExpression) DeepCopyInto ¶ added in v0.1.2
func (in *MatchExpression) DeepCopyInto(out *MatchExpression)
DeepCopyInto supports using MatchExpression within kubernetes types, where deepcopy-gen is used.
func (*MatchExpression) Descriptor
deprecated
func (*MatchExpression) Descriptor() ([]byte, []int)
Deprecated: Use MatchExpression.ProtoReflect.Descriptor instead.
func (*MatchExpression) GetAll ¶
func (x *MatchExpression) GetAll() *MatchExpression_List
func (*MatchExpression) GetAny ¶
func (x *MatchExpression) GetAny() *MatchExpression_List
func (*MatchExpression) GetLabelEquals ¶
func (x *MatchExpression) GetLabelEquals() *EqualsMatchExpression
func (*MatchExpression) GetLabelExists ¶
func (x *MatchExpression) GetLabelExists() string
func (*MatchExpression) GetLabelMatches ¶
func (x *MatchExpression) GetLabelMatches() *MatchesMatchExpression
func (*MatchExpression) GetNot ¶
func (x *MatchExpression) GetNot() *MatchExpression
func (*MatchExpression) GetVariant ¶
func (m *MatchExpression) GetVariant() isMatchExpression_Variant
func (*MatchExpression) MarshalJSON ¶
func (msg *MatchExpression) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*MatchExpression) ProtoMessage ¶
func (*MatchExpression) ProtoMessage()
func (*MatchExpression) ProtoReflect ¶
func (x *MatchExpression) ProtoReflect() protoreflect.Message
func (*MatchExpression) Reset ¶
func (x *MatchExpression) Reset()
func (*MatchExpression) String ¶
func (x *MatchExpression) String() string
func (*MatchExpression) UnmarshalJSON ¶
func (msg *MatchExpression) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type MatchExpression_All ¶
type MatchExpression_All struct { // The expression is true when all subexpressions are true. All *MatchExpression_List `protobuf:"bytes,2,opt,name=all,proto3,oneof"` }
type MatchExpression_Any ¶
type MatchExpression_Any struct { // The expression is true when any subexpression is true. Any *MatchExpression_List `protobuf:"bytes,3,opt,name=any,proto3,oneof"` }
type MatchExpression_LabelEquals ¶
type MatchExpression_LabelEquals struct { // The expression is true when label value equals given value. LabelEquals *EqualsMatchExpression `protobuf:"bytes,5,opt,name=label_equals,json=labelEquals,proto3,oneof"` }
type MatchExpression_LabelExists ¶
type MatchExpression_LabelExists struct { // The expression is true when label with given name exists. LabelExists string `protobuf:"bytes,4,opt,name=label_exists,json=labelExists,proto3,oneof" validate:"required"` // @gotags: validate:"required" }
type MatchExpression_LabelMatches ¶
type MatchExpression_LabelMatches struct { // The expression is true when label matches given regex. LabelMatches *MatchesMatchExpression `protobuf:"bytes,6,opt,name=label_matches,json=labelMatches,proto3,oneof"` }
type MatchExpression_List ¶
type MatchExpression_List struct { // List of subexpressions of the match expression. Of []*MatchExpression `protobuf:"bytes,1,rep,name=of,proto3" json:"of,omitempty"` // contains filtered or unexported fields }
List of MatchExpressions that is used for all/any matching
eg. {any: {of: [expr1, expr2]}}.
func (*MatchExpression_List) DeepCopy ¶ added in v0.1.2
func (in *MatchExpression_List) DeepCopy() *MatchExpression_List
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchExpression_List. Required by controller-gen.
func (*MatchExpression_List) DeepCopyInterface ¶ added in v0.1.2
func (in *MatchExpression_List) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new MatchExpression_List. Required by controller-gen.
func (*MatchExpression_List) DeepCopyInto ¶ added in v0.1.2
func (in *MatchExpression_List) DeepCopyInto(out *MatchExpression_List)
DeepCopyInto supports using MatchExpression_List within kubernetes types, where deepcopy-gen is used.
func (*MatchExpression_List) Descriptor
deprecated
func (*MatchExpression_List) Descriptor() ([]byte, []int)
Deprecated: Use MatchExpression_List.ProtoReflect.Descriptor instead.
func (*MatchExpression_List) GetOf ¶
func (x *MatchExpression_List) GetOf() []*MatchExpression
func (*MatchExpression_List) MarshalJSON ¶
func (msg *MatchExpression_List) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*MatchExpression_List) ProtoMessage ¶
func (*MatchExpression_List) ProtoMessage()
func (*MatchExpression_List) ProtoReflect ¶
func (x *MatchExpression_List) ProtoReflect() protoreflect.Message
func (*MatchExpression_List) Reset ¶
func (x *MatchExpression_List) Reset()
func (*MatchExpression_List) String ¶
func (x *MatchExpression_List) String() string
func (*MatchExpression_List) UnmarshalJSON ¶
func (msg *MatchExpression_List) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type MatchExpression_Not ¶
type MatchExpression_Not struct { // The expression negates the result of subexpression. Not *MatchExpression `protobuf:"bytes,1,opt,name=not,proto3,oneof"` }
type MatchesMatchExpression ¶
type MatchesMatchExpression struct { // Name of the label to match the regular expression. Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty" validate:"required"` // @gotags: validate:"required" // Regular expression that should match the label value. // It uses [golang's regular expression syntax](https://github.com/google/re2/wiki/Syntax). Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty" validate:"required"` // @gotags: validate:"required" // contains filtered or unexported fields }
Label selector expression of the matches form "label matches regex".
func (*MatchesMatchExpression) DeepCopy ¶ added in v0.1.2
func (in *MatchesMatchExpression) DeepCopy() *MatchesMatchExpression
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchesMatchExpression. Required by controller-gen.
func (*MatchesMatchExpression) DeepCopyInterface ¶ added in v0.1.2
func (in *MatchesMatchExpression) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new MatchesMatchExpression. Required by controller-gen.
func (*MatchesMatchExpression) DeepCopyInto ¶ added in v0.1.2
func (in *MatchesMatchExpression) DeepCopyInto(out *MatchesMatchExpression)
DeepCopyInto supports using MatchesMatchExpression within kubernetes types, where deepcopy-gen is used.
func (*MatchesMatchExpression) Descriptor
deprecated
func (*MatchesMatchExpression) Descriptor() ([]byte, []int)
Deprecated: Use MatchesMatchExpression.ProtoReflect.Descriptor instead.
func (*MatchesMatchExpression) GetLabel ¶
func (x *MatchesMatchExpression) GetLabel() string
func (*MatchesMatchExpression) GetRegex ¶
func (x *MatchesMatchExpression) GetRegex() string
func (*MatchesMatchExpression) MarshalJSON ¶
func (msg *MatchesMatchExpression) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*MatchesMatchExpression) ProtoMessage ¶
func (*MatchesMatchExpression) ProtoMessage()
func (*MatchesMatchExpression) ProtoReflect ¶
func (x *MatchesMatchExpression) ProtoReflect() protoreflect.Message
func (*MatchesMatchExpression) Reset ¶
func (x *MatchesMatchExpression) Reset()
func (*MatchesMatchExpression) String ¶
func (x *MatchesMatchExpression) String() string
func (*MatchesMatchExpression) UnmarshalJSON ¶
func (msg *MatchesMatchExpression) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler