import "github.com/envoyproxy/go-control-plane/envoy/config/filter/fault/v2"
fault.pb.go fault.pb.validate.go
var ( FaultDelay_FaultDelayType_name = map[int32]string{ 0: "FIXED", } FaultDelay_FaultDelayType_value = map[string]int32{ "FIXED": 0, } )
Enum value maps for FaultDelay_FaultDelayType.
var File_envoy_config_filter_fault_v2_fault_proto protoreflect.FileDescriptor
type FaultDelay struct { // Unused and deprecated. Will be removed in the next release. // // Deprecated: Do not use. Type FaultDelay_FaultDelayType `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.config.filter.fault.v2.FaultDelay_FaultDelayType" json:"type,omitempty"` // Types that are assignable 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"` // contains filtered or unexported fields }
Delay specification is used to inject latency into the HTTP/gRPC/Mongo/Redis operation or delay proxying of TCP connections. [#next-free-field: 6]
func (*FaultDelay) Descriptor() ([]byte, []int)
Deprecated: Use FaultDelay.ProtoReflect.Descriptor instead.
func (m *FaultDelay) GetFaultDelaySecifier() isFaultDelay_FaultDelaySecifier
func (x *FaultDelay) GetFixedDelay() *duration.Duration
func (x *FaultDelay) GetHeaderDelay() *FaultDelay_HeaderDelay
func (x *FaultDelay) GetPercentage() *_type.FractionalPercent
func (x *FaultDelay) GetType() FaultDelay_FaultDelayType
Deprecated: Do not use.
func (*FaultDelay) ProtoMessage()
func (x *FaultDelay) ProtoReflect() protoreflect.Message
func (x *FaultDelay) Reset()
func (x *FaultDelay) String() string
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.
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 (e FaultDelayValidationError) Cause() error
Cause function returns cause value.
func (e FaultDelayValidationError) Error() string
Error satisfies the builtin error interface
func (e FaultDelayValidationError) ErrorName() string
ErrorName returns error name.
func (e FaultDelayValidationError) Field() string
Field function returns field value.
func (e FaultDelayValidationError) Key() bool
Key function returns key value.
func (e FaultDelayValidationError) Reason() string
Reason function returns reason value.
const ( // Unused and deprecated. FaultDelay_FIXED FaultDelay_FaultDelayType = 0 )
func (FaultDelay_FaultDelayType) Descriptor() protoreflect.EnumDescriptor
func (x FaultDelay_FaultDelayType) Enum() *FaultDelay_FaultDelayType
func (FaultDelay_FaultDelayType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FaultDelay_FaultDelayType.Descriptor instead.
func (x FaultDelay_FaultDelayType) Number() protoreflect.EnumNumber
func (x FaultDelay_FaultDelayType) String() string
func (FaultDelay_FaultDelayType) Type() protoreflect.EnumType
type FaultDelay_FixedDelay struct { // Add a fixed delay before forwarding the operation upstream. See // https://developers.google.com/protocol-buffers/docs/proto3#json for // the JSON/YAML Duration mapping. For HTTP/Mongo/Redis, the specified // delay will be injected before a new request/operation. For TCP // connections, the proxying of the connection upstream will be delayed // for the specified period. This is required if type is FIXED. FixedDelay *duration.Duration `protobuf:"bytes,3,opt,name=fixed_delay,json=fixedDelay,proto3,oneof"` }
type FaultDelay_HeaderDelay struct {
// contains filtered or unexported fields
}
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() ([]byte, []int)
Deprecated: Use FaultDelay_HeaderDelay.ProtoReflect.Descriptor instead.
func (*FaultDelay_HeaderDelay) ProtoMessage()
func (x *FaultDelay_HeaderDelay) ProtoReflect() protoreflect.Message
func (x *FaultDelay_HeaderDelay) Reset()
func (x *FaultDelay_HeaderDelay) String() string
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.
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 (e FaultDelay_HeaderDelayValidationError) Cause() error
Cause function returns cause value.
func (e FaultDelay_HeaderDelayValidationError) Error() string
Error satisfies the builtin error interface
func (e FaultDelay_HeaderDelayValidationError) ErrorName() string
ErrorName returns error name.
func (e FaultDelay_HeaderDelayValidationError) Field() string
Field function returns field value.
func (e FaultDelay_HeaderDelayValidationError) Key() bool
Key function returns key value.
func (e FaultDelay_HeaderDelayValidationError) Reason() string
Reason function returns reason value.
type FaultDelay_HeaderDelay_ struct { // Fault delays are controlled via an HTTP header (if applicable). HeaderDelay *FaultDelay_HeaderDelay `protobuf:"bytes,5,opt,name=header_delay,json=headerDelay,proto3,oneof"` }
type FaultRateLimit struct { // Types that are assignable 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"` // contains filtered or unexported fields }
Describes a rate limit to be applied.
func (*FaultRateLimit) Descriptor() ([]byte, []int)
Deprecated: Use FaultRateLimit.ProtoReflect.Descriptor instead.
func (x *FaultRateLimit) GetFixedLimit() *FaultRateLimit_FixedLimit
func (x *FaultRateLimit) GetHeaderLimit() *FaultRateLimit_HeaderLimit
func (m *FaultRateLimit) GetLimitType() isFaultRateLimit_LimitType
func (x *FaultRateLimit) GetPercentage() *_type.FractionalPercent
func (*FaultRateLimit) ProtoMessage()
func (x *FaultRateLimit) ProtoReflect() protoreflect.Message
func (x *FaultRateLimit) Reset()
func (x *FaultRateLimit) String() string
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.
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 (e FaultRateLimitValidationError) Cause() error
Cause function returns cause value.
func (e FaultRateLimitValidationError) Error() string
Error satisfies the builtin error interface
func (e FaultRateLimitValidationError) ErrorName() string
ErrorName returns error name.
func (e FaultRateLimitValidationError) Field() string
Field function returns field value.
func (e FaultRateLimitValidationError) Key() bool
Key function returns key value.
func (e FaultRateLimitValidationError) Reason() string
Reason function returns reason value.
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"` // contains filtered or unexported fields }
Describes a fixed/constant rate limit.
func (*FaultRateLimit_FixedLimit) Descriptor() ([]byte, []int)
Deprecated: Use FaultRateLimit_FixedLimit.ProtoReflect.Descriptor instead.
func (x *FaultRateLimit_FixedLimit) GetLimitKbps() uint64
func (*FaultRateLimit_FixedLimit) ProtoMessage()
func (x *FaultRateLimit_FixedLimit) ProtoReflect() protoreflect.Message
func (x *FaultRateLimit_FixedLimit) Reset()
func (x *FaultRateLimit_FixedLimit) String() string
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.
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 (e FaultRateLimit_FixedLimitValidationError) Cause() error
Cause function returns cause value.
func (e FaultRateLimit_FixedLimitValidationError) Error() string
Error satisfies the builtin error interface
func (e FaultRateLimit_FixedLimitValidationError) ErrorName() string
ErrorName returns error name.
func (e FaultRateLimit_FixedLimitValidationError) Field() string
Field function returns field value.
func (e FaultRateLimit_FixedLimitValidationError) Key() bool
Key function returns key value.
func (e FaultRateLimit_FixedLimitValidationError) Reason() string
Reason function returns reason value.
type FaultRateLimit_FixedLimit_ struct { // A fixed rate limit. FixedLimit *FaultRateLimit_FixedLimit `protobuf:"bytes,1,opt,name=fixed_limit,json=fixedLimit,proto3,oneof"` }
type FaultRateLimit_HeaderLimit struct {
// contains filtered or unexported fields
}
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() ([]byte, []int)
Deprecated: Use FaultRateLimit_HeaderLimit.ProtoReflect.Descriptor instead.
func (*FaultRateLimit_HeaderLimit) ProtoMessage()
func (x *FaultRateLimit_HeaderLimit) ProtoReflect() protoreflect.Message
func (x *FaultRateLimit_HeaderLimit) Reset()
func (x *FaultRateLimit_HeaderLimit) String() string
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.
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 (e FaultRateLimit_HeaderLimitValidationError) Cause() error
Cause function returns cause value.
func (e FaultRateLimit_HeaderLimitValidationError) Error() string
Error satisfies the builtin error interface
func (e FaultRateLimit_HeaderLimitValidationError) ErrorName() string
ErrorName returns error name.
func (e FaultRateLimit_HeaderLimitValidationError) Field() string
Field function returns field value.
func (e FaultRateLimit_HeaderLimitValidationError) Key() bool
Key function returns key value.
func (e FaultRateLimit_HeaderLimitValidationError) Reason() string
Reason function returns reason value.
type FaultRateLimit_HeaderLimit_ struct { // Rate limits are controlled via an HTTP header (if applicable). HeaderLimit *FaultRateLimit_HeaderLimit `protobuf:"bytes,3,opt,name=header_limit,json=headerLimit,proto3,oneof"` }
Package envoy_config_filter_fault_v2 imports 21 packages (graph) and is imported by 12 packages. Updated 2021-01-07. Refresh now. Tools for package owners.