validation

package
v1.14.8 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const UninitializedStatusUpdateErrorMsg string = `must not update status when the object is uninitialized`

Variables

View Source
var FieldManagerMaxLength = 128

Functions

func ValidateCreateOptions added in v1.12.6

func ValidateCreateOptions(options *metav1.CreateOptions) field.ErrorList

func ValidateDeleteOptions

func ValidateDeleteOptions(options *metav1.DeleteOptions) field.ErrorList

func ValidateDryRun added in v1.14.1

func ValidateDryRun(fldPath *field.Path, dryRun []string) field.ErrorList

ValidateDryRun validates that a dryRun query param only contains allowed values.

func ValidateFieldManager added in v1.14.1

func ValidateFieldManager(fieldManager string, fldPath *field.Path) field.ErrorList

ValidateFieldManager valides that the fieldManager is the proper length and only has printable characters.

func ValidateLabelName

func ValidateLabelName(labelName string, fldPath *field.Path) field.ErrorList

ValidateLabelName validates that the label name is correctly defined.

func ValidateLabelSelector

func ValidateLabelSelector(ps *metav1.LabelSelector, fldPath *field.Path) field.ErrorList

func ValidateLabelSelectorRequirement

func ValidateLabelSelectorRequirement(sr metav1.LabelSelectorRequirement, fldPath *field.Path) field.ErrorList

func ValidateLabels

func ValidateLabels(labels map[string]string, fldPath *field.Path) field.ErrorList

ValidateLabels validates that a set of labels are correctly defined.

func ValidatePatchOptions added in v1.14.1

func ValidatePatchOptions(options *metav1.PatchOptions, patchType types.PatchType) field.ErrorList

func ValidateUpdateOptions added in v1.12.6

func ValidateUpdateOptions(options *metav1.UpdateOptions) field.ErrorList

Types

This section is empty.

Jump to

Keyboard shortcuts

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