minimum_clustersv3

package
v0.0.0-...-c499cad Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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

Cause function returns cause value.

func (MinimumClustersValidatorValidationError) Error

Error satisfies the builtin error interface

func (MinimumClustersValidatorValidationError) ErrorName

ErrorName returns error name.

func (MinimumClustersValidatorValidationError) Field

Field function returns field value.

func (MinimumClustersValidatorValidationError) Key

Key function returns key value.

func (MinimumClustersValidatorValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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