minio/cmd/rebalstatus_string.go
2022-10-25 12:36:57 -07:00

28 lines
795 B
Go

// Code generated by "stringer -type=rebalStatus -trimprefix=rebal erasure-server-pool-rebalance.go"; DO NOT EDIT.
package cmd
import "strconv"
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[rebalNone-0]
_ = x[rebalStarted-1]
_ = x[rebalCompleted-2]
_ = x[rebalStopped-3]
_ = x[rebalFailed-4]
}
const _rebalStatus_name = "NoneStartedCompletedStoppedFailed"
var _rebalStatus_index = [...]uint8{0, 4, 11, 20, 27, 33}
func (i rebalStatus) String() string {
if i >= rebalStatus(len(_rebalStatus_index)-1) {
return "rebalStatus(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _rebalStatus_name[_rebalStatus_index[i]:_rebalStatus_index[i+1]]
}