validation

package
v1.1.0-alpha.0....-2e2def3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotMoreThan100Percent

func IsNotMoreThan100Percent(intOrStringValue util.IntOrString, fieldName string) errs.ValidationErrorList

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 ValidateDeployment

func ValidateDeployment(obj *expapi.Deployment) errs.ValidationErrorList

func ValidateDeploymentName

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

Validates that the given name can be used as a deployment name.

func ValidateDeploymentSpec

func ValidateDeploymentSpec(spec *expapi.DeploymentSpec) errs.ValidationErrorList

Validates given deployment spec.

func ValidateDeploymentStrategy

func ValidateDeploymentStrategy(strategy *expapi.DeploymentStrategy, fieldName string) errs.ValidationErrorList

func ValidateDeploymentUpdate

func ValidateDeploymentUpdate(old, update *expapi.Deployment) errs.ValidationErrorList

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 ValidatePositiveIntOrPercent

func ValidatePositiveIntOrPercent(intOrPercent util.IntOrString, fieldName string) errs.ValidationErrorList

func ValidateRollingUpdateDeployment

func ValidateRollingUpdateDeployment(rollingUpdate *expapi.RollingUpdateDeployment, fieldName string) errs.ValidationErrorList

func ValidateThirdPartyResource

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

func ValidateThirdPartyResourceDataUpdate

func ValidateThirdPartyResourceDataUpdate(old, update *expapi.ThirdPartyResourceData) 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