44e6b8122d
The error handling of the ACL code relies on the presence of certain magic error messages. Since the error values are sent via RPC between older and newer consul agents we cannot just replace the magic values with typed errors and switch to type checks since this would break compatibility with older clients. Therefore, this patch moves all magic ACL error messages into the acl package and provides default error values and helper functions which determine the type of error. |
||
---|---|---|
.. | ||
acl.go | ||
acl_test.go | ||
cache.go | ||
cache_test.go | ||
errors.go | ||
policy.go | ||
policy_test.go |