validation

package
v1.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDaemon

func ValidateDaemon(controller *expapi.Daemon) errs.ValidationErrorList

ValidateDaemon tests if required fields in the daemon are set.

func ValidateDaemonName

func ValidateDaemonName(name string, prefix bool) (bool, string)

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

func ValidateDaemonSpec

func ValidateDaemonSpec(spec *expapi.DaemonSpec) errs.ValidationErrorList

ValidateDaemonSpec tests if required fields in the daemon spec are set.

func ValidateDaemonTemplateUpdate

func ValidateDaemonTemplateUpdate(oldPodTemplate, podTemplate *api.PodTemplateSpec) errs.ValidationErrorList

ValidateDaemonTemplateUpdate tests that certain fields in the daemon's pod template are not updated.

func ValidateDaemonUpdate

func ValidateDaemonUpdate(oldController, controller *expapi.Daemon) errs.ValidationErrorList

ValidateDaemonUpdate tests if required fields in the daemon are set.

func ValidateHorizontalPodAutoscaler

func ValidateHorizontalPodAutoscaler(autoscaler *expapi.HorizontalPodAutoscaler) errs.ValidationErrorList

func ValidateHorizontalPodAutoscalerName

func ValidateHorizontalPodAutoscalerName(name string, prefix bool) (bool, string)

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

func ValidateHorizontalPodAutoscalerUpdate

func ValidateHorizontalPodAutoscalerUpdate(newAutoscler, oldAutoscaler *expapi.HorizontalPodAutoscaler) errs.ValidationErrorList

func ValidateThirdPartyResource

func ValidateThirdPartyResource(obj *expapi.ThirdPartyResource) errs.ValidationErrorList

func ValidateThirdPartyResourceUpdate

func ValidateThirdPartyResourceUpdate(old, update *expapi.ThirdPartyResource) errs.ValidationErrorList

Types

This section is empty.

Jump to

Keyboard shortcuts

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