validation

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: Apache-2.0 Imports: 13 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 ValidateDaemonSet

func ValidateDaemonSet(controller *extensions.DaemonSet) errs.ValidationErrorList

ValidateDaemonSet tests if required fields in the DaemonSet are set.

func ValidateDaemonSetName

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

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

func ValidateDaemonSetSpec

func ValidateDaemonSetSpec(spec *extensions.DaemonSetSpec) errs.ValidationErrorList

ValidateDaemonSetSpec tests if required fields in the DaemonSetSpec are set.

func ValidateDaemonSetStatusUpdate

func ValidateDaemonSetStatusUpdate(controller, oldController *extensions.DaemonSet) errs.ValidationErrorList

ValidateDaemonSetStatus validates tests if required fields in the DaemonSet Status section

func ValidateDaemonSetTemplateUpdate

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

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

func ValidateDaemonSetUpdate

func ValidateDaemonSetUpdate(oldController, controller *extensions.DaemonSet) errs.ValidationErrorList

ValidateDaemonSetUpdate tests if required fields in the DaemonSet are set.

func ValidateDeployment

func ValidateDeployment(obj *extensions.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 *extensions.DeploymentSpec) errs.ValidationErrorList

Validates given deployment spec.

func ValidateDeploymentStrategy

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

func ValidateDeploymentUpdate

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

func ValidateHorizontalPodAutoscaler

func ValidateHorizontalPodAutoscaler(autoscaler *extensions.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 ValidateHorizontalPodAutoscalerStatusUpdate

func ValidateHorizontalPodAutoscalerStatusUpdate(controller, oldController *extensions.HorizontalPodAutoscaler) errs.ValidationErrorList

func ValidateHorizontalPodAutoscalerUpdate

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

func ValidateIngress

func ValidateIngress(ingress *extensions.Ingress) errs.ValidationErrorList

ValidateIngress tests if required fields in the Ingress are set.

func ValidateIngressName

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

ValidateIngressName validates that the given name can be used as an Ingress name.

func ValidateIngressSpec

func ValidateIngressSpec(spec *extensions.IngressSpec) errs.ValidationErrorList

ValidateIngressSpec tests if required fields in the IngressSpec are set.

func ValidateIngressStatusUpdate

func ValidateIngressStatusUpdate(ingress, oldIngress *extensions.Ingress) errs.ValidationErrorList

ValidateIngressStatusUpdate tests if required fields in the Ingress are set when updating status.

func ValidateIngressUpdate

func ValidateIngressUpdate(oldIngress, ingress *extensions.Ingress) errs.ValidationErrorList

ValidateIngressUpdate tests if required fields in the Ingress are set.

func ValidateJob

func ValidateJob(job *extensions.Job) errs.ValidationErrorList

func ValidateJobSpec

func ValidateJobSpec(spec *extensions.JobSpec) errs.ValidationErrorList

func ValidateJobSpecUpdate

func ValidateJobSpecUpdate(oldSpec, spec extensions.JobSpec) errs.ValidationErrorList

func ValidateJobStatus

func ValidateJobStatus(status *extensions.JobStatus) errs.ValidationErrorList

func ValidateJobStatusUpdate

func ValidateJobStatusUpdate(oldStatus, status extensions.JobStatus) errs.ValidationErrorList

func ValidateJobUpdate

func ValidateJobUpdate(oldJob, job *extensions.Job) errs.ValidationErrorList

func ValidateJobUpdateStatus

func ValidateJobUpdateStatus(oldJob, job *extensions.Job) errs.ValidationErrorList

func ValidatePositiveIntOrPercent

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

func ValidateRollingUpdateDeployment

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

func ValidateThirdPartyResourceDataUpdate

func ValidateThirdPartyResourceDataUpdate(old, update *extensions.ThirdPartyResourceData) errs.ValidationErrorList

func ValidateThirdPartyResourceUpdate

func ValidateThirdPartyResourceUpdate(old, update *extensions.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