mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-11 00:44:20 -05:00
0d12e37c96
* Include EXC0014 and fix issues. * Include EXC0012 and fix issues. Signed-off-by: Fabian Kammel <fk@edgeless.systems> Co-authored-by: Otto Bittner <cobittner@posteo.net>
26 lines
604 B
Go
26 lines
604 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[ControlPlane-1]
|
|
_ = x[Worker-2]
|
|
}
|
|
|
|
const _Role_name = "UnknownControlPlaneWorker"
|
|
|
|
var _Role_index = [...]uint8{0, 7, 19, 25}
|
|
|
|
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]]
|
|
}
|