# Functions
AuthorizedResources returns the list of resources which have been authorized for this request.
GetAccessController constructs an AccessController with the given options using the named backend.
Register is used to register an InitFunc for an AccessController backend with the given name.
WithResources returns a context with the authorized resources.
WithUser returns a context with the authorized user info.
# Constants
UserKey is used to get the user object from a user context.
UserNameKey is used to get the user name from a user context.
# Variables
ErrAuthenticationFailure returned when authentication fails.
ErrInvalidCredential is returned when the auth token does not authenticate correctly.
# Interfaces
AccessController controls access to registry resources based on a request and required access levels for a request.
Challenge is a special error type which is used for HTTP 401 Unauthorized responses and is able to write the response with WWW-Authenticate challenge header values based on the error.
CredentialAuthenticator is an object which is able to authenticate credentials.
# Type aliases
InitFunc is the type of an AccessController factory function and is used to register the constructor for different AccesController backends.