Documentation
¶
Index ¶
- Constants
- func DeleteAllInProgressFilesByAPI(kind userconfig.Kind, apiName string) error
- func DeleteInProgressFile(jobKey spec.JobKey) error
- func ErrorConflictingFields(key string, keys ...string) error
- func ErrorInvalidJobKind(kind userconfig.Kind) error
- func ErrorJobHasAlreadyBeenStopped(kind userconfig.Kind) error
- func ErrorJobIsNotInProgress(kind userconfig.Kind) error
- func ErrorJobNotFound(jobKey spec.JobKey) error
- func ErrorSpecifyExactlyOneKey(key string, keys ...string) error
- func GetStatusCode(lastUpdatedMap map[string]time.Time) status.JobCode
- func GetWorkerCountsForJob(k8sJob kbatch.Job, pods []kcore.Pod) status.WorkerCounts
- func ListAllInProgressJobKeys(kind userconfig.Kind) ([]spec.JobKey, error)
- func ListAllInProgressJobKeysByAPI(kind userconfig.Kind, apiName string) ([]spec.JobKey, error)
- func LivenessFile() string
- func SetCompletedWithFailuresStatus(jobKey spec.JobKey) error
- func SetEnqueueFailedStatus(jobKey spec.JobKey) error
- func SetEnqueuingStatus(jobKey spec.JobKey) error
- func SetFailedStatus(jobKey spec.JobKey) error
- func SetRunningStatus(jobKey spec.JobKey) error
- func SetStatusForJob(jobKey spec.JobKey, jobStatus status.JobCode) error
- func SetStoppedStatus(jobKey spec.JobKey) error
- func SetSucceededStatus(jobKey spec.JobKey) error
- func SetTimedOutStatus(jobKey spec.JobKey) error
- func SetUnexpectedErrorStatus(jobKey spec.JobKey) error
- func SetWorkerErrorStatus(jobKey spec.JobKey) error
- func SetWorkerOOMStatus(jobKey spec.JobKey) error
- func UpdateLiveness(jobKey spec.JobKey) error
- type State
Constants ¶
View Source
const ( ErrInvalidJobKind = "job.invalid_kind" ErrJobNotFound = "job.not_found" ErrJobIsNotInProgress = "job.job_is_not_in_progress" ErrJobHasAlreadyBeenStopped = "job.job_has_already_been_stopped" ErrConflictingFields = "job.conflicting_fields" ErrSpecifyExactlyOneKey = "job.specify_exactly_one_key" )
Variables ¶
This section is empty.
Functions ¶
func DeleteAllInProgressFilesByAPI ¶
func DeleteAllInProgressFilesByAPI(kind userconfig.Kind, apiName string) error
func DeleteInProgressFile ¶
func ErrorConflictingFields ¶
func ErrorInvalidJobKind ¶
func ErrorInvalidJobKind(kind userconfig.Kind) error
func ErrorJobHasAlreadyBeenStopped ¶
func ErrorJobHasAlreadyBeenStopped(kind userconfig.Kind) error
func ErrorJobIsNotInProgress ¶
func ErrorJobIsNotInProgress(kind userconfig.Kind) error
func ErrorJobNotFound ¶
func GetStatusCode ¶
Doesn't assume only status files are present. The order below matters.
func GetWorkerCountsForJob ¶
func ListAllInProgressJobKeys ¶
func ListAllInProgressJobKeys(kind userconfig.Kind) ([]spec.JobKey, error)
func LivenessFile ¶
func LivenessFile() string
func SetEnqueueFailedStatus ¶
func SetEnqueuingStatus ¶
func SetFailedStatus ¶
func SetRunningStatus ¶
func SetStoppedStatus ¶
func SetSucceededStatus ¶
func SetTimedOutStatus ¶
func SetWorkerErrorStatus ¶
func SetWorkerOOMStatus ¶
func UpdateLiveness ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.