validation

package
v1.18.6 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 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.

Jump to

Keyboard shortcuts

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