v2

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

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"`
	// Types that are valid to be assigned to FaultDelaySecifier:
	//	*FaultDelay_FixedDelay
	FaultDelaySecifier isFaultDelay_FaultDelaySecifier `protobuf_oneof:"fault_delay_secifier"`
	// The percentage of operations/connection requests on which the delay will be injected.
	Percentage           *_type.FractionalPercent `protobuf:"bytes,4,opt,name=percentage" json:"percentage,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

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

func (m *FaultDelay) GetPercentage() *_type.FractionalPercent

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_DiscardUnknown

func (m *FaultDelay) XXX_DiscardUnknown()

func (*FaultDelay) XXX_Marshal

func (m *FaultDelay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FaultDelay) XXX_Merge

func (dst *FaultDelay) XXX_Merge(src proto.Message)

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.

func (*FaultDelay) XXX_Size

func (m *FaultDelay) XXX_Size() int

func (*FaultDelay) XXX_Unmarshal

func (m *FaultDelay) XXX_Unmarshal(b []byte) error

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