File: errors.go

package info (click to toggle)
singularity-container 4.0.3%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 21,672 kB
  • sloc: asm: 3,857; sh: 2,125; ansic: 1,677; awk: 414; makefile: 110; python: 99
file content (36 lines) | stat: -rw-r--r-- 2,069 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package client

import "errors"

var (
	errHTTP = errors.New("http error")
	// ErrUnauthorized represents HTTP status "401 Unauthorized"
	ErrUnauthorized             = errors.New("unauthorized")
	errImageRefArchRequired     = errors.New("imageRef and arch are required")
	errBadRequest               = errors.New("bad request")
	errUnexpectedMalformedValue = errors.New("unexpected/malformed value")
	errOCIRegistry              = errors.New("OCI registry error")
	errArchNotSpecified         = errors.New("architecture not specified")
	errInvalidAuthHeader        = errors.New("invalid auth header")
	errResetHTTPBody            = errors.New("unable to reset HTTP request body")
	errArchitectureNotPresent   = errors.New("architecture not present")
	errDigestNotVerified        = errors.New("digest not verified")
	errOCIDownloadNotSupported  = errors.New("not supported")
	errGettingPresignedURL      = errors.New("error getting presigned URL")
	errParsingPresignedURL      = errors.New("error parsing presigned URL")
	// ErrRefSchemeNotValid represents a ref with an invalid scheme.
	ErrRefSchemeNotValid = errors.New("library: ref scheme not valid")
	// ErrRefUserNotPermitted represents a ref with an invalid user.
	ErrRefUserNotPermitted = errors.New("library: user not permitted in ref")
	// ErrRefQueryNotPermitted represents a ref with an invalid query.
	ErrRefQueryNotPermitted = errors.New("library: query not permitted in ref")
	// ErrRefFragmentNotPermitted represents a ref with an invalid fragment.
	ErrRefFragmentNotPermitted = errors.New("library: fragment not permitted in ref")
	// ErrRefPathNotValid represents a ref with an invalid path.
	ErrRefPathNotValid = errors.New("library: ref path not valid")
	// ErrRefTagsNotValid represents a ref with invalid tags.
	ErrRefTagsNotValid = errors.New("library: ref tags not valid")
	// ErrNotFound is returned by when a resource is not found (http status 404)
	ErrNotFound                  = errors.New("not found")
	errQueryValueMustBeSpecified = errors.New("search query ('value') must be specified")
)