Documentation
¶
Index ¶
- Variables
- type KillRequest
- func (*KillRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KillRequest) GetDirection() KillRequest_Direction
- func (x *KillRequest) GetKillRequestHeader() string
- func (x *KillRequest) GetProbability() *v3.FractionalPercent
- func (*KillRequest) ProtoMessage()
- func (x *KillRequest) ProtoReflect() protoreflect.Message
- func (x *KillRequest) Reset()
- func (x *KillRequest) String() string
- func (m *KillRequest) Validate() error
- func (m *KillRequest) ValidateAll() error
- type KillRequestMultiError
- type KillRequestValidationError
- func (e KillRequestValidationError) Cause() error
- func (e KillRequestValidationError) Error() string
- func (e KillRequestValidationError) ErrorName() string
- func (e KillRequestValidationError) Field() string
- func (e KillRequestValidationError) Key() bool
- func (e KillRequestValidationError) Reason() string
- type KillRequest_Direction
- func (KillRequest_Direction) Descriptor() protoreflect.EnumDescriptor
- func (x KillRequest_Direction) Enum() *KillRequest_Direction
- func (KillRequest_Direction) EnumDescriptor() ([]byte, []int)deprecated
- func (x KillRequest_Direction) Number() protoreflect.EnumNumber
- func (x KillRequest_Direction) String() string
- func (KillRequest_Direction) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( KillRequest_Direction_name = map[int32]string{ 0: "REQUEST", 1: "RESPONSE", } KillRequest_Direction_value = map[string]int32{ "REQUEST": 0, "RESPONSE": 1, } )
Enum value maps for KillRequest_Direction.
var File_envoy_extensions_filters_http_kill_request_v3_kill_request_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type KillRequest ¶
type KillRequest struct { // The probability that a Kill request will be triggered. Probability *v3.FractionalPercent `protobuf:"bytes,1,opt,name=probability,proto3" json:"probability,omitempty"` // The name of the kill request header. If this field is not empty, it will override the :ref:`default header <config_http_filters_kill_request_http_header>` name. Otherwise the default header name will be used. KillRequestHeader string `protobuf:"bytes,2,opt,name=kill_request_header,json=killRequestHeader,proto3" json:"kill_request_header,omitempty"` Direction KillRequest_Direction `` /* 145-byte string literal not displayed */ // contains filtered or unexported fields }
Configuration for KillRequest filter.
func (*KillRequest) Descriptor
deprecated
func (*KillRequest) Descriptor() ([]byte, []int)
Deprecated: Use KillRequest.ProtoReflect.Descriptor instead.
func (*KillRequest) GetDirection ¶ added in v0.9.9
func (x *KillRequest) GetDirection() KillRequest_Direction
func (*KillRequest) GetKillRequestHeader ¶
func (x *KillRequest) GetKillRequestHeader() string
func (*KillRequest) GetProbability ¶
func (x *KillRequest) GetProbability() *v3.FractionalPercent
func (*KillRequest) ProtoMessage ¶
func (*KillRequest) ProtoMessage()
func (*KillRequest) ProtoReflect ¶
func (x *KillRequest) ProtoReflect() protoreflect.Message
func (*KillRequest) Reset ¶
func (x *KillRequest) Reset()
func (*KillRequest) String ¶
func (x *KillRequest) String() string
func (*KillRequest) Validate ¶
func (m *KillRequest) Validate() error
Validate checks the field values on KillRequest 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 (*KillRequest) ValidateAll ¶ added in v0.10.0
func (m *KillRequest) ValidateAll() error
ValidateAll checks the field values on KillRequest 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 KillRequestMultiError, or nil if none found.
type KillRequestMultiError ¶ added in v0.10.0
type KillRequestMultiError []error
KillRequestMultiError is an error wrapping multiple validation errors returned by KillRequest.ValidateAll() if the designated constraints aren't met.
func (KillRequestMultiError) AllErrors ¶ added in v0.10.0
func (m KillRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (KillRequestMultiError) Error ¶ added in v0.10.0
func (m KillRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type KillRequestValidationError ¶
type KillRequestValidationError struct {
// contains filtered or unexported fields
}
KillRequestValidationError is the validation error returned by KillRequest.Validate if the designated constraints aren't met.
func (KillRequestValidationError) Cause ¶
func (e KillRequestValidationError) Cause() error
Cause function returns cause value.
func (KillRequestValidationError) Error ¶
func (e KillRequestValidationError) Error() string
Error satisfies the builtin error interface
func (KillRequestValidationError) ErrorName ¶
func (e KillRequestValidationError) ErrorName() string
ErrorName returns error name.
func (KillRequestValidationError) Field ¶
func (e KillRequestValidationError) Field() string
Field function returns field value.
func (KillRequestValidationError) Key ¶
func (e KillRequestValidationError) Key() bool
Key function returns key value.
func (KillRequestValidationError) Reason ¶
func (e KillRequestValidationError) Reason() string
Reason function returns reason value.
type KillRequest_Direction ¶ added in v0.9.9
type KillRequest_Direction int32
On which direction should the filter check for the `kill_request_header`. Default to `REQUEST` if unspecified.
const ( KillRequest_REQUEST KillRequest_Direction = 0 KillRequest_RESPONSE KillRequest_Direction = 1 )
func (KillRequest_Direction) Descriptor ¶ added in v0.9.9
func (KillRequest_Direction) Descriptor() protoreflect.EnumDescriptor
func (KillRequest_Direction) Enum ¶ added in v0.9.9
func (x KillRequest_Direction) Enum() *KillRequest_Direction
func (KillRequest_Direction) EnumDescriptor
deprecated
added in
v0.9.9
func (KillRequest_Direction) EnumDescriptor() ([]byte, []int)
Deprecated: Use KillRequest_Direction.Descriptor instead.
func (KillRequest_Direction) Number ¶ added in v0.9.9
func (x KillRequest_Direction) Number() protoreflect.EnumNumber
func (KillRequest_Direction) String ¶ added in v0.9.9
func (x KillRequest_Direction) String() string
func (KillRequest_Direction) Type ¶ added in v0.9.9
func (KillRequest_Direction) Type() protoreflect.EnumType