Initial commit: AetherForge Linux (forge-mesh) v0.1.0-dev
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
This commit is contained in:
10
internal/fleet/clearance_labels.go
Normal file
10
internal/fleet/clearance_labels.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package fleet
|
||||
|
||||
// RequiredClearanceLabel returns a label for API error responses.
|
||||
func RequiredClearanceLabel(action string) string {
|
||||
level, ok := minClearance[action]
|
||||
if !ok {
|
||||
return "unknown"
|
||||
}
|
||||
return ClearanceLabel(level)
|
||||
}
|
||||
Reference in New Issue
Block a user