v2

package
v0.0.0-...-113c6ea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package v2 is a generated protocol buffer package.

It is generated from these files:

envoy/config/filter/fault/v2/fault.proto

It has these top-level messages:

FaultDelay

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthFault = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFault   = fmt.Errorf("proto: integer overflow")
)
View Source
var FaultDelay_FaultDelayType_name = map[int32]string{
	0: "FIXED",
}
View Source
var FaultDelay_FaultDelayType_value = map[string]int32{
	"FIXED": 0,
}

Functions

This section is empty.

Types

type FaultDelay

type FaultDelay struct {
	// Delay type to use (fixed|exponential|..). Currently, only fixed delay (step function) is
	// supported.
	Type FaultDelay_FaultDelayType `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.config.filter.fault.v2.FaultDelay_FaultDelayType" json:"type,omitempty"`
	// An integer between 0-100 indicating the percentage of operations/connection requests
	// on which the delay will be injected.
	Percent uint32 `protobuf:"varint,2,opt,name=percent,proto3" json:"percent,omitempty"`
	// Types that are valid to be assigned to FaultDelaySecifier:
	//	*FaultDelay_FixedDelay
	FaultDelaySecifier isFaultDelay_FaultDelaySecifier `protobuf_oneof:"fault_delay_secifier"`
}

Delay specification is used to inject latency into the HTTP/gRPC/Mongo/Redis operation or delay proxying of TCP connections.

func (*FaultDelay) Descriptor

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

func (*FaultDelay) GetFaultDelaySecifier

func (m *FaultDelay) GetFaultDelaySecifier() isFaultDelay_FaultDelaySecifier

func (*FaultDelay) GetFixedDelay

func (m *FaultDelay) GetFixedDelay() *time.Duration

func (*FaultDelay) GetPercent

func (m *FaultDelay) GetPercent() uint32

func (*FaultDelay) GetType

func (*FaultDelay) Marshal

func (m *FaultDelay) Marshal() (dAtA []byte, err error)

func (*FaultDelay) MarshalTo

func (m *FaultDelay) MarshalTo(dAtA []byte) (int, error)

func (*FaultDelay) ProtoMessage

func (*FaultDelay) ProtoMessage()

func (*FaultDelay) Reset

func (m *FaultDelay) Reset()

func (*FaultDelay) Size

func (m *FaultDelay) Size() (n int)

func (*FaultDelay) String

func (m *FaultDelay) String() string

func (*FaultDelay) Unmarshal

func (m *FaultDelay) Unmarshal(dAtA []byte) error

func (*FaultDelay) Validate

func (m *FaultDelay) Validate() error

Validate checks the field values on FaultDelay with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*FaultDelay) XXX_OneofFuncs

func (*FaultDelay) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type FaultDelayValidationError

type FaultDelayValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

FaultDelayValidationError is the validation error returned by FaultDelay.Validate if the designated constraints aren't met.

func (FaultDelayValidationError) Error

Error satisfies the builtin error interface

type FaultDelay_FaultDelayType

type FaultDelay_FaultDelayType int32
const (
	// Fixed delay (step function).
	FaultDelay_FIXED FaultDelay_FaultDelayType = 0
)

func (FaultDelay_FaultDelayType) EnumDescriptor

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

func (FaultDelay_FaultDelayType) String

func (x FaultDelay_FaultDelayType) String() string

type FaultDelay_FixedDelay

type FaultDelay_FixedDelay struct {
	FixedDelay *time.Duration `protobuf:"bytes,3,opt,name=fixed_delay,json=fixedDelay,oneof,stdduration"`
}

func (*FaultDelay_FixedDelay) MarshalTo

func (m *FaultDelay_FixedDelay) MarshalTo(dAtA []byte) (int, error)

func (*FaultDelay_FixedDelay) Size

func (m *FaultDelay_FixedDelay) Size() (n int)

Jump to

Keyboard shortcuts

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