validation

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidatePriorityClassName = apivalidation.NameIsDNSSubdomain

ValidatePriorityClassName can be used to check whether the given priority class name is valid.

Functions

func ValidatePriorityClass

func ValidatePriorityClass(pc *scheduling.PriorityClass) field.ErrorList

ValidatePriorityClass tests whether required fields in the PriorityClass are set correctly.

func ValidatePriorityClassUpdate

func ValidatePriorityClassUpdate(pc, oldPc *scheduling.PriorityClass) field.ErrorList

ValidatePriorityClassUpdate tests if required fields in the PriorityClass are set and are valid. PriorityClass does not allow updating Name, and Value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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