Documentation ¶
Index ¶
- Variables
- type ErrorFault
- func (*ErrorFault) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorFault) GetPercentage() *FaultPercentage
- func (*ErrorFault) ProtoMessage()
- func (x *ErrorFault) ProtoReflect() protoreflect.Message
- func (x *ErrorFault) Reset()
- func (x *ErrorFault) String() string
- func (m *ErrorFault) Validate() error
- func (m *ErrorFault) ValidateAll() error
- type ErrorFaultMultiError
- type ErrorFaultValidationError
- type FaultConfig
- func (*FaultConfig) Descriptor() ([]byte, []int)deprecated
- func (x *FaultConfig) GetErrorFault() *ErrorFault
- func (m *FaultConfig) GetFault() isFaultConfig_Fault
- func (x *FaultConfig) GetFaultTargeting() *FaultTargeting
- func (x *FaultConfig) GetLatencyFault() *LatencyFault
- func (*FaultConfig) ProtoMessage()
- func (x *FaultConfig) ProtoReflect() protoreflect.Message
- func (x *FaultConfig) Reset()
- func (x *FaultConfig) String() string
- func (m *FaultConfig) Validate() error
- func (m *FaultConfig) ValidateAll() error
- type FaultConfigMultiError
- type FaultConfigValidationError
- func (e FaultConfigValidationError) Cause() error
- func (e FaultConfigValidationError) Error() string
- func (e FaultConfigValidationError) ErrorName() string
- func (e FaultConfigValidationError) Field() string
- func (e FaultConfigValidationError) Key() bool
- func (e FaultConfigValidationError) Reason() string
- type FaultConfig_ErrorFault
- type FaultConfig_LatencyFault
- type FaultPercentage
- func (*FaultPercentage) Descriptor() ([]byte, []int)deprecated
- 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 FaultTargeting
- func (*FaultTargeting) Descriptor() ([]byte, []int)deprecated
- func (x *FaultTargeting) GetDownstreamCluster() *SingleCluster
- func (x *FaultTargeting) GetUpstreamCluster() *SingleCluster
- 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 LatencyFault
- func (*LatencyFault) Descriptor() ([]byte, []int)deprecated
- 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
Constants ¶
This section is empty.
Variables ¶
var File_chaos_redisexperimentation_v1_redisexperimentation_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ErrorFault ¶
type ErrorFault struct { // The percentage of requests the fault should be applied to. Percentage *FaultPercentage `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"` // contains filtered or unexported fields }
The definition of a redis error fault.
func (*ErrorFault) Descriptor
deprecated
func (*ErrorFault) Descriptor() ([]byte, []int)
Deprecated: Use ErrorFault.ProtoReflect.Descriptor instead.
func (*ErrorFault) GetPercentage ¶
func (x *ErrorFault) GetPercentage() *FaultPercentage
func (*ErrorFault) ProtoMessage ¶
func (*ErrorFault) ProtoMessage()
func (*ErrorFault) ProtoReflect ¶
func (x *ErrorFault) ProtoReflect() protoreflect.Message
func (*ErrorFault) Reset ¶
func (x *ErrorFault) Reset()
func (*ErrorFault) String ¶
func (x *ErrorFault) String() string
func (*ErrorFault) Validate ¶
func (m *ErrorFault) Validate() error
Validate checks the field values on ErrorFault 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 (*ErrorFault) ValidateAll ¶
func (m *ErrorFault) ValidateAll() error
ValidateAll checks the field values on ErrorFault 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 ErrorFaultMultiError, or nil if none found.
type ErrorFaultMultiError ¶
type ErrorFaultMultiError []error
ErrorFaultMultiError is an error wrapping multiple validation errors returned by ErrorFault.ValidateAll() if the designated constraints aren't met.
func (ErrorFaultMultiError) AllErrors ¶
func (m ErrorFaultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ErrorFaultMultiError) Error ¶
func (m ErrorFaultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ErrorFaultValidationError ¶
type ErrorFaultValidationError struct {
// contains filtered or unexported fields
}
ErrorFaultValidationError is the validation error returned by ErrorFault.Validate if the designated constraints aren't met.
func (ErrorFaultValidationError) Cause ¶
func (e ErrorFaultValidationError) Cause() error
Cause function returns cause value.
func (ErrorFaultValidationError) Error ¶
func (e ErrorFaultValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorFaultValidationError) ErrorName ¶
func (e ErrorFaultValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorFaultValidationError) Field ¶
func (e ErrorFaultValidationError) Field() string
Field function returns field value.
func (ErrorFaultValidationError) Key ¶
func (e ErrorFaultValidationError) Key() bool
Key function returns key value.
func (ErrorFaultValidationError) Reason ¶
func (e ErrorFaultValidationError) Reason() string
Reason function returns reason value.
type FaultConfig ¶
type FaultConfig struct { // The targeting of the fault describing what redis 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: // // *FaultConfig_ErrorFault // *FaultConfig_LatencyFault Fault isFaultConfig_Fault `protobuf_oneof:"fault"` // contains filtered or unexported fields }
The configuration of a Redis fault.
func (*FaultConfig) Descriptor
deprecated
func (*FaultConfig) Descriptor() ([]byte, []int)
Deprecated: Use FaultConfig.ProtoReflect.Descriptor instead.
func (*FaultConfig) GetErrorFault ¶
func (x *FaultConfig) GetErrorFault() *ErrorFault
func (*FaultConfig) GetFault ¶
func (m *FaultConfig) GetFault() isFaultConfig_Fault
func (*FaultConfig) GetFaultTargeting ¶
func (x *FaultConfig) GetFaultTargeting() *FaultTargeting
func (*FaultConfig) GetLatencyFault ¶
func (x *FaultConfig) GetLatencyFault() *LatencyFault
func (*FaultConfig) ProtoMessage ¶
func (*FaultConfig) ProtoMessage()
func (*FaultConfig) ProtoReflect ¶
func (x *FaultConfig) ProtoReflect() protoreflect.Message
func (*FaultConfig) Reset ¶
func (x *FaultConfig) Reset()
func (*FaultConfig) String ¶
func (x *FaultConfig) String() string
func (*FaultConfig) Validate ¶
func (m *FaultConfig) Validate() error
Validate checks the field values on FaultConfig 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 (*FaultConfig) ValidateAll ¶
func (m *FaultConfig) ValidateAll() error
ValidateAll checks the field values on FaultConfig 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 FaultConfigMultiError, or nil if none found.
type FaultConfigMultiError ¶
type FaultConfigMultiError []error
FaultConfigMultiError is an error wrapping multiple validation errors returned by FaultConfig.ValidateAll() if the designated constraints aren't met.
func (FaultConfigMultiError) AllErrors ¶
func (m FaultConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FaultConfigMultiError) Error ¶
func (m FaultConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FaultConfigValidationError ¶
type FaultConfigValidationError struct {
// contains filtered or unexported fields
}
FaultConfigValidationError is the validation error returned by FaultConfig.Validate if the designated constraints aren't met.
func (FaultConfigValidationError) Cause ¶
func (e FaultConfigValidationError) Cause() error
Cause function returns cause value.
func (FaultConfigValidationError) Error ¶
func (e FaultConfigValidationError) Error() string
Error satisfies the builtin error interface
func (FaultConfigValidationError) ErrorName ¶
func (e FaultConfigValidationError) ErrorName() string
ErrorName returns error name.
func (FaultConfigValidationError) Field ¶
func (e FaultConfigValidationError) Field() string
Field function returns field value.
func (FaultConfigValidationError) Key ¶
func (e FaultConfigValidationError) Key() bool
Key function returns key value.
func (FaultConfigValidationError) Reason ¶
func (e FaultConfigValidationError) Reason() string
Reason function returns reason value.
type FaultConfig_ErrorFault ¶
type FaultConfig_ErrorFault struct { // The error fault responds to redis commands with an error. ErrorFault *ErrorFault `protobuf:"bytes,2,opt,name=error_fault,json=errorFault,proto3,oneof"` }
type FaultConfig_LatencyFault ¶
type FaultConfig_LatencyFault struct { // The latency fault delays redis commands. LatencyFault *LatencyFault `protobuf:"bytes,3,opt,name=latency_fault,json=latencyFault,proto3,oneof"` }
type FaultPercentage ¶
type FaultPercentage 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 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) 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 FaultTargeting ¶
type FaultTargeting struct { // The upstream redis cluster. UpstreamCluster *SingleCluster `protobuf:"bytes,1,opt,name=upstream_cluster,json=upstreamCluster,proto3" json:"upstream_cluster,omitempty"` // A single downstream cluster sending requests to redis upstream. DownstreamCluster *SingleCluster `protobuf:"bytes,2,opt,name=downstream_cluster,json=downstreamCluster,proto3" json:"downstream_cluster,omitempty"` // contains filtered or unexported fields }
Enforce faults on upstream redis cluster.
func (*FaultTargeting) Descriptor
deprecated
func (*FaultTargeting) Descriptor() ([]byte, []int)
Deprecated: Use FaultTargeting.ProtoReflect.Descriptor instead.
func (*FaultTargeting) GetDownstreamCluster ¶
func (x *FaultTargeting) GetDownstreamCluster() *SingleCluster
func (*FaultTargeting) GetUpstreamCluster ¶
func (x *FaultTargeting) GetUpstreamCluster() *SingleCluster
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 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"` // 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) 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.