validation

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 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 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