mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-01 03:48:56 +01:00
33 lines
792 B
Go
33 lines
792 B
Go
// Code generated by "stringer -type=FSReplicationState"; DO NOT EDIT.
|
|
|
|
package replication
|
|
|
|
import "strconv"
|
|
|
|
const (
|
|
_FSReplicationState_name_0 = "FSQueuedFSActive"
|
|
_FSReplicationState_name_1 = "FSRetry"
|
|
_FSReplicationState_name_2 = "FSPermanentError"
|
|
_FSReplicationState_name_3 = "FSCompleted"
|
|
)
|
|
|
|
var (
|
|
_FSReplicationState_index_0 = [...]uint8{0, 8, 16}
|
|
)
|
|
|
|
func (i FSReplicationState) String() string {
|
|
switch {
|
|
case 1 <= i && i <= 2:
|
|
i -= 1
|
|
return _FSReplicationState_name_0[_FSReplicationState_index_0[i]:_FSReplicationState_index_0[i+1]]
|
|
case i == 4:
|
|
return _FSReplicationState_name_1
|
|
case i == 8:
|
|
return _FSReplicationState_name_2
|
|
case i == 16:
|
|
return _FSReplicationState_name_3
|
|
default:
|
|
return "FSReplicationState(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|