Documentation ¶
Index ¶
- Variables
- type MinimumClustersValidator
- func (*MinimumClustersValidator) Descriptor() ([]byte, []int)deprecated
- func (x *MinimumClustersValidator) GetMinClustersNum() uint32
- func (*MinimumClustersValidator) ProtoMessage()
- func (x *MinimumClustersValidator) ProtoReflect() protoreflect.Message
- func (x *MinimumClustersValidator) Reset()
- func (x *MinimumClustersValidator) String() string
- func (m *MinimumClustersValidator) Validate() error
- func (m *MinimumClustersValidator) ValidateAll() error
- type MinimumClustersValidatorMultiError
- type MinimumClustersValidatorValidationError
- func (e MinimumClustersValidatorValidationError) Cause() error
- func (e MinimumClustersValidatorValidationError) Error() string
- func (e MinimumClustersValidatorValidationError) ErrorName() string
- func (e MinimumClustersValidatorValidationError) Field() string
- func (e MinimumClustersValidatorValidationError) Key() bool
- func (e MinimumClustersValidatorValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MinimumClustersValidator ¶
type MinimumClustersValidator struct { // The minimal clusters threshold. Any CDS config update leading to less than // this number will be rejected. // Default value is 0. MinClustersNum uint32 `protobuf:"varint,1,opt,name=min_clusters_num,json=minClustersNum,proto3" json:"min_clusters_num,omitempty"` // contains filtered or unexported fields }
Validates a CDS config, and ensures that the number of clusters is above the set threshold.
func (*MinimumClustersValidator) Descriptor
deprecated
func (*MinimumClustersValidator) Descriptor() ([]byte, []int)
Deprecated: Use MinimumClustersValidator.ProtoReflect.Descriptor instead.
func (*MinimumClustersValidator) GetMinClustersNum ¶
func (x *MinimumClustersValidator) GetMinClustersNum() uint32
func (*MinimumClustersValidator) ProtoMessage ¶
func (*MinimumClustersValidator) ProtoMessage()
func (*MinimumClustersValidator) ProtoReflect ¶
func (x *MinimumClustersValidator) ProtoReflect() protoreflect.Message
func (*MinimumClustersValidator) Reset ¶
func (x *MinimumClustersValidator) Reset()
func (*MinimumClustersValidator) String ¶
func (x *MinimumClustersValidator) String() string
func (*MinimumClustersValidator) Validate ¶
func (m *MinimumClustersValidator) Validate() error
Validate checks the field values on MinimumClustersValidator 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 (*MinimumClustersValidator) ValidateAll ¶
func (m *MinimumClustersValidator) ValidateAll() error
ValidateAll checks the field values on MinimumClustersValidator 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 MinimumClustersValidatorMultiError, or nil if none found.
type MinimumClustersValidatorMultiError ¶
type MinimumClustersValidatorMultiError []error
MinimumClustersValidatorMultiError is an error wrapping multiple validation errors returned by MinimumClustersValidator.ValidateAll() if the designated constraints aren't met.
func (MinimumClustersValidatorMultiError) AllErrors ¶
func (m MinimumClustersValidatorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MinimumClustersValidatorMultiError) Error ¶
func (m MinimumClustersValidatorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MinimumClustersValidatorValidationError ¶
type MinimumClustersValidatorValidationError struct {
// contains filtered or unexported fields
}
MinimumClustersValidatorValidationError is the validation error returned by MinimumClustersValidator.Validate if the designated constraints aren't met.
func (MinimumClustersValidatorValidationError) Cause ¶
func (e MinimumClustersValidatorValidationError) Cause() error
Cause function returns cause value.
func (MinimumClustersValidatorValidationError) Error ¶
func (e MinimumClustersValidatorValidationError) Error() string
Error satisfies the builtin error interface
func (MinimumClustersValidatorValidationError) ErrorName ¶
func (e MinimumClustersValidatorValidationError) ErrorName() string
ErrorName returns error name.
func (MinimumClustersValidatorValidationError) Field ¶
func (e MinimumClustersValidatorValidationError) Field() string
Field function returns field value.
func (MinimumClustersValidatorValidationError) Key ¶
func (e MinimumClustersValidatorValidationError) Key() bool
Key function returns key value.
func (MinimumClustersValidatorValidationError) Reason ¶
func (e MinimumClustersValidatorValidationError) Reason() string
Reason function returns reason value.