2022-03-22 11:03:15 -04:00
|
|
|
// 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]
|
2022-06-29 09:26:29 -04:00
|
|
|
_ = x[ControlPlane-1]
|
|
|
|
_ = x[Worker-2]
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|
|
|
|
|
2022-11-09 09:57:54 -05:00
|
|
|
const _Role_name = "UnknownControlPlaneWorker"
|
2022-03-22 11:03:15 -04:00
|
|
|
|
2022-11-09 09:57:54 -05:00
|
|
|
var _Role_index = [...]uint8{0, 7, 19, 25}
|
2022-03-22 11:03:15 -04:00
|
|
|
|
|
|
|
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]]
|
|
|
|
}
|