Permission is the format passed into the rego.
| 705 | |
| 706 | // Permission is the format passed into the rego. |
| 707 | type Permission struct { |
| 708 | // Negate makes this a negative permission |
| 709 | Negate bool `json:"negate"` |
| 710 | ResourceType string `json:"resource_type"` |
| 711 | Action policy.Action `json:"action"` |
| 712 | } |
| 713 | |
| 714 | func (perm Permission) Valid() error { |
| 715 | if perm.ResourceType == policy.WildcardSymbol { |
nothing calls this directly
no outgoing calls
no test coverage detected