validation

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateJobSetFilter added in v0.4.48

func ValidateJobSetFilter(filter *api.JobSetFilter) error

func ValidateQueueAndJobSet added in v0.4.48

func ValidateQueueAndJobSet(req JobSetRequest) error

func ValidateSubmitRequest

func ValidateSubmitRequest(req *api.JobSubmitRequest, config configuration.SubmissionConfig) error

ValidateSubmitRequest ensures that the incoming api.JobSubmitRequest is well-formed. It achieves this by applying a series of validators that each check a single aspect of the request. Validators may choose to validate the whole obSubmitRequest or just a single JobSubmitRequestItem. This function will return the error from the first validator that fails, or nil if all validators pass.

Types

type JobSetRequest added in v0.4.48

type JobSetRequest interface {
	GetJobSetId() string
	GetQueue() string
}

Jump to

Keyboard shortcuts

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