BuildScope creates a scope string from resource and action
(resource Resource, action Action)
| 61 | |
| 62 | // BuildScope creates a scope string from resource and action |
| 63 | func BuildScope(resource Resource, action Action) string { |
| 64 | return string(resource) + ":" + string(action) |
| 65 | } |
| 66 | |
| 67 | // ParseScope parses a scope string into resource and action |
| 68 | func ParseScope(scope string) (Resource, Action) { |
no outgoing calls