Documentation ¶
Index ¶
- Variables
- type ConnectionLimit
- func (*ConnectionLimit) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionLimit) GetDelay() *duration.Duration
- func (x *ConnectionLimit) GetMaxConnections() *wrappers.UInt64Value
- func (x *ConnectionLimit) GetRuntimeEnabled() *v3.RuntimeFeatureFlag
- func (x *ConnectionLimit) GetStatPrefix() string
- func (*ConnectionLimit) ProtoMessage()
- func (x *ConnectionLimit) ProtoReflect() protoreflect.Message
- func (x *ConnectionLimit) Reset()
- func (x *ConnectionLimit) String() string
- func (m *ConnectionLimit) Validate() error
- func (m *ConnectionLimit) ValidateAll() error
- type ConnectionLimitMultiError
- type ConnectionLimitValidationError
- func (e ConnectionLimitValidationError) Cause() error
- func (e ConnectionLimitValidationError) Error() string
- func (e ConnectionLimitValidationError) ErrorName() string
- func (e ConnectionLimitValidationError) Field() string
- func (e ConnectionLimitValidationError) Key() bool
- func (e ConnectionLimitValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_filters_network_connection_limit_v3_connection_limit_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ConnectionLimit ¶
type ConnectionLimit struct { // The prefix to use when emitting :ref:`statistics // <config_network_filters_connection_limit_stats>`. StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` // The max connections configuration to use for new incoming connections that are processed // by the filter's filter chain. When max_connection is reached, the incoming connection // will be closed after delay duration. MaxConnections *wrappers.UInt64Value `protobuf:"bytes,2,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"` // The delay configuration to use for rejecting the connection after some specified time duration // instead of immediately rejecting the connection. That way, a malicious user is not able to // retry as fast as possible which provides a better DoS protection for Envoy. If this is not present, // the connection will be closed immediately. Delay *duration.Duration `protobuf:"bytes,3,opt,name=delay,proto3" json:"delay,omitempty"` // Runtime flag that controls whether the filter is enabled or not. If not specified, defaults // to enabled. RuntimeEnabled *v3.RuntimeFeatureFlag `protobuf:"bytes,4,opt,name=runtime_enabled,json=runtimeEnabled,proto3" json:"runtime_enabled,omitempty"` // contains filtered or unexported fields }
func (*ConnectionLimit) Descriptor
deprecated
func (*ConnectionLimit) Descriptor() ([]byte, []int)
Deprecated: Use ConnectionLimit.ProtoReflect.Descriptor instead.
func (*ConnectionLimit) GetDelay ¶
func (x *ConnectionLimit) GetDelay() *duration.Duration
func (*ConnectionLimit) GetMaxConnections ¶
func (x *ConnectionLimit) GetMaxConnections() *wrappers.UInt64Value
func (*ConnectionLimit) GetRuntimeEnabled ¶
func (x *ConnectionLimit) GetRuntimeEnabled() *v3.RuntimeFeatureFlag
func (*ConnectionLimit) GetStatPrefix ¶
func (x *ConnectionLimit) GetStatPrefix() string
func (*ConnectionLimit) ProtoMessage ¶
func (*ConnectionLimit) ProtoMessage()
func (*ConnectionLimit) ProtoReflect ¶
func (x *ConnectionLimit) ProtoReflect() protoreflect.Message
func (*ConnectionLimit) Reset ¶
func (x *ConnectionLimit) Reset()
func (*ConnectionLimit) String ¶
func (x *ConnectionLimit) String() string
func (*ConnectionLimit) Validate ¶
func (m *ConnectionLimit) Validate() error
Validate checks the field values on ConnectionLimit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConnectionLimit) ValidateAll ¶
func (m *ConnectionLimit) ValidateAll() error
ValidateAll checks the field values on ConnectionLimit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConnectionLimitMultiError, or nil if none found.
type ConnectionLimitMultiError ¶
type ConnectionLimitMultiError []error
ConnectionLimitMultiError is an error wrapping multiple validation errors returned by ConnectionLimit.ValidateAll() if the designated constraints aren't met.
func (ConnectionLimitMultiError) AllErrors ¶
func (m ConnectionLimitMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConnectionLimitMultiError) Error ¶
func (m ConnectionLimitMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConnectionLimitValidationError ¶
type ConnectionLimitValidationError struct {
// contains filtered or unexported fields
}
ConnectionLimitValidationError is the validation error returned by ConnectionLimit.Validate if the designated constraints aren't met.
func (ConnectionLimitValidationError) Cause ¶
func (e ConnectionLimitValidationError) Cause() error
Cause function returns cause value.
func (ConnectionLimitValidationError) Error ¶
func (e ConnectionLimitValidationError) Error() string
Error satisfies the builtin error interface
func (ConnectionLimitValidationError) ErrorName ¶
func (e ConnectionLimitValidationError) ErrorName() string
ErrorName returns error name.
func (ConnectionLimitValidationError) Field ¶
func (e ConnectionLimitValidationError) Field() string
Field function returns field value.
func (ConnectionLimitValidationError) Key ¶
func (e ConnectionLimitValidationError) Key() bool
Key function returns key value.
func (ConnectionLimitValidationError) Reason ¶
func (e ConnectionLimitValidationError) Reason() string
Reason function returns reason value.