mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-01 21:04:59 +01:00
30 lines
586 B
Go
30 lines
586 B
Go
|
// Code generated by "stringer -type=SnapState"; DO NOT EDIT.
|
||
|
|
||
|
package snapper
|
||
|
|
||
|
import "strconv"
|
||
|
|
||
|
const (
|
||
|
_SnapState_name_0 = "SnapPendingSnapStarted"
|
||
|
_SnapState_name_1 = "SnapDone"
|
||
|
_SnapState_name_2 = "SnapError"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
_SnapState_index_0 = [...]uint8{0, 11, 22}
|
||
|
)
|
||
|
|
||
|
func (i SnapState) String() string {
|
||
|
switch {
|
||
|
case 1 <= i && i <= 2:
|
||
|
i -= 1
|
||
|
return _SnapState_name_0[_SnapState_index_0[i]:_SnapState_index_0[i+1]]
|
||
|
case i == 4:
|
||
|
return _SnapState_name_1
|
||
|
case i == 8:
|
||
|
return _SnapState_name_2
|
||
|
default:
|
||
|
return "SnapState(" + strconv.FormatInt(int64(i), 10) + ")"
|
||
|
}
|
||
|
}
|