package
1.7.25
Repository: https://github.com/containerd/containerd.git
Documentation: pkg.go.dev

# Functions

FetchToken fetches a token using a GET request.
FetchTokenWithOAuth fetches a token using a POST request.
GenerateTokenOptions generates options for fetching a token based on a challenge.
ParseAuthHeader parses challenges from WWW-Authenticate header.

# Constants

BasicAuth is scheme for Basic HTTP Authentication RFC 7617.
BearerAuth is scheme for OAuth 2.0 Bearer Tokens RFC 6750.
DigestAuth is scheme for HTTP Digest Access Authentication RFC 7616.

# Variables

ErrNoToken is returned if a request is successful but the body does not contain an authorization token.

# Structs

Challenge carries information from a WWW-Authenticate response header.
FetchTokenResponse is response from fetching token with GET request.
OAuthTokenResponse is response from fetching token with a OAuth POST request.
TokenOptions are options for requesting a token.

# Type aliases

AuthenticationScheme defines scheme of the authentication method.