envoy_config_overload_v3

package
v1.5.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthOverload        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOverload          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOverload = fmt.Errorf("proto: unexpected end of group")
)

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"`
	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

func (m *OverloadAction) Marshal() (dAtA []byte, err error)

func (*OverloadAction) MarshalTo

func (m *OverloadAction) MarshalTo(dAtA []byte) (int, error)

func (*OverloadAction) MarshalToSizedBuffer

func (m *OverloadAction) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OverloadAction) ProtoMessage

func (*OverloadAction) ProtoMessage()

func (*OverloadAction) Reset

func (m *OverloadAction) Reset()

func (*OverloadAction) Size

func (m *OverloadAction) Size() (n int)

func (*OverloadAction) String

func (m *OverloadAction) String() string

func (*OverloadAction) Unmarshal

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

func (m *OverloadAction) XXX_DiscardUnknown()

func (*OverloadAction) XXX_Marshal

func (m *OverloadAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OverloadAction) XXX_Merge

func (m *OverloadAction) XXX_Merge(src proto.Message)

func (*OverloadAction) XXX_Size

func (m *OverloadAction) XXX_Size() int

func (*OverloadAction) XXX_Unmarshal

func (m *OverloadAction) XXX_Unmarshal(b []byte) error

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

Cause function returns cause value.

func (OverloadActionValidationError) Error

Error satisfies the builtin error interface

func (OverloadActionValidationError) ErrorName

func (e OverloadActionValidationError) ErrorName() string

ErrorName returns error name.

func (OverloadActionValidationError) Field

Field function returns field value.

func (OverloadActionValidationError) Key

Key function returns key value.

func (OverloadActionValidationError) Reason

Reason function returns reason value.

type OverloadManager

type OverloadManager struct {
	// The interval for refreshing resource usage.
	RefreshInterval *types.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"`
	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

func (m *OverloadManager) Marshal() (dAtA []byte, err error)

func (*OverloadManager) MarshalTo

func (m *OverloadManager) MarshalTo(dAtA []byte) (int, error)

func (*OverloadManager) MarshalToSizedBuffer

func (m *OverloadManager) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OverloadManager) ProtoMessage

func (*OverloadManager) ProtoMessage()

func (*OverloadManager) Reset

func (m *OverloadManager) Reset()

func (*OverloadManager) Size

func (m *OverloadManager) Size() (n int)

func (*OverloadManager) String

func (m *OverloadManager) String() string

func (*OverloadManager) Unmarshal

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

func (m *OverloadManager) XXX_DiscardUnknown()

func (*OverloadManager) XXX_Marshal

func (m *OverloadManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OverloadManager) XXX_Merge

func (m *OverloadManager) XXX_Merge(src proto.Message)

func (*OverloadManager) XXX_Size

func (m *OverloadManager) XXX_Size() int

func (*OverloadManager) XXX_Unmarshal

func (m *OverloadManager) XXX_Unmarshal(b []byte) error

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

Cause function returns cause value.

func (OverloadManagerValidationError) Error

Error satisfies the builtin error interface

func (OverloadManagerValidationError) ErrorName

func (e OverloadManagerValidationError) ErrorName() string

ErrorName returns error name.

func (OverloadManagerValidationError) Field

Field function returns field value.

func (OverloadManagerValidationError) Key

Key function returns key value.

func (OverloadManagerValidationError) Reason

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. 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_TypedConfig
	ConfigType           isResourceMonitor_ConfigType `protobuf_oneof:"config_type"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

func (*ResourceMonitor) Descriptor

func (*ResourceMonitor) Descriptor() ([]byte, []int)

func (*ResourceMonitor) GetConfigType

func (m *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType

func (*ResourceMonitor) GetName

func (m *ResourceMonitor) GetName() string

func (*ResourceMonitor) GetTypedConfig

func (m *ResourceMonitor) GetTypedConfig() *types.Any

func (*ResourceMonitor) Marshal

func (m *ResourceMonitor) Marshal() (dAtA []byte, err error)

func (*ResourceMonitor) MarshalTo

func (m *ResourceMonitor) MarshalTo(dAtA []byte) (int, error)

func (*ResourceMonitor) MarshalToSizedBuffer

func (m *ResourceMonitor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceMonitor) ProtoMessage

func (*ResourceMonitor) ProtoMessage()

func (*ResourceMonitor) Reset

func (m *ResourceMonitor) Reset()

func (*ResourceMonitor) Size

func (m *ResourceMonitor) Size() (n int)

func (*ResourceMonitor) String

func (m *ResourceMonitor) String() string

func (*ResourceMonitor) Unmarshal

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

func (m *ResourceMonitor) XXX_DiscardUnknown()

func (*ResourceMonitor) XXX_Marshal

func (m *ResourceMonitor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceMonitor) XXX_Merge

func (m *ResourceMonitor) XXX_Merge(src proto.Message)

func (*ResourceMonitor) XXX_OneofWrappers

func (*ResourceMonitor) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ResourceMonitor) XXX_Size

func (m *ResourceMonitor) XXX_Size() int

func (*ResourceMonitor) XXX_Unmarshal

func (m *ResourceMonitor) XXX_Unmarshal(b []byte) error

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

Cause function returns cause value.

func (ResourceMonitorValidationError) Error

Error satisfies the builtin error interface

func (ResourceMonitorValidationError) ErrorName

func (e ResourceMonitorValidationError) ErrorName() string

ErrorName returns error name.

func (ResourceMonitorValidationError) Field

Field function returns field value.

func (ResourceMonitorValidationError) Key

Key function returns key value.

func (ResourceMonitorValidationError) Reason

Reason function returns reason value.

type ResourceMonitor_TypedConfig

type ResourceMonitor_TypedConfig struct {
	TypedConfig *types.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof" json:"typed_config,omitempty"`
}

