Documentation
¶
Index ¶
- Constants
- func ValidateJobSetFilter(filter *api.JobSetFilter) error
- func ValidateQueueAndJobSet(req JobSetRequest) error
- func ValidateReason(req ReasonRequest) error
- func ValidateSubmitRequest(req *api.JobSubmitRequest, config configuration.SubmissionConfig) error
- type JobSetRequest
- type ReasonRequest
Constants ¶
View Source
const MaxReasonBytes = 50
Variables ¶
This section is empty.
Functions ¶
func ValidateJobSetFilter ¶
func ValidateJobSetFilter(filter *api.JobSetFilter) error
func ValidateQueueAndJobSet ¶
func ValidateQueueAndJobSet(req JobSetRequest) error
func ValidateReason ¶ added in v0.22.3
func ValidateReason(req ReasonRequest) error
ValidateReason rejects reasons longer than MaxReasonBytes. Length is measured in bytes, consistent with util.Truncate which slices reasons by byte.
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 ¶
type ReasonRequest ¶ added in v0.22.3
type ReasonRequest interface {
GetReason() string
}
Click to show internal directories.
Click to hide internal directories.