# Packages
No description provided by the author
# Functions
APIVersions gets the API versions out of an HTTP response using the provided version header as the key for the HTTP header.
NewAuthorizer creates an authorizer which can handle multiple authentication schemes.
NewBasicHandler creaters a new authentiation handler which adds basic authentication credentials to a request.
NewTokenHandler creates a new AuthenicationHandler which supports fetching tokens from a remote token server.
NewTokenHandlerWithOptions creates a new token handler using the provided options structure.
ParseAPIVersion parses an API version string into an APIVersion Format (Expected, not enforced): API version string = <API type> '/' <API version> API type = [a-z][a-z0-9]* API version = [0-9]+(\.[0-9]+)? TODO(dmcgowan): Enforce format, add error condition, remove unknown type.
# Variables
ErrNoBasicAuthCredentials is returned if a request can't be authorized with basic auth due to lack of credentials.
ErrNoToken is returned if a request is successful but the body does not contain an authorization token.
# Structs
APIVersion represents a version of an API including its type and version number.
RegistryScope represents a token scope for access to resources in the registry.
RepositoryScope represents a token scope for access to a repository.
TokenHandlerOptions is used to configure a new token handler.
# Interfaces
AuthenticationHandler is an interface for authorizing a request from params from a "WWW-Authenicate" header for a single scheme.
CredentialStore is an interface for getting credentials for a given URL.
Scope is a type which is serializable to a string using the allow scope grammar.