func (*ResourceMonitor_TypedConfig) MarshalTo

func (m *ResourceMonitor_TypedConfig) MarshalTo(dAtA []byte) (int, error)

func (*ResourceMonitor_TypedConfig) MarshalToSizedBuffer

func (m *ResourceMonitor_TypedConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceMonitor_TypedConfig) Size

func (m *ResourceMonitor_TypedConfig) Size() (n int)

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

func (m *ThresholdTrigger) Marshal() (dAtA []byte, err error)

func (*ThresholdTrigger) MarshalTo

func (m *ThresholdTrigger) MarshalTo(dAtA []byte) (int, error)

func (*ThresholdTrigger) MarshalToSizedBuffer

func (m *ThresholdTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ThresholdTrigger) ProtoMessage

func (*ThresholdTrigger) ProtoMessage()

func (*ThresholdTrigger) Reset

func (m *ThresholdTrigger) Reset()

func (*ThresholdTrigger) Size

func (m *ThresholdTrigger) Size() (n int)

func (*ThresholdTrigger) String

func (m *ThresholdTrigger) String() string

func (*ThresholdTrigger) Unmarshal

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

func (m *ThresholdTrigger) XXX_DiscardUnknown()

func (*ThresholdTrigger) XXX_Marshal

func (m *ThresholdTrigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThresholdTrigger) XXX_Merge

func (m *ThresholdTrigger) XXX_Merge(src proto.Message)

func (*ThresholdTrigger) XXX_Size

func (m *ThresholdTrigger) XXX_Size() int

func (*ThresholdTrigger) XXX_Unmarshal

func (m *ThresholdTrigger) XXX_Unmarshal(b []byte) error

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

Cause function returns cause value.

func (ThresholdTriggerValidationError) Error

Error satisfies the builtin error interface

func (ThresholdTriggerValidationError) ErrorName

ErrorName returns error name.

func (ThresholdTriggerValidationError) Field

Field function returns field value.

func (ThresholdTriggerValidationError) Key

Key function returns key value.

func (ThresholdTriggerValidationError) Reason

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 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) Descriptor() ([]byte, []int)

func (*Trigger) GetName

func (m *Trigger) GetName() string

func (*Trigger) GetThreshold

func (m *Trigger) GetThreshold() *ThresholdTrigger

func (*Trigger) GetTriggerOneof

func (m *Trigger) GetTriggerOneof() isTrigger_TriggerOneof

func (*Trigger) Marshal

func (m *Trigger) Marshal() (dAtA []byte, err error)

func (*Trigger) MarshalTo

func (m *Trigger) MarshalTo(dAtA []byte) (int, error)

func (*Trigger) MarshalToSizedBuffer

func (m *Trigger) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Trigger) ProtoMessage

func (*Trigger) ProtoMessage()

func (*Trigger) Reset

func (m *Trigger) Reset()

func (*Trigger) Size

func (m *Trigger) Size() (n int)

func (*Trigger) String

func (m *Trigger) String() string

func (*Trigger) Unmarshal

func (m *Trigger) Unmarshal(dAtA []byte) error

func (*Trigger) Validate

func (m *Trigger) Validate() error

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

func (m *Trigger) XXX_DiscardUnknown()

func (*Trigger) XXX_Marshal

func (m *Trigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Trigger) XXX_Merge

func (m *Trigger) XXX_Merge(src proto.Message)

func (*Trigger) XXX_OneofWrappers

func (*Trigger) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Trigger) XXX_Size

func (m *Trigger) XXX_Size() int

func (*Trigger) XXX_Unmarshal

func (m *Trigger) XXX_Unmarshal(b []byte) error

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_Threshold

type Trigger_Threshold struct {
	Threshold *ThresholdTrigger `protobuf:"bytes,2,opt,name=threshold,proto3,oneof" json:"threshold,omitempty"`
}

func (*Trigger_Threshold) MarshalTo

func (m *Trigger_Threshold) MarshalTo(dAtA []byte) (int, error)

func (*Trigger_Threshold) MarshalToSizedBuffer

func (m *Trigger_Threshold) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Trigger_Threshold) Size

func (m *Trigger_Threshold) Size() (n int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL