31 lines
959 B
Go
31 lines
959 B
Go
// Code generated by "stringer -trimprefix=Worker -output worker_string_workerstatus.go -linecomment -type=WorkerStatus"; 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[WorkerUnknownStatus-0]
|
|
_ = x[WorkerStarting-1]
|
|
_ = x[WorkerStarted-2]
|
|
_ = x[WorkerPausing-3]
|
|
_ = x[WorkerPaused-4]
|
|
_ = x[WorkerResuming-5]
|
|
_ = x[WorkerStopping-6]
|
|
_ = x[WorkerStopped-7]
|
|
}
|
|
|
|
const _WorkerStatus_name = "UnknownStartingStartedPausingPausedResumingStoppingStopped"
|
|
|
|
var _WorkerStatus_index = [...]uint8{0, 7, 15, 22, 29, 35, 43, 51, 58}
|
|
|
|
func (i WorkerStatus) String() string {
|
|
if i < 0 || i >= WorkerStatus(len(_WorkerStatus_index)-1) {
|
|
return "WorkerStatus(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _WorkerStatus_name[_WorkerStatus_index[i]:_WorkerStatus_index[i+1]]
|
|
}
|