ratelimitv1alpha

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_meta_protocol_proxy_filters_global_ratelimit_v1alpha_global_ratelimit_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Descriptor

type Descriptor struct {
	Property      string `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
	DescriptorKey string `protobuf:"bytes,2,opt,name=descriptor_key,json=descriptorKey,proto3" json:"descriptor_key,omitempty"`
	// contains filtered or unexported fields
}

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) GetProperty

func (x *Descriptor) GetProperty() 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

func (*Descriptor) Validate

func (m *Descriptor) Validate() error

Validate checks the field values on Descriptor 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 (*Descriptor) ValidateAll

func (m *Descriptor) ValidateAll() error

ValidateAll checks the field values on Descriptor 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 DescriptorMultiError, or nil if none found.

type DescriptorMultiError

type DescriptorMultiError []error

DescriptorMultiError is an error wrapping multiple validation errors returned by Descriptor.ValidateAll() if the designated constraints aren't met.

func (DescriptorMultiError) AllErrors

func (m DescriptorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DescriptorMultiError) Error

func (m DescriptorMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DescriptorValidationError

type DescriptorValidationError struct {
	// contains filtered or unexported fields
}

DescriptorValidationError is the validation error returned by Descriptor.Validate if the designated constraints aren't met.

func (DescriptorValidationError) Cause

func (e DescriptorValidationError) Cause() error

Cause function returns cause value.

func (DescriptorValidationError) Error

Error satisfies the builtin error interface

func (DescriptorValidationError) ErrorName

func (e DescriptorValidationError) ErrorName() string

ErrorName returns error name.

func (DescriptorValidationError) Field

Field function returns field value.

func (DescriptorValidationError) Key

Key function returns key value.

func (DescriptorValidationError) Reason

func (e DescriptorValidationError) Reason() string

Reason function returns reason value.

type RateLimit

type RateLimit struct {
	Match            *v1alpha.RouteMatch        `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
	Domain           string                     `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	Timeout          *duration.Duration         `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	FailureModeDeny  bool                       `protobuf:"varint,4,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"`
	RateLimitService *v3.RateLimitServiceConfig `protobuf:"bytes,5,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"`
	Descriptors      []*Descriptor              `protobuf:"bytes,6,rep,name=descriptors,proto3" json:"descriptors,omitempty"`
	// contains filtered or unexported fields
}

func (*RateLimit) Descriptor deprecated

func (*RateLimit) Descriptor() ([]byte, []int)

Deprecated: Use RateLimit.ProtoReflect.Descriptor instead.

func (*RateLimit) GetDescriptors

func (x *RateLimit) GetDescriptors() []*Descriptor

func (*RateLimit) GetDomain

func (x *RateLimit) GetDomain() string

func (*RateLimit) GetFailureModeDeny

func (x *RateLimit) GetFailureModeDeny() bool

func (*RateLimit) GetMatch

func (x *RateLimit) GetMatch() *v1alpha.RouteMatch

func (*RateLimit) GetRateLimitService

func (x *RateLimit) GetRateLimitService() *v3.RateLimitServiceConfig

func (*RateLimit) GetTimeout

func (x *RateLimit) GetTimeout() *duration.Duration

func (*RateLimit) ProtoMessage

func (*RateLimit) ProtoMessage()

func (*RateLimit) ProtoReflect

func (x *RateLimit) ProtoReflect() protoreflect.Message

func (*RateLimit) Reset

func (x *RateLimit) Reset()

func (*RateLimit) String

func (x *RateLimit) String() string

func (*RateLimit) Validate

func (m *RateLimit) Validate() error

Validate checks the field values on RateLimit 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 (*RateLimit) ValidateAll

func (m *RateLimit) ValidateAll() error

ValidateAll checks the field values on RateLimit 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 RateLimitMultiError, or nil if none found.

type RateLimitMultiError

type RateLimitMultiError []error

RateLimitMultiError is an error wrapping multiple validation errors returned by RateLimit.ValidateAll() if the designated constraints aren't met.

func (RateLimitMultiError) AllErrors

func (m RateLimitMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RateLimitMultiError) Error

func (m RateLimitMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RateLimitValidationError

type RateLimitValidationError struct {
	// contains filtered or unexported fields
}

RateLimitValidationError is the validation error returned by RateLimit.Validate if the designated constraints aren't met.

func (RateLimitValidationError) Cause

func (e RateLimitValidationError) Cause() error

Cause function returns cause value.

func (RateLimitValidationError) Error

func (e RateLimitValidationError) Error() string

Error satisfies the builtin error interface

func (RateLimitValidationError) ErrorName

func (e RateLimitValidationError) ErrorName() string

ErrorName returns error name.

func (RateLimitValidationError) Field

func (e RateLimitValidationError) Field() string

Field function returns field value.

func (RateLimitValidationError) Key

Key function returns key value.

func (RateLimitValidationError) Reason

func (e RateLimitValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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