Documentation ¶
Index ¶
- Variables
- type InjectedResourceConfig
- func (*InjectedResourceConfig) Descriptor() ([]byte, []int)deprecated
- func (x *InjectedResourceConfig) GetFilename() string
- func (*InjectedResourceConfig) ProtoMessage()
- func (x *InjectedResourceConfig) ProtoReflect() protoreflect.Message
- func (x *InjectedResourceConfig) Reset()
- func (x *InjectedResourceConfig) String() string
- func (m *InjectedResourceConfig) Validate() error
- func (m *InjectedResourceConfig) ValidateAll() error
- type InjectedResourceConfigMultiError
- type InjectedResourceConfigValidationError
- func (e InjectedResourceConfigValidationError) Cause() error
- func (e InjectedResourceConfigValidationError) Error() string
- func (e InjectedResourceConfigValidationError) ErrorName() string
- func (e InjectedResourceConfigValidationError) Field() string
- func (e InjectedResourceConfigValidationError) Key() bool
- func (e InjectedResourceConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_resource_monitors_injected_resource_v3_injected_resource_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type InjectedResourceConfig ¶
type InjectedResourceConfig struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*InjectedResourceConfig) Descriptor() ([]byte, []int)
Deprecated: Use InjectedResourceConfig.ProtoReflect.Descriptor instead.
func (*InjectedResourceConfig) GetFilename ¶
func (x *InjectedResourceConfig) GetFilename() string
func (*InjectedResourceConfig) ProtoMessage ¶
func (*InjectedResourceConfig) ProtoMessage()
func (*InjectedResourceConfig) ProtoReflect ¶
func (x *InjectedResourceConfig) ProtoReflect() protoreflect.Message
func (*InjectedResourceConfig) Reset ¶
func (x *InjectedResourceConfig) Reset()
func (*InjectedResourceConfig) String ¶
func (x *InjectedResourceConfig) String() string
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, the first error encountered is returned, or nil if there are no violations.
func (*InjectedResourceConfig) ValidateAll ¶
func (m *InjectedResourceConfig) ValidateAll() error
ValidateAll checks the field values on InjectedResourceConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InjectedResourceConfigMultiError, or nil if none found.
type InjectedResourceConfigMultiError ¶
type InjectedResourceConfigMultiError []error
InjectedResourceConfigMultiError is an error wrapping multiple validation errors returned by InjectedResourceConfig.ValidateAll() if the designated constraints aren't met.
func (InjectedResourceConfigMultiError) AllErrors ¶
func (m InjectedResourceConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InjectedResourceConfigMultiError) Error ¶
func (m InjectedResourceConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InjectedResourceConfigValidationError ¶
type InjectedResourceConfigValidationError struct {
// contains filtered or unexported fields
}
InjectedResourceConfigValidationError is the validation error returned by InjectedResourceConfig.Validate if the designated constraints aren't met.
func (InjectedResourceConfigValidationError) Cause ¶
func (e InjectedResourceConfigValidationError) Cause() error
Cause function returns cause value.
func (InjectedResourceConfigValidationError) Error ¶
func (e InjectedResourceConfigValidationError) Error() string
Error satisfies the builtin error interface
func (InjectedResourceConfigValidationError) ErrorName ¶
func (e InjectedResourceConfigValidationError) ErrorName() string
ErrorName returns error name.
func (InjectedResourceConfigValidationError) Field ¶
func (e InjectedResourceConfigValidationError) Field() string
Field function returns field value.
func (InjectedResourceConfigValidationError) Key ¶
func (e InjectedResourceConfigValidationError) Key() bool
Key function returns key value.
func (InjectedResourceConfigValidationError) Reason ¶
func (e InjectedResourceConfigValidationError) Reason() string
Reason function returns reason value.