mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-20 05:09:18 +01:00
30 lines
593 B
Go
30 lines
593 B
Go
|
// Code generated by "stringer -type=StepState"; DO NOT EDIT.
|
||
|
|
||
|
package fsrep
|
||
|
|
||
|
import "strconv"
|
||
|
|
||
|
const (
|
||
|
_StepState_name_0 = "StepReadyStepRetry"
|
||
|
_StepState_name_1 = "StepPermanentError"
|
||
|
_StepState_name_2 = "StepCompleted"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
_StepState_index_0 = [...]uint8{0, 9, 18}
|
||
|
)
|
||
|
|
||
|
func (i StepState) String() string {
|
||
|
switch {
|
||
|
case 1 <= i && i <= 2:
|
||
|
i -= 1
|
||
|
return _StepState_name_0[_StepState_index_0[i]:_StepState_index_0[i+1]]
|
||
|
case i == 4:
|
||
|
return _StepState_name_1
|
||
|
case i == 8:
|
||
|
return _StepState_name_2
|
||
|
default:
|
||
|
return "StepState(" + strconv.FormatInt(int64(i), 10) + ")"
|
||
|
}
|
||
|
}
|