github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/model/job_state_string.go (about) 1 // Code generated by "stringer -type=JobStateType --trimprefix=JobState --output job_state_string.go"; DO NOT EDIT. 2 3 package model 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[JobStateNew-0] 12 _ = x[JobStateInProgress-1] 13 _ = x[JobStateCancelled-2] 14 _ = x[JobStateError-3] 15 _ = x[JobStatePartialError-4] 16 _ = x[JobStateCompleted-5] 17 } 18 19 const _JobStateType_name = "NewInProgressCancelledErrorPartialErrorCompleted" 20 21 var _JobStateType_index = [...]uint8{0, 3, 13, 22, 27, 39, 48} 22 23 func (i JobStateType) String() string { 24 if i < 0 || i >= JobStateType(len(_JobStateType_index)-1) { 25 return "JobStateType(" + strconv.FormatInt(int64(i), 10) + ")" 26 } 27 return _JobStateType_name[_JobStateType_index[i]:_JobStateType_index[i+1]] 28 }