package wrr_localityv3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/load_balancing_policies/wrr_locality/v3"

Index

Variables

var File_envoy_extensions_load_balancing_policies_wrr_locality_v3_wrr_locality_proto protoreflect.FileDescriptor

Types

type WrrLocality

type WrrLocality struct {

	// The child LB policy to create for endpoint-picking within the chosen locality.
	EndpointPickingPolicy *v3.LoadBalancingPolicy `protobuf:"bytes,1,opt,name=endpoint_picking_policy,json=endpointPickingPolicy,proto3" json:"endpoint_picking_policy,omitempty"`
	// contains filtered or unexported fields
}

Configuration for the wrr_locality LB policy. See the :ref:`load balancing architecture overview <arch_overview_load_balancing_types>` for more information.

func (*WrrLocality) Descriptor

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

Deprecated: Use WrrLocality.ProtoReflect.Descriptor instead.

func (*WrrLocality) GetEndpointPickingPolicy

func (x *WrrLocality) GetEndpointPickingPolicy() *v3.LoadBalancingPolicy

func (*WrrLocality) ProtoMessage

func (*WrrLocality) ProtoMessage()

func (*WrrLocality) ProtoReflect

func (x *WrrLocality) ProtoReflect() protoreflect.Message

func (*WrrLocality) Reset

func (x *WrrLocality) Reset()

func (*WrrLocality) String

func (x *WrrLocality) String() string

func (*WrrLocality) Validate

func (m *WrrLocality) Validate() error

Validate checks the field values on WrrLocality 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 (*WrrLocality) ValidateAll

func (m *WrrLocality) ValidateAll() error

ValidateAll checks the field values on WrrLocality 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 WrrLocalityMultiError, or nil if none found.

type WrrLocalityMultiError

type WrrLocalityMultiError []error

WrrLocalityMultiError is an error wrapping multiple validation errors returned by WrrLocality.ValidateAll() if the designated constraints aren't met.

func (WrrLocalityMultiError) AllErrors

func (m WrrLocalityMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WrrLocalityMultiError) Error

func (m WrrLocalityMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type WrrLocalityValidationError

type WrrLocalityValidationError struct {
	// contains filtered or unexported fields
}

WrrLocalityValidationError is the validation error returned by WrrLocality.Validate if the designated constraints aren't met.

func (WrrLocalityValidationError) Cause

Cause function returns cause value.

func (WrrLocalityValidationError) Error

Error satisfies the builtin error interface

func (WrrLocalityValidationError) ErrorName

func (e WrrLocalityValidationError) ErrorName() string

ErrorName returns error name.

func (WrrLocalityValidationError) Field

Field function returns field value.

func (WrrLocalityValidationError) Key

Key function returns key value.

func (WrrLocalityValidationError) Reason

Reason function returns reason value.

Source Files

wrr_locality.pb.go wrr_locality.pb.validate.go

Version
v1.32.4 (latest)
Published
Feb 3, 2025
Platform
linux/amd64
Imports
19 packages
Last checked
1 day ago

Tools for package owners.