validation

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNebulaClusterHA added in v1.7.0

func IsNebulaClusterHA(nc *v1alpha1.NebulaCluster) bool

func ValidateMinLessThanMax added in v1.8.1

func ValidateMinLessThanMax(fldPath *field.Path, minReplicas, maxReplicas int) *field.Error

ValidateMinLessThanMax validates that the minimum replicas is less then or equal to the maximum replicas

func ValidateMinMaxReplica added in v1.8.1

func ValidateMinMaxReplica(fldPath *field.Path, minReplicas, maxReplicas int) (allErrs field.ErrorList)

ValidateMinReplicasGraphd validates replicas min value for Graphd

func ValidateMinReplicas

func ValidateMinReplicas(fldPath *field.Path, actualValue, minValue int, bHaMode bool) *field.Error

ValidateMinReplicas validates replicas min value

func ValidateMinReplicasGraphd

func ValidateMinReplicasGraphd(fldPath *field.Path, replicas int, bHaMode bool) (allErrs field.ErrorList)

ValidateMinReplicasGraphd validates replicas min value for Graphd

func ValidateMinReplicasMetad

func ValidateMinReplicasMetad(fldPath *field.Path, replicas int, bHaMode bool) (allErrs field.ErrorList)

ValidateMinReplicasMetad validates replicas min value for Metad

func ValidateMinReplicasStoraged

func ValidateMinReplicasStoraged(fldPath *field.Path, replicas int, bHaMode bool) (allErrs field.ErrorList)

ValidateMinReplicasStoraged validates replicas min value for Storaged

func ValidateOddNumber

func ValidateOddNumber(fldPath *field.Path, value int) *field.Error

ValidateOddNumber validates odd number

Types

This section is empty.

Jump to

Keyboard shortcuts

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