open-consul/acl
Mark Anderson fa95afdcf6 Refactor to make ACL errors more structured. (#12308)
* First phase of refactoring PermissionDeniedError

Add extended type PermissionDeniedByACLError that captures information
about the accessor, particular permission type and the object and name
of the thing being checked.

It may be worth folding the test and error return into a single helper
function, that can happen at a later date.

Signed-off-by: Mark Anderson <manderson@hashicorp.com>
2022-02-11 12:53:23 -08:00
..
acl.go
acl_oss.go
acl_test.go
authorizer.go
authorizer_oss.go
authorizer_test.go
chained_authorizer.go
chained_authorizer_test.go
errors.go
errors_oss.go
errors_test.go
policy.go
policy_authorizer.go
policy_authorizer_oss.go
policy_authorizer_test.go
policy_merger.go
policy_merger_oss.go
policy_oss.go
policy_test.go
static_authorizer.go
static_authorizer_test.go