Documentation
¶
Index ¶
- Variables
- type Descriptor
- func (*Descriptor) Descriptor() ([]byte, []int)deprecated
- func (x *Descriptor) GetDescriptorKey() string
- func (m *Descriptor) GetExprSpecifier() isDescriptor_ExprSpecifier
- func (x *Descriptor) GetParsed() *v1alpha1.Expr
- func (x *Descriptor) GetSkipIfError() bool
- func (x *Descriptor) GetText() string
- func (*Descriptor) ProtoMessage()
- func (x *Descriptor) ProtoReflect() protoreflect.Message
- func (x *Descriptor) Reset()
- func (x *Descriptor) String() string
- type Descriptor_Parsed
- type Descriptor_Text
Constants ¶
This section is empty.
Variables ¶
View Source
var File_envoy_extensions_rate_limit_descriptors_expr_v3_expr_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Descriptor ¶
type Descriptor struct {
// The key to use in the descriptor entry.
DescriptorKey string `protobuf:"bytes,1,opt,name=descriptor_key,json=descriptorKey,proto3" json:"descriptor_key,omitempty"`
// If set to true, Envoy skips the descriptor if the expression evaluates to an error.
// By default, the rate limit is not applied when an expression produces an error.
SkipIfError bool `protobuf:"varint,2,opt,name=skip_if_error,json=skipIfError,proto3" json:"skip_if_error,omitempty"`
// Types that are assignable to ExprSpecifier:
//
// *Descriptor_Text
// *Descriptor_Parsed
ExprSpecifier isDescriptor_ExprSpecifier `protobuf_oneof:"expr_specifier"`
// contains filtered or unexported fields
}
The following descriptor entry is appended with a value computed from a symbolic Common Expression Language expression. See :ref:`attributes <arch_overview_attributes>` for the set of available attributes.
.. code-block:: cpp
("<descriptor_key>", "<expression_value>")
func (*Descriptor) Descriptor
deprecated
func (*Descriptor) Descriptor() ([]byte, []int)
Deprecated: Use Descriptor.ProtoReflect.Descriptor instead.
func (*Descriptor) GetDescriptorKey ¶
func (x *Descriptor) GetDescriptorKey() string
func (*Descriptor) GetExprSpecifier ¶
func (m *Descriptor) GetExprSpecifier() isDescriptor_ExprSpecifier
func (*Descriptor) GetParsed ¶
func (x *Descriptor) GetParsed() *v1alpha1.Expr
func (*Descriptor) GetSkipIfError ¶
func (x *Descriptor) GetSkipIfError() bool
func (*Descriptor) GetText ¶
func (x *Descriptor) GetText() string
func (*Descriptor) ProtoMessage ¶
func (*Descriptor) ProtoMessage()
func (*Descriptor) ProtoReflect ¶
func (x *Descriptor) ProtoReflect() protoreflect.Message
func (*Descriptor) Reset ¶
func (x *Descriptor) Reset()
func (*Descriptor) String ¶
func (x *Descriptor) String() string
type Descriptor_Parsed ¶
type Descriptor_Text ¶
type Descriptor_Text struct {
// Expression in a text form, e.g. "connection.requested_server_name".
Text string `protobuf:"bytes,3,opt,name=text,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.