redisexperimentationv1

package
v0.0.0-...-0f6a5af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Error satisfies the builtin error interface

func (ErrorFaultValidationError) ErrorName

func (e ErrorFaultValidationError) ErrorName() string

ErrorName returns error name.

func (ErrorFaultValidationError) Field

Field function returns field value.

func (ErrorFaultValidationError) Key

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

Cause function returns cause value.

func (FaultConfigValidationError) Error

Error satisfies the builtin error interface

func (FaultConfigValidationError) ErrorName

func (e FaultConfigValidationError) ErrorName() string

ErrorName returns error name.

func (FaultConfigValidationError) Field

Field function returns field value.

func (FaultConfigValidationError) Key

Key function returns key value.

func (FaultConfigValidationError) Reason

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

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

Cause function returns cause value.

func (FaultPercentageValidationError) Error

Error satisfies the builtin error interface

func (FaultPercentageValidationError) ErrorName

func (e FaultPercentageValidationError) ErrorName() string

ErrorName returns error name.

func (FaultPercentageValidationError) Field

Field function returns field value.

func (FaultPercentageValidationError) Key

Key function returns key value.

func (FaultPercentageValidationError) Reason

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

Cause function returns cause value.

func (FaultTargetingValidationError) Error

Error satisfies the builtin error interface

func (FaultTargetingValidationError) ErrorName

func (e FaultTargetingValidationError) ErrorName() string

ErrorName returns error name.

func (FaultTargetingValidationError) Field

Field function returns field value.

func (FaultTargetingValidationError) Key

Key function returns key value.

func (FaultTargetingValidationError) Reason

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

Cause function returns cause value.

func (LatencyFaultValidationError) Error

Error satisfies the builtin error interface

func (LatencyFaultValidationError) ErrorName

func (e LatencyFaultValidationError) ErrorName() string

ErrorName returns error name.

func (LatencyFaultValidationError) Field

Field function returns field value.

func (LatencyFaultValidationError) Key

Key function returns key value.

func (LatencyFaultValidationError) Reason

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

Cause function returns cause value.

func (SingleClusterValidationError) Error

Error satisfies the builtin error interface

func (SingleClusterValidationError) ErrorName

func (e SingleClusterValidationError) ErrorName() string

ErrorName returns error name.

func (SingleClusterValidationError) Field

Field function returns field value.

func (SingleClusterValidationError) Key

Key function returns key value.

func (SingleClusterValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL