Documentation ¶
Index ¶
- Variables
- type FaultDelay
- func (*FaultDelay) Descriptor() ([]byte, []int)
- func (m *FaultDelay) GetFaultDelaySecifier() isFaultDelay_FaultDelaySecifier
- func (m *FaultDelay) GetFixedDelay() *time.Duration
- func (m *FaultDelay) GetHeaderDelay() *FaultDelay_HeaderDelay
- func (m *FaultDelay) GetPercentage() *_type.FractionalPercent
- func (m *FaultDelay) GetType() FaultDelay_FaultDelayTypedeprecated
- func (m *FaultDelay) Marshal() (dAtA []byte, err error)
- func (m *FaultDelay) MarshalTo(dAtA []byte) (int, error)
- func (*FaultDelay) ProtoMessage()
- func (m *FaultDelay) Reset()
- func (m *FaultDelay) Size() (n int)
- func (m *FaultDelay) String() string
- func (m *FaultDelay) Unmarshal(dAtA []byte) error
- func (m *FaultDelay) Validate() error
- func (m *FaultDelay) XXX_DiscardUnknown()
- func (m *FaultDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaultDelay) XXX_Merge(src proto.Message)
- func (*FaultDelay) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *FaultDelay) XXX_Size() int
- func (m *FaultDelay) XXX_Unmarshal(b []byte) error
- type FaultDelayValidationError
- type FaultDelay_FaultDelayType
- type FaultDelay_FixedDelay
- type FaultDelay_HeaderDelay
- func (*FaultDelay_HeaderDelay) Descriptor() ([]byte, []int)
- func (m *FaultDelay_HeaderDelay) Marshal() (dAtA []byte, err error)
- func (m *FaultDelay_HeaderDelay) MarshalTo(dAtA []byte) (int, error)
- func (*FaultDelay_HeaderDelay) ProtoMessage()
- func (m *FaultDelay_HeaderDelay) Reset()
- func (m *FaultDelay_HeaderDelay) Size() (n int)
- func (m *FaultDelay_HeaderDelay) String() string
- func (m *FaultDelay_HeaderDelay) Unmarshal(dAtA []byte) error
- func (m *FaultDelay_HeaderDelay) Validate() error
- func (m *FaultDelay_HeaderDelay) XXX_DiscardUnknown()
- func (m *FaultDelay_HeaderDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaultDelay_HeaderDelay) XXX_Merge(src proto.Message)
- func (m *FaultDelay_HeaderDelay) XXX_Size() int
- func (m *FaultDelay_HeaderDelay) XXX_Unmarshal(b []byte) error
- type FaultDelay_HeaderDelayValidationError
- func (e FaultDelay_HeaderDelayValidationError) Cause() error
- func (e FaultDelay_HeaderDelayValidationError) Error() string
- func (e FaultDelay_HeaderDelayValidationError) ErrorName() string
- func (e FaultDelay_HeaderDelayValidationError) Field() string
- func (e FaultDelay_HeaderDelayValidationError) Key() bool
- func (e FaultDelay_HeaderDelayValidationError) Reason() string
- type FaultDelay_HeaderDelay_
- type FaultRateLimit
- func (*FaultRateLimit) Descriptor() ([]byte, []int)
- func (m *FaultRateLimit) GetFixedLimit() *FaultRateLimit_FixedLimit
- func (m *FaultRateLimit) GetHeaderLimit() *FaultRateLimit_HeaderLimit
- func (m *FaultRateLimit) GetLimitType() isFaultRateLimit_LimitType
- func (m *FaultRateLimit) GetPercentage() *_type.FractionalPercent
- func (m *FaultRateLimit) Marshal() (dAtA []byte, err error)
- func (m *FaultRateLimit) MarshalTo(dAtA []byte) (int, error)
- func (*FaultRateLimit) ProtoMessage()
- func (m *FaultRateLimit) Reset()
- func (m *FaultRateLimit) Size() (n int)
- func (m *FaultRateLimit) String() string
- func (m *FaultRateLimit) Unmarshal(dAtA []byte) error
- func (m *FaultRateLimit) Validate() error
- func (m *FaultRateLimit) XXX_DiscardUnknown()
- func (m *FaultRateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaultRateLimit) XXX_Merge(src proto.Message)
- func (*FaultRateLimit) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *FaultRateLimit) XXX_Size() int
- func (m *FaultRateLimit) XXX_Unmarshal(b []byte) error
- type FaultRateLimitValidationError
- func (e FaultRateLimitValidationError) Cause() error
- func (e FaultRateLimitValidationError) Error() string
- func (e FaultRateLimitValidationError) ErrorName() string
- func (e FaultRateLimitValidationError) Field() string
- func (e FaultRateLimitValidationError) Key() bool
- func (e FaultRateLimitValidationError) Reason() string
- type FaultRateLimit_FixedLimit
- func (*FaultRateLimit_FixedLimit) Descriptor() ([]byte, []int)
- func (m *FaultRateLimit_FixedLimit) GetLimitKbps() uint64
- func (m *FaultRateLimit_FixedLimit) Marshal() (dAtA []byte, err error)
- func (m *FaultRateLimit_FixedLimit) MarshalTo(dAtA []byte) (int, error)
- func (*FaultRateLimit_FixedLimit) ProtoMessage()
- func (m *FaultRateLimit_FixedLimit) Reset()
- func (m *FaultRateLimit_FixedLimit) Size() (n int)
- func (m *FaultRateLimit_FixedLimit) String() string
- func (m *FaultRateLimit_FixedLimit) Unmarshal(dAtA []byte) error
- func (m *FaultRateLimit_FixedLimit) Validate() error
- func (m *FaultRateLimit_FixedLimit) XXX_DiscardUnknown()
- func (m *FaultRateLimit_FixedLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaultRateLimit_FixedLimit) XXX_Merge(src proto.Message)
- func (m *FaultRateLimit_FixedLimit) XXX_Size() int
- func (m *FaultRateLimit_FixedLimit) XXX_Unmarshal(b []byte) error
- type FaultRateLimit_FixedLimitValidationError
- func (e FaultRateLimit_FixedLimitValidationError) Cause() error
- func (e FaultRateLimit_FixedLimitValidationError) Error() string
- func (e FaultRateLimit_FixedLimitValidationError) ErrorName() string
- func (e FaultRateLimit_FixedLimitValidationError) Field() string
- func (e FaultRateLimit_FixedLimitValidationError) Key() bool
- func (e FaultRateLimit_FixedLimitValidationError) Reason() string
- type FaultRateLimit_FixedLimit_
- type FaultRateLimit_HeaderLimit
- func (*FaultRateLimit_HeaderLimit) Descriptor() ([]byte, []int)
- func (m *FaultRateLimit_HeaderLimit) Marshal() (dAtA []byte, err error)
- func (m *FaultRateLimit_HeaderLimit) MarshalTo(dAtA []byte) (int, error)
- func (*FaultRateLimit_HeaderLimit) ProtoMessage()
- func (m *FaultRateLimit_HeaderLimit) Reset()
- func (m *FaultRateLimit_HeaderLimit) Size() (n int)
- func (m *FaultRateLimit_HeaderLimit) String() string
- func (m *FaultRateLimit_HeaderLimit) Unmarshal(dAtA []byte) error
- func (m *FaultRateLimit_HeaderLimit) Validate() error
- func (m *FaultRateLimit_HeaderLimit) XXX_DiscardUnknown()
- func (m *FaultRateLimit_HeaderLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaultRateLimit_HeaderLimit) XXX_Merge(src proto.Message)
- func (m *FaultRateLimit_HeaderLimit) XXX_Size() int
- func (m *FaultRateLimit_HeaderLimit) XXX_Unmarshal(b []byte) error
- type FaultRateLimit_HeaderLimitValidationError
- func (e FaultRateLimit_HeaderLimitValidationError) Cause() error
- func (e FaultRateLimit_HeaderLimitValidationError) Error() string
- func (e FaultRateLimit_HeaderLimitValidationError) ErrorName() string
- func (e FaultRateLimit_HeaderLimitValidationError) Field() string
- func (e FaultRateLimit_HeaderLimitValidationError) Key() bool
- func (e FaultRateLimit_HeaderLimitValidationError) Reason() string
- type FaultRateLimit_HeaderLimit_
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthFault = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFault = fmt.Errorf("proto: integer overflow") )
var FaultDelay_FaultDelayType_name = map[int32]string{
0: "FIXED",
}
var FaultDelay_FaultDelayType_value = map[string]int32{
"FIXED": 0,
}
Functions ¶
This section is empty.
Types ¶
type FaultDelay ¶
type FaultDelay struct { // Unused and deprecated. Will be removed in the next release. Type FaultDelay_FaultDelayType `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.config.filter.fault.v2.FaultDelay_FaultDelayType" json:"type,omitempty"` // Deprecated: Do not use. // Types that are valid to be assigned to FaultDelaySecifier: // *FaultDelay_FixedDelay // *FaultDelay_HeaderDelay_ FaultDelaySecifier isFaultDelay_FaultDelaySecifier `protobuf_oneof:"fault_delay_secifier"` // The percentage of operations/connections/requests on which the delay will be injected. Percentage *_type.FractionalPercent `protobuf:"bytes,4,opt,name=percentage,proto3" json:"percentage,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Delay specification is used to inject latency into the HTTP/gRPC/Mongo/Redis operation or delay proxying of TCP connections.
func (*FaultDelay) Descriptor ¶
func (*FaultDelay) Descriptor() ([]byte, []int)
func (*FaultDelay) GetFaultDelaySecifier ¶
func (m *FaultDelay) GetFaultDelaySecifier() isFaultDelay_FaultDelaySecifier
func (*FaultDelay) GetFixedDelay ¶
func (m *FaultDelay) GetFixedDelay() *time.Duration
func (*FaultDelay) GetHeaderDelay ¶ added in v0.7.0
func (m *FaultDelay) GetHeaderDelay() *FaultDelay_HeaderDelay
func (*FaultDelay) GetPercentage ¶
func (m *FaultDelay) GetPercentage() *_type.FractionalPercent
func (*FaultDelay) GetType
deprecated
func (m *FaultDelay) GetType() FaultDelay_FaultDelayType
Deprecated: Do not use.
func (*FaultDelay) Marshal ¶
func (m *FaultDelay) Marshal() (dAtA []byte, err error)
func (*FaultDelay) ProtoMessage ¶
func (*FaultDelay) ProtoMessage()
func (*FaultDelay) Reset ¶
func (m *FaultDelay) Reset()
func (*FaultDelay) Size ¶
func (m *FaultDelay) Size() (n int)
func (*FaultDelay) String ¶
func (m *FaultDelay) String() string
func (*FaultDelay) Unmarshal ¶
func (m *FaultDelay) Unmarshal(dAtA []byte) error
func (*FaultDelay) Validate ¶
func (m *FaultDelay) Validate() error
Validate checks the field values on FaultDelay with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FaultDelay) XXX_DiscardUnknown ¶
func (m *FaultDelay) XXX_DiscardUnknown()
func (*FaultDelay) XXX_Marshal ¶
func (m *FaultDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FaultDelay) XXX_Merge ¶
func (m *FaultDelay) XXX_Merge(src proto.Message)
func (*FaultDelay) XXX_OneofFuncs ¶
func (*FaultDelay) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*FaultDelay) XXX_Size ¶
func (m *FaultDelay) XXX_Size() int
func (*FaultDelay) XXX_Unmarshal ¶
func (m *FaultDelay) XXX_Unmarshal(b []byte) error
type FaultDelayValidationError ¶
type FaultDelayValidationError struct {
// contains filtered or unexported fields
}
FaultDelayValidationError is the validation error returned by FaultDelay.Validate if the designated constraints aren't met.
func (FaultDelayValidationError) Cause ¶
func (e FaultDelayValidationError) Cause() error
Cause function returns cause value.
func (FaultDelayValidationError) Error ¶
func (e FaultDelayValidationError) Error() string
Error satisfies the builtin error interface
func (FaultDelayValidationError) ErrorName ¶ added in v0.7.0
func (e FaultDelayValidationError) ErrorName() string
ErrorName returns error name.
func (FaultDelayValidationError) Field ¶
func (e FaultDelayValidationError) Field() string
Field function returns field value.
func (FaultDelayValidationError) Key ¶
func (e FaultDelayValidationError) Key() bool
Key function returns key value.
func (FaultDelayValidationError) Reason ¶
func (e FaultDelayValidationError) Reason() string
Reason function returns reason value.
type FaultDelay_FaultDelayType ¶
type FaultDelay_FaultDelayType int32
const ( // Unused and deprecated. FaultDelay_FIXED FaultDelay_FaultDelayType = 0 )
func (FaultDelay_FaultDelayType) EnumDescriptor ¶
func (FaultDelay_FaultDelayType) EnumDescriptor() ([]byte, []int)
func (FaultDelay_FaultDelayType) String ¶
func (x FaultDelay_FaultDelayType) String() string
type FaultDelay_FixedDelay ¶
type FaultDelay_FixedDelay struct {
FixedDelay *time.Duration `protobuf:"bytes,3,opt,name=fixed_delay,json=fixedDelay,proto3,oneof,stdduration"`
}
func (*FaultDelay_FixedDelay) MarshalTo ¶
func (m *FaultDelay_FixedDelay) MarshalTo(dAtA []byte) (int, error)
func (*FaultDelay_FixedDelay) Size ¶
func (m *FaultDelay_FixedDelay) Size() (n int)
type FaultDelay_HeaderDelay ¶ added in v0.7.0
type FaultDelay_HeaderDelay struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Fault delays are controlled via an HTTP header (if applicable). See the :ref:`http fault filter <config_http_filters_fault_injection_http_header>` documentation for more information.
func (*FaultDelay_HeaderDelay) Descriptor ¶ added in v0.7.0
func (*FaultDelay_HeaderDelay) Descriptor() ([]byte, []int)
func (*FaultDelay_HeaderDelay) Marshal ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) Marshal() (dAtA []byte, err error)
func (*FaultDelay_HeaderDelay) MarshalTo ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) MarshalTo(dAtA []byte) (int, error)
func (*FaultDelay_HeaderDelay) ProtoMessage ¶ added in v0.7.0
func (*FaultDelay_HeaderDelay) ProtoMessage()
func (*FaultDelay_HeaderDelay) Reset ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) Reset()
func (*FaultDelay_HeaderDelay) Size ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) Size() (n int)
func (*FaultDelay_HeaderDelay) String ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) String() string
func (*FaultDelay_HeaderDelay) Unmarshal ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) Unmarshal(dAtA []byte) error
func (*FaultDelay_HeaderDelay) Validate ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) Validate() error
Validate checks the field values on FaultDelay_HeaderDelay with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FaultDelay_HeaderDelay) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) XXX_DiscardUnknown()
func (*FaultDelay_HeaderDelay) XXX_Marshal ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FaultDelay_HeaderDelay) XXX_Merge ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) XXX_Merge(src proto.Message)
func (*FaultDelay_HeaderDelay) XXX_Size ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) XXX_Size() int
func (*FaultDelay_HeaderDelay) XXX_Unmarshal ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay) XXX_Unmarshal(b []byte) error
type FaultDelay_HeaderDelayValidationError ¶ added in v0.7.0
type FaultDelay_HeaderDelayValidationError struct {
// contains filtered or unexported fields
}
FaultDelay_HeaderDelayValidationError is the validation error returned by FaultDelay_HeaderDelay.Validate if the designated constraints aren't met.
func (FaultDelay_HeaderDelayValidationError) Cause ¶ added in v0.7.0
func (e FaultDelay_HeaderDelayValidationError) Cause() error
Cause function returns cause value.
func (FaultDelay_HeaderDelayValidationError) Error ¶ added in v0.7.0
func (e FaultDelay_HeaderDelayValidationError) Error() string
Error satisfies the builtin error interface
func (FaultDelay_HeaderDelayValidationError) ErrorName ¶ added in v0.7.0
func (e FaultDelay_HeaderDelayValidationError) ErrorName() string
ErrorName returns error name.
func (FaultDelay_HeaderDelayValidationError) Field ¶ added in v0.7.0
func (e FaultDelay_HeaderDelayValidationError) Field() string
Field function returns field value.
func (FaultDelay_HeaderDelayValidationError) Key ¶ added in v0.7.0
func (e FaultDelay_HeaderDelayValidationError) Key() bool
Key function returns key value.
func (FaultDelay_HeaderDelayValidationError) Reason ¶ added in v0.7.0
func (e FaultDelay_HeaderDelayValidationError) Reason() string
Reason function returns reason value.
type FaultDelay_HeaderDelay_ ¶ added in v0.7.0
type FaultDelay_HeaderDelay_ struct {
HeaderDelay *FaultDelay_HeaderDelay `protobuf:"bytes,5,opt,name=header_delay,json=headerDelay,proto3,oneof"`
}
func (*FaultDelay_HeaderDelay_) MarshalTo ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay_) MarshalTo(dAtA []byte) (int, error)
func (*FaultDelay_HeaderDelay_) Size ¶ added in v0.7.0
func (m *FaultDelay_HeaderDelay_) Size() (n int)
type FaultRateLimit ¶ added in v0.7.0
type FaultRateLimit struct { // Types that are valid to be assigned to LimitType: // *FaultRateLimit_FixedLimit_ // *FaultRateLimit_HeaderLimit_ LimitType isFaultRateLimit_LimitType `protobuf_oneof:"limit_type"` // The percentage of operations/connections/requests on which the rate limit will be injected. Percentage *_type.FractionalPercent `protobuf:"bytes,2,opt,name=percentage,proto3" json:"percentage,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Describes a rate limit to be applied.
func (*FaultRateLimit) Descriptor ¶ added in v0.7.0
func (*FaultRateLimit) Descriptor() ([]byte, []int)
func (*FaultRateLimit) GetFixedLimit ¶ added in v0.7.0
func (m *FaultRateLimit) GetFixedLimit() *FaultRateLimit_FixedLimit
func (*FaultRateLimit) GetHeaderLimit ¶ added in v0.7.0
func (m *FaultRateLimit) GetHeaderLimit() *FaultRateLimit_HeaderLimit
func (*FaultRateLimit) GetLimitType ¶ added in v0.7.0
func (m *FaultRateLimit) GetLimitType() isFaultRateLimit_LimitType
func (*FaultRateLimit) GetPercentage ¶ added in v0.7.0
func (m *FaultRateLimit) GetPercentage() *_type.FractionalPercent
func (*FaultRateLimit) Marshal ¶ added in v0.7.0
func (m *FaultRateLimit) Marshal() (dAtA []byte, err error)
func (*FaultRateLimit) MarshalTo ¶ added in v0.7.0
func (m *FaultRateLimit) MarshalTo(dAtA []byte) (int, error)
func (*FaultRateLimit) ProtoMessage ¶ added in v0.7.0
func (*FaultRateLimit) ProtoMessage()
func (*FaultRateLimit) Reset ¶ added in v0.7.0
func (m *FaultRateLimit) Reset()
func (*FaultRateLimit) Size ¶ added in v0.7.0
func (m *FaultRateLimit) Size() (n int)
func (*FaultRateLimit) String ¶ added in v0.7.0
func (m *FaultRateLimit) String() string
func (*FaultRateLimit) Unmarshal ¶ added in v0.7.0
func (m *FaultRateLimit) Unmarshal(dAtA []byte) error
func (*FaultRateLimit) Validate ¶ added in v0.7.0
func (m *FaultRateLimit) Validate() error
Validate checks the field values on FaultRateLimit with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FaultRateLimit) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *FaultRateLimit) XXX_DiscardUnknown()
func (*FaultRateLimit) XXX_Marshal ¶ added in v0.7.0
func (m *FaultRateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FaultRateLimit) XXX_Merge ¶ added in v0.7.0
func (m *FaultRateLimit) XXX_Merge(src proto.Message)
func (*FaultRateLimit) XXX_OneofFuncs ¶ added in v0.7.0
func (*FaultRateLimit) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*FaultRateLimit) XXX_Size ¶ added in v0.7.0
func (m *FaultRateLimit) XXX_Size() int
func (*FaultRateLimit) XXX_Unmarshal ¶ added in v0.7.0
func (m *FaultRateLimit) XXX_Unmarshal(b []byte) error
type FaultRateLimitValidationError ¶ added in v0.7.0
type FaultRateLimitValidationError struct {
// contains filtered or unexported fields
}
FaultRateLimitValidationError is the validation error returned by FaultRateLimit.Validate if the designated constraints aren't met.
func (FaultRateLimitValidationError) Cause ¶ added in v0.7.0
func (e FaultRateLimitValidationError) Cause() error
Cause function returns cause value.
func (FaultRateLimitValidationError) Error ¶ added in v0.7.0
func (e FaultRateLimitValidationError) Error() string
Error satisfies the builtin error interface
func (FaultRateLimitValidationError) ErrorName ¶ added in v0.7.0
func (e FaultRateLimitValidationError) ErrorName() string
ErrorName returns error name.
func (FaultRateLimitValidationError) Field ¶ added in v0.7.0
func (e FaultRateLimitValidationError) Field() string
Field function returns field value.
func (FaultRateLimitValidationError) Key ¶ added in v0.7.0
func (e FaultRateLimitValidationError) Key() bool
Key function returns key value.
func (FaultRateLimitValidationError) Reason ¶ added in v0.7.0
func (e FaultRateLimitValidationError) Reason() string
Reason function returns reason value.
type FaultRateLimit_FixedLimit ¶ added in v0.7.0
type FaultRateLimit_FixedLimit struct { // The limit supplied in KiB/s. LimitKbps uint64 `protobuf:"varint,1,opt,name=limit_kbps,json=limitKbps,proto3" json:"limit_kbps,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Describes a fixed/constant rate limit.
func (*FaultRateLimit_FixedLimit) Descriptor ¶ added in v0.7.0
func (*FaultRateLimit_FixedLimit) Descriptor() ([]byte, []int)
func (*FaultRateLimit_FixedLimit) GetLimitKbps ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) GetLimitKbps() uint64
func (*FaultRateLimit_FixedLimit) Marshal ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) Marshal() (dAtA []byte, err error)
func (*FaultRateLimit_FixedLimit) MarshalTo ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) MarshalTo(dAtA []byte) (int, error)
func (*FaultRateLimit_FixedLimit) ProtoMessage ¶ added in v0.7.0
func (*FaultRateLimit_FixedLimit) ProtoMessage()
func (*FaultRateLimit_FixedLimit) Reset ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) Reset()
func (*FaultRateLimit_FixedLimit) Size ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) Size() (n int)
func (*FaultRateLimit_FixedLimit) String ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) String() string
func (*FaultRateLimit_FixedLimit) Unmarshal ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) Unmarshal(dAtA []byte) error
func (*FaultRateLimit_FixedLimit) Validate ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) Validate() error
Validate checks the field values on FaultRateLimit_FixedLimit with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FaultRateLimit_FixedLimit) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) XXX_DiscardUnknown()
func (*FaultRateLimit_FixedLimit) XXX_Marshal ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FaultRateLimit_FixedLimit) XXX_Merge ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) XXX_Merge(src proto.Message)
func (*FaultRateLimit_FixedLimit) XXX_Size ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) XXX_Size() int
func (*FaultRateLimit_FixedLimit) XXX_Unmarshal ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit) XXX_Unmarshal(b []byte) error
type FaultRateLimit_FixedLimitValidationError ¶ added in v0.7.0
type FaultRateLimit_FixedLimitValidationError struct {
// contains filtered or unexported fields
}
FaultRateLimit_FixedLimitValidationError is the validation error returned by FaultRateLimit_FixedLimit.Validate if the designated constraints aren't met.
func (FaultRateLimit_FixedLimitValidationError) Cause ¶ added in v0.7.0
func (e FaultRateLimit_FixedLimitValidationError) Cause() error
Cause function returns cause value.
func (FaultRateLimit_FixedLimitValidationError) Error ¶ added in v0.7.0
func (e FaultRateLimit_FixedLimitValidationError) Error() string
Error satisfies the builtin error interface
func (FaultRateLimit_FixedLimitValidationError) ErrorName ¶ added in v0.7.0
func (e FaultRateLimit_FixedLimitValidationError) ErrorName() string
ErrorName returns error name.
func (FaultRateLimit_FixedLimitValidationError) Field ¶ added in v0.7.0
func (e FaultRateLimit_FixedLimitValidationError) Field() string
Field function returns field value.
func (FaultRateLimit_FixedLimitValidationError) Key ¶ added in v0.7.0
func (e FaultRateLimit_FixedLimitValidationError) Key() bool
Key function returns key value.
func (FaultRateLimit_FixedLimitValidationError) Reason ¶ added in v0.7.0
func (e FaultRateLimit_FixedLimitValidationError) Reason() string
Reason function returns reason value.
type FaultRateLimit_FixedLimit_ ¶ added in v0.7.0
type FaultRateLimit_FixedLimit_ struct {
FixedLimit *FaultRateLimit_FixedLimit `protobuf:"bytes,1,opt,name=fixed_limit,json=fixedLimit,proto3,oneof"`
}
func (*FaultRateLimit_FixedLimit_) MarshalTo ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit_) MarshalTo(dAtA []byte) (int, error)
func (*FaultRateLimit_FixedLimit_) Size ¶ added in v0.7.0
func (m *FaultRateLimit_FixedLimit_) Size() (n int)
type FaultRateLimit_HeaderLimit ¶ added in v0.7.0
type FaultRateLimit_HeaderLimit struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Rate limits are controlled via an HTTP header (if applicable). See the :ref:`http fault filter <config_http_filters_fault_injection_http_header>` documentation for more information.
func (*FaultRateLimit_HeaderLimit) Descriptor ¶ added in v0.7.0
func (*FaultRateLimit_HeaderLimit) Descriptor() ([]byte, []int)
func (*FaultRateLimit_HeaderLimit) Marshal ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) Marshal() (dAtA []byte, err error)
func (*FaultRateLimit_HeaderLimit) MarshalTo ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) MarshalTo(dAtA []byte) (int, error)
func (*FaultRateLimit_HeaderLimit) ProtoMessage ¶ added in v0.7.0
func (*FaultRateLimit_HeaderLimit) ProtoMessage()
func (*FaultRateLimit_HeaderLimit) Reset ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) Reset()
func (*FaultRateLimit_HeaderLimit) Size ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) Size() (n int)
func (*FaultRateLimit_HeaderLimit) String ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) String() string
func (*FaultRateLimit_HeaderLimit) Unmarshal ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) Unmarshal(dAtA []byte) error
func (*FaultRateLimit_HeaderLimit) Validate ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) Validate() error
Validate checks the field values on FaultRateLimit_HeaderLimit with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FaultRateLimit_HeaderLimit) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) XXX_DiscardUnknown()
func (*FaultRateLimit_HeaderLimit) XXX_Marshal ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FaultRateLimit_HeaderLimit) XXX_Merge ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) XXX_Merge(src proto.Message)
func (*FaultRateLimit_HeaderLimit) XXX_Size ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) XXX_Size() int
func (*FaultRateLimit_HeaderLimit) XXX_Unmarshal ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit) XXX_Unmarshal(b []byte) error
type FaultRateLimit_HeaderLimitValidationError ¶ added in v0.7.0
type FaultRateLimit_HeaderLimitValidationError struct {
// contains filtered or unexported fields
}
FaultRateLimit_HeaderLimitValidationError is the validation error returned by FaultRateLimit_HeaderLimit.Validate if the designated constraints aren't met.
func (FaultRateLimit_HeaderLimitValidationError) Cause ¶ added in v0.7.0
func (e FaultRateLimit_HeaderLimitValidationError) Cause() error
Cause function returns cause value.
func (FaultRateLimit_HeaderLimitValidationError) Error ¶ added in v0.7.0
func (e FaultRateLimit_HeaderLimitValidationError) Error() string
Error satisfies the builtin error interface
func (FaultRateLimit_HeaderLimitValidationError) ErrorName ¶ added in v0.7.0
func (e FaultRateLimit_HeaderLimitValidationError) ErrorName() string
ErrorName returns error name.
func (FaultRateLimit_HeaderLimitValidationError) Field ¶ added in v0.7.0
func (e FaultRateLimit_HeaderLimitValidationError) Field() string
Field function returns field value.
func (FaultRateLimit_HeaderLimitValidationError) Key ¶ added in v0.7.0
func (e FaultRateLimit_HeaderLimitValidationError) Key() bool
Key function returns key value.
func (FaultRateLimit_HeaderLimitValidationError) Reason ¶ added in v0.7.0
func (e FaultRateLimit_HeaderLimitValidationError) Reason() string
Reason function returns reason value.
type FaultRateLimit_HeaderLimit_ ¶ added in v0.7.0
type FaultRateLimit_HeaderLimit_ struct {
HeaderLimit *FaultRateLimit_HeaderLimit `protobuf:"bytes,3,opt,name=header_limit,json=headerLimit,proto3,oneof"`
}
func (*FaultRateLimit_HeaderLimit_) MarshalTo ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit_) MarshalTo(dAtA []byte) (int, error)
func (*FaultRateLimit_HeaderLimit_) Size ¶ added in v0.7.0
func (m *FaultRateLimit_HeaderLimit_) Size() (n int)