validation

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConditionTrue

func IsConditionTrue(list []batch.JobCondition, cType batch.JobConditionType) bool

func IsJobComplete

func IsJobComplete(job *batch.Job) bool

func IsJobFailed

func IsJobFailed(job *batch.Job) bool

func IsJobFinished

func IsJobFinished(job *batch.Job) bool

func ValidateCronJobCreate

func ValidateCronJobCreate(cronJob *batch.CronJob) field.ErrorList

ValidateCronJobCreate validates a CronJob on creation and returns an ErrorList with any errors.

func ValidateCronJobUpdate

func ValidateCronJobUpdate(job, oldJob *batch.CronJob) field.ErrorList

ValidateCronJobUpdate validates an update to a CronJob and returns an ErrorList with any errors.

func ValidateJob

func ValidateJob(job *batch.Job) field.ErrorList

ValidateJob validates a Job and returns an ErrorList with any errors.

func ValidateJobSpec

func ValidateJobSpec(spec *batch.JobSpec, fldPath *field.Path) field.ErrorList

ValidateJobSpec validates a JobSpec and returns an ErrorList with any errors.

func ValidateJobSpecUpdate

func ValidateJobSpecUpdate(spec, oldSpec batch.JobSpec, fldPath *field.Path) field.ErrorList

ValidateJobSpecUpdate validates an update to a JobSpec and returns an ErrorList with any errors.

func ValidateJobStatusUpdate

func ValidateJobStatusUpdate(job, oldJob *batch.Job) field.ErrorList

ValidateJobStatusUpdate validates an update to a JobStatus and returns an ErrorList with any errors.

func ValidateJobUpdate

func ValidateJobUpdate(job, oldJob *batch.Job) field.ErrorList

ValidateJobUpdate validates an update to a Job and returns an ErrorList with any errors.

func ValidateJobUpdateStatus

func ValidateJobUpdateStatus(job, oldJob *batch.Job) field.ErrorList

ValidateJobUpdateStatus validates an update to the status of a Job and returns an ErrorList with any errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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