Documentation ¶
Index ¶
- Variables
- type AbortFault
- func (*AbortFault) Descriptor() ([]byte, []int)deprecated
- func (x *AbortFault) GetAbortStatus() *FaultAbortStatus
- func (x *AbortFault) GetPercentage() *FaultPercentage
- func (*AbortFault) ProtoMessage()
- func (x *AbortFault) ProtoReflect() protoreflect.Message
- func (x *AbortFault) Reset()
- func (x *AbortFault) String() string
- func (m *AbortFault) Validate() error
- func (m *AbortFault) ValidateAll() error
- type AbortFaultMultiError
- type AbortFaultValidationError
- type ClusterPercentage
- func (*ClusterPercentage) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterPercentage) GetPercentage() uint32
- func (*ClusterPercentage) ProtoMessage()
- func (x *ClusterPercentage) ProtoReflect() protoreflect.Message
- func (x *ClusterPercentage) Reset()
- func (x *ClusterPercentage) String() string
- func (m *ClusterPercentage) Validate() error
- func (m *ClusterPercentage) ValidateAll() error
- type ClusterPercentageMultiError
- type ClusterPercentageValidationError
- func (e ClusterPercentageValidationError) Cause() error
- func (e ClusterPercentageValidationError) Error() string
- func (e ClusterPercentageValidationError) ErrorName() string
- func (e ClusterPercentageValidationError) Field() string
- func (e ClusterPercentageValidationError) Key() bool
- func (e ClusterPercentageValidationError) Reason() string
- type DownstreamEnforcing
- func (*DownstreamEnforcing) Descriptor() ([]byte, []int)deprecated
- func (x *DownstreamEnforcing) GetDownstreamCluster() *SingleCluster
- func (m *DownstreamEnforcing) GetDownstreamType() isDownstreamEnforcing_DownstreamType
- func (x *DownstreamEnforcing) GetUpstreamCluster() *SingleCluster
- func (m *DownstreamEnforcing) GetUpstreamType() isDownstreamEnforcing_UpstreamType
- func (*DownstreamEnforcing) ProtoMessage()
- func (x *DownstreamEnforcing) ProtoReflect() protoreflect.Message
- func (x *DownstreamEnforcing) Reset()
- func (x *DownstreamEnforcing) String() string
- func (m *DownstreamEnforcing) Validate() error
- func (m *DownstreamEnforcing) ValidateAll() error
- type DownstreamEnforcingMultiError
- type DownstreamEnforcingValidationError
- func (e DownstreamEnforcingValidationError) Cause() error
- func (e DownstreamEnforcingValidationError) Error() string
- func (e DownstreamEnforcingValidationError) ErrorName() string
- func (e DownstreamEnforcingValidationError) Field() string
- func (e DownstreamEnforcingValidationError) Key() bool
- func (e DownstreamEnforcingValidationError) Reason() string
- type DownstreamEnforcing_DownstreamCluster
- type DownstreamEnforcing_UpstreamCluster
- type FaultAbortStatus
- func (*FaultAbortStatus) Descriptor() ([]byte, []int)deprecated
- func (x *FaultAbortStatus) GetHttpStatusCode() uint32
- func (*FaultAbortStatus) ProtoMessage()
- func (x *FaultAbortStatus) ProtoReflect() protoreflect.Message
- func (x *FaultAbortStatus) Reset()
- func (x *FaultAbortStatus) String() string
- func (m *FaultAbortStatus) Validate() error
- func (m *FaultAbortStatus) ValidateAll() error
- type FaultAbortStatusMultiError
- type FaultAbortStatusValidationError
- func (e FaultAbortStatusValidationError) Cause() error
- func (e FaultAbortStatusValidationError) Error() string
- func (e FaultAbortStatusValidationError) ErrorName() string
- func (e FaultAbortStatusValidationError) Field() string
- func (e FaultAbortStatusValidationError) Key() bool
- func (e FaultAbortStatusValidationError) Reason() string
- type FaultLatencyDuration
- func (*FaultLatencyDuration) Descriptor() ([]byte, []int)deprecated
- func (x *FaultLatencyDuration) GetFixedDurationMs() uint32
- func (*FaultLatencyDuration) ProtoMessage()
- func (x *FaultLatencyDuration) ProtoReflect() protoreflect.Message
- func (x *FaultLatencyDuration) Reset()
- func (x *FaultLatencyDuration) String() string
- func (m *FaultLatencyDuration) Validate() error
- func (m *FaultLatencyDuration) ValidateAll() error
- type FaultLatencyDurationMultiError
- type FaultLatencyDurationValidationError
- func (e FaultLatencyDurationValidationError) Cause() error
- func (e FaultLatencyDurationValidationError) Error() string
- func (e FaultLatencyDurationValidationError) ErrorName() string
- func (e FaultLatencyDurationValidationError) Field() string
- func (e FaultLatencyDurationValidationError) Key() bool
- func (e FaultLatencyDurationValidationError) Reason() string
- type FaultPercentage
- func (*FaultPercentage) Descriptor() ([]byte, []int)deprecated
- func (x *FaultPercentage) GetDenominator() FaultPercentage_DenominatorType
- func (x *FaultPercentage) GetPercentage() uint32
- func (*FaultPercentage) ProtoMessage()
- func (x *FaultPercentage) ProtoReflect() protoreflect.Message
- func (x *FaultPercentage) Reset()
- func (x *FaultPercentage) String() string
- func (m *FaultPercentage) Validate() error
- func (m *FaultPercentage) ValidateAll() error
- type FaultPercentageMultiError
- type FaultPercentageValidationError
- func (e FaultPercentageValidationError) Cause() error
- func (e FaultPercentageValidationError) Error() string
- func (e FaultPercentageValidationError) ErrorName() string
- func (e FaultPercentageValidationError) Field() string
- func (e FaultPercentageValidationError) Key() bool
- func (e FaultPercentageValidationError) Reason() string
- type FaultPercentage_DenominatorType
- func (FaultPercentage_DenominatorType) Descriptor() protoreflect.EnumDescriptor
- func (x FaultPercentage_DenominatorType) Enum() *FaultPercentage_DenominatorType
- func (FaultPercentage_DenominatorType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FaultPercentage_DenominatorType) Number() protoreflect.EnumNumber
- func (x FaultPercentage_DenominatorType) String() string
- func (FaultPercentage_DenominatorType) Type() protoreflect.EnumType
- type FaultTargeting
- func (*FaultTargeting) Descriptor() ([]byte, []int)deprecated
- func (x *FaultTargeting) GetDownstreamEnforcing() *DownstreamEnforcing
- func (m *FaultTargeting) GetEnforcer() isFaultTargeting_Enforcer
- func (x *FaultTargeting) GetUpstreamEnforcing() *UpstreamEnforcing
- func (*FaultTargeting) ProtoMessage()
- func (x *FaultTargeting) ProtoReflect() protoreflect.Message
- func (x *FaultTargeting) Reset()
- func (x *FaultTargeting) String() string
- func (m *FaultTargeting) Validate() error
- func (m *FaultTargeting) ValidateAll() error
- type FaultTargetingMultiError
- type FaultTargetingValidationError
- func (e FaultTargetingValidationError) Cause() error
- func (e FaultTargetingValidationError) Error() string
- func (e FaultTargetingValidationError) ErrorName() string
- func (e FaultTargetingValidationError) Field() string
- func (e FaultTargetingValidationError) Key() bool
- func (e FaultTargetingValidationError) Reason() string
- type FaultTargeting_DownstreamEnforcing
- type FaultTargeting_UpstreamEnforcing
- type HTTPFaultConfig
- func (*HTTPFaultConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPFaultConfig) GetAbortFault() *AbortFault
- func (m *HTTPFaultConfig) GetFault() isHTTPFaultConfig_Fault
- func (x *HTTPFaultConfig) GetFaultTargeting() *FaultTargeting
- func (x *HTTPFaultConfig) GetLatencyFault() *LatencyFault
- func (*HTTPFaultConfig) ProtoMessage()
- func (x *HTTPFaultConfig) ProtoReflect() protoreflect.Message
- func (x *HTTPFaultConfig) Reset()
- func (x *HTTPFaultConfig) String() string
- func (m *HTTPFaultConfig) Validate() error
- func (m *HTTPFaultConfig) ValidateAll() error
- type HTTPFaultConfigMultiError
- type HTTPFaultConfigValidationError
- func (e HTTPFaultConfigValidationError) Cause() error
- func (e HTTPFaultConfigValidationError) Error() string
- func (e HTTPFaultConfigValidationError) ErrorName() string
- func (e HTTPFaultConfigValidationError) Field() string
- func (e HTTPFaultConfigValidationError) Key() bool
- func (e HTTPFaultConfigValidationError) Reason() string
- type HTTPFaultConfig_AbortFault
- type HTTPFaultConfig_LatencyFault
- type LatencyFault
- func (*LatencyFault) Descriptor() ([]byte, []int)deprecated
- func (x *LatencyFault) GetLatencyDuration() *FaultLatencyDuration
- func (x *LatencyFault) GetPercentage() *FaultPercentage
- func (*LatencyFault) ProtoMessage()
- func (x *LatencyFault) ProtoReflect() protoreflect.Message
- func (x *LatencyFault) Reset()
- func (x *LatencyFault) String() string
- func (m *LatencyFault) Validate() error
- func (m *LatencyFault) ValidateAll() error
- type LatencyFaultMultiError
- type LatencyFaultValidationError
- func (e LatencyFaultValidationError) Cause() error
- func (e LatencyFaultValidationError) Error() string
- func (e LatencyFaultValidationError) ErrorName() string
- func (e LatencyFaultValidationError) Field() string
- func (e LatencyFaultValidationError) Key() bool
- func (e LatencyFaultValidationError) Reason() string
- type SingleCluster
- func (*SingleCluster) Descriptor() ([]byte, []int)deprecated
- func (x *SingleCluster) GetName() string
- func (*SingleCluster) ProtoMessage()
- func (x *SingleCluster) ProtoReflect() protoreflect.Message
- func (x *SingleCluster) Reset()
- func (x *SingleCluster) String() string
- func (m *SingleCluster) Validate() error
- func (m *SingleCluster) ValidateAll() error
- type SingleClusterMultiError
- type SingleClusterValidationError
- func (e SingleClusterValidationError) Cause() error
- func (e SingleClusterValidationError) Error() string
- func (e SingleClusterValidationError) ErrorName() string
- func (e SingleClusterValidationError) Field() string
- func (e SingleClusterValidationError) Key() bool
- func (e SingleClusterValidationError) Reason() string
- type UpstreamEnforcing
- func (*UpstreamEnforcing) Descriptor() ([]byte, []int)deprecated
- func (x *UpstreamEnforcing) GetDownstreamCluster() *SingleCluster
- func (m *UpstreamEnforcing) GetDownstreamType() isUpstreamEnforcing_DownstreamType
- func (x *UpstreamEnforcing) GetUpstreamCluster() *SingleCluster
- func (m *UpstreamEnforcing) GetUpstreamType() isUpstreamEnforcing_UpstreamType
- func (*UpstreamEnforcing) ProtoMessage()
- func (x *UpstreamEnforcing) ProtoReflect() protoreflect.Message
- func (x *UpstreamEnforcing) Reset()
- func (x *UpstreamEnforcing) String() string
- func (m *UpstreamEnforcing) Validate() error
- func (m *UpstreamEnforcing) ValidateAll() error
- type UpstreamEnforcingMultiError
- type UpstreamEnforcingValidationError
- func (e UpstreamEnforcingValidationError) Cause() error
- func (e UpstreamEnforcingValidationError) Error() string
- func (e UpstreamEnforcingValidationError) ErrorName() string
- func (e UpstreamEnforcingValidationError) Field() string
- func (e UpstreamEnforcingValidationError) Key() bool
- func (e UpstreamEnforcingValidationError) Reason() string
- type UpstreamEnforcing_DownstreamCluster
- type UpstreamEnforcing_UpstreamCluster
Constants ¶
This section is empty.
Variables ¶
var ( FaultPercentage_DenominatorType_name = map[int32]string{ 0: "DENOMINATOR_UNSPECIFIED", 1: "DENOMINATOR_HUNDRED", 2: "DENOMINATOR_TEN_THOUSAND", 3: "DENOMINATOR_MILLION", } FaultPercentage_DenominatorType_value = map[string]int32{ "DENOMINATOR_UNSPECIFIED": 0, "DENOMINATOR_HUNDRED": 1, "DENOMINATOR_TEN_THOUSAND": 2, "DENOMINATOR_MILLION": 3, } )
Enum value maps for FaultPercentage_DenominatorType.
var File_chaos_serverexperimentation_v1_serverexperimentation_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AbortFault ¶
type AbortFault struct { // The percentage of requests the fault should be applied to. Percentage *FaultPercentage `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"` // The HTTP status code to insert when applying an abort fault. AbortStatus *FaultAbortStatus `protobuf:"bytes,2,opt,name=abort_status,json=abortStatus,proto3" json:"abort_status,omitempty"` // contains filtered or unexported fields }
The definition of an abort fault.
func (*AbortFault) Descriptor
deprecated
func (*AbortFault) Descriptor() ([]byte, []int)
Deprecated: Use AbortFault.ProtoReflect.Descriptor instead.
func (*AbortFault) GetAbortStatus ¶
func (x *AbortFault) GetAbortStatus() *FaultAbortStatus
func (*AbortFault) GetPercentage ¶
func (x *AbortFault) GetPercentage() *FaultPercentage
func (*AbortFault) ProtoMessage ¶
func (*AbortFault) ProtoMessage()
func (*AbortFault) ProtoReflect ¶
func (x *AbortFault) ProtoReflect() protoreflect.Message
func (*AbortFault) Reset ¶
func (x *AbortFault) Reset()
func (*AbortFault) String ¶
func (x *AbortFault) String() string
func (*AbortFault) Validate ¶
func (m *AbortFault) Validate() error
Validate checks the field values on AbortFault 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 (*AbortFault) ValidateAll ¶
func (m *AbortFault) ValidateAll() error
ValidateAll checks the field values on AbortFault 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 AbortFaultMultiError, or nil if none found.
type AbortFaultMultiError ¶
type AbortFaultMultiError []error
AbortFaultMultiError is an error wrapping multiple validation errors returned by AbortFault.ValidateAll() if the designated constraints aren't met.
func (AbortFaultMultiError) AllErrors ¶
func (m AbortFaultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AbortFaultMultiError) Error ¶
func (m AbortFaultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AbortFaultValidationError ¶
type AbortFaultValidationError struct {
// contains filtered or unexported fields
}
AbortFaultValidationError is the validation error returned by AbortFault.Validate if the designated constraints aren't met.
func (AbortFaultValidationError) Cause ¶
func (e AbortFaultValidationError) Cause() error
Cause function returns cause value.
func (AbortFaultValidationError) Error ¶
func (e AbortFaultValidationError) Error() string
Error satisfies the builtin error interface
func (AbortFaultValidationError) ErrorName ¶
func (e AbortFaultValidationError) ErrorName() string
ErrorName returns error name.
func (AbortFaultValidationError) Field ¶
func (e AbortFaultValidationError) Field() string
Field function returns field value.
func (AbortFaultValidationError) Key ¶
func (e AbortFaultValidationError) Key() bool
Key function returns key value.
func (AbortFaultValidationError) Reason ¶
func (e AbortFaultValidationError) Reason() string
Reason function returns reason value.
type ClusterPercentage ¶
type ClusterPercentage struct { // The numerator of a percentage with a fixed denumerator equal to 100 // (i.e. percentage equal to 50 results in 50/100 = 50%) Percentage uint32 `protobuf:"varint,1,opt,name=percentage,proto3" json:"percentage,omitempty"` // contains filtered or unexported fields }
The percentage controlling what portion of a given cluster should be applying faults.
func (*ClusterPercentage) Descriptor
deprecated
func (*ClusterPercentage) Descriptor() ([]byte, []int)
Deprecated: Use ClusterPercentage.ProtoReflect.Descriptor instead.
func (*ClusterPercentage) GetPercentage ¶
func (x *ClusterPercentage) GetPercentage() uint32
func (*ClusterPercentage) ProtoMessage ¶
func (*ClusterPercentage) ProtoMessage()
func (*ClusterPercentage) ProtoReflect ¶
func (x *ClusterPercentage) ProtoReflect() protoreflect.Message
func (*ClusterPercentage) Reset ¶
func (x *ClusterPercentage) Reset()
func (*ClusterPercentage) String ¶
func (x *ClusterPercentage) String() string
func (*ClusterPercentage) Validate ¶
func (m *ClusterPercentage) Validate() error
Validate checks the field values on ClusterPercentage 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 (*ClusterPercentage) ValidateAll ¶
func (m *ClusterPercentage) ValidateAll() error
ValidateAll checks the field values on ClusterPercentage 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 ClusterPercentageMultiError, or nil if none found.
type ClusterPercentageMultiError ¶
type ClusterPercentageMultiError []error
ClusterPercentageMultiError is an error wrapping multiple validation errors returned by ClusterPercentage.ValidateAll() if the designated constraints aren't met.
func (ClusterPercentageMultiError) AllErrors ¶
func (m ClusterPercentageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ClusterPercentageMultiError) Error ¶
func (m ClusterPercentageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ClusterPercentageValidationError ¶
type ClusterPercentageValidationError struct {
// contains filtered or unexported fields
}
ClusterPercentageValidationError is the validation error returned by ClusterPercentage.Validate if the designated constraints aren't met.
func (ClusterPercentageValidationError) Cause ¶
func (e ClusterPercentageValidationError) Cause() error
Cause function returns cause value.
func (ClusterPercentageValidationError) Error ¶
func (e ClusterPercentageValidationError) Error() string
Error satisfies the builtin error interface
func (ClusterPercentageValidationError) ErrorName ¶
func (e ClusterPercentageValidationError) ErrorName() string
ErrorName returns error name.
func (ClusterPercentageValidationError) Field ¶
func (e ClusterPercentageValidationError) Field() string
Field function returns field value.
func (ClusterPercentageValidationError) Key ¶
func (e ClusterPercentageValidationError) Key() bool
Key function returns key value.
func (ClusterPercentageValidationError) Reason ¶
func (e ClusterPercentageValidationError) Reason() string
Reason function returns reason value.
type DownstreamEnforcing ¶
type DownstreamEnforcing struct { // An upstream responsible for enforcing a fault. Only requests that are handled // by the specified upstream are considered for the fault injection. // // Types that are assignable to UpstreamType: // // *DownstreamEnforcing_UpstreamCluster UpstreamType isDownstreamEnforcing_UpstreamType `protobuf_oneof:"upstream_type"` // A downstream responsible for enforcing a fault. Only requests that are started // by the specified downstream are considered for a fault injection. // // Types that are assignable to DownstreamType: // // *DownstreamEnforcing_DownstreamCluster DownstreamType isDownstreamEnforcing_DownstreamType `protobuf_oneof:"downstream_type"` // contains filtered or unexported fields }
Enforce faults on a downstream.
func (*DownstreamEnforcing) Descriptor
deprecated
func (*DownstreamEnforcing) Descriptor() ([]byte, []int)
Deprecated: Use DownstreamEnforcing.ProtoReflect.Descriptor instead.
func (*DownstreamEnforcing) GetDownstreamCluster ¶
func (x *DownstreamEnforcing) GetDownstreamCluster() *SingleCluster
func (*DownstreamEnforcing) GetDownstreamType ¶
func (m *DownstreamEnforcing) GetDownstreamType() isDownstreamEnforcing_DownstreamType
func (*DownstreamEnforcing) GetUpstreamCluster ¶
func (x *DownstreamEnforcing) GetUpstreamCluster() *SingleCluster
func (*DownstreamEnforcing) GetUpstreamType ¶
func (m *DownstreamEnforcing) GetUpstreamType() isDownstreamEnforcing_UpstreamType
func (*DownstreamEnforcing) ProtoMessage ¶
func (*DownstreamEnforcing) ProtoMessage()
func (*DownstreamEnforcing) ProtoReflect ¶
func (x *DownstreamEnforcing) ProtoReflect() protoreflect.Message
func (*DownstreamEnforcing) Reset ¶
func (x *DownstreamEnforcing) Reset()
func (*DownstreamEnforcing) String ¶
func (x *DownstreamEnforcing) String() string
func (*DownstreamEnforcing) Validate ¶
func (m *DownstreamEnforcing) Validate() error
Validate checks the field values on DownstreamEnforcing 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 (*DownstreamEnforcing) ValidateAll ¶
func (m *DownstreamEnforcing) ValidateAll() error
ValidateAll checks the field values on DownstreamEnforcing 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 DownstreamEnforcingMultiError, or nil if none found.
type DownstreamEnforcingMultiError ¶
type DownstreamEnforcingMultiError []error
DownstreamEnforcingMultiError is an error wrapping multiple validation errors returned by DownstreamEnforcing.ValidateAll() if the designated constraints aren't met.
func (DownstreamEnforcingMultiError) AllErrors ¶
func (m DownstreamEnforcingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownstreamEnforcingMultiError) Error ¶
func (m DownstreamEnforcingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownstreamEnforcingValidationError ¶
type DownstreamEnforcingValidationError struct {
// contains filtered or unexported fields
}
DownstreamEnforcingValidationError is the validation error returned by DownstreamEnforcing.Validate if the designated constraints aren't met.
func (DownstreamEnforcingValidationError) Cause ¶
func (e DownstreamEnforcingValidationError) Cause() error
Cause function returns cause value.
func (DownstreamEnforcingValidationError) Error ¶
func (e DownstreamEnforcingValidationError) Error() string
Error satisfies the builtin error interface
func (DownstreamEnforcingValidationError) ErrorName ¶
func (e DownstreamEnforcingValidationError) ErrorName() string
ErrorName returns error name.
func (DownstreamEnforcingValidationError) Field ¶
func (e DownstreamEnforcingValidationError) Field() string
Field function returns field value.
func (DownstreamEnforcingValidationError) Key ¶
func (e DownstreamEnforcingValidationError) Key() bool
Key function returns key value.
func (DownstreamEnforcingValidationError) Reason ¶
func (e DownstreamEnforcingValidationError) Reason() string
Reason function returns reason value.
type DownstreamEnforcing_DownstreamCluster ¶
type DownstreamEnforcing_DownstreamCluster struct { // A single downstream cluster. DownstreamCluster *SingleCluster `protobuf:"bytes,2,opt,name=downstream_cluster,json=downstreamCluster,proto3,oneof"` }
type DownstreamEnforcing_UpstreamCluster ¶
type DownstreamEnforcing_UpstreamCluster struct { // A single upstream cluster. UpstreamCluster *SingleCluster `protobuf:"bytes,1,opt,name=upstream_cluster,json=upstreamCluster,proto3,oneof"` }
type FaultAbortStatus ¶
type FaultAbortStatus struct { // The abort HTTP status. HttpStatusCode uint32 `protobuf:"varint,1,opt,name=http_status_code,json=httpStatusCode,proto3" json:"http_status_code,omitempty"` // contains filtered or unexported fields }
The abort status to apply as part of an abort fault.
func (*FaultAbortStatus) Descriptor
deprecated
func (*FaultAbortStatus) Descriptor() ([]byte, []int)
Deprecated: Use FaultAbortStatus.ProtoReflect.Descriptor instead.
func (*FaultAbortStatus) GetHttpStatusCode ¶
func (x *FaultAbortStatus) GetHttpStatusCode() uint32
func (*FaultAbortStatus) ProtoMessage ¶
func (*FaultAbortStatus) ProtoMessage()
func (*FaultAbortStatus) ProtoReflect ¶
func (x *FaultAbortStatus) ProtoReflect() protoreflect.Message
func (*FaultAbortStatus) Reset ¶
func (x *FaultAbortStatus) Reset()
func (*FaultAbortStatus) String ¶
func (x *FaultAbortStatus) String() string
func (*FaultAbortStatus) Validate ¶
func (m *FaultAbortStatus) Validate() error
Validate checks the field values on FaultAbortStatus 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 (*FaultAbortStatus) ValidateAll ¶
func (m *FaultAbortStatus) ValidateAll() error
ValidateAll checks the field values on FaultAbortStatus 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 FaultAbortStatusMultiError, or nil if none found.
type FaultAbortStatusMultiError ¶
type FaultAbortStatusMultiError []error
FaultAbortStatusMultiError is an error wrapping multiple validation errors returned by FaultAbortStatus.ValidateAll() if the designated constraints aren't met.
func (FaultAbortStatusMultiError) AllErrors ¶
func (m FaultAbortStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FaultAbortStatusMultiError) Error ¶
func (m FaultAbortStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FaultAbortStatusValidationError ¶
type FaultAbortStatusValidationError struct {
// contains filtered or unexported fields
}
FaultAbortStatusValidationError is the validation error returned by FaultAbortStatus.Validate if the designated constraints aren't met.
func (FaultAbortStatusValidationError) Cause ¶
func (e FaultAbortStatusValidationError) Cause() error
Cause function returns cause value.
func (FaultAbortStatusValidationError) Error ¶
func (e FaultAbortStatusValidationError) Error() string
Error satisfies the builtin error interface
func (FaultAbortStatusValidationError) ErrorName ¶
func (e FaultAbortStatusValidationError) ErrorName() string
ErrorName returns error name.
func (FaultAbortStatusValidationError) Field ¶
func (e FaultAbortStatusValidationError) Field() string
Field function returns field value.
func (FaultAbortStatusValidationError) Key ¶
func (e FaultAbortStatusValidationError) Key() bool
Key function returns key value.
func (FaultAbortStatusValidationError) Reason ¶
func (e FaultAbortStatusValidationError) Reason() string
Reason function returns reason value.
type FaultLatencyDuration ¶
type FaultLatencyDuration struct { // The fixed latency duration in milliseconds. FixedDurationMs uint32 `protobuf:"varint,1,opt,name=fixed_duration_ms,json=fixedDurationMs,proto3" json:"fixed_duration_ms,omitempty"` // contains filtered or unexported fields }
The latency duration to apply as part of a latency fault.
func (*FaultLatencyDuration) Descriptor
deprecated
func (*FaultLatencyDuration) Descriptor() ([]byte, []int)
Deprecated: Use FaultLatencyDuration.ProtoReflect.Descriptor instead.
func (*FaultLatencyDuration) GetFixedDurationMs ¶
func (x *FaultLatencyDuration) GetFixedDurationMs() uint32
func (*FaultLatencyDuration) ProtoMessage ¶
func (*FaultLatencyDuration) ProtoMessage()
func (*FaultLatencyDuration) ProtoReflect ¶
func (x *FaultLatencyDuration) ProtoReflect() protoreflect.Message
func (*FaultLatencyDuration) Reset ¶
func (x *FaultLatencyDuration) Reset()
func (*FaultLatencyDuration) String ¶
func (x *FaultLatencyDuration) String() string
func (*FaultLatencyDuration) Validate ¶
func (m *FaultLatencyDuration) Validate() error
Validate checks the field values on FaultLatencyDuration 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 (*FaultLatencyDuration) ValidateAll ¶
func (m *FaultLatencyDuration) ValidateAll() error
ValidateAll checks the field values on FaultLatencyDuration 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 FaultLatencyDurationMultiError, or nil if none found.
type FaultLatencyDurationMultiError ¶
type FaultLatencyDurationMultiError []error
FaultLatencyDurationMultiError is an error wrapping multiple validation errors returned by FaultLatencyDuration.ValidateAll() if the designated constraints aren't met.
func (FaultLatencyDurationMultiError) AllErrors ¶
func (m FaultLatencyDurationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FaultLatencyDurationMultiError) Error ¶
func (m FaultLatencyDurationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FaultLatencyDurationValidationError ¶
type FaultLatencyDurationValidationError struct {
// contains filtered or unexported fields
}
FaultLatencyDurationValidationError is the validation error returned by FaultLatencyDuration.Validate if the designated constraints aren't met.
func (FaultLatencyDurationValidationError) Cause ¶
func (e FaultLatencyDurationValidationError) Cause() error
Cause function returns cause value.
func (FaultLatencyDurationValidationError) Error ¶
func (e FaultLatencyDurationValidationError) Error() string
Error satisfies the builtin error interface
func (FaultLatencyDurationValidationError) ErrorName ¶
func (e FaultLatencyDurationValidationError) ErrorName() string
ErrorName returns error name.
func (FaultLatencyDurationValidationError) Field ¶
func (e FaultLatencyDurationValidationError) Field() string
Field function returns field value.
func (FaultLatencyDurationValidationError) Key ¶
func (e FaultLatencyDurationValidationError) Key() bool
Key function returns key value.
func (FaultLatencyDurationValidationError) Reason ¶
func (e FaultLatencyDurationValidationError) Reason() string
Reason function returns reason value.
type FaultPercentage ¶
type FaultPercentage struct { // The numerator of a percentage. // (i.e. percentage equal to 50 with denominator set to HUNDRED results in 50/100 = 50%) Percentage uint32 `protobuf:"varint,1,opt,name=percentage,proto3" json:"percentage,omitempty"` // Specifies the denominator. If the denominator specified is less than the numerator, the final // fractional percentage is capped at 1 (100%). Unspecified denominator will be handled as 100. Denominator FaultPercentage_DenominatorType `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
The fault percentage controlling what percentage of requests considered for a fault injection should have the fault applied.
func (*FaultPercentage) Descriptor
deprecated
func (*FaultPercentage) Descriptor() ([]byte, []int)
Deprecated: Use FaultPercentage.ProtoReflect.Descriptor instead.
func (*FaultPercentage) GetDenominator ¶
func (x *FaultPercentage) GetDenominator() FaultPercentage_DenominatorType
func (*FaultPercentage) GetPercentage ¶
func (x *FaultPercentage) GetPercentage() uint32
func (*FaultPercentage) ProtoMessage ¶
func (*FaultPercentage) ProtoMessage()
func (*FaultPercentage) ProtoReflect ¶
func (x *FaultPercentage) ProtoReflect() protoreflect.Message
func (*FaultPercentage) Reset ¶
func (x *FaultPercentage) Reset()
func (*FaultPercentage) String ¶
func (x *FaultPercentage) String() string
func (*FaultPercentage) Validate ¶
func (m *FaultPercentage) Validate() error
Validate checks the field values on FaultPercentage 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 (*FaultPercentage) ValidateAll ¶
func (m *FaultPercentage) ValidateAll() error
ValidateAll checks the field values on FaultPercentage 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 FaultPercentageMultiError, or nil if none found.
type FaultPercentageMultiError ¶
type FaultPercentageMultiError []error
FaultPercentageMultiError is an error wrapping multiple validation errors returned by FaultPercentage.ValidateAll() if the designated constraints aren't met.
func (FaultPercentageMultiError) AllErrors ¶
func (m FaultPercentageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FaultPercentageMultiError) Error ¶
func (m FaultPercentageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FaultPercentageValidationError ¶
type FaultPercentageValidationError struct {
// contains filtered or unexported fields
}
FaultPercentageValidationError is the validation error returned by FaultPercentage.Validate if the designated constraints aren't met.
func (FaultPercentageValidationError) Cause ¶
func (e FaultPercentageValidationError) Cause() error
Cause function returns cause value.
func (FaultPercentageValidationError) Error ¶
func (e FaultPercentageValidationError) Error() string
Error satisfies the builtin error interface
func (FaultPercentageValidationError) ErrorName ¶
func (e FaultPercentageValidationError) ErrorName() string
ErrorName returns error name.
func (FaultPercentageValidationError) Field ¶
func (e FaultPercentageValidationError) Field() string
Field function returns field value.
func (FaultPercentageValidationError) Key ¶
func (e FaultPercentageValidationError) Key() bool
Key function returns key value.
func (FaultPercentageValidationError) Reason ¶
func (e FaultPercentageValidationError) Reason() string
Reason function returns reason value.
type FaultPercentage_DenominatorType ¶
type FaultPercentage_DenominatorType int32
Fraction percentages support several fixed denominator values.
const ( // Unspecified. FaultPercentage_DENOMINATOR_UNSPECIFIED FaultPercentage_DenominatorType = 0 // 100. // // **Example**: 1/100 = 1%. FaultPercentage_DENOMINATOR_HUNDRED FaultPercentage_DenominatorType = 1 // 10,000. // // **Example**: 1/10000 = 0.01%. FaultPercentage_DENOMINATOR_TEN_THOUSAND FaultPercentage_DenominatorType = 2 // 1,000,000. // // **Example**: 1/1000000 = 0.0001%. FaultPercentage_DENOMINATOR_MILLION FaultPercentage_DenominatorType = 3 )
func (FaultPercentage_DenominatorType) Descriptor ¶
func (FaultPercentage_DenominatorType) Descriptor() protoreflect.EnumDescriptor
func (FaultPercentage_DenominatorType) Enum ¶
func (x FaultPercentage_DenominatorType) Enum() *FaultPercentage_DenominatorType
func (FaultPercentage_DenominatorType) EnumDescriptor
deprecated
func (FaultPercentage_DenominatorType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FaultPercentage_DenominatorType.Descriptor instead.
func (FaultPercentage_DenominatorType) Number ¶
func (x FaultPercentage_DenominatorType) Number() protoreflect.EnumNumber
func (FaultPercentage_DenominatorType) String ¶
func (x FaultPercentage_DenominatorType) String() string
func (FaultPercentage_DenominatorType) Type ¶
func (FaultPercentage_DenominatorType) Type() protoreflect.EnumType
type FaultTargeting ¶
type FaultTargeting struct { // A fault enforcer. // // Types that are assignable to Enforcer: // // *FaultTargeting_UpstreamEnforcing // *FaultTargeting_DownstreamEnforcing Enforcer isFaultTargeting_Enforcer `protobuf_oneof:"enforcer"` // contains filtered or unexported fields }
The fault targeting that allows us to control which requests are considered for fault injection and what part of the system is responsible for applying faults. The `enforcer` abstraction allows us to define a different list of matching criteria depending on whether faults are applied on the upstream or downstream.
func (*FaultTargeting) Descriptor
deprecated
func (*FaultTargeting) Descriptor() ([]byte, []int)
Deprecated: Use FaultTargeting.ProtoReflect.Descriptor instead.
func (*FaultTargeting) GetDownstreamEnforcing ¶
func (x *FaultTargeting) GetDownstreamEnforcing() *DownstreamEnforcing
func (*FaultTargeting) GetEnforcer ¶
func (m *FaultTargeting) GetEnforcer() isFaultTargeting_Enforcer
func (*FaultTargeting) GetUpstreamEnforcing ¶
func (x *FaultTargeting) GetUpstreamEnforcing() *UpstreamEnforcing
func (*FaultTargeting) ProtoMessage ¶
func (*FaultTargeting) ProtoMessage()
func (*FaultTargeting) ProtoReflect ¶
func (x *FaultTargeting) ProtoReflect() protoreflect.Message
func (*FaultTargeting) Reset ¶
func (x *FaultTargeting) Reset()
func (*FaultTargeting) String ¶
func (x *FaultTargeting) String() string
func (*FaultTargeting) Validate ¶
func (m *FaultTargeting) Validate() error
Validate checks the field values on FaultTargeting 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 (*FaultTargeting) ValidateAll ¶
func (m *FaultTargeting) ValidateAll() error
ValidateAll checks the field values on FaultTargeting 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 FaultTargetingMultiError, or nil if none found.
type FaultTargetingMultiError ¶
type FaultTargetingMultiError []error
FaultTargetingMultiError is an error wrapping multiple validation errors returned by FaultTargeting.ValidateAll() if the designated constraints aren't met.
func (FaultTargetingMultiError) AllErrors ¶
func (m FaultTargetingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FaultTargetingMultiError) Error ¶
func (m FaultTargetingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FaultTargetingValidationError ¶
type FaultTargetingValidationError struct {
// contains filtered or unexported fields
}
FaultTargetingValidationError is the validation error returned by FaultTargeting.Validate if the designated constraints aren't met.
func (FaultTargetingValidationError) Cause ¶
func (e FaultTargetingValidationError) Cause() error
Cause function returns cause value.
func (FaultTargetingValidationError) Error ¶
func (e FaultTargetingValidationError) Error() string
Error satisfies the builtin error interface
func (FaultTargetingValidationError) ErrorName ¶
func (e FaultTargetingValidationError) ErrorName() string
ErrorName returns error name.
func (FaultTargetingValidationError) Field ¶
func (e FaultTargetingValidationError) Field() string
Field function returns field value.
func (FaultTargetingValidationError) Key ¶
func (e FaultTargetingValidationError) Key() bool
Key function returns key value.
func (FaultTargetingValidationError) Reason ¶
func (e FaultTargetingValidationError) Reason() string
Reason function returns reason value.
type FaultTargeting_DownstreamEnforcing ¶
type FaultTargeting_DownstreamEnforcing struct { // Enforce a fault on a downstream. DownstreamEnforcing *DownstreamEnforcing `protobuf:"bytes,2,opt,name=downstream_enforcing,json=downstreamEnforcing,proto3,oneof"` }
type FaultTargeting_UpstreamEnforcing ¶
type FaultTargeting_UpstreamEnforcing struct { // Enforce a fault on an upstream. UpstreamEnforcing *UpstreamEnforcing `protobuf:"bytes,1,opt,name=upstream_enforcing,json=upstreamEnforcing,proto3,oneof"` }
type HTTPFaultConfig ¶
type HTTPFaultConfig struct { // The targeting of the fault describing what requests are being considered for faults. FaultTargeting *FaultTargeting `protobuf:"bytes,1,opt,name=fault_targeting,json=faultTargeting,proto3" json:"fault_targeting,omitempty"` // Types that are assignable to Fault: // // *HTTPFaultConfig_AbortFault // *HTTPFaultConfig_LatencyFault Fault isHTTPFaultConfig_Fault `protobuf_oneof:"fault"` // contains filtered or unexported fields }
The configuration of an HTTP fault.
func (*HTTPFaultConfig) Descriptor
deprecated
func (*HTTPFaultConfig) Descriptor() ([]byte, []int)
Deprecated: Use HTTPFaultConfig.ProtoReflect.Descriptor instead.
func (*HTTPFaultConfig) GetAbortFault ¶
func (x *HTTPFaultConfig) GetAbortFault() *AbortFault
func (*HTTPFaultConfig) GetFault ¶
func (m *HTTPFaultConfig) GetFault() isHTTPFaultConfig_Fault
func (*HTTPFaultConfig) GetFaultTargeting ¶
func (x *HTTPFaultConfig) GetFaultTargeting() *FaultTargeting
func (*HTTPFaultConfig) GetLatencyFault ¶
func (x *HTTPFaultConfig) GetLatencyFault() *LatencyFault
func (*HTTPFaultConfig) ProtoMessage ¶
func (*HTTPFaultConfig) ProtoMessage()
func (*HTTPFaultConfig) ProtoReflect ¶
func (x *HTTPFaultConfig) ProtoReflect() protoreflect.Message
func (*HTTPFaultConfig) Reset ¶
func (x *HTTPFaultConfig) Reset()
func (*HTTPFaultConfig) String ¶
func (x *HTTPFaultConfig) String() string
func (*HTTPFaultConfig) Validate ¶
func (m *HTTPFaultConfig) Validate() error
Validate checks the field values on HTTPFaultConfig 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 (*HTTPFaultConfig) ValidateAll ¶
func (m *HTTPFaultConfig) ValidateAll() error
ValidateAll checks the field values on HTTPFaultConfig 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 HTTPFaultConfigMultiError, or nil if none found.
type HTTPFaultConfigMultiError ¶
type HTTPFaultConfigMultiError []error
HTTPFaultConfigMultiError is an error wrapping multiple validation errors returned by HTTPFaultConfig.ValidateAll() if the designated constraints aren't met.
func (HTTPFaultConfigMultiError) AllErrors ¶
func (m HTTPFaultConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HTTPFaultConfigMultiError) Error ¶
func (m HTTPFaultConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HTTPFaultConfigValidationError ¶
type HTTPFaultConfigValidationError struct {
// contains filtered or unexported fields
}
HTTPFaultConfigValidationError is the validation error returned by HTTPFaultConfig.Validate if the designated constraints aren't met.
func (HTTPFaultConfigValidationError) Cause ¶
func (e HTTPFaultConfigValidationError) Cause() error
Cause function returns cause value.
func (HTTPFaultConfigValidationError) Error ¶
func (e HTTPFaultConfigValidationError) Error() string
Error satisfies the builtin error interface
func (HTTPFaultConfigValidationError) ErrorName ¶
func (e HTTPFaultConfigValidationError) ErrorName() string
ErrorName returns error name.
func (HTTPFaultConfigValidationError) Field ¶
func (e HTTPFaultConfigValidationError) Field() string
Field function returns field value.
func (HTTPFaultConfigValidationError) Key ¶
func (e HTTPFaultConfigValidationError) Key() bool
Key function returns key value.
func (HTTPFaultConfigValidationError) Reason ¶
func (e HTTPFaultConfigValidationError) Reason() string
Reason function returns reason value.
type HTTPFaultConfig_AbortFault ¶
type HTTPFaultConfig_AbortFault struct { // The abort fault. AbortFault *AbortFault `protobuf:"bytes,2,opt,name=abort_fault,json=abortFault,proto3,oneof"` }
type HTTPFaultConfig_LatencyFault ¶
type HTTPFaultConfig_LatencyFault struct { // The latency fault. LatencyFault *LatencyFault `protobuf:"bytes,3,opt,name=latency_fault,json=latencyFault,proto3,oneof"` }
type LatencyFault ¶
type LatencyFault struct { // The percentage of requests the fault should be applied to. Percentage *FaultPercentage `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"` // The latency duration to apply when applying a latency fault. LatencyDuration *FaultLatencyDuration `protobuf:"bytes,2,opt,name=latency_duration,json=latencyDuration,proto3" json:"latency_duration,omitempty"` // contains filtered or unexported fields }
The definition of a latency fault.
func (*LatencyFault) Descriptor
deprecated
func (*LatencyFault) Descriptor() ([]byte, []int)
Deprecated: Use LatencyFault.ProtoReflect.Descriptor instead.
func (*LatencyFault) GetLatencyDuration ¶
func (x *LatencyFault) GetLatencyDuration() *FaultLatencyDuration
func (*LatencyFault) GetPercentage ¶
func (x *LatencyFault) GetPercentage() *FaultPercentage
func (*LatencyFault) ProtoMessage ¶
func (*LatencyFault) ProtoMessage()
func (*LatencyFault) ProtoReflect ¶
func (x *LatencyFault) ProtoReflect() protoreflect.Message
func (*LatencyFault) Reset ¶
func (x *LatencyFault) Reset()
func (*LatencyFault) String ¶
func (x *LatencyFault) String() string
func (*LatencyFault) Validate ¶
func (m *LatencyFault) Validate() error
Validate checks the field values on LatencyFault 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 (*LatencyFault) ValidateAll ¶
func (m *LatencyFault) ValidateAll() error
ValidateAll checks the field values on LatencyFault 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 LatencyFaultMultiError, or nil if none found.
type LatencyFaultMultiError ¶
type LatencyFaultMultiError []error
LatencyFaultMultiError is an error wrapping multiple validation errors returned by LatencyFault.ValidateAll() if the designated constraints aren't met.
func (LatencyFaultMultiError) AllErrors ¶
func (m LatencyFaultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LatencyFaultMultiError) Error ¶
func (m LatencyFaultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LatencyFaultValidationError ¶
type LatencyFaultValidationError struct {
// contains filtered or unexported fields
}
LatencyFaultValidationError is the validation error returned by LatencyFault.Validate if the designated constraints aren't met.
func (LatencyFaultValidationError) Cause ¶
func (e LatencyFaultValidationError) Cause() error
Cause function returns cause value.
func (LatencyFaultValidationError) Error ¶
func (e LatencyFaultValidationError) Error() string
Error satisfies the builtin error interface
func (LatencyFaultValidationError) ErrorName ¶
func (e LatencyFaultValidationError) ErrorName() string
ErrorName returns error name.
func (LatencyFaultValidationError) Field ¶
func (e LatencyFaultValidationError) Field() string
Field function returns field value.
func (LatencyFaultValidationError) Key ¶
func (e LatencyFaultValidationError) Key() bool
Key function returns key value.
func (LatencyFaultValidationError) Reason ¶
func (e LatencyFaultValidationError) Reason() string
Reason function returns reason value.
type SingleCluster ¶
type SingleCluster struct { // The name of a cluster. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
A single cluster that is partaking in the fault injection.
func (*SingleCluster) Descriptor
deprecated
func (*SingleCluster) Descriptor() ([]byte, []int)
Deprecated: Use SingleCluster.ProtoReflect.Descriptor instead.
func (*SingleCluster) GetName ¶
func (x *SingleCluster) GetName() string
func (*SingleCluster) ProtoMessage ¶
func (*SingleCluster) ProtoMessage()
func (*SingleCluster) ProtoReflect ¶
func (x *SingleCluster) ProtoReflect() protoreflect.Message
func (*SingleCluster) Reset ¶
func (x *SingleCluster) Reset()
func (*SingleCluster) String ¶
func (x *SingleCluster) String() string
func (*SingleCluster) Validate ¶
func (m *SingleCluster) Validate() error
Validate checks the field values on SingleCluster 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 (*SingleCluster) ValidateAll ¶
func (m *SingleCluster) ValidateAll() error
ValidateAll checks the field values on SingleCluster 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 SingleClusterMultiError, or nil if none found.
type SingleClusterMultiError ¶
type SingleClusterMultiError []error
SingleClusterMultiError is an error wrapping multiple validation errors returned by SingleCluster.ValidateAll() if the designated constraints aren't met.
func (SingleClusterMultiError) AllErrors ¶
func (m SingleClusterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SingleClusterMultiError) Error ¶
func (m SingleClusterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SingleClusterValidationError ¶
type SingleClusterValidationError struct {
// contains filtered or unexported fields
}
SingleClusterValidationError is the validation error returned by SingleCluster.Validate if the designated constraints aren't met.
func (SingleClusterValidationError) Cause ¶
func (e SingleClusterValidationError) Cause() error
Cause function returns cause value.
func (SingleClusterValidationError) Error ¶
func (e SingleClusterValidationError) Error() string
Error satisfies the builtin error interface
func (SingleClusterValidationError) ErrorName ¶
func (e SingleClusterValidationError) ErrorName() string
ErrorName returns error name.
func (SingleClusterValidationError) Field ¶
func (e SingleClusterValidationError) Field() string
Field function returns field value.
func (SingleClusterValidationError) Key ¶
func (e SingleClusterValidationError) Key() bool
Key function returns key value.
func (SingleClusterValidationError) Reason ¶
func (e SingleClusterValidationError) Reason() string
Reason function returns reason value.
type UpstreamEnforcing ¶
type UpstreamEnforcing struct { // An upstream responsible for enforcing a fault. Only requests that are handled // by the specified upstream are considered for the fault injection. // // Types that are assignable to UpstreamType: // // *UpstreamEnforcing_UpstreamCluster UpstreamType isUpstreamEnforcing_UpstreamType `protobuf_oneof:"upstream_type"` // A downstream responsible for enforcing a fault. Only requests that are started // by the specified downstream are considered for the fault injection. // // Types that are assignable to DownstreamType: // // *UpstreamEnforcing_DownstreamCluster DownstreamType isUpstreamEnforcing_DownstreamType `protobuf_oneof:"downstream_type"` // contains filtered or unexported fields }
Enforce faults on an upstream.
func (*UpstreamEnforcing) Descriptor
deprecated
func (*UpstreamEnforcing) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamEnforcing.ProtoReflect.Descriptor instead.
func (*UpstreamEnforcing) GetDownstreamCluster ¶
func (x *UpstreamEnforcing) GetDownstreamCluster() *SingleCluster
func (*UpstreamEnforcing) GetDownstreamType ¶
func (m *UpstreamEnforcing) GetDownstreamType() isUpstreamEnforcing_DownstreamType
func (*UpstreamEnforcing) GetUpstreamCluster ¶
func (x *UpstreamEnforcing) GetUpstreamCluster() *SingleCluster
func (*UpstreamEnforcing) GetUpstreamType ¶
func (m *UpstreamEnforcing) GetUpstreamType() isUpstreamEnforcing_UpstreamType
func (*UpstreamEnforcing) ProtoMessage ¶
func (*UpstreamEnforcing) ProtoMessage()
func (*UpstreamEnforcing) ProtoReflect ¶
func (x *UpstreamEnforcing) ProtoReflect() protoreflect.Message
func (*UpstreamEnforcing) Reset ¶
func (x *UpstreamEnforcing) Reset()
func (*UpstreamEnforcing) String ¶
func (x *UpstreamEnforcing) String() string
func (*UpstreamEnforcing) Validate ¶
func (m *UpstreamEnforcing) Validate() error
Validate checks the field values on UpstreamEnforcing 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 (*UpstreamEnforcing) ValidateAll ¶
func (m *UpstreamEnforcing) ValidateAll() error
ValidateAll checks the field values on UpstreamEnforcing 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 UpstreamEnforcingMultiError, or nil if none found.
type UpstreamEnforcingMultiError ¶
type UpstreamEnforcingMultiError []error
UpstreamEnforcingMultiError is an error wrapping multiple validation errors returned by UpstreamEnforcing.ValidateAll() if the designated constraints aren't met.
func (UpstreamEnforcingMultiError) AllErrors ¶
func (m UpstreamEnforcingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpstreamEnforcingMultiError) Error ¶
func (m UpstreamEnforcingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpstreamEnforcingValidationError ¶
type UpstreamEnforcingValidationError struct {
// contains filtered or unexported fields
}
UpstreamEnforcingValidationError is the validation error returned by UpstreamEnforcing.Validate if the designated constraints aren't met.
func (UpstreamEnforcingValidationError) Cause ¶
func (e UpstreamEnforcingValidationError) Cause() error
Cause function returns cause value.
func (UpstreamEnforcingValidationError) Error ¶
func (e UpstreamEnforcingValidationError) Error() string
Error satisfies the builtin error interface
func (UpstreamEnforcingValidationError) ErrorName ¶
func (e UpstreamEnforcingValidationError) ErrorName() string
ErrorName returns error name.
func (UpstreamEnforcingValidationError) Field ¶
func (e UpstreamEnforcingValidationError) Field() string
Field function returns field value.
func (UpstreamEnforcingValidationError) Key ¶
func (e UpstreamEnforcingValidationError) Key() bool
Key function returns key value.
func (UpstreamEnforcingValidationError) Reason ¶
func (e UpstreamEnforcingValidationError) Reason() string
Reason function returns reason value.
type UpstreamEnforcing_DownstreamCluster ¶
type UpstreamEnforcing_DownstreamCluster struct { // A single downstream cluster. DownstreamCluster *SingleCluster `protobuf:"bytes,3,opt,name=downstream_cluster,json=downstreamCluster,proto3,oneof"` }
type UpstreamEnforcing_UpstreamCluster ¶
type UpstreamEnforcing_UpstreamCluster struct { // A single upstream cluster. UpstreamCluster *SingleCluster `protobuf:"bytes,1,opt,name=upstream_cluster,json=upstreamCluster,proto3,oneof"` }