Documentation
¶
Index ¶
- Variables
- type SelectorConfig
- func (*SelectorConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SelectorConfig) GetBalancerName() string
- func (x *SelectorConfig) GetCustomize() *structpb.Struct
- func (x *SelectorConfig) GetFilterName() string
- func (x *SelectorConfig) GetStrategy() string
- func (x *SelectorConfig) GetVersion() string
- func (*SelectorConfig) ProtoMessage()
- func (x *SelectorConfig) ProtoReflect() protoreflect.Message
- func (x *SelectorConfig) Reset()
- func (x *SelectorConfig) String() string
- func (m *SelectorConfig) Validate() error
- func (m *SelectorConfig) ValidateAll() error
- type SelectorConfigMultiError
- type SelectorConfigValidationError
- func (e SelectorConfigValidationError) Cause() error
- func (e SelectorConfigValidationError) Error() string
- func (e SelectorConfigValidationError) ErrorName() string
- func (e SelectorConfigValidationError) Field() string
- func (e SelectorConfigValidationError) Key() bool
- func (e SelectorConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_runtime_selector_v1_selector_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type SelectorConfig ¶
type SelectorConfig struct {
// version is a filter for the service version.
// e.g., "v1.0.0"
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// strategy specifies the load balancing strategy (e.g., "round_robin", "random", "consistent_hash").
Strategy *string `protobuf:"bytes,2,opt,name=strategy,proto3,oneof" json:"strategy,omitempty"`
// balancer_name specifies the name of the load balancer to use.
BalancerName *string `protobuf:"bytes,3,opt,name=balancer_name,proto3,oneof" json:"balancer_name,omitempty"`
// filter_name specifies the name of the filter to use for endpoint selection.
FilterName *string `protobuf:"bytes,4,opt,name=filter_name,proto3,oneof" json:"filter_name,omitempty"`
// custom_config allows for custom configuration for the selector.
// It can be used for non-standard or user-defined selector implementations.
Customize *structpb.Struct `protobuf:"bytes,100,opt,name=customize,proto3,oneof" json:"customize,omitempty"`
// contains filtered or unexported fields
}
SelectorConfig defines the configuration for a client-side selector (e.g., load balancer).
func (*SelectorConfig) Descriptor
deprecated
func (*SelectorConfig) Descriptor() ([]byte, []int)
Deprecated: Use SelectorConfig.ProtoReflect.Descriptor instead.
func (*SelectorConfig) GetBalancerName ¶
func (x *SelectorConfig) GetBalancerName() string
func (*SelectorConfig) GetCustomize ¶
func (x *SelectorConfig) GetCustomize() *structpb.Struct
func (*SelectorConfig) GetFilterName ¶
func (x *SelectorConfig) GetFilterName() string
func (*SelectorConfig) GetStrategy ¶
func (x *SelectorConfig) GetStrategy() string
func (*SelectorConfig) GetVersion ¶
func (x *SelectorConfig) GetVersion() string
func (*SelectorConfig) ProtoMessage ¶
func (*SelectorConfig) ProtoMessage()
func (*SelectorConfig) ProtoReflect ¶
func (x *SelectorConfig) ProtoReflect() protoreflect.Message
func (*SelectorConfig) Reset ¶
func (x *SelectorConfig) Reset()
func (*SelectorConfig) String ¶
func (x *SelectorConfig) String() string
func (*SelectorConfig) Validate ¶
func (m *SelectorConfig) Validate() error
Validate checks the field values on SelectorConfig 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 (*SelectorConfig) ValidateAll ¶
func (m *SelectorConfig) ValidateAll() error
ValidateAll checks the field values on SelectorConfig 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 SelectorConfigMultiError, or nil if none found.
type SelectorConfigMultiError ¶
type SelectorConfigMultiError []error
SelectorConfigMultiError is an error wrapping multiple validation errors returned by SelectorConfig.ValidateAll() if the designated constraints aren't met.
func (SelectorConfigMultiError) AllErrors ¶
func (m SelectorConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SelectorConfigMultiError) Error ¶
func (m SelectorConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SelectorConfigValidationError ¶
type SelectorConfigValidationError struct {
// contains filtered or unexported fields
}
SelectorConfigValidationError is the validation error returned by SelectorConfig.Validate if the designated constraints aren't met.
func (SelectorConfigValidationError) Cause ¶
func (e SelectorConfigValidationError) Cause() error
Cause function returns cause value.
func (SelectorConfigValidationError) Error ¶
func (e SelectorConfigValidationError) Error() string
Error satisfies the builtin error interface
func (SelectorConfigValidationError) ErrorName ¶
func (e SelectorConfigValidationError) ErrorName() string
ErrorName returns error name.
func (SelectorConfigValidationError) Field ¶
func (e SelectorConfigValidationError) Field() string
Field function returns field value.
func (SelectorConfigValidationError) Key ¶
func (e SelectorConfigValidationError) Key() bool
Key function returns key value.
func (SelectorConfigValidationError) Reason ¶
func (e SelectorConfigValidationError) Reason() string
Reason function returns reason value.