envoy_extensions_filters_network_connection_limit_v3

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 22 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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

Cause function returns cause value.

func (ConnectionLimitValidationError) Error

Error satisfies the builtin error interface

func (ConnectionLimitValidationError) ErrorName

func (e ConnectionLimitValidationError) ErrorName() string

ErrorName returns error name.

func (ConnectionLimitValidationError) Field

Field function returns field value.

func (ConnectionLimitValidationError) Key

Key function returns key value.

func (ConnectionLimitValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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