validation

package
v1.3.1-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePetSet

func ValidatePetSet(petSet *apps.PetSet) field.ErrorList

ValidatePetSet validates a PetSet.

func ValidatePetSetName

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

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

func ValidatePetSetSpec

func ValidatePetSetSpec(spec *apps.PetSetSpec, fldPath *field.Path) field.ErrorList

ValidatePetSetSpec tests if required fields in the PetSet spec are set.

func ValidatePetSetStatusUpdate

func ValidatePetSetStatusUpdate(petSet, oldPetSet *apps.PetSet) field.ErrorList

ValidatePetSetStatusUpdate tests if required fields in the PetSet are set.

func ValidatePetSetUpdate

func ValidatePetSetUpdate(petSet, oldPetSet *apps.PetSet) field.ErrorList

ValidatePetSetUpdate tests if required fields in the PetSet are set.

func ValidatePodTemplateSpecForPetSet

func ValidatePodTemplateSpecForPetSet(template *api.PodTemplateSpec, selector labels.Selector, fldPath *field.Path) field.ErrorList

Validates the given template and ensures that it is in accordance with the desired selector.

Types

This section is empty.

Jump to

Keyboard shortcuts

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