package v2alpha

import "github.com/envoyproxy/go-control-plane/envoy/config/resource_monitor/injected_resource/v2alpha"

Index

Variables

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

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 (m *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

Source Files

injected_resource.pb.go injected_resource.pb.validate.go

Version
v0.6.9
Published
Mar 11, 2019
Platform
darwin/amd64
Imports
15 packages
Last checked
1 hour ago

Tools for package owners.