apivalidator

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CronValid

func CronValid(fl validator.FieldLevel) bool

CronValid can be used to check whether the given cron valid.

func DurationValid

func DurationValid(fl validator.FieldLevel) bool

DurationValid can be used to check whether the given duration valid.

func MapSelectorsValid

func MapSelectorsValid(fl validator.FieldLevel) bool

MapSelectorsValid can be used to check whether map selectors is valid.

func NameValid

func NameValid(fl validator.FieldLevel) bool

NameValid can be used to check whether the given name is valid.

func NamespaceSelectorsValid

func NamespaceSelectorsValid(fl validator.FieldLevel) bool

NamespaceSelectorsValid can be used to check whether namespace selectors is valid.

func PhaseSelectorsValid

func PhaseSelectorsValid(fl validator.FieldLevel) bool

PhaseSelectorsValid can be used to check whether phase selectors is valid.

func PhysicalMachineValid

func PhysicalMachineValid(fl validator.FieldLevel) bool

PhysicalMachineValid can be used to check whether the physicalMachine name is valid.

func PodsValid

func PodsValid(fl validator.FieldLevel) bool

PodsValid can be used to check whether the pod name is valid.

func RequiredFieldEqualValid

func RequiredFieldEqualValid(fl validator.FieldLevel) bool

RequiredFieldEqualValid can be used to check the required field is not empty.

func RequirementSelectorsValid

func RequirementSelectorsValid(fl validator.FieldLevel) bool

RequirementSelectorsValid can be used to check whether label requirement selectors is valid.

func ValueValid

func ValueValid(fl validator.FieldLevel) bool

ValueValid can be used to check whether the mode value is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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