Documentation ¶
Index ¶
- Variables
- type FaultAbort
- func (*FaultAbort) Descriptor() ([]byte, []int)
- func (m *FaultAbort) GetErrorType() isFaultAbort_ErrorType
- func (m *FaultAbort) GetHttpStatus() uint32
- func (m *FaultAbort) GetPercentage() *_type.FractionalPercent
- func (m *FaultAbort) Marshal() (dAtA []byte, err error)
- func (m *FaultAbort) MarshalTo(dAtA []byte) (int, error)
- func (*FaultAbort) ProtoMessage()
- func (m *FaultAbort) Reset()
- func (m *FaultAbort) Size() (n int)
- func (m *FaultAbort) String() string
- func (m *FaultAbort) Unmarshal(dAtA []byte) error
- func (m *FaultAbort) Validate() error
- func (m *FaultAbort) XXX_DiscardUnknown()
- func (m *FaultAbort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FaultAbort) XXX_Merge(src proto.Message)
- func (*FaultAbort) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *FaultAbort) XXX_Size() int
- func (m *FaultAbort) XXX_Unmarshal(b []byte) error
- type FaultAbortValidationError
- type FaultAbort_HttpStatus
- type HTTPFault
- func (*HTTPFault) Descriptor() ([]byte, []int)
- func (m *HTTPFault) GetAbort() *FaultAbort
- func (m *HTTPFault) GetDelay() *v2.FaultDelay
- func (m *HTTPFault) GetDownstreamNodes() []string
- func (m *HTTPFault) GetHeaders() []*route.HeaderMatcher
- func (m *HTTPFault) GetUpstreamCluster() string
- func (m *HTTPFault) Marshal() (dAtA []byte, err error)
- func (m *HTTPFault) MarshalTo(dAtA []byte) (int, error)
- func (*HTTPFault) ProtoMessage()
- func (m *HTTPFault) Reset()
- func (m *HTTPFault) Size() (n int)
- func (m *HTTPFault) String() string
- func (m *HTTPFault) Unmarshal(dAtA []byte) error
- func (m *HTTPFault) Validate() error
- func (m *HTTPFault) XXX_DiscardUnknown()
- func (m *HTTPFault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HTTPFault) XXX_Merge(src proto.Message)
- func (m *HTTPFault) XXX_Size() int
- func (m *HTTPFault) XXX_Unmarshal(b []byte) error
- type HTTPFaultValidationError
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthFault = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFault = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type FaultAbort ¶
type FaultAbort struct { // Types that are valid to be assigned to ErrorType: // *FaultAbort_HttpStatus ErrorType isFaultAbort_ErrorType `protobuf_oneof:"error_type"` // The percentage of requests/operations/connections that will be aborted with the error code // provided. Percentage *_type.FractionalPercent `protobuf:"bytes,3,opt,name=percentage,proto3" json:"percentage,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FaultAbort) Descriptor ¶
func (*FaultAbort) Descriptor() ([]byte, []int)
func (*FaultAbort) GetErrorType ¶
func (m *FaultAbort) GetErrorType() isFaultAbort_ErrorType
func (*FaultAbort) GetHttpStatus ¶
func (m *FaultAbort) GetHttpStatus() uint32
func (*FaultAbort) GetPercentage ¶
func (m *FaultAbort) GetPercentage() *_type.FractionalPercent
func (*FaultAbort) Marshal ¶
func (m *FaultAbort) Marshal() (dAtA []byte, err error)
func (*FaultAbort) ProtoMessage ¶
func (*FaultAbort) ProtoMessage()
func (*FaultAbort) Reset ¶
func (m *FaultAbort) Reset()
func (*FaultAbort) Size ¶
func (m *FaultAbort) Size() (n int)
func (*FaultAbort) String ¶
func (m *FaultAbort) String() string
func (*FaultAbort) Unmarshal ¶
func (m *FaultAbort) Unmarshal(dAtA []byte) error
func (*FaultAbort) Validate ¶
func (m *FaultAbort) Validate() error
Validate checks the field values on FaultAbort with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FaultAbort) XXX_DiscardUnknown ¶
func (m *FaultAbort) XXX_DiscardUnknown()
func (*FaultAbort) XXX_Marshal ¶
func (m *FaultAbort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FaultAbort) XXX_Merge ¶
func (dst *FaultAbort) XXX_Merge(src proto.Message)
func (*FaultAbort) XXX_OneofFuncs ¶
func (*FaultAbort) 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 (*FaultAbort) XXX_Size ¶
func (m *FaultAbort) XXX_Size() int
func (*FaultAbort) XXX_Unmarshal ¶
func (m *FaultAbort) XXX_Unmarshal(b []byte) error
type FaultAbortValidationError ¶
FaultAbortValidationError is the validation error returned by FaultAbort.Validate if the designated constraints aren't met.
func (FaultAbortValidationError) Error ¶
func (e FaultAbortValidationError) Error() string
Error satisfies the builtin error interface
type FaultAbort_HttpStatus ¶
type FaultAbort_HttpStatus struct {
HttpStatus uint32 `protobuf:"varint,2,opt,name=http_status,json=httpStatus,proto3,oneof"`
}
func (*FaultAbort_HttpStatus) MarshalTo ¶
func (m *FaultAbort_HttpStatus) MarshalTo(dAtA []byte) (int, error)
func (*FaultAbort_HttpStatus) Size ¶
func (m *FaultAbort_HttpStatus) Size() (n int)
type HTTPFault ¶
type HTTPFault struct { // If specified, the filter will inject delays based on the values in the // object. At least *abort* or *delay* must be specified. Delay *v2.FaultDelay `protobuf:"bytes,1,opt,name=delay,proto3" json:"delay,omitempty"` // If specified, the filter will abort requests based on the values in // the object. At least *abort* or *delay* must be specified. Abort *FaultAbort `protobuf:"bytes,2,opt,name=abort,proto3" json:"abort,omitempty"` // Specifies the name of the (destination) upstream cluster that the // filter should match on. Fault injection will be restricted to requests // bound to the specific upstream cluster. UpstreamCluster string `protobuf:"bytes,3,opt,name=upstream_cluster,json=upstreamCluster,proto3" json:"upstream_cluster,omitempty"` // Specifies a set of headers that the filter should match on. The fault // injection filter can be applied selectively to requests that match a set of // headers specified in the fault filter config. The chances of actual fault // injection further depend on the value of the :ref:`percentage // <envoy_api_field_config.filter.http.fault.v2.FaultAbort.percentage>` field. // The filter will check the request's headers against all the specified // headers in the filter config. A match will happen if all the headers in the // config are present in the request with the same values (or based on // presence if the *value* field is not in the config). Headers []*route.HeaderMatcher `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"` // Faults are injected for the specified list of downstream hosts. If this // setting is not set, faults are injected for all downstream nodes. // Downstream node name is taken from :ref:`the HTTP // x-envoy-downstream-service-node // <config_http_conn_man_headers_downstream-service-node>` header and compared // against downstream_nodes list. DownstreamNodes []string `protobuf:"bytes,5,rep,name=downstream_nodes,json=downstreamNodes,proto3" json:"downstream_nodes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HTTPFault) Descriptor ¶
func (*HTTPFault) GetAbort ¶
func (m *HTTPFault) GetAbort() *FaultAbort
func (*HTTPFault) GetDelay ¶
func (m *HTTPFault) GetDelay() *v2.FaultDelay
func (*HTTPFault) GetDownstreamNodes ¶
func (*HTTPFault) GetHeaders ¶
func (m *HTTPFault) GetHeaders() []*route.HeaderMatcher
func (*HTTPFault) GetUpstreamCluster ¶
func (*HTTPFault) ProtoMessage ¶
func (*HTTPFault) ProtoMessage()
func (*HTTPFault) Validate ¶
Validate checks the field values on HTTPFault with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HTTPFault) XXX_DiscardUnknown ¶
func (m *HTTPFault) XXX_DiscardUnknown()
func (*HTTPFault) XXX_Marshal ¶
func (*HTTPFault) XXX_Unmarshal ¶
type HTTPFaultValidationError ¶
HTTPFaultValidationError is the validation error returned by HTTPFault.Validate if the designated constraints aren't met.
func (HTTPFaultValidationError) Error ¶
func (e HTTPFaultValidationError) Error() string
Error satisfies the builtin error interface