errors

package
v0.0.0-...-035f276 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ImageIsNotFoundErrs is array that contains all error codes of image not found.
	// errors description: https://github.com/distribution/distribution/blob/main/docs/spec/api.md#errors-2
	ImageIsNotFoundErrs = []transport.ErrorCode{
		transport.ManifestUnknownErrorCode,
		transport.NameUnknownErrorCode,
		transport.NameInvalidErrorCode,
	}
)
View Source
var (
	//UnauthorizedErrs is array that contains all error codes of unauthorized.
	// errors description: https://github.com/distribution/distribution/blob/main/docs/spec/api.md#errors-2
	UnauthorizedErrs = []transport.ErrorCode{
		transport.UnauthorizedErrorCode,
	}
)

Functions

func TryParseCraneErrToRegistryKnownErr

func TryParseCraneErrToRegistryKnownErr(ref string, err error) (error, bool)

TryParseCraneErrToRegistryKnownErr Gets an err and ref (the reference of the image that crane tried to get the digest) and try to convert it to known err

Types

This section is empty.

Jump to

Keyboard shortcuts

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