forked from hashicorp/nomad
/
worker_string_schedulerworkerstatus.go
31 lines (25 loc) · 1.13 KB
/
worker_string_schedulerworkerstatus.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Code generated by "stringer -trimprefix=Workload -output worker_string_schedulerworkerstatus.go -linecomment -type=SchedulerWorkerStatus"; DO NOT EDIT.
package nomad
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[WorkloadUnknownStatus-0]
_ = x[WorkloadRunning-1]
_ = x[WorkloadWaitingToDequeue-2]
_ = x[WorkloadWaitingForRaft-3]
_ = x[WorkloadScheduling-4]
_ = x[WorkloadSubmitting-5]
_ = x[WorkloadBackoff-6]
_ = x[WorkloadStopped-7]
_ = x[WorkloadPaused-8]
}
const _SchedulerWorkerStatus_name = "UnknownStatusRunningWaitingToDequeueWaitingForRaftSchedulingSubmittingBackoffStoppedPaused"
var _SchedulerWorkerStatus_index = [...]uint8{0, 13, 20, 36, 50, 60, 70, 77, 84, 90}
func (i SchedulerWorkerStatus) String() string {
if i < 0 || i >= SchedulerWorkerStatus(len(_SchedulerWorkerStatus_index)-1) {
return "SchedulerWorkerStatus(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _SchedulerWorkerStatus_name[_SchedulerWorkerStatus_index[i]:_SchedulerWorkerStatus_index[i+1]]
}