validation

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 12 Imported by: 0

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