Documentation ¶
Index ¶
- Variables
- type OverloadAction
- func (*OverloadAction) Descriptor() ([]byte, []int)
- func (m *OverloadAction) GetName() string
- func (m *OverloadAction) GetTriggers() []*Trigger
- func (m *OverloadAction) Marshal() (dAtA []byte, err error)
- func (m *OverloadAction) MarshalTo(dAtA []byte) (int, error)
- func (*OverloadAction) ProtoMessage()
- func (m *OverloadAction) Reset()
- func (m *OverloadAction) Size() (n int)
- func (m *OverloadAction) String() string
- func (m *OverloadAction) Unmarshal(dAtA []byte) error
- func (m *OverloadAction) Validate() error
- func (m *OverloadAction) XXX_DiscardUnknown()
- func (m *OverloadAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *OverloadAction) XXX_Merge(src proto.Message)
- func (m *OverloadAction) XXX_Size() int
- func (m *OverloadAction) XXX_Unmarshal(b []byte) error
- type OverloadActionValidationError
- type OverloadManager
- func (*OverloadManager) Descriptor() ([]byte, []int)
- func (m *OverloadManager) GetActions() []*OverloadAction
- func (m *OverloadManager) GetRefreshInterval() *types.Duration
- func (m *OverloadManager) GetResourceMonitors() []*ResourceMonitor
- func (m *OverloadManager) Marshal() (dAtA []byte, err error)
- func (m *OverloadManager) MarshalTo(dAtA []byte) (int, error)
- func (*OverloadManager) ProtoMessage()
- func (m *OverloadManager) Reset()
- func (m *OverloadManager) Size() (n int)
- func (m *OverloadManager) String() string
- func (m *OverloadManager) Unmarshal(dAtA []byte) error
- func (m *OverloadManager) Validate() error
- func (m *OverloadManager) XXX_DiscardUnknown()
- func (m *OverloadManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *OverloadManager) XXX_Merge(src proto.Message)
- func (m *OverloadManager) XXX_Size() int
- func (m *OverloadManager) XXX_Unmarshal(b []byte) error
- type OverloadManagerValidationError
- type ResourceMonitor
- func (*ResourceMonitor) Descriptor() ([]byte, []int)
- func (m *ResourceMonitor) GetConfig() *types.Struct
- func (m *ResourceMonitor) GetName() string
- func (m *ResourceMonitor) Marshal() (dAtA []byte, err error)
- func (m *ResourceMonitor) MarshalTo(dAtA []byte) (int, error)
- func (*ResourceMonitor) ProtoMessage()
- func (m *ResourceMonitor) Reset()
- func (m *ResourceMonitor) Size() (n int)
- func (m *ResourceMonitor) String() string
- func (m *ResourceMonitor) Unmarshal(dAtA []byte) error
- func (m *ResourceMonitor) Validate() error
- func (m *ResourceMonitor) XXX_DiscardUnknown()
- func (m *ResourceMonitor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ResourceMonitor) XXX_Merge(src proto.Message)
- func (m *ResourceMonitor) XXX_Size() int
- func (m *ResourceMonitor) XXX_Unmarshal(b []byte) error
- type ResourceMonitorValidationError
- type ThresholdTrigger
- func (*ThresholdTrigger) Descriptor() ([]byte, []int)
- func (m *ThresholdTrigger) GetValue() float64
- func (m *ThresholdTrigger) Marshal() (dAtA []byte, err error)
- func (m *ThresholdTrigger) MarshalTo(dAtA []byte) (int, error)
- func (*ThresholdTrigger) ProtoMessage()
- func (m *ThresholdTrigger) Reset()
- func (m *ThresholdTrigger) Size() (n int)
- func (m *ThresholdTrigger) String() string
- func (m *ThresholdTrigger) Unmarshal(dAtA []byte) error
- func (m *ThresholdTrigger) Validate() error
- func (m *ThresholdTrigger) XXX_DiscardUnknown()
- func (m *ThresholdTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ThresholdTrigger) XXX_Merge(src proto.Message)
- func (m *ThresholdTrigger) XXX_Size() int
- func (m *ThresholdTrigger) XXX_Unmarshal(b []byte) error
- type ThresholdTriggerValidationError
- type Trigger
- func (*Trigger) Descriptor() ([]byte, []int)
- func (m *Trigger) GetName() string
- func (m *Trigger) GetThreshold() *ThresholdTrigger
- func (m *Trigger) GetTriggerOneof() isTrigger_TriggerOneof
- func (m *Trigger) Marshal() (dAtA []byte, err error)
- func (m *Trigger) MarshalTo(dAtA []byte) (int, error)
- func (*Trigger) ProtoMessage()
- func (m *Trigger) Reset()
- func (m *Trigger) Size() (n int)
- func (m *Trigger) String() string
- func (m *Trigger) Unmarshal(dAtA []byte) error
- func (m *Trigger) Validate() error
- func (m *Trigger) XXX_DiscardUnknown()
- func (m *Trigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Trigger) XXX_Merge(src proto.Message)
- func (*Trigger) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Trigger) XXX_Size() int
- func (m *Trigger) XXX_Unmarshal(b []byte) error
- type TriggerValidationError
- type Trigger_Threshold
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthOverload = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOverload = fmt.Errorf("proto: integer overflow") )
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" json:"triggers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OverloadAction) Descriptor ¶
func (*OverloadAction) Descriptor() ([]byte, []int)
func (*OverloadAction) GetName ¶
func (m *OverloadAction) GetName() string
func (*OverloadAction) GetTriggers ¶
func (m *OverloadAction) GetTriggers() []*Trigger
func (*OverloadAction) Marshal ¶ added in v0.5.0
func (m *OverloadAction) Marshal() (dAtA []byte, err error)
func (*OverloadAction) MarshalTo ¶ added in v0.5.0
func (m *OverloadAction) MarshalTo(dAtA []byte) (int, error)
func (*OverloadAction) ProtoMessage ¶
func (*OverloadAction) ProtoMessage()
func (*OverloadAction) Reset ¶
func (m *OverloadAction) Reset()
func (*OverloadAction) Size ¶ added in v0.5.0
func (m *OverloadAction) Size() (n int)
func (*OverloadAction) String ¶
func (m *OverloadAction) String() string
func (*OverloadAction) Unmarshal ¶ added in v0.5.0
func (m *OverloadAction) Unmarshal(dAtA []byte) error
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, an error is returned.
func (*OverloadAction) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *OverloadAction) XXX_DiscardUnknown()
func (*OverloadAction) XXX_Marshal ¶ added in v0.5.0
func (m *OverloadAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OverloadAction) XXX_Merge ¶ added in v0.5.0
func (dst *OverloadAction) XXX_Merge(src proto.Message)
func (*OverloadAction) XXX_Size ¶ added in v0.5.0
func (m *OverloadAction) XXX_Size() int
func (*OverloadAction) XXX_Unmarshal ¶ added in v0.5.0
func (m *OverloadAction) XXX_Unmarshal(b []byte) error
type OverloadActionValidationError ¶
OverloadActionValidationError is the validation error returned by OverloadAction.Validate if the designated constraints aren't met.
func (OverloadActionValidationError) Error ¶
func (e OverloadActionValidationError) Error() string
Error satisfies the builtin error interface
type OverloadManager ¶
type OverloadManager struct { // The interval for refreshing resource usage. RefreshInterval *types.Duration `protobuf:"bytes,1,opt,name=refresh_interval,json=refreshInterval" json:"refresh_interval,omitempty"` // The set of resources to monitor. ResourceMonitors []*ResourceMonitor `protobuf:"bytes,2,rep,name=resource_monitors,json=resourceMonitors" json:"resource_monitors,omitempty"` // The set of overload actions. Actions []*OverloadAction `protobuf:"bytes,3,rep,name=actions" json:"actions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OverloadManager) Descriptor ¶
func (*OverloadManager) Descriptor() ([]byte, []int)
func (*OverloadManager) GetActions ¶
func (m *OverloadManager) GetActions() []*OverloadAction
func (*OverloadManager) GetRefreshInterval ¶
func (m *OverloadManager) GetRefreshInterval() *types.Duration
func (*OverloadManager) GetResourceMonitors ¶
func (m *OverloadManager) GetResourceMonitors() []*ResourceMonitor
func (*OverloadManager) Marshal ¶ added in v0.5.0
func (m *OverloadManager) Marshal() (dAtA []byte, err error)
func (*OverloadManager) MarshalTo ¶ added in v0.5.0
func (m *OverloadManager) MarshalTo(dAtA []byte) (int, error)
func (*OverloadManager) ProtoMessage ¶
func (*OverloadManager) ProtoMessage()
func (*OverloadManager) Reset ¶
func (m *OverloadManager) Reset()
func (*OverloadManager) Size ¶ added in v0.5.0
func (m *OverloadManager) Size() (n int)
func (*OverloadManager) String ¶
func (m *OverloadManager) String() string
func (*OverloadManager) Unmarshal ¶ added in v0.5.0
func (m *OverloadManager) Unmarshal(dAtA []byte) error
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, an error is returned.
func (*OverloadManager) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *OverloadManager) XXX_DiscardUnknown()
func (*OverloadManager) XXX_Marshal ¶ added in v0.5.0
func (m *OverloadManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OverloadManager) XXX_Merge ¶ added in v0.5.0
func (dst *OverloadManager) XXX_Merge(src proto.Message)
func (*OverloadManager) XXX_Size ¶ added in v0.5.0
func (m *OverloadManager) XXX_Size() int
func (*OverloadManager) XXX_Unmarshal ¶ added in v0.5.0
func (m *OverloadManager) XXX_Unmarshal(b []byte) error
type OverloadManagerValidationError ¶
OverloadManagerValidationError is the validation error returned by OverloadManager.Validate if the designated constraints aren't met.
func (OverloadManagerValidationError) Error ¶
func (e OverloadManagerValidationError) Error() string
Error satisfies the builtin error interface
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. Config *types.Struct `protobuf:"bytes,2,opt,name=config" json:"config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResourceMonitor) Descriptor ¶
func (*ResourceMonitor) Descriptor() ([]byte, []int)
func (*ResourceMonitor) GetConfig ¶
func (m *ResourceMonitor) GetConfig() *types.Struct
func (*ResourceMonitor) GetName ¶
func (m *ResourceMonitor) GetName() string
func (*ResourceMonitor) Marshal ¶ added in v0.5.0
func (m *ResourceMonitor) Marshal() (dAtA []byte, err error)
func (*ResourceMonitor) MarshalTo ¶ added in v0.5.0
func (m *ResourceMonitor) MarshalTo(dAtA []byte) (int, error)
func (*ResourceMonitor) ProtoMessage ¶
func (*ResourceMonitor) ProtoMessage()
func (*ResourceMonitor) Reset ¶
func (m *ResourceMonitor) Reset()
func (*ResourceMonitor) Size ¶ added in v0.5.0
func (m *ResourceMonitor) Size() (n int)
func (*ResourceMonitor) String ¶
func (m *ResourceMonitor) String() string
func (*ResourceMonitor) Unmarshal ¶ added in v0.5.0
func (m *ResourceMonitor) Unmarshal(dAtA []byte) error
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, an error is returned.
func (*ResourceMonitor) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *ResourceMonitor) XXX_DiscardUnknown()
func (*ResourceMonitor) XXX_Marshal ¶ added in v0.5.0
func (m *ResourceMonitor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceMonitor) XXX_Merge ¶ added in v0.5.0
func (dst *ResourceMonitor) XXX_Merge(src proto.Message)
func (*ResourceMonitor) XXX_Size ¶ added in v0.5.0
func (m *ResourceMonitor) XXX_Size() int
func (*ResourceMonitor) XXX_Unmarshal ¶ added in v0.5.0
func (m *ResourceMonitor) XXX_Unmarshal(b []byte) error
type ResourceMonitorValidationError ¶
ResourceMonitorValidationError is the validation error returned by ResourceMonitor.Validate if the designated constraints aren't met.
func (ResourceMonitorValidationError) Error ¶
func (e ResourceMonitorValidationError) Error() string
Error satisfies the builtin error interface
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ThresholdTrigger) Descriptor ¶
func (*ThresholdTrigger) Descriptor() ([]byte, []int)
func (*ThresholdTrigger) GetValue ¶
func (m *ThresholdTrigger) GetValue() float64
func (*ThresholdTrigger) Marshal ¶ added in v0.5.0
func (m *ThresholdTrigger) Marshal() (dAtA []byte, err error)
func (*ThresholdTrigger) MarshalTo ¶ added in v0.5.0
func (m *ThresholdTrigger) MarshalTo(dAtA []byte) (int, error)
func (*ThresholdTrigger) ProtoMessage ¶
func (*ThresholdTrigger) ProtoMessage()
func (*ThresholdTrigger) Reset ¶
func (m *ThresholdTrigger) Reset()
func (*ThresholdTrigger) Size ¶ added in v0.5.0
func (m *ThresholdTrigger) Size() (n int)
func (*ThresholdTrigger) String ¶
func (m *ThresholdTrigger) String() string
func (*ThresholdTrigger) Unmarshal ¶ added in v0.5.0
func (m *ThresholdTrigger) Unmarshal(dAtA []byte) error
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, an error is returned.
func (*ThresholdTrigger) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *ThresholdTrigger) XXX_DiscardUnknown()
func (*ThresholdTrigger) XXX_Marshal ¶ added in v0.5.0
func (m *ThresholdTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThresholdTrigger) XXX_Merge ¶ added in v0.5.0
func (dst *ThresholdTrigger) XXX_Merge(src proto.Message)
func (*ThresholdTrigger) XXX_Size ¶ added in v0.5.0
func (m *ThresholdTrigger) XXX_Size() int
func (*ThresholdTrigger) XXX_Unmarshal ¶ added in v0.5.0
func (m *ThresholdTrigger) XXX_Unmarshal(b []byte) error
type ThresholdTriggerValidationError ¶
ThresholdTriggerValidationError is the validation error returned by ThresholdTrigger.Validate if the designated constraints aren't met.
func (ThresholdTriggerValidationError) Error ¶
func (e ThresholdTriggerValidationError) Error() string
Error satisfies the builtin error interface
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Trigger) Descriptor ¶
func (*Trigger) GetThreshold ¶
func (m *Trigger) GetThreshold() *ThresholdTrigger
func (*Trigger) GetTriggerOneof ¶
func (m *Trigger) GetTriggerOneof() isTrigger_TriggerOneof
func (*Trigger) ProtoMessage ¶
func (*Trigger) ProtoMessage()
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, an error is returned.
func (*Trigger) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *Trigger) XXX_DiscardUnknown()
func (*Trigger) XXX_Marshal ¶ added in v0.5.0
func (*Trigger) XXX_OneofFuncs ¶ added in v0.5.0
func (*Trigger) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Trigger) XXX_Unmarshal ¶ added in v0.5.0
type TriggerValidationError ¶
TriggerValidationError is the validation error returned by Trigger.Validate if the designated constraints aren't met.
func (TriggerValidationError) Error ¶
func (e TriggerValidationError) Error() string
Error satisfies the builtin error interface
type Trigger_Threshold ¶
type Trigger_Threshold struct {
Threshold *ThresholdTrigger `protobuf:"bytes,2,opt,name=threshold,oneof"`
}
func (*Trigger_Threshold) MarshalTo ¶ added in v0.5.0
func (m *Trigger_Threshold) MarshalTo(dAtA []byte) (int, error)
func (*Trigger_Threshold) Size ¶ added in v0.5.0
func (m *Trigger_Threshold) Size() (n int)