constellation/coordinator/role/role_string.go

27 lines
623 B
Go

// Code generated by "stringer -type=Role"; DO NOT EDIT.
package role
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[Unknown-0]
_ = x[Coordinator-1]
_ = x[Node-2]
_ = x[Admin-3]
}
const _Role_name = "UnknownCoordinatorNodeAdmin"
var _Role_index = [...]uint8{0, 7, 18, 22, 27}
func (i Role) String() string {
if i >= Role(len(_Role_index)-1) {
return "Role(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Role_name[_Role_index[i]:_Role_index[i+1]]
}