faultinjection

package
v1.6.0-beta19 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_faultinjection_fault_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RouteAbort

type RouteAbort struct {

	// Percentage of requests that should be aborted, defaulting to 0.
	// This should be a value between 0.0 and 100.0, with up to 6 significant digits.
	Percentage float32 `protobuf:"fixed32,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// This should be a standard HTTP status, i.e. 503. Defaults to 0.
	HttpStatus uint32 `protobuf:"varint,2,opt,name=http_status,json=httpStatus,proto3" json:"http_status,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteAbort) Descriptor deprecated

func (*RouteAbort) Descriptor() ([]byte, []int)

Deprecated: Use RouteAbort.ProtoReflect.Descriptor instead.

func (*RouteAbort) Equal

func (m *RouteAbort) Equal(that interface{}) bool

Equal function

func (*RouteAbort) GetHttpStatus

func (x *RouteAbort) GetHttpStatus() uint32

func (*RouteAbort) GetPercentage

func (x *RouteAbort) GetPercentage() float32

func (*RouteAbort) Hash added in v1.2.13

func (m *RouteAbort) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*RouteAbort) ProtoMessage

func (*RouteAbort) ProtoMessage()

func (*RouteAbort) ProtoReflect added in v1.6.0

func (x *RouteAbort) ProtoReflect() protoreflect.Message

func (*RouteAbort) Reset

func (x *RouteAbort) Reset()

func (*RouteAbort) String

func (x *RouteAbort) String() string

type RouteDelay

type RouteDelay struct {

	// Percentage of requests that should be delayed, defaulting to 0.
	// This should be a value between 0.0 and 100.0, with up to 6 significant digits.
	Percentage float32 `protobuf:"fixed32,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// Fixed delay, defaulting to 0.
	FixedDelay *duration.Duration `protobuf:"bytes,2,opt,name=fixed_delay,json=fixedDelay,proto3" json:"fixed_delay,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteDelay) Descriptor deprecated

func (*RouteDelay) Descriptor() ([]byte, []int)

Deprecated: Use RouteDelay.ProtoReflect.Descriptor instead.

func (*RouteDelay) Equal

func (m *RouteDelay) Equal(that interface{}) bool

Equal function

func (*RouteDelay) GetFixedDelay

func (x *RouteDelay) GetFixedDelay() *duration.Duration

func (*RouteDelay) GetPercentage

func (x *RouteDelay) GetPercentage() float32

func (*RouteDelay) Hash added in v1.2.13

func (m *RouteDelay) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*RouteDelay) ProtoMessage

func (*RouteDelay) ProtoMessage()

func (*RouteDelay) ProtoReflect added in v1.6.0

func (x *RouteDelay) ProtoReflect() protoreflect.Message

func (*RouteDelay) Reset

func (x *RouteDelay) Reset()

func (*RouteDelay) String

func (x *RouteDelay) String() string

type RouteFaults

type RouteFaults struct {
	Abort *RouteAbort `protobuf:"bytes,1,opt,name=abort,proto3" json:"abort,omitempty"`
	Delay *RouteDelay `protobuf:"bytes,2,opt,name=delay,proto3" json:"delay,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteFaults) Descriptor deprecated

func (*RouteFaults) Descriptor() ([]byte, []int)

Deprecated: Use RouteFaults.ProtoReflect.Descriptor instead.

func (*RouteFaults) Equal

func (m *RouteFaults) Equal(that interface{}) bool

Equal function

func (*RouteFaults) GetAbort

func (x *RouteFaults) GetAbort() *RouteAbort

func (*RouteFaults) GetDelay

func (x *RouteFaults) GetDelay() *RouteDelay

func (*RouteFaults) Hash added in v1.2.13

func (m *RouteFaults) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*RouteFaults) ProtoMessage

func (*RouteFaults) ProtoMessage()

func (*RouteFaults) ProtoReflect added in v1.6.0

func (x *RouteFaults) ProtoReflect() protoreflect.Message

func (*RouteFaults) Reset

func (x *RouteFaults) Reset()

func (*RouteFaults) String

func (x *RouteFaults) String() string

Jump to

Keyboard shortcuts

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