package
0.0.0-20240122153004-13bcfc5aacc5
Repository: https://github.com/stealthycoder/distribution.git
Documentation: pkg.go.dev

# Packages

Package htpasswd provides a simple authentication scheme that checks for the user credential hash in an htpasswd formatted file in a configuration-determined location.
Package silly provides a simple authentication scheme that checks for the existence of an Authorization header and issues access if is present and non-empty.
No description provided by the author

# 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.

# Structs

Access describes a specific action that is requested or allowed for a given resource.
Resource describes a resource by type and name.
UserInfo carries information about an autenticated/authorized client.

# 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.