zrepl/cmd/replication.v2/fsreplicationstate_string.go
2018-08-11 12:19:10 +02:00

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) + ")"
}
}