Documentation ¶
Index ¶
- Variables
- type InjectedResourceConfig
- func (*InjectedResourceConfig) Descriptor() ([]byte, []int)
- func (m *InjectedResourceConfig) GetFilename() string
- func (m *InjectedResourceConfig) Marshal() (dAtA []byte, err error)
- func (m *InjectedResourceConfig) MarshalTo(dAtA []byte) (int, error)
- func (*InjectedResourceConfig) ProtoMessage()
- func (m *InjectedResourceConfig) Reset()
- func (m *InjectedResourceConfig) Size() (n int)
- func (m *InjectedResourceConfig) String() string
- func (m *InjectedResourceConfig) Unmarshal(dAtA []byte) error
- func (m *InjectedResourceConfig) Validate() error
- func (m *InjectedResourceConfig) XXX_DiscardUnknown()
- func (m *InjectedResourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InjectedResourceConfig) XXX_Merge(src proto.Message)
- func (m *InjectedResourceConfig) XXX_Size() int
- func (m *InjectedResourceConfig) XXX_Unmarshal(b []byte) error
- type InjectedResourceConfigValidationError
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (e InjectedResourceConfigValidationError) Error() string
Error satisfies the builtin error interface