mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-01 11:36:10 -04:00
move nodestate and role
Signed-off-by: Fabian Kammel <fk@edgeless.systems>
This commit is contained in:
parent
26e9c67a00
commit
22c912a56d
30 changed files with 29 additions and 29 deletions
26
internal/role/role_string.go
Normal file
26
internal/role/role_string.go
Normal file
|
@ -0,0 +1,26 @@
|
|||
// 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]
|
||||
_ = x[Admin-3]
|
||||
}
|
||||
|
||||
const _Role_name = "UnknownControlPlaneWorkerAdmin"
|
||||
|
||||
var _Role_index = [...]uint8{0, 7, 19, 25, 30}
|
||||
|
||||
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]]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue