package envoy_config_overload_v2alpha

import "github.com/envoyproxy/go-control-plane/envoy/config/overload/v2alpha"

Index

Types

type OverloadAction

type OverloadAction struct {
	Name                 string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	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) ProtoMessage

func (*OverloadAction) ProtoMessage()

func (*OverloadAction) Reset

func (m *OverloadAction) Reset()

func (*OverloadAction) String

func (m *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, 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 {
	RefreshInterval      *duration.Duration `protobuf:"bytes,1,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"`
	ResourceMonitors     []*ResourceMonitor `protobuf:"bytes,2,rep,name=resource_monitors,json=resourceMonitors,proto3" json:"resource_monitors,omitempty"`
	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() *duration.Duration

func (*OverloadManager) GetResourceMonitors

func (m *OverloadManager) GetResourceMonitors() []*ResourceMonitor

func (*OverloadManager) ProtoMessage

func (*OverloadManager) ProtoMessage()

func (*OverloadManager) Reset

func (m *OverloadManager) Reset()

func (*OverloadManager) String

func (m *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, 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 {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are valid to be assigned to ConfigType:
	//	*ResourceMonitor_Config
	//	*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) GetConfig

func (m *ResourceMonitor) GetConfig() *_struct.Struct

Deprecated: Do not use.

func (*ResourceMonitor) GetConfigType

func (m *ResourceMonitor) GetConfigType() isResourceMonitor_ConfigType

func (*ResourceMonitor) GetName

func (m *ResourceMonitor) GetName() string

func (*ResourceMonitor) GetTypedConfig

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

func (*ResourceMonitor) ProtoMessage

func (*ResourceMonitor) ProtoMessage()

func (*ResourceMonitor) Reset

func (m *ResourceMonitor) Reset()

func (*ResourceMonitor) String

func (m *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, 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_Config

type ResourceMonitor_Config struct {
	Config *_struct.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"`
}

type ResourceMonitor_TypedConfig

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

type ThresholdTrigger

type ThresholdTrigger struct {
	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) ProtoMessage

func (*ThresholdTrigger) ProtoMessage()

func (*ThresholdTrigger) Reset

func (m *ThresholdTrigger) Reset()

func (*ThresholdTrigger) String

func (m *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, 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 {
	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) ProtoMessage

func (*Trigger) ProtoMessage()

func (*Trigger) Reset

func (m *Trigger) Reset()

func (*Trigger) String

func (m *Trigger) String() string

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

Source Files

overload.pb.go overload.pb.validate.go

Version
v0.9.5
Published
Apr 1, 2020
Platform
windows/amd64
Imports
18 packages
Last checked
1 hour ago

Tools for package owners.