errmatch

package
v0.33.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package errmatch provides error matchers for container registry responses. These are used for flow control in mirror operations (e.g., skipping optional images).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAccessDenied added in v0.33.10

func IsAccessDenied(err error) bool

IsAccessDenied returns true if the registry refused the request for lack of rights: HTTP 401/403 or the UNAUTHORIZED/DENIED error codes. Token-auth registries answer this way for any path outside the identity's scope, whether or not the repository exists.

func IsImageNotFound

func IsImageNotFound(err error) bool

IsImageNotFound returns true if the error indicates that the requested image tag or manifest does not exist in the registry.

func IsRepoNotFound

func IsRepoNotFound(err error) bool

IsRepoNotFound returns true if the error indicates that the requested repository does not exist in the registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL