Versions in this module Expand all Collapse all v0 v0.20.4 Aug 7, 2024 Changes in this version + const CatalogScope + const DeleteScope + const PullScope + const PushScope + var Version string + func CheckError(resp *http.Response, codes ...int) error + func FromToken(reg name.Registry, auth authn.Authenticator, t http.RoundTripper, ...) (http.RoundTripper, error) + func New(reg name.Registry, auth authn.Authenticator, t http.RoundTripper, ...) (http.RoundTripper, error) + func NewLogger(inner http.RoundTripper) http.RoundTripper + func NewRetry(inner http.RoundTripper, opts ...Option) http.RoundTripper + func NewUserAgent(inner http.RoundTripper, ua string) http.RoundTripper + func NewWithContext(ctx context.Context, reg name.Registry, auth authn.Authenticator, ...) (http.RoundTripper, error) + type Backoff = retry.Backoff + type Challenge struct + Insecure bool + Parameters map[string]string + Scheme string + func Ping(ctx context.Context, reg name.Registry, t http.RoundTripper) (*Challenge, error) + type Diagnostic struct + Code ErrorCode + Detail any + Message string + func (d Diagnostic) String() string + type Error struct + Errors []Diagnostic + Request *http.Request + StatusCode int + func (e *Error) Error() string + func (e *Error) Temporary() bool + type ErrorCode string + const BlobUnknownErrorCode + const BlobUploadInvalidErrorCode + const BlobUploadUnknownErrorCode + const DeniedErrorCode + const DigestInvalidErrorCode + const ManifestBlobUnknownErrorCode + const ManifestInvalidErrorCode + const ManifestUnknownErrorCode + const ManifestUnverifiedErrorCode + const NameInvalidErrorCode + const NameUnknownErrorCode + const SizeInvalidErrorCode + const TagInvalidErrorCode + const TooManyRequestsErrorCode + const UnauthorizedErrorCode + const UnavailableErrorCode + const UnknownErrorCode + const UnsupportedErrorCode + type Option func(*options) + func WithRetryBackoff(backoff Backoff) Option + func WithRetryPredicate(predicate func(error) bool) Option + func WithRetryStatusCodes(codes ...int) Option + type Token struct + AccessToken string + ExpiresIn int + RefreshToken string + Token string + func Exchange(ctx context.Context, reg name.Registry, auth authn.Authenticator, ...) (*Token, error) + type Wrapper struct + func (w *Wrapper) RoundTrip(in *http.Request) (*http.Response, error)