serverexperimentationv1

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 (
	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.

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

Error satisfies the builtin error interface

func (AbortFaultValidationError) ErrorName

func (e AbortFaultValidationError) ErrorName() string

ErrorName returns error name.

func (AbortFaultValidationError) Field

Field function returns field value.

func (AbortFaultValidationError) Key

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

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

Cause function returns cause value.

func (ClusterPercentageValidationError) Error

Error satisfies the builtin error interface

func (ClusterPercentageValidationError) ErrorName

ErrorName returns error name.

func (ClusterPercentageValidationError) Field

Field function returns field value.

func (ClusterPercentageValidationError) Key

Key function returns key value.

func (ClusterPercentageValidationError) Reason

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

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

Cause function returns cause value.

func (DownstreamEnforcingValidationError) Error

Error satisfies the builtin error interface

func (DownstreamEnforcingValidationError) ErrorName

ErrorName returns error name.

func (DownstreamEnforcingValidationError) Field

Field function returns field value.

func (DownstreamEnforcingValidationError) Key

Key function returns key value.

func (DownstreamEnforcingValidationError) Reason

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

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

Cause function returns cause value.

func (FaultAbortStatusValidationError) Error

Error satisfies the builtin error interface

func (FaultAbortStatusValidationError) ErrorName

ErrorName returns error name.

func (FaultAbortStatusValidationError) Field

Field function returns field value.

func (FaultAbortStatusValidationError) Key

Key function returns key value.

func (FaultAbortStatusValidationError) Reason

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

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

Cause function returns cause value.

func (FaultLatencyDurationValidationError) Error

Error satisfies the builtin error interface

func (FaultLatencyDurationValidationError) ErrorName

ErrorName returns error name.

func (FaultLatencyDurationValidationError) Field

Field function returns field value.

func (FaultLatencyDurationValidationError) Key

Key function returns key value.

func (FaultLatencyDurationValidationError) Reason

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 (*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 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) Enum

func (FaultPercentage_DenominatorType) EnumDescriptor deprecated

func (FaultPercentage_DenominatorType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FaultPercentage_DenominatorType.Descriptor instead.

func (FaultPercentage_DenominatorType) Number

func (FaultPercentage_DenominatorType) String

func (FaultPercentage_DenominatorType) Type

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

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

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

Cause function returns cause value.

func (HTTPFaultConfigValidationError) Error

Error satisfies the builtin error interface

func (HTTPFaultConfigValidationError) ErrorName

func (e HTTPFaultConfigValidationError) ErrorName() string

ErrorName returns error name.

func (HTTPFaultConfigValidationError) Field

Field function returns field value.

func (HTTPFaultConfigValidationError) Key

Key function returns key value.

func (HTTPFaultConfigValidationError) Reason

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

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.

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

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

Cause function returns cause value.

func (UpstreamEnforcingValidationError) Error

Error satisfies the builtin error interface

func (UpstreamEnforcingValidationError) ErrorName

ErrorName returns error name.

func (UpstreamEnforcingValidationError) Field

Field function returns field value.

func (UpstreamEnforcingValidationError) Key

Key function returns key value.

func (UpstreamEnforcingValidationError) Reason

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"`
}

Jump to

Keyboard shortcuts

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