validation

package
Version: v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePodPreset

func ValidatePodPreset(pip *settings.PodPreset) field.ErrorList

ValidatePodPreset validates a PodPreset.

func ValidatePodPresetName

func ValidatePodPresetName(name string, prefix bool) []string

ValidatePodPresetName can be used to check whether the given PodPreset name is valid. Prefix indicates this name will be used as part of generation, in which case trailing dashes are allowed.

func ValidatePodPresetSpec

func ValidatePodPresetSpec(spec *settings.PodPresetSpec, fldPath *field.Path) field.ErrorList

ValidatePodPresetSpec tests if required fields in the PodPreset spec are set.

func ValidatePodPresetUpdate

func ValidatePodPresetUpdate(pip, oldPip *settings.PodPreset) field.ErrorList

ValidatePodPresetUpdate tests if required fields in the PodPreset are set.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL