Documentation ¶
Index ¶
- Variables
- type BufferFactoryConfig
- func (*BufferFactoryConfig) Descriptor() ([]byte, []int)deprecated
- func (x *BufferFactoryConfig) GetMinimumAccountToTrackPowerOfTwo() uint32
- func (*BufferFactoryConfig) ProtoMessage()
- func (x *BufferFactoryConfig) ProtoReflect() protoreflect.Message
- func (x *BufferFactoryConfig) Reset()
- func (x *BufferFactoryConfig) String() string
- func (m *BufferFactoryConfig) Validate() error
- func (m *BufferFactoryConfig) ValidateAll() error
- type BufferFactoryConfigMultiError
- type BufferFactoryConfigValidationError
- func (e BufferFactoryConfigValidationError) Cause() error
- func (e BufferFactoryConfigValidationError) Error() string
- func (e BufferFactoryConfigValidationError) ErrorName() string
- func (e BufferFactoryConfigValidationError) Field() string
- func (e BufferFactoryConfigValidationError) Key() bool
- func (e BufferFactoryConfigValidationError) Reason() string
- type LoadShedPoint
- func (*LoadShedPoint) Descriptor() ([]byte, []int)deprecated
- func (x *LoadShedPoint) GetName() string
- func (x *LoadShedPoint) GetTriggers() []*Trigger
- func (*LoadShedPoint) ProtoMessage()
- func (x *LoadShedPoint) ProtoReflect() protoreflect.Message
- func (x *LoadShedPoint) Reset()
- func (x *LoadShedPoint) String() string
- func (m *LoadShedPoint) Validate() error
- func (m *LoadShedPoint) ValidateAll() error
- type LoadShedPointMultiError
- type LoadShedPointValidationError
- func (e LoadShedPointValidationError) Cause() error
- func (e LoadShedPointValidationError) Error() string
- func (e LoadShedPointValidationError) ErrorName() string
- func (e LoadShedPointValidationError) Field() string
- func (e LoadShedPointValidationError) Key() bool
- func (e LoadShedPointValidationError) Reason() string
- type OverloadAction
- func (*OverloadAction) Descriptor() ([]byte, []int)deprecated
- func (x *OverloadAction) GetName() string
- func (x *OverloadAction) GetTriggers() []*Trigger
- func (x *OverloadAction) GetTypedConfig() *any1.Any
- func (*OverloadAction) ProtoMessage()
- func (x *OverloadAction) ProtoReflect() protoreflect.Message
- func (x *OverloadAction) Reset()
- func (x *OverloadAction) String() string
- func (m *OverloadAction) Validate() error
- func (m *OverloadAction) ValidateAll() error
- type OverloadActionMultiError
- type OverloadActionValidationError
- func (e OverloadActionValidationError) Cause() error
- func (e OverloadActionValidationError) Error() string
- func (e OverloadActionValidationError) ErrorName() string
- func (e OverloadActionValidationError) Field() string
- func (e OverloadActionValidationError) Key() bool
- func (e OverloadActionValidationError) Reason() string
- type OverloadManager
- func (*OverloadManager) Descriptor() ([]byte, []int)deprecated
- func (x *OverloadManager) GetActions() []*OverloadAction
- func (x *OverloadManager) GetBufferFactoryConfig() *BufferFactoryConfig
- func (x *OverloadManager) GetLoadshedPoints() []*LoadShedPoint
- func (x *OverloadManager) GetRefreshInterval() *duration.Duration
- func (x *OverloadManager) GetResourceMonitors() []*ResourceMonitor
- func (*OverloadManager) ProtoMessage()
- func (x *OverloadManager) ProtoReflect() protoreflect.Message
- func (x *OverloadManager) Reset()
- func (x *OverloadManager) String() string
- func (m *OverloadManager) Validate() error
- func (m *OverloadManager) ValidateAll() error
- type OverloadManagerMultiError
- type OverloadManagerValidationError
- func (e OverloadManagerValidationError) Cause() error
- func (e OverloadManagerValidationError) Error() string
- func (e OverloadManagerValidationError) ErrorName() string
- func (e OverloadManagerValidationError) Field() string
- func (e OverloadManagerValidationError) Key() bool
- func (e OverloadManagerValidationError) Reason() string
- type ResourceMonitor
- func (*ResourceMonitor) Descriptor() ([]byte, []int)deprecated
- func (m *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType
- func (x *ResourceMonitor) GetName() string
- func (x *ResourceMonitor) GetTypedConfig() *any1.Any
- func (*ResourceMonitor) ProtoMessage()
- func (x *ResourceMonitor) ProtoReflect() protoreflect.Message
- func (x *ResourceMonitor) Reset()
- func (x *ResourceMonitor) String() string
- func (m *ResourceMonitor) Validate() error
- func (m *ResourceMonitor) ValidateAll() error
- type ResourceMonitorMultiError
- type ResourceMonitorValidationError
- func (e ResourceMonitorValidationError) Cause() error
- func (e ResourceMonitorValidationError) Error() string
- func (e ResourceMonitorValidationError) ErrorName() string
- func (e ResourceMonitorValidationError) Field() string
- func (e ResourceMonitorValidationError) Key() bool
- func (e ResourceMonitorValidationError) Reason() string
- type ResourceMonitor_TypedConfig
- type ScaleTimersOverloadActionConfig
- func (*ScaleTimersOverloadActionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ScaleTimersOverloadActionConfig) GetTimerScaleFactors() []*ScaleTimersOverloadActionConfig_ScaleTimer
- func (*ScaleTimersOverloadActionConfig) ProtoMessage()
- func (x *ScaleTimersOverloadActionConfig) ProtoReflect() protoreflect.Message
- func (x *ScaleTimersOverloadActionConfig) Reset()
- func (x *ScaleTimersOverloadActionConfig) String() string
- func (m *ScaleTimersOverloadActionConfig) Validate() error
- func (m *ScaleTimersOverloadActionConfig) ValidateAll() error
- type ScaleTimersOverloadActionConfigMultiError
- type ScaleTimersOverloadActionConfigValidationError
- func (e ScaleTimersOverloadActionConfigValidationError) Cause() error
- func (e ScaleTimersOverloadActionConfigValidationError) Error() string
- func (e ScaleTimersOverloadActionConfigValidationError) ErrorName() string
- func (e ScaleTimersOverloadActionConfigValidationError) Field() string
- func (e ScaleTimersOverloadActionConfigValidationError) Key() bool
- func (e ScaleTimersOverloadActionConfigValidationError) Reason() string
- type ScaleTimersOverloadActionConfig_ScaleTimer
- func (*ScaleTimersOverloadActionConfig_ScaleTimer) Descriptor() ([]byte, []int)deprecated
- func (x *ScaleTimersOverloadActionConfig_ScaleTimer) GetMinScale() *v3.Percent
- func (x *ScaleTimersOverloadActionConfig_ScaleTimer) GetMinTimeout() *duration.Duration
- func (m *ScaleTimersOverloadActionConfig_ScaleTimer) GetOverloadAdjust() isScaleTimersOverloadActionConfig_ScaleTimer_OverloadAdjust
- func (x *ScaleTimersOverloadActionConfig_ScaleTimer) GetTimer() ScaleTimersOverloadActionConfig_TimerType
- func (*ScaleTimersOverloadActionConfig_ScaleTimer) ProtoMessage()
- func (x *ScaleTimersOverloadActionConfig_ScaleTimer) ProtoReflect() protoreflect.Message
- func (x *ScaleTimersOverloadActionConfig_ScaleTimer) Reset()
- func (x *ScaleTimersOverloadActionConfig_ScaleTimer) String() string
- func (m *ScaleTimersOverloadActionConfig_ScaleTimer) Validate() error
- func (m *ScaleTimersOverloadActionConfig_ScaleTimer) ValidateAll() error
- type ScaleTimersOverloadActionConfig_ScaleTimerMultiError
- type ScaleTimersOverloadActionConfig_ScaleTimerValidationError
- func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Cause() error
- func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Error() string
- func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) ErrorName() string
- func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Field() string
- func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Key() bool
- func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Reason() string
- type ScaleTimersOverloadActionConfig_ScaleTimer_MinScale
- type ScaleTimersOverloadActionConfig_ScaleTimer_MinTimeout
- type ScaleTimersOverloadActionConfig_TimerType
- func (ScaleTimersOverloadActionConfig_TimerType) Descriptor() protoreflect.EnumDescriptor
- func (x ScaleTimersOverloadActionConfig_TimerType) Enum() *ScaleTimersOverloadActionConfig_TimerType
- func (ScaleTimersOverloadActionConfig_TimerType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ScaleTimersOverloadActionConfig_TimerType) Number() protoreflect.EnumNumber
- func (x ScaleTimersOverloadActionConfig_TimerType) String() string
- func (ScaleTimersOverloadActionConfig_TimerType) Type() protoreflect.EnumType
- type ScaledTrigger
- func (*ScaledTrigger) Descriptor() ([]byte, []int)deprecated
- func (x *ScaledTrigger) GetSaturationThreshold() float64
- func (x *ScaledTrigger) GetScalingThreshold() float64
- func (*ScaledTrigger) ProtoMessage()
- func (x *ScaledTrigger) ProtoReflect() protoreflect.Message
- func (x *ScaledTrigger) Reset()
- func (x *ScaledTrigger) String() string
- func (m *ScaledTrigger) Validate() error
- func (m *ScaledTrigger) ValidateAll() error
- type ScaledTriggerMultiError
- type ScaledTriggerValidationError
- func (e ScaledTriggerValidationError) Cause() error
- func (e ScaledTriggerValidationError) Error() string
- func (e ScaledTriggerValidationError) ErrorName() string
- func (e ScaledTriggerValidationError) Field() string
- func (e ScaledTriggerValidationError) Key() bool
- func (e ScaledTriggerValidationError) Reason() string
- type ThresholdTrigger
- func (*ThresholdTrigger) Descriptor() ([]byte, []int)deprecated
- func (x *ThresholdTrigger) GetValue() float64
- func (*ThresholdTrigger) ProtoMessage()
- func (x *ThresholdTrigger) ProtoReflect() protoreflect.Message
- func (x *ThresholdTrigger) Reset()
- func (x *ThresholdTrigger) String() string
- func (m *ThresholdTrigger) Validate() error
- func (m *ThresholdTrigger) ValidateAll() error
- type ThresholdTriggerMultiError
- type ThresholdTriggerValidationError
- func (e ThresholdTriggerValidationError) Cause() error
- func (e ThresholdTriggerValidationError) Error() string
- func (e ThresholdTriggerValidationError) ErrorName() string
- func (e ThresholdTriggerValidationError) Field() string
- func (e ThresholdTriggerValidationError) Key() bool
- func (e ThresholdTriggerValidationError) Reason() string
- type Trigger
- func (*Trigger) Descriptor() ([]byte, []int)deprecated
- func (x *Trigger) GetName() string
- func (x *Trigger) GetScaled() *ScaledTrigger
- func (x *Trigger) GetThreshold() *ThresholdTrigger
- func (m *Trigger) GetTriggerOneof() isTrigger_TriggerOneof
- func (*Trigger) ProtoMessage()
- func (x *Trigger) ProtoReflect() protoreflect.Message
- func (x *Trigger) Reset()
- func (x *Trigger) String() string
- func (m *Trigger) Validate() error
- func (m *Trigger) ValidateAll() error
- type TriggerMultiError
- type TriggerValidationError
- type Trigger_Scaled
- type Trigger_Threshold
Constants ¶
This section is empty.
Variables ¶
var ( ScaleTimersOverloadActionConfig_TimerType_name = map[int32]string{ 0: "UNSPECIFIED", 1: "HTTP_DOWNSTREAM_CONNECTION_IDLE", 2: "HTTP_DOWNSTREAM_STREAM_IDLE", 3: "TRANSPORT_SOCKET_CONNECT", } ScaleTimersOverloadActionConfig_TimerType_value = map[string]int32{ "UNSPECIFIED": 0, "HTTP_DOWNSTREAM_CONNECTION_IDLE": 1, "HTTP_DOWNSTREAM_STREAM_IDLE": 2, "TRANSPORT_SOCKET_CONNECT": 3, } )
Enum value maps for ScaleTimersOverloadActionConfig_TimerType.
var File_envoy_config_overload_v3_overload_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BufferFactoryConfig ¶
type BufferFactoryConfig struct { // The minimum power of two at which Envoy starts tracking an account. // // Envoy has 8 power of two buckets starting with the provided exponent below. // Concretely the 1st bucket contains accounts for streams that use // [2^minimum_account_to_track_power_of_two, // 2^(minimum_account_to_track_power_of_two + 1)) bytes. // With the 8th bucket tracking accounts // >= 128 * 2^minimum_account_to_track_power_of_two. // // The maximum value is 56, since we're using uint64_t for bytes counting, // and that's the last value that would use the 8 buckets. In practice, // we don't expect the proxy to be holding 2^56 bytes. // // If omitted, Envoy should not do any tracking. MinimumAccountToTrackPowerOfTwo uint32 `` /* 165-byte string literal not displayed */ // contains filtered or unexported fields }
Configuration for which accounts the WatermarkBuffer Factories should track.
func (*BufferFactoryConfig) Descriptor
deprecated
func (*BufferFactoryConfig) Descriptor() ([]byte, []int)
Deprecated: Use BufferFactoryConfig.ProtoReflect.Descriptor instead.
func (*BufferFactoryConfig) GetMinimumAccountToTrackPowerOfTwo ¶
func (x *BufferFactoryConfig) GetMinimumAccountToTrackPowerOfTwo() uint32
func (*BufferFactoryConfig) ProtoMessage ¶
func (*BufferFactoryConfig) ProtoMessage()
func (*BufferFactoryConfig) ProtoReflect ¶
func (x *BufferFactoryConfig) ProtoReflect() protoreflect.Message
func (*BufferFactoryConfig) Reset ¶
func (x *BufferFactoryConfig) Reset()
func (*BufferFactoryConfig) String ¶
func (x *BufferFactoryConfig) String() string
func (*BufferFactoryConfig) Validate ¶
func (m *BufferFactoryConfig) Validate() error
Validate checks the field values on BufferFactoryConfig 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 (*BufferFactoryConfig) ValidateAll ¶
func (m *BufferFactoryConfig) ValidateAll() error
ValidateAll checks the field values on BufferFactoryConfig 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 BufferFactoryConfigMultiError, or nil if none found.
type BufferFactoryConfigMultiError ¶
type BufferFactoryConfigMultiError []error
BufferFactoryConfigMultiError is an error wrapping multiple validation errors returned by BufferFactoryConfig.ValidateAll() if the designated constraints aren't met.
func (BufferFactoryConfigMultiError) AllErrors ¶
func (m BufferFactoryConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BufferFactoryConfigMultiError) Error ¶
func (m BufferFactoryConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BufferFactoryConfigValidationError ¶
type BufferFactoryConfigValidationError struct {
// contains filtered or unexported fields
}
BufferFactoryConfigValidationError is the validation error returned by BufferFactoryConfig.Validate if the designated constraints aren't met.
func (BufferFactoryConfigValidationError) Cause ¶
func (e BufferFactoryConfigValidationError) Cause() error
Cause function returns cause value.
func (BufferFactoryConfigValidationError) Error ¶
func (e BufferFactoryConfigValidationError) Error() string
Error satisfies the builtin error interface
func (BufferFactoryConfigValidationError) ErrorName ¶
func (e BufferFactoryConfigValidationError) ErrorName() string
ErrorName returns error name.
func (BufferFactoryConfigValidationError) Field ¶
func (e BufferFactoryConfigValidationError) Field() string
Field function returns field value.
func (BufferFactoryConfigValidationError) Key ¶
func (e BufferFactoryConfigValidationError) Key() bool
Key function returns key value.
func (BufferFactoryConfigValidationError) Reason ¶
func (e BufferFactoryConfigValidationError) Reason() string
Reason function returns reason value.
type LoadShedPoint ¶
type LoadShedPoint struct { // This is just a well-known string for the LoadShedPoint. // Deployment specific LoadShedPoints e.g. within a custom extension should // be prefixed by the company / deployment name to avoid colliding with any // open source LoadShedPoints. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A set of triggers for this LoadShedPoint. The LoadShedPoint will use the // the maximum state of all triggers, which can be scalar values between 0 and // 1 or saturated. A LoadShedPoint can only have one trigger for a given // resource e.g. :ref:`Trigger.name // <envoy_v3_api_field_config.overload.v3.Trigger.name>` must be unique in // this list. Triggers []*Trigger `protobuf:"bytes,2,rep,name=triggers,proto3" json:"triggers,omitempty"` // contains filtered or unexported fields }
A point within the connection or request lifecycle that provides context on whether to shed load at that given stage for the current entity at the point.
func (*LoadShedPoint) Descriptor
deprecated
func (*LoadShedPoint) Descriptor() ([]byte, []int)
Deprecated: Use LoadShedPoint.ProtoReflect.Descriptor instead.
func (*LoadShedPoint) GetName ¶
func (x *LoadShedPoint) GetName() string
func (*LoadShedPoint) GetTriggers ¶
func (x *LoadShedPoint) GetTriggers() []*Trigger
func (*LoadShedPoint) ProtoMessage ¶
func (*LoadShedPoint) ProtoMessage()
func (*LoadShedPoint) ProtoReflect ¶
func (x *LoadShedPoint) ProtoReflect() protoreflect.Message
func (*LoadShedPoint) Reset ¶
func (x *LoadShedPoint) Reset()
func (*LoadShedPoint) String ¶
func (x *LoadShedPoint) String() string
func (*LoadShedPoint) Validate ¶
func (m *LoadShedPoint) Validate() error
Validate checks the field values on LoadShedPoint 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 (*LoadShedPoint) ValidateAll ¶
func (m *LoadShedPoint) ValidateAll() error
ValidateAll checks the field values on LoadShedPoint 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 LoadShedPointMultiError, or nil if none found.
type LoadShedPointMultiError ¶
type LoadShedPointMultiError []error
LoadShedPointMultiError is an error wrapping multiple validation errors returned by LoadShedPoint.ValidateAll() if the designated constraints aren't met.
func (LoadShedPointMultiError) AllErrors ¶
func (m LoadShedPointMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoadShedPointMultiError) Error ¶
func (m LoadShedPointMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoadShedPointValidationError ¶
type LoadShedPointValidationError struct {
// contains filtered or unexported fields
}
LoadShedPointValidationError is the validation error returned by LoadShedPoint.Validate if the designated constraints aren't met.
func (LoadShedPointValidationError) Cause ¶
func (e LoadShedPointValidationError) Cause() error
Cause function returns cause value.
func (LoadShedPointValidationError) Error ¶
func (e LoadShedPointValidationError) Error() string
Error satisfies the builtin error interface
func (LoadShedPointValidationError) ErrorName ¶
func (e LoadShedPointValidationError) ErrorName() string
ErrorName returns error name.
func (LoadShedPointValidationError) Field ¶
func (e LoadShedPointValidationError) Field() string
Field function returns field value.
func (LoadShedPointValidationError) Key ¶
func (e LoadShedPointValidationError) Key() bool
Key function returns key value.
func (LoadShedPointValidationError) Reason ¶
func (e LoadShedPointValidationError) Reason() string
Reason function returns reason value.
type OverloadAction ¶
type OverloadAction struct { // The name of the overload action. This is just a well-known string that listeners can // use for registering callbacks. Custom overload actions should be named using reverse // DNS to ensure uniqueness. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A set of triggers for this action. The state of the action is the maximum // state of all triggers, which can be scalar values between 0 and 1 or // saturated. Listeners are notified when the overload action changes state. // An overload manager action can only have one trigger for a given resource // e.g. :ref:`Trigger.name // <envoy_v3_api_field_config.overload.v3.Trigger.name>` must be unique // in this list. Triggers []*Trigger `protobuf:"bytes,2,rep,name=triggers,proto3" json:"triggers,omitempty"` // Configuration for the action being instantiated. TypedConfig *any1.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3" json:"typed_config,omitempty"` // contains filtered or unexported fields }
func (*OverloadAction) Descriptor
deprecated
func (*OverloadAction) Descriptor() ([]byte, []int)
Deprecated: Use OverloadAction.ProtoReflect.Descriptor instead.
func (*OverloadAction) GetName ¶
func (x *OverloadAction) GetName() string
func (*OverloadAction) GetTriggers ¶
func (x *OverloadAction) GetTriggers() []*Trigger
func (*OverloadAction) GetTypedConfig ¶
func (x *OverloadAction) GetTypedConfig() *any1.Any
func (*OverloadAction) ProtoMessage ¶
func (*OverloadAction) ProtoMessage()
func (*OverloadAction) ProtoReflect ¶
func (x *OverloadAction) ProtoReflect() protoreflect.Message
func (*OverloadAction) Reset ¶
func (x *OverloadAction) Reset()
func (*OverloadAction) String ¶
func (x *OverloadAction) String() string
func (*OverloadAction) Validate ¶
func (m *OverloadAction) Validate() error
Validate checks the field values on OverloadAction 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 (*OverloadAction) ValidateAll ¶
func (m *OverloadAction) ValidateAll() error
ValidateAll checks the field values on OverloadAction 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 OverloadActionMultiError, or nil if none found.
type OverloadActionMultiError ¶
type OverloadActionMultiError []error
OverloadActionMultiError is an error wrapping multiple validation errors returned by OverloadAction.ValidateAll() if the designated constraints aren't met.
func (OverloadActionMultiError) AllErrors ¶
func (m OverloadActionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OverloadActionMultiError) Error ¶
func (m OverloadActionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OverloadActionValidationError ¶
type OverloadActionValidationError struct {
// contains filtered or unexported fields
}
OverloadActionValidationError is the validation error returned by OverloadAction.Validate if the designated constraints aren't met.
func (OverloadActionValidationError) Cause ¶
func (e OverloadActionValidationError) Cause() error
Cause function returns cause value.
func (OverloadActionValidationError) Error ¶
func (e OverloadActionValidationError) Error() string
Error satisfies the builtin error interface
func (OverloadActionValidationError) ErrorName ¶
func (e OverloadActionValidationError) ErrorName() string
ErrorName returns error name.
func (OverloadActionValidationError) Field ¶
func (e OverloadActionValidationError) Field() string
Field function returns field value.
func (OverloadActionValidationError) Key ¶
func (e OverloadActionValidationError) Key() bool
Key function returns key value.
func (OverloadActionValidationError) Reason ¶
func (e OverloadActionValidationError) Reason() string
Reason function returns reason value.
type OverloadManager ¶
type OverloadManager struct { // The interval for refreshing resource usage. RefreshInterval *duration.Duration `protobuf:"bytes,1,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"` // The set of resources to monitor. ResourceMonitors []*ResourceMonitor `protobuf:"bytes,2,rep,name=resource_monitors,json=resourceMonitors,proto3" json:"resource_monitors,omitempty"` // The set of overload actions. Actions []*OverloadAction `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` // The set of load shed points. LoadshedPoints []*LoadShedPoint `protobuf:"bytes,5,rep,name=loadshed_points,json=loadshedPoints,proto3" json:"loadshed_points,omitempty"` // Configuration for buffer factory. BufferFactoryConfig *BufferFactoryConfig `protobuf:"bytes,4,opt,name=buffer_factory_config,json=bufferFactoryConfig,proto3" json:"buffer_factory_config,omitempty"` // contains filtered or unexported fields }
[#next-free-field: 6]
func (*OverloadManager) Descriptor
deprecated
func (*OverloadManager) Descriptor() ([]byte, []int)
Deprecated: Use OverloadManager.ProtoReflect.Descriptor instead.
func (*OverloadManager) GetActions ¶
func (x *OverloadManager) GetActions() []*OverloadAction
func (*OverloadManager) GetBufferFactoryConfig ¶
func (x *OverloadManager) GetBufferFactoryConfig() *BufferFactoryConfig
func (*OverloadManager) GetLoadshedPoints ¶
func (x *OverloadManager) GetLoadshedPoints() []*LoadShedPoint
func (*OverloadManager) GetRefreshInterval ¶
func (x *OverloadManager) GetRefreshInterval() *duration.Duration
func (*OverloadManager) GetResourceMonitors ¶
func (x *OverloadManager) GetResourceMonitors() []*ResourceMonitor
func (*OverloadManager) ProtoMessage ¶
func (*OverloadManager) ProtoMessage()
func (*OverloadManager) ProtoReflect ¶
func (x *OverloadManager) ProtoReflect() protoreflect.Message
func (*OverloadManager) Reset ¶
func (x *OverloadManager) Reset()
func (*OverloadManager) String ¶
func (x *OverloadManager) String() string
func (*OverloadManager) Validate ¶
func (m *OverloadManager) Validate() error
Validate checks the field values on OverloadManager 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 (*OverloadManager) ValidateAll ¶
func (m *OverloadManager) ValidateAll() error
ValidateAll checks the field values on OverloadManager 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 OverloadManagerMultiError, or nil if none found.
type OverloadManagerMultiError ¶
type OverloadManagerMultiError []error
OverloadManagerMultiError is an error wrapping multiple validation errors returned by OverloadManager.ValidateAll() if the designated constraints aren't met.
func (OverloadManagerMultiError) AllErrors ¶
func (m OverloadManagerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OverloadManagerMultiError) Error ¶
func (m OverloadManagerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OverloadManagerValidationError ¶
type OverloadManagerValidationError struct {
// contains filtered or unexported fields
}
OverloadManagerValidationError is the validation error returned by OverloadManager.Validate if the designated constraints aren't met.
func (OverloadManagerValidationError) Cause ¶
func (e OverloadManagerValidationError) Cause() error
Cause function returns cause value.
func (OverloadManagerValidationError) Error ¶
func (e OverloadManagerValidationError) Error() string
Error satisfies the builtin error interface
func (OverloadManagerValidationError) ErrorName ¶
func (e OverloadManagerValidationError) ErrorName() string
ErrorName returns error name.
func (OverloadManagerValidationError) Field ¶
func (e OverloadManagerValidationError) Field() string
Field function returns field value.
func (OverloadManagerValidationError) Key ¶
func (e OverloadManagerValidationError) Key() bool
Key function returns key value.
func (OverloadManagerValidationError) Reason ¶
func (e OverloadManagerValidationError) Reason() string
Reason function returns reason value.
type ResourceMonitor ¶
type ResourceMonitor struct { // The name of the resource monitor to instantiate. Must match a registered // resource monitor type. // See the :ref:`extensions listed in typed_config below <extension_category_envoy.resource_monitors>` for the default list of available resource monitor. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Configuration for the resource monitor being instantiated. // [#extension-category: envoy.resource_monitors] // // Types that are assignable to ConfigType: // *ResourceMonitor_TypedConfig ConfigType isResourceMonitor_ConfigType `protobuf_oneof:"config_type"` // contains filtered or unexported fields }
func (*ResourceMonitor) Descriptor
deprecated
func (*ResourceMonitor) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMonitor.ProtoReflect.Descriptor instead.
func (*ResourceMonitor) GetConfigType ¶
func (m *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType
func (*ResourceMonitor) GetName ¶
func (x *ResourceMonitor) GetName() string
func (*ResourceMonitor) GetTypedConfig ¶
func (x *ResourceMonitor) GetTypedConfig() *any1.Any
func (*ResourceMonitor) ProtoMessage ¶
func (*ResourceMonitor) ProtoMessage()
func (*ResourceMonitor) ProtoReflect ¶
func (x *ResourceMonitor) ProtoReflect() protoreflect.Message
func (*ResourceMonitor) Reset ¶
func (x *ResourceMonitor) Reset()
func (*ResourceMonitor) String ¶
func (x *ResourceMonitor) String() string
func (*ResourceMonitor) Validate ¶
func (m *ResourceMonitor) Validate() error
Validate checks the field values on ResourceMonitor 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 (*ResourceMonitor) ValidateAll ¶
func (m *ResourceMonitor) ValidateAll() error
ValidateAll checks the field values on ResourceMonitor 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 ResourceMonitorMultiError, or nil if none found.
type ResourceMonitorMultiError ¶
type ResourceMonitorMultiError []error
ResourceMonitorMultiError is an error wrapping multiple validation errors returned by ResourceMonitor.ValidateAll() if the designated constraints aren't met.
func (ResourceMonitorMultiError) AllErrors ¶
func (m ResourceMonitorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResourceMonitorMultiError) Error ¶
func (m ResourceMonitorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResourceMonitorValidationError ¶
type ResourceMonitorValidationError struct {
// contains filtered or unexported fields
}
ResourceMonitorValidationError is the validation error returned by ResourceMonitor.Validate if the designated constraints aren't met.
func (ResourceMonitorValidationError) Cause ¶
func (e ResourceMonitorValidationError) Cause() error
Cause function returns cause value.
func (ResourceMonitorValidationError) Error ¶
func (e ResourceMonitorValidationError) Error() string
Error satisfies the builtin error interface
func (ResourceMonitorValidationError) ErrorName ¶
func (e ResourceMonitorValidationError) ErrorName() string
ErrorName returns error name.
func (ResourceMonitorValidationError) Field ¶
func (e ResourceMonitorValidationError) Field() string
Field function returns field value.
func (ResourceMonitorValidationError) Key ¶
func (e ResourceMonitorValidationError) Key() bool
Key function returns key value.
func (ResourceMonitorValidationError) Reason ¶
func (e ResourceMonitorValidationError) Reason() string
Reason function returns reason value.
type ScaleTimersOverloadActionConfig ¶
type ScaleTimersOverloadActionConfig struct { // A set of timer scaling rules to be applied. TimerScaleFactors []*ScaleTimersOverloadActionConfig_ScaleTimer `protobuf:"bytes,1,rep,name=timer_scale_factors,json=timerScaleFactors,proto3" json:"timer_scale_factors,omitempty"` // contains filtered or unexported fields }
Typed configuration for the "envoy.overload_actions.reduce_timeouts" action. See :ref:`the docs <config_overload_manager_reducing_timeouts>` for an example of how to configure the action with different timeouts and minimum values.
func (*ScaleTimersOverloadActionConfig) Descriptor
deprecated
func (*ScaleTimersOverloadActionConfig) Descriptor() ([]byte, []int)
Deprecated: Use ScaleTimersOverloadActionConfig.ProtoReflect.Descriptor instead.
func (*ScaleTimersOverloadActionConfig) GetTimerScaleFactors ¶
func (x *ScaleTimersOverloadActionConfig) GetTimerScaleFactors() []*ScaleTimersOverloadActionConfig_ScaleTimer
func (*ScaleTimersOverloadActionConfig) ProtoMessage ¶
func (*ScaleTimersOverloadActionConfig) ProtoMessage()
func (*ScaleTimersOverloadActionConfig) ProtoReflect ¶
func (x *ScaleTimersOverloadActionConfig) ProtoReflect() protoreflect.Message
func (*ScaleTimersOverloadActionConfig) Reset ¶
func (x *ScaleTimersOverloadActionConfig) Reset()
func (*ScaleTimersOverloadActionConfig) String ¶
func (x *ScaleTimersOverloadActionConfig) String() string
func (*ScaleTimersOverloadActionConfig) Validate ¶
func (m *ScaleTimersOverloadActionConfig) Validate() error
Validate checks the field values on ScaleTimersOverloadActionConfig 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 (*ScaleTimersOverloadActionConfig) ValidateAll ¶
func (m *ScaleTimersOverloadActionConfig) ValidateAll() error
ValidateAll checks the field values on ScaleTimersOverloadActionConfig 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 ScaleTimersOverloadActionConfigMultiError, or nil if none found.
type ScaleTimersOverloadActionConfigMultiError ¶
type ScaleTimersOverloadActionConfigMultiError []error
ScaleTimersOverloadActionConfigMultiError is an error wrapping multiple validation errors returned by ScaleTimersOverloadActionConfig.ValidateAll() if the designated constraints aren't met.
func (ScaleTimersOverloadActionConfigMultiError) AllErrors ¶
func (m ScaleTimersOverloadActionConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ScaleTimersOverloadActionConfigMultiError) Error ¶
func (m ScaleTimersOverloadActionConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ScaleTimersOverloadActionConfigValidationError ¶
type ScaleTimersOverloadActionConfigValidationError struct {
// contains filtered or unexported fields
}
ScaleTimersOverloadActionConfigValidationError is the validation error returned by ScaleTimersOverloadActionConfig.Validate if the designated constraints aren't met.
func (ScaleTimersOverloadActionConfigValidationError) Cause ¶
func (e ScaleTimersOverloadActionConfigValidationError) Cause() error
Cause function returns cause value.
func (ScaleTimersOverloadActionConfigValidationError) Error ¶
func (e ScaleTimersOverloadActionConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ScaleTimersOverloadActionConfigValidationError) ErrorName ¶
func (e ScaleTimersOverloadActionConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ScaleTimersOverloadActionConfigValidationError) Field ¶
func (e ScaleTimersOverloadActionConfigValidationError) Field() string
Field function returns field value.
func (ScaleTimersOverloadActionConfigValidationError) Key ¶
func (e ScaleTimersOverloadActionConfigValidationError) Key() bool
Key function returns key value.
func (ScaleTimersOverloadActionConfigValidationError) Reason ¶
func (e ScaleTimersOverloadActionConfigValidationError) Reason() string
Reason function returns reason value.
type ScaleTimersOverloadActionConfig_ScaleTimer ¶
type ScaleTimersOverloadActionConfig_ScaleTimer struct { // The type of timer this minimum applies to. Timer ScaleTimersOverloadActionConfig_TimerType `` /* 136-byte string literal not displayed */ // Types that are assignable to OverloadAdjust: // *ScaleTimersOverloadActionConfig_ScaleTimer_MinTimeout // *ScaleTimersOverloadActionConfig_ScaleTimer_MinScale OverloadAdjust isScaleTimersOverloadActionConfig_ScaleTimer_OverloadAdjust `protobuf_oneof:"overload_adjust"` // contains filtered or unexported fields }
func (*ScaleTimersOverloadActionConfig_ScaleTimer) Descriptor
deprecated
func (*ScaleTimersOverloadActionConfig_ScaleTimer) Descriptor() ([]byte, []int)
Deprecated: Use ScaleTimersOverloadActionConfig_ScaleTimer.ProtoReflect.Descriptor instead.
func (*ScaleTimersOverloadActionConfig_ScaleTimer) GetMinScale ¶
func (x *ScaleTimersOverloadActionConfig_ScaleTimer) GetMinScale() *v3.Percent
func (*ScaleTimersOverloadActionConfig_ScaleTimer) GetMinTimeout ¶
func (x *ScaleTimersOverloadActionConfig_ScaleTimer) GetMinTimeout() *duration.Duration
func (*ScaleTimersOverloadActionConfig_ScaleTimer) GetOverloadAdjust ¶
func (m *ScaleTimersOverloadActionConfig_ScaleTimer) GetOverloadAdjust() isScaleTimersOverloadActionConfig_ScaleTimer_OverloadAdjust
func (*ScaleTimersOverloadActionConfig_ScaleTimer) GetTimer ¶
func (x *ScaleTimersOverloadActionConfig_ScaleTimer) GetTimer() ScaleTimersOverloadActionConfig_TimerType
func (*ScaleTimersOverloadActionConfig_ScaleTimer) ProtoMessage ¶
func (*ScaleTimersOverloadActionConfig_ScaleTimer) ProtoMessage()
func (*ScaleTimersOverloadActionConfig_ScaleTimer) ProtoReflect ¶
func (x *ScaleTimersOverloadActionConfig_ScaleTimer) ProtoReflect() protoreflect.Message
func (*ScaleTimersOverloadActionConfig_ScaleTimer) Reset ¶
func (x *ScaleTimersOverloadActionConfig_ScaleTimer) Reset()
func (*ScaleTimersOverloadActionConfig_ScaleTimer) String ¶
func (x *ScaleTimersOverloadActionConfig_ScaleTimer) String() string
func (*ScaleTimersOverloadActionConfig_ScaleTimer) Validate ¶
func (m *ScaleTimersOverloadActionConfig_ScaleTimer) Validate() error
Validate checks the field values on ScaleTimersOverloadActionConfig_ScaleTimer 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 (*ScaleTimersOverloadActionConfig_ScaleTimer) ValidateAll ¶
func (m *ScaleTimersOverloadActionConfig_ScaleTimer) ValidateAll() error
ValidateAll checks the field values on ScaleTimersOverloadActionConfig_ScaleTimer 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 ScaleTimersOverloadActionConfig_ScaleTimerMultiError, or nil if none found.
type ScaleTimersOverloadActionConfig_ScaleTimerMultiError ¶
type ScaleTimersOverloadActionConfig_ScaleTimerMultiError []error
ScaleTimersOverloadActionConfig_ScaleTimerMultiError is an error wrapping multiple validation errors returned by ScaleTimersOverloadActionConfig_ScaleTimer.ValidateAll() if the designated constraints aren't met.
func (ScaleTimersOverloadActionConfig_ScaleTimerMultiError) AllErrors ¶
func (m ScaleTimersOverloadActionConfig_ScaleTimerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ScaleTimersOverloadActionConfig_ScaleTimerMultiError) Error ¶
func (m ScaleTimersOverloadActionConfig_ScaleTimerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ScaleTimersOverloadActionConfig_ScaleTimerValidationError ¶
type ScaleTimersOverloadActionConfig_ScaleTimerValidationError struct {
// contains filtered or unexported fields
}
ScaleTimersOverloadActionConfig_ScaleTimerValidationError is the validation error returned by ScaleTimersOverloadActionConfig_ScaleTimer.Validate if the designated constraints aren't met.
func (ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Cause ¶
func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Cause() error
Cause function returns cause value.
func (ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Error ¶
func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Error() string
Error satisfies the builtin error interface
func (ScaleTimersOverloadActionConfig_ScaleTimerValidationError) ErrorName ¶
func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) ErrorName() string
ErrorName returns error name.
func (ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Field ¶
func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Field() string
Field function returns field value.
func (ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Key ¶
func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Key() bool
Key function returns key value.
func (ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Reason ¶
func (e ScaleTimersOverloadActionConfig_ScaleTimerValidationError) Reason() string
Reason function returns reason value.
type ScaleTimersOverloadActionConfig_TimerType ¶
type ScaleTimersOverloadActionConfig_TimerType int32
const ( // Unsupported value; users must explicitly specify the timer they want scaled. ScaleTimersOverloadActionConfig_UNSPECIFIED ScaleTimersOverloadActionConfig_TimerType = 0 // Adjusts the idle timer for downstream HTTP connections that takes effect when there are no active streams. // This affects the value of :ref:`HttpConnectionManager.common_http_protocol_options.idle_timeout // <envoy_v3_api_field_config.core.v3.HttpProtocolOptions.idle_timeout>` ScaleTimersOverloadActionConfig_HTTP_DOWNSTREAM_CONNECTION_IDLE ScaleTimersOverloadActionConfig_TimerType = 1 // Adjusts the idle timer for HTTP streams initiated by downstream clients. // This affects the value of :ref:`RouteAction.idle_timeout <envoy_v3_api_field_config.route.v3.RouteAction.idle_timeout>` and // :ref:`HttpConnectionManager.stream_idle_timeout // <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>` ScaleTimersOverloadActionConfig_HTTP_DOWNSTREAM_STREAM_IDLE ScaleTimersOverloadActionConfig_TimerType = 2 // Adjusts the timer for how long downstream clients have to finish transport-level negotiations // before the connection is closed. // This affects the value of // :ref:`FilterChain.transport_socket_connect_timeout <envoy_v3_api_field_config.listener.v3.FilterChain.transport_socket_connect_timeout>`. ScaleTimersOverloadActionConfig_TRANSPORT_SOCKET_CONNECT ScaleTimersOverloadActionConfig_TimerType = 3 )
func (ScaleTimersOverloadActionConfig_TimerType) Descriptor ¶
func (ScaleTimersOverloadActionConfig_TimerType) Descriptor() protoreflect.EnumDescriptor
func (ScaleTimersOverloadActionConfig_TimerType) EnumDescriptor
deprecated
func (ScaleTimersOverloadActionConfig_TimerType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ScaleTimersOverloadActionConfig_TimerType.Descriptor instead.
func (ScaleTimersOverloadActionConfig_TimerType) Number ¶
func (x ScaleTimersOverloadActionConfig_TimerType) Number() protoreflect.EnumNumber
func (ScaleTimersOverloadActionConfig_TimerType) String ¶
func (x ScaleTimersOverloadActionConfig_TimerType) String() string
func (ScaleTimersOverloadActionConfig_TimerType) Type ¶
func (ScaleTimersOverloadActionConfig_TimerType) Type() protoreflect.EnumType
type ScaledTrigger ¶
type ScaledTrigger struct { // If the resource pressure is greater than this value, the trigger will be in the // :ref:`scaling <arch_overview_overload_manager-triggers-state>` state with value // “(pressure - scaling_threshold) / (saturation_threshold - scaling_threshold)“. ScalingThreshold float64 `protobuf:"fixed64,1,opt,name=scaling_threshold,json=scalingThreshold,proto3" json:"scaling_threshold,omitempty"` // If the resource pressure is greater than this value, the trigger will enter saturation. SaturationThreshold float64 `protobuf:"fixed64,2,opt,name=saturation_threshold,json=saturationThreshold,proto3" json:"saturation_threshold,omitempty"` // contains filtered or unexported fields }
func (*ScaledTrigger) Descriptor
deprecated
func (*ScaledTrigger) Descriptor() ([]byte, []int)
Deprecated: Use ScaledTrigger.ProtoReflect.Descriptor instead.
func (*ScaledTrigger) GetSaturationThreshold ¶
func (x *ScaledTrigger) GetSaturationThreshold() float64
func (*ScaledTrigger) GetScalingThreshold ¶
func (x *ScaledTrigger) GetScalingThreshold() float64
func (*ScaledTrigger) ProtoMessage ¶
func (*ScaledTrigger) ProtoMessage()
func (*ScaledTrigger) ProtoReflect ¶
func (x *ScaledTrigger) ProtoReflect() protoreflect.Message
func (*ScaledTrigger) Reset ¶
func (x *ScaledTrigger) Reset()
func (*ScaledTrigger) String ¶
func (x *ScaledTrigger) String() string
func (*ScaledTrigger) Validate ¶
func (m *ScaledTrigger) Validate() error
Validate checks the field values on ScaledTrigger 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 (*ScaledTrigger) ValidateAll ¶
func (m *ScaledTrigger) ValidateAll() error
ValidateAll checks the field values on ScaledTrigger 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 ScaledTriggerMultiError, or nil if none found.
type ScaledTriggerMultiError ¶
type ScaledTriggerMultiError []error
ScaledTriggerMultiError is an error wrapping multiple validation errors returned by ScaledTrigger.ValidateAll() if the designated constraints aren't met.
func (ScaledTriggerMultiError) AllErrors ¶
func (m ScaledTriggerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ScaledTriggerMultiError) Error ¶
func (m ScaledTriggerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ScaledTriggerValidationError ¶
type ScaledTriggerValidationError struct {
// contains filtered or unexported fields
}
ScaledTriggerValidationError is the validation error returned by ScaledTrigger.Validate if the designated constraints aren't met.
func (ScaledTriggerValidationError) Cause ¶
func (e ScaledTriggerValidationError) Cause() error
Cause function returns cause value.
func (ScaledTriggerValidationError) Error ¶
func (e ScaledTriggerValidationError) Error() string
Error satisfies the builtin error interface
func (ScaledTriggerValidationError) ErrorName ¶
func (e ScaledTriggerValidationError) ErrorName() string
ErrorName returns error name.
func (ScaledTriggerValidationError) Field ¶
func (e ScaledTriggerValidationError) Field() string
Field function returns field value.
func (ScaledTriggerValidationError) Key ¶
func (e ScaledTriggerValidationError) Key() bool
Key function returns key value.
func (ScaledTriggerValidationError) Reason ¶
func (e ScaledTriggerValidationError) Reason() string
Reason function returns reason value.
type ThresholdTrigger ¶
type ThresholdTrigger struct { // If the resource pressure is greater than or equal to this value, the trigger // will enter saturation. Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ThresholdTrigger) Descriptor
deprecated
func (*ThresholdTrigger) Descriptor() ([]byte, []int)
Deprecated: Use ThresholdTrigger.ProtoReflect.Descriptor instead.
func (*ThresholdTrigger) GetValue ¶
func (x *ThresholdTrigger) GetValue() float64
func (*ThresholdTrigger) ProtoMessage ¶
func (*ThresholdTrigger) ProtoMessage()
func (*ThresholdTrigger) ProtoReflect ¶
func (x *ThresholdTrigger) ProtoReflect() protoreflect.Message
func (*ThresholdTrigger) Reset ¶
func (x *ThresholdTrigger) Reset()
func (*ThresholdTrigger) String ¶
func (x *ThresholdTrigger) String() string
func (*ThresholdTrigger) Validate ¶
func (m *ThresholdTrigger) Validate() error
Validate checks the field values on ThresholdTrigger 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 (*ThresholdTrigger) ValidateAll ¶
func (m *ThresholdTrigger) ValidateAll() error
ValidateAll checks the field values on ThresholdTrigger 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 ThresholdTriggerMultiError, or nil if none found.
type ThresholdTriggerMultiError ¶
type ThresholdTriggerMultiError []error
ThresholdTriggerMultiError is an error wrapping multiple validation errors returned by ThresholdTrigger.ValidateAll() if the designated constraints aren't met.
func (ThresholdTriggerMultiError) AllErrors ¶
func (m ThresholdTriggerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ThresholdTriggerMultiError) Error ¶
func (m ThresholdTriggerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ThresholdTriggerValidationError ¶
type ThresholdTriggerValidationError struct {
// contains filtered or unexported fields
}
ThresholdTriggerValidationError is the validation error returned by ThresholdTrigger.Validate if the designated constraints aren't met.
func (ThresholdTriggerValidationError) Cause ¶
func (e ThresholdTriggerValidationError) Cause() error
Cause function returns cause value.
func (ThresholdTriggerValidationError) Error ¶
func (e ThresholdTriggerValidationError) Error() string
Error satisfies the builtin error interface
func (ThresholdTriggerValidationError) ErrorName ¶
func (e ThresholdTriggerValidationError) ErrorName() string
ErrorName returns error name.
func (ThresholdTriggerValidationError) Field ¶
func (e ThresholdTriggerValidationError) Field() string
Field function returns field value.
func (ThresholdTriggerValidationError) Key ¶
func (e ThresholdTriggerValidationError) Key() bool
Key function returns key value.
func (ThresholdTriggerValidationError) Reason ¶
func (e ThresholdTriggerValidationError) Reason() string
Reason function returns reason value.
type Trigger ¶
type Trigger struct { // The name of the resource this is a trigger for. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are assignable to TriggerOneof: // *Trigger_Threshold // *Trigger_Scaled TriggerOneof isTrigger_TriggerOneof `protobuf_oneof:"trigger_oneof"` // contains filtered or unexported fields }
func (*Trigger) Descriptor
deprecated
func (*Trigger) GetScaled ¶
func (x *Trigger) GetScaled() *ScaledTrigger
func (*Trigger) GetThreshold ¶
func (x *Trigger) GetThreshold() *ThresholdTrigger
func (*Trigger) GetTriggerOneof ¶
func (m *Trigger) GetTriggerOneof() isTrigger_TriggerOneof
func (*Trigger) ProtoMessage ¶
func (*Trigger) ProtoMessage()
func (*Trigger) ProtoReflect ¶
func (x *Trigger) ProtoReflect() protoreflect.Message
func (*Trigger) Validate ¶
Validate checks the field values on Trigger 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 (*Trigger) ValidateAll ¶
ValidateAll checks the field values on Trigger 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 TriggerMultiError, or nil if none found.
type TriggerMultiError ¶
type TriggerMultiError []error
TriggerMultiError is an error wrapping multiple validation errors returned by Trigger.ValidateAll() if the designated constraints aren't met.
func (TriggerMultiError) AllErrors ¶
func (m TriggerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TriggerMultiError) Error ¶
func (m TriggerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TriggerValidationError ¶
type TriggerValidationError struct {
// contains filtered or unexported fields
}
TriggerValidationError is the validation error returned by Trigger.Validate if the designated constraints aren't met.
func (TriggerValidationError) Cause ¶
func (e TriggerValidationError) Cause() error
Cause function returns cause value.
func (TriggerValidationError) Error ¶
func (e TriggerValidationError) Error() string
Error satisfies the builtin error interface
func (TriggerValidationError) ErrorName ¶
func (e TriggerValidationError) ErrorName() string
ErrorName returns error name.
func (TriggerValidationError) Field ¶
func (e TriggerValidationError) Field() string
Field function returns field value.
func (TriggerValidationError) Key ¶
func (e TriggerValidationError) Key() bool
Key function returns key value.
func (TriggerValidationError) Reason ¶
func (e TriggerValidationError) Reason() string
Reason function returns reason value.
type Trigger_Scaled ¶
type Trigger_Scaled struct {
Scaled *ScaledTrigger `protobuf:"bytes,3,opt,name=scaled,proto3,oneof"`
}
type Trigger_Threshold ¶
type Trigger_Threshold struct {
Threshold *ThresholdTrigger `protobuf:"bytes,2,opt,name=threshold,proto3,oneof"`
}