mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 09:54:47 +01:00
33 lines
594 B
Go
33 lines
594 B
Go
// Code generated by "stringer -type=State"; DO NOT EDIT.
|
|
|
|
package snapper
|
|
|
|
import "strconv"
|
|
|
|
const (
|
|
_State_name_0 = "SyncUpPlanning"
|
|
_State_name_1 = "Snapshotting"
|
|
_State_name_2 = "Waiting"
|
|
_State_name_3 = "Error"
|
|
)
|
|
|
|
var (
|
|
_State_index_0 = [...]uint8{0, 6, 14}
|
|
)
|
|
|
|
func (i State) String() string {
|
|
switch {
|
|
case 1 <= i && i <= 2:
|
|
i -= 1
|
|
return _State_name_0[_State_index_0[i]:_State_index_0[i+1]]
|
|
case i == 4:
|
|
return _State_name_1
|
|
case i == 8:
|
|
return _State_name_2
|
|
case i == 16:
|
|
return _State_name_3
|
|
default:
|
|
return "State(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|