v2alpha

package
v0.6.4 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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthInjectedResource = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowInjectedResource   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type InjectedResourceConfig

type InjectedResourceConfig struct {
	Filename             string   `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The injected resource monitor allows injecting a synthetic resource pressure into Envoy via a text file, which must contain a floating-point number in the range [0..1] representing the resource pressure and be updated atomically by a symbolic link swap. This is intended primarily for integration tests to force Envoy into an overloaded state.

func (*InjectedResourceConfig) Descriptor

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

func (*InjectedResourceConfig) GetFilename

func (m *InjectedResourceConfig) GetFilename() string

func (*InjectedResourceConfig) Marshal

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

func (*InjectedResourceConfig) MarshalTo

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

func (*InjectedResourceConfig) ProtoMessage

func (*InjectedResourceConfig) ProtoMessage()

func (*InjectedResourceConfig) Reset

func (m *InjectedResourceConfig) Reset()

func (*InjectedResourceConfig) Size

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

func (*InjectedResourceConfig) String

func (m *InjectedResourceConfig) String() string

func (*InjectedResourceConfig) Unmarshal

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

func (*InjectedResourceConfig) Validate

func (m *InjectedResourceConfig) Validate() error

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

func (*InjectedResourceConfig) XXX_DiscardUnknown

func (m *InjectedResourceConfig) XXX_DiscardUnknown()

func (*InjectedResourceConfig) XXX_Marshal

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

func (*InjectedResourceConfig) XXX_Merge

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

func (*InjectedResourceConfig) XXX_Size

func (m *InjectedResourceConfig) XXX_Size() int

func (*InjectedResourceConfig) XXX_Unmarshal

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

type InjectedResourceConfigValidationError

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

InjectedResourceConfigValidationError is the validation error returned by InjectedResourceConfig.Validate if the designated constraints aren't met.

func (InjectedResourceConfigValidationError) Error

Error satisfies the builtin error interface

Jump to

Keyboard shortcuts

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