2018-09-04 23:46:02 +02:00
|
|
|
// Code generated by "stringer -type=State"; DO NOT EDIT.
|
|
|
|
|
|
|
|
package snapper
|
|
|
|
|
|
|
|
import "strconv"
|
|
|
|
|
2019-09-03 14:45:18 +02:00
|
|
|
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[SyncUp-1]
|
|
|
|
_ = x[SyncUpErrWait-2]
|
|
|
|
_ = x[Planning-4]
|
|
|
|
_ = x[Snapshotting-8]
|
|
|
|
_ = x[Waiting-16]
|
|
|
|
_ = x[ErrorWait-32]
|
|
|
|
_ = x[Stopped-64]
|
|
|
|
}
|
|
|
|
|
2018-09-04 23:46:02 +02:00
|
|
|
const (
|
2019-03-15 13:43:19 +01:00
|
|
|
_State_name_0 = "SyncUpSyncUpErrWait"
|
|
|
|
_State_name_1 = "Planning"
|
|
|
|
_State_name_2 = "Snapshotting"
|
|
|
|
_State_name_3 = "Waiting"
|
|
|
|
_State_name_4 = "ErrorWait"
|
|
|
|
_State_name_5 = "Stopped"
|
2018-09-04 23:46:02 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2019-03-15 13:43:19 +01:00
|
|
|
_State_index_0 = [...]uint8{0, 6, 19}
|
2018-09-04 23:46:02 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
2018-09-24 14:40:47 +02:00
|
|
|
case i == 32:
|
|
|
|
return _State_name_4
|
2019-03-15 13:43:19 +01:00
|
|
|
case i == 64:
|
|
|
|
return _State_name_5
|
2018-09-04 23:46:02 +02:00
|
|
|
default:
|
|
|
|
return "State(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
|
|
}
|
|
|
|
}
|