github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/model/v1beta1/jobstatetype_string.go (about) 1 // Code generated by "stringer -type=JobStateType --trimprefix=JobState"; DO NOT EDIT. 2 3 package v1beta1 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[jobStateUnknown-0] 12 _ = x[JobStateBidding-1] 13 _ = x[JobStateWaiting-2] 14 _ = x[JobStateRunning-3] 15 _ = x[JobStateVerifying-4] 16 _ = x[JobStateCancelled-5] 17 _ = x[JobStateError-6] 18 _ = x[JobStateCompleted-7] 19 _ = x[jobStateDone-8] 20 } 21 22 const _JobStateType_name = "jobStateUnknownBiddingWaitingRunningVerifyingCancelledErrorCompletedjobStateDone" 23 24 var _JobStateType_index = [...]uint8{0, 15, 22, 29, 36, 45, 54, 59, 68, 80} 25 26 func (i JobStateType) String() string { 27 if i < 0 || i >= JobStateType(len(_JobStateType_index)-1) { 28 return "JobStateType(" + strconv.FormatInt(int64(i), 10) + ")" 29 } 30 return _JobStateType_name[_JobStateType_index[i]:_JobStateType_index[i+1]] 31 }