Documentation
¶
Index ¶
- type FaultAbort
- func (*FaultAbort) Descriptor() ([]byte, []int)
- func (m *FaultAbort) GetErrorType() isFaultAbort_ErrorType
- func (m *FaultAbort) GetHttpStatus() uint32
- func (m *FaultAbort) GetPercentage() *v3.FractionalPercent
- func (*FaultAbort) ProtoMessage()
- func (m *FaultAbort) Reset()
- func (m *FaultAbort) String() string
- func (m *FaultAbort) Validate() error
- func (m *FaultAbort) XXX_DiscardUnknown()
- func (m *FaultAbort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FaultAbort) XXX_Merge(src proto.Message)
- func (*FaultAbort) XXX_OneofWrappers() []interface{}
- 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) GetAbortHttpStatusRuntime() string
- func (m *HTTPFault) GetAbortPercentRuntime() string
- func (m *HTTPFault) GetDelay() *v31.FaultDelay
- func (m *HTTPFault) GetDelayDurationRuntime() string
- func (m *HTTPFault) GetDelayPercentRuntime() string
- func (m *HTTPFault) GetDownstreamNodes() []string
- func (m *HTTPFault) GetHeaders() []*v32.HeaderMatcher
- func (m *HTTPFault) GetMaxActiveFaults() *wrappers.UInt32Value
- func (m *HTTPFault) GetMaxActiveFaultsRuntime() string
- func (m *HTTPFault) GetResponseRateLimit() *v31.FaultRateLimit
- func (m *HTTPFault) GetResponseRateLimitPercentRuntime() string
- func (m *HTTPFault) GetUpstreamCluster() string
- func (*HTTPFault) ProtoMessage()
- func (m *HTTPFault) Reset()
- func (m *HTTPFault) String() string
- func (m *HTTPFault) Validate() error
- func (m *HTTPFault) XXX_DiscardUnknown()
- func (m *HTTPFault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *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 ¶
This section is empty.
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"` Percentage *v3.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() *v3.FractionalPercent
func (*FaultAbort) ProtoMessage ¶
func (*FaultAbort) ProtoMessage()
func (*FaultAbort) Reset ¶
func (m *FaultAbort) Reset()
func (*FaultAbort) String ¶
func (m *FaultAbort) String() string
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 (m *FaultAbort) XXX_Merge(src proto.Message)
func (*FaultAbort) XXX_OneofWrappers ¶
func (*FaultAbort) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers 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 ¶
type FaultAbortValidationError struct {
// contains filtered or unexported fields
}
FaultAbortValidationError is the validation error returned by FaultAbort.Validate if the designated constraints aren't met.
func (FaultAbortValidationError) Cause ¶
func (e FaultAbortValidationError) Cause() error
Cause function returns cause value.
func (FaultAbortValidationError) Error ¶
func (e FaultAbortValidationError) Error() string
Error satisfies the builtin error interface
func (FaultAbortValidationError) ErrorName ¶
func (e FaultAbortValidationError) ErrorName() string
ErrorName returns error name.
func (FaultAbortValidationError) Field ¶
func (e FaultAbortValidationError) Field() string
Field function returns field value.
func (FaultAbortValidationError) Key ¶
func (e FaultAbortValidationError) Key() bool
Key function returns key value.
func (FaultAbortValidationError) Reason ¶
func (e FaultAbortValidationError) Reason() string
Reason function returns reason value.
type FaultAbort_HttpStatus ¶
type FaultAbort_HttpStatus struct {
HttpStatus uint32 `protobuf:"varint,2,opt,name=http_status,json=httpStatus,proto3,oneof"`
}
type HTTPFault ¶
type HTTPFault struct { Delay *v31.FaultDelay `protobuf:"bytes,1,opt,name=delay,proto3" json:"delay,omitempty"` Abort *FaultAbort `protobuf:"bytes,2,opt,name=abort,proto3" json:"abort,omitempty"` UpstreamCluster string `protobuf:"bytes,3,opt,name=upstream_cluster,json=upstreamCluster,proto3" json:"upstream_cluster,omitempty"` Headers []*v32.HeaderMatcher `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"` DownstreamNodes []string `protobuf:"bytes,5,rep,name=downstream_nodes,json=downstreamNodes,proto3" json:"downstream_nodes,omitempty"` MaxActiveFaults *wrappers.UInt32Value `protobuf:"bytes,6,opt,name=max_active_faults,json=maxActiveFaults,proto3" json:"max_active_faults,omitempty"` ResponseRateLimit *v31.FaultRateLimit `protobuf:"bytes,7,opt,name=response_rate_limit,json=responseRateLimit,proto3" json:"response_rate_limit,omitempty"` DelayPercentRuntime string `protobuf:"bytes,8,opt,name=delay_percent_runtime,json=delayPercentRuntime,proto3" json:"delay_percent_runtime,omitempty"` AbortPercentRuntime string `protobuf:"bytes,9,opt,name=abort_percent_runtime,json=abortPercentRuntime,proto3" json:"abort_percent_runtime,omitempty"` DelayDurationRuntime string `protobuf:"bytes,10,opt,name=delay_duration_runtime,json=delayDurationRuntime,proto3" json:"delay_duration_runtime,omitempty"` AbortHttpStatusRuntime string `` /* 132-byte string literal not displayed */ MaxActiveFaultsRuntime string `` /* 132-byte string literal not displayed */ ResponseRateLimitPercentRuntime string `` /* 161-byte string literal not displayed */ 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) GetAbortHttpStatusRuntime ¶
func (*HTTPFault) GetAbortPercentRuntime ¶
func (*HTTPFault) GetDelay ¶
func (m *HTTPFault) GetDelay() *v31.FaultDelay
func (*HTTPFault) GetDelayDurationRuntime ¶
func (*HTTPFault) GetDelayPercentRuntime ¶
func (*HTTPFault) GetDownstreamNodes ¶
func (*HTTPFault) GetHeaders ¶
func (m *HTTPFault) GetHeaders() []*v32.HeaderMatcher
func (*HTTPFault) GetMaxActiveFaults ¶
func (m *HTTPFault) GetMaxActiveFaults() *wrappers.UInt32Value
func (*HTTPFault) GetMaxActiveFaultsRuntime ¶
func (*HTTPFault) GetResponseRateLimit ¶
func (m *HTTPFault) GetResponseRateLimit() *v31.FaultRateLimit
func (*HTTPFault) GetResponseRateLimitPercentRuntime ¶
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 ¶
type HTTPFaultValidationError struct {
// contains filtered or unexported fields
}
HTTPFaultValidationError is the validation error returned by HTTPFault.Validate if the designated constraints aren't met.
func (HTTPFaultValidationError) Cause ¶
func (e HTTPFaultValidationError) Cause() error
Cause function returns cause value.
func (HTTPFaultValidationError) Error ¶
func (e HTTPFaultValidationError) Error() string
Error satisfies the builtin error interface
func (HTTPFaultValidationError) ErrorName ¶
func (e HTTPFaultValidationError) ErrorName() string
ErrorName returns error name.
func (HTTPFaultValidationError) Field ¶
func (e HTTPFaultValidationError) Field() string
Field function returns field value.
func (HTTPFaultValidationError) Key ¶
func (e HTTPFaultValidationError) Key() bool
Key function returns key value.
func (HTTPFaultValidationError) Reason ¶
func (e HTTPFaultValidationError) Reason() string
Reason function returns reason value.