Documentation ¶
Index ¶
- Constants
- Variables
- type OverloadAction
- func (x *OverloadAction) GetName() string
- func (x *OverloadAction) GetTriggers() []*Trigger
- func (*OverloadAction) ProtoMessage()
- func (x *OverloadAction) ProtoReflect() protoreflect.Message
- func (x *OverloadAction) Reset()
- func (x *OverloadAction) SetName(v string)
- func (x *OverloadAction) SetTriggers(v []*Trigger)
- func (x *OverloadAction) String() string
- type OverloadAction_builder
- type OverloadManager
- func (x *OverloadManager) ClearRefreshInterval()
- func (x *OverloadManager) GetActions() []*OverloadAction
- func (x *OverloadManager) GetRefreshInterval() *durationpb.Duration
- func (x *OverloadManager) GetResourceMonitors() []*ResourceMonitor
- func (x *OverloadManager) HasRefreshInterval() bool
- func (*OverloadManager) ProtoMessage()
- func (x *OverloadManager) ProtoReflect() protoreflect.Message
- func (x *OverloadManager) Reset()
- func (x *OverloadManager) SetActions(v []*OverloadAction)
- func (x *OverloadManager) SetRefreshInterval(v *durationpb.Duration)
- func (x *OverloadManager) SetResourceMonitors(v []*ResourceMonitor)
- func (x *OverloadManager) String() string
- type OverloadManager_builder
- type ResourceMonitor
- func (x *ResourceMonitor) ClearConfig()deprecated
- func (x *ResourceMonitor) ClearConfigType()
- func (x *ResourceMonitor) ClearTypedConfig()
- func (x *ResourceMonitor) GetConfig() *structpb.Structdeprecated
- func (x *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType
- func (x *ResourceMonitor) GetName() string
- func (x *ResourceMonitor) GetTypedConfig() *anypb.Any
- func (x *ResourceMonitor) HasConfig() booldeprecated
- func (x *ResourceMonitor) HasConfigType() bool
- func (x *ResourceMonitor) HasTypedConfig() bool
- func (*ResourceMonitor) ProtoMessage()
- func (x *ResourceMonitor) ProtoReflect() protoreflect.Message
- func (x *ResourceMonitor) Reset()
- func (x *ResourceMonitor) SetConfig(v *structpb.Struct)deprecated
- func (x *ResourceMonitor) SetName(v string)
- func (x *ResourceMonitor) SetTypedConfig(v *anypb.Any)
- func (x *ResourceMonitor) String() string
- func (x *ResourceMonitor) WhichConfigType() case_ResourceMonitor_ConfigType
- type ResourceMonitor_Config
- type ResourceMonitor_TypedConfig
- type ResourceMonitor_builder
- type ThresholdTrigger
- type ThresholdTrigger_builder
- type Trigger
- func (x *Trigger) ClearThreshold()
- func (x *Trigger) ClearTriggerOneof()
- func (x *Trigger) GetName() string
- func (x *Trigger) GetThreshold() *ThresholdTrigger
- func (x *Trigger) GetTriggerOneof() isTrigger_TriggerOneof
- func (x *Trigger) HasThreshold() bool
- func (x *Trigger) HasTriggerOneof() bool
- func (*Trigger) ProtoMessage()
- func (x *Trigger) ProtoReflect() protoreflect.Message
- func (x *Trigger) Reset()
- func (x *Trigger) SetName(v string)
- func (x *Trigger) SetThreshold(v *ThresholdTrigger)
- func (x *Trigger) String() string
- func (x *Trigger) WhichTriggerOneof() case_Trigger_TriggerOneof
- type Trigger_Threshold
- type Trigger_builder
Constants ¶
View Source
const ResourceMonitor_ConfigType_not_set_case case_ResourceMonitor_ConfigType = 0
View Source
const ResourceMonitor_Config_case case_ResourceMonitor_ConfigType = 2
View Source
const ResourceMonitor_TypedConfig_case case_ResourceMonitor_ConfigType = 3
View Source
const Trigger_Threshold_case case_Trigger_TriggerOneof = 2
View Source
const Trigger_TriggerOneof_not_set_case case_Trigger_TriggerOneof = 0
Variables ¶
View Source
var File_envoy_config_overload_v2alpha_overload_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
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. If any of these triggers fire the overload action // is activated. Listeners are notified when the overload action transitions from // inactivated to activated, or vice versa. Triggers []*Trigger `protobuf:"bytes,2,rep,name=triggers,proto3" json:"triggers,omitempty"` // contains filtered or unexported fields }
func (*OverloadAction) GetName ¶
func (x *OverloadAction) GetName() string
func (*OverloadAction) GetTriggers ¶
func (x *OverloadAction) GetTriggers() []*Trigger
func (*OverloadAction) ProtoMessage ¶
func (*OverloadAction) ProtoMessage()
func (*OverloadAction) ProtoReflect ¶
func (x *OverloadAction) ProtoReflect() protoreflect.Message
func (*OverloadAction) Reset ¶
func (x *OverloadAction) Reset()
func (*OverloadAction) SetName ¶
func (x *OverloadAction) SetName(v string)
func (*OverloadAction) SetTriggers ¶
func (x *OverloadAction) SetTriggers(v []*Trigger)
func (*OverloadAction) String ¶
func (x *OverloadAction) String() string
type OverloadAction_builder ¶
type OverloadAction_builder 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 // A set of triggers for this action. If any of these triggers fire the overload action // is activated. Listeners are notified when the overload action transitions from // inactivated to activated, or vice versa. Triggers []*Trigger // contains filtered or unexported fields }
func (OverloadAction_builder) Build ¶
func (b0 OverloadAction_builder) Build() *OverloadAction
type OverloadManager ¶
type OverloadManager struct { // The interval for refreshing resource usage. RefreshInterval *durationpb.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"` // contains filtered or unexported fields }
func (*OverloadManager) ClearRefreshInterval ¶
func (x *OverloadManager) ClearRefreshInterval()
func (*OverloadManager) GetActions ¶
func (x *OverloadManager) GetActions() []*OverloadAction
func (*OverloadManager) GetRefreshInterval ¶
func (x *OverloadManager) GetRefreshInterval() *durationpb.Duration
func (*OverloadManager) GetResourceMonitors ¶
func (x *OverloadManager) GetResourceMonitors() []*ResourceMonitor
func (*OverloadManager) HasRefreshInterval ¶
func (x *OverloadManager) HasRefreshInterval() bool
func (*OverloadManager) ProtoMessage ¶
func (*OverloadManager) ProtoMessage()
func (*OverloadManager) ProtoReflect ¶
func (x *OverloadManager) ProtoReflect() protoreflect.Message
func (*OverloadManager) Reset ¶
func (x *OverloadManager) Reset()
func (*OverloadManager) SetActions ¶
func (x *OverloadManager) SetActions(v []*OverloadAction)
func (*OverloadManager) SetRefreshInterval ¶
func (x *OverloadManager) SetRefreshInterval(v *durationpb.Duration)
func (*OverloadManager) SetResourceMonitors ¶
func (x *OverloadManager) SetResourceMonitors(v []*ResourceMonitor)
func (*OverloadManager) String ¶
func (x *OverloadManager) String() string
type OverloadManager_builder ¶
type OverloadManager_builder struct { // The interval for refreshing resource usage. RefreshInterval *durationpb.Duration // The set of resources to monitor. ResourceMonitors []*ResourceMonitor // The set of overload actions. Actions []*OverloadAction // contains filtered or unexported fields }
func (OverloadManager_builder) Build ¶
func (b0 OverloadManager_builder) Build() *OverloadManager
type ResourceMonitor ¶
type ResourceMonitor struct { // The name of the resource monitor to instantiate. Must match a registered // resource monitor type. The built-in resource monitors are: // // - :ref:`envoy.resource_monitors.fixed_heap // <envoy_api_msg_config.resource_monitor.fixed_heap.v2alpha.FixedHeapConfig>` // - :ref:`envoy.resource_monitors.injected_resource // <envoy_api_msg_config.resource_monitor.injected_resource.v2alpha.InjectedResourceConfig>` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Configuration for the resource monitor being instantiated. // // Types that are valid to be assigned to ConfigType: // // *ResourceMonitor_Config // *ResourceMonitor_TypedConfig ConfigType isResourceMonitor_ConfigType `protobuf_oneof:"config_type"` // contains filtered or unexported fields }
func (*ResourceMonitor) ClearConfig
deprecated
func (x *ResourceMonitor) ClearConfig()
Deprecated: Marked as deprecated in envoy/config/overload/v2alpha/overload.proto.
func (*ResourceMonitor) ClearConfigType ¶
func (x *ResourceMonitor) ClearConfigType()
func (*ResourceMonitor) ClearTypedConfig ¶
func (x *ResourceMonitor) ClearTypedConfig()
func (*ResourceMonitor) GetConfig
deprecated
func (x *ResourceMonitor) GetConfig() *structpb.Struct
Deprecated: Marked as deprecated in envoy/config/overload/v2alpha/overload.proto.
func (*ResourceMonitor) GetConfigType ¶
func (x *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType
func (*ResourceMonitor) GetName ¶
func (x *ResourceMonitor) GetName() string
func (*ResourceMonitor) GetTypedConfig ¶
func (x *ResourceMonitor) GetTypedConfig() *anypb.Any
func (*ResourceMonitor) HasConfig
deprecated
func (x *ResourceMonitor) HasConfig() bool
Deprecated: Marked as deprecated in envoy/config/overload/v2alpha/overload.proto.
func (*ResourceMonitor) HasConfigType ¶
func (x *ResourceMonitor) HasConfigType() bool
func (*ResourceMonitor) HasTypedConfig ¶
func (x *ResourceMonitor) HasTypedConfig() bool
func (*ResourceMonitor) ProtoMessage ¶
func (*ResourceMonitor) ProtoMessage()
func (*ResourceMonitor) ProtoReflect ¶
func (x *ResourceMonitor) ProtoReflect() protoreflect.Message
func (*ResourceMonitor) Reset ¶
func (x *ResourceMonitor) Reset()
func (*ResourceMonitor) SetConfig
deprecated
func (x *ResourceMonitor) SetConfig(v *structpb.Struct)
Deprecated: Marked as deprecated in envoy/config/overload/v2alpha/overload.proto.
func (*ResourceMonitor) SetName ¶
func (x *ResourceMonitor) SetName(v string)
func (*ResourceMonitor) SetTypedConfig ¶
func (x *ResourceMonitor) SetTypedConfig(v *anypb.Any)
func (*ResourceMonitor) String ¶
func (x *ResourceMonitor) String() string
func (*ResourceMonitor) WhichConfigType ¶
func (x *ResourceMonitor) WhichConfigType() case_ResourceMonitor_ConfigType
type ResourceMonitor_Config ¶
type ResourceMonitor_TypedConfig ¶
type ResourceMonitor_builder ¶
type ResourceMonitor_builder struct { // The name of the resource monitor to instantiate. Must match a registered // resource monitor type. The built-in resource monitors are: // // - :ref:`envoy.resource_monitors.fixed_heap // <envoy_api_msg_config.resource_monitor.fixed_heap.v2alpha.FixedHeapConfig>` // - :ref:`envoy.resource_monitors.injected_resource // <envoy_api_msg_config.resource_monitor.injected_resource.v2alpha.InjectedResourceConfig>` Name string // Fields of oneof ConfigType: // Deprecated: Marked as deprecated in envoy/config/overload/v2alpha/overload.proto. Config *structpb.Struct TypedConfig *anypb.Any // contains filtered or unexported fields }
func (ResourceMonitor_builder) Build ¶
func (b0 ResourceMonitor_builder) Build() *ResourceMonitor
type ThresholdTrigger ¶
type ThresholdTrigger struct { // If the resource pressure is greater than or equal to this value, the trigger // will fire. Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
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) SetValue ¶
func (x *ThresholdTrigger) SetValue(v float64)
func (*ThresholdTrigger) String ¶
func (x *ThresholdTrigger) String() string
type ThresholdTrigger_builder ¶
type ThresholdTrigger_builder struct { // If the resource pressure is greater than or equal to this value, the trigger // will fire. Value float64 // contains filtered or unexported fields }
func (ThresholdTrigger_builder) Build ¶
func (b0 ThresholdTrigger_builder) Build() *ThresholdTrigger
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 valid to be assigned to TriggerOneof: // // *Trigger_Threshold TriggerOneof isTrigger_TriggerOneof `protobuf_oneof:"trigger_oneof"` // contains filtered or unexported fields }
func (*Trigger) GetThreshold ¶
func (x *Trigger) GetThreshold() *ThresholdTrigger
func (*Trigger) ProtoReflect ¶
func (x *Trigger) ProtoReflect() protoreflect.Message
func (*Trigger) SetThreshold ¶
func (x *Trigger) SetThreshold(v *ThresholdTrigger)
type Trigger_Threshold ¶
type Trigger_Threshold struct {
Threshold *ThresholdTrigger `protobuf:"bytes,2,opt,name=threshold,proto3,oneof"`
}
type Trigger_builder ¶
type Trigger_builder struct { // The name of the resource this is a trigger for. Name string // Fields of oneof TriggerOneof: Threshold *ThresholdTrigger // contains filtered or unexported fields }
func (Trigger_builder) Build ¶
func (b0 Trigger_builder) Build() *Trigger
Click to show internal directories.
Click to hide internal directories.