2019-06-20 18:36:40 -05:00
|
|
|
package errors
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
2020-06-16 20:52:40 -05:00
|
|
|
ErrBadConfig = errors.New("config: invalid config")
|
2022-03-21 12:37:23 -05:00
|
|
|
ErrCliBadConfig = errors.New("cli: bad config")
|
2020-06-16 20:52:40 -05:00
|
|
|
ErrRepoNotFound = errors.New("repository: not found")
|
|
|
|
ErrRepoIsNotDir = errors.New("repository: not a directory")
|
|
|
|
ErrRepoBadVersion = errors.New("repository: unsupported layout version")
|
|
|
|
ErrManifestNotFound = errors.New("manifest: not found")
|
|
|
|
ErrBadManifest = errors.New("manifest: invalid contents")
|
2021-01-25 13:04:03 -05:00
|
|
|
ErrBadIndex = errors.New("index: invalid contents")
|
2020-06-16 20:52:40 -05:00
|
|
|
ErrUploadNotFound = errors.New("uploads: not found")
|
|
|
|
ErrBadUploadRange = errors.New("uploads: bad range")
|
|
|
|
ErrBlobNotFound = errors.New("blob: not found")
|
|
|
|
ErrBadBlob = errors.New("blob: bad blob")
|
|
|
|
ErrBadBlobDigest = errors.New("blob: bad blob digest")
|
|
|
|
ErrUnknownCode = errors.New("error: unknown error code")
|
|
|
|
ErrBadCACert = errors.New("tls: invalid ca cert")
|
2022-09-30 12:32:32 -05:00
|
|
|
ErrBadUser = errors.New("auth: non-existent user")
|
2020-06-16 20:52:40 -05:00
|
|
|
ErrEntriesExceeded = errors.New("ldap: too many entries returned")
|
|
|
|
ErrLDAPEmptyPassphrase = errors.New("ldap: empty passphrase")
|
|
|
|
ErrLDAPBadConn = errors.New("ldap: bad connection")
|
|
|
|
ErrLDAPConfig = errors.New("config: invalid LDAP configuration")
|
|
|
|
ErrCacheRootBucket = errors.New("cache: unable to create/update root bucket")
|
|
|
|
ErrCacheNoBucket = errors.New("cache: unable to find bucket")
|
|
|
|
ErrCacheMiss = errors.New("cache: miss")
|
|
|
|
ErrRequireCred = errors.New("ldap: bind credentials required")
|
|
|
|
ErrInvalidCred = errors.New("ldap: invalid credentials")
|
2021-12-13 14:23:31 -05:00
|
|
|
ErrEmptyJSON = errors.New("cli: config json is empty")
|
2020-06-16 20:52:40 -05:00
|
|
|
ErrInvalidArgs = errors.New("cli: Invalid Arguments")
|
2020-07-06 17:44:32 -05:00
|
|
|
ErrInvalidFlagsCombination = errors.New("cli: Invalid combination of flags")
|
2020-06-16 20:52:40 -05:00
|
|
|
ErrInvalidURL = errors.New("cli: invalid URL format")
|
2022-09-30 12:32:32 -05:00
|
|
|
ErrUnauthorizedAccess = errors.New("auth: unauthorized access. check credentials")
|
2020-06-16 20:52:40 -05:00
|
|
|
ErrCannotResetConfigKey = errors.New("cli: cannot reset given config key")
|
|
|
|
ErrConfigNotFound = errors.New("cli: config with the given name does not exist")
|
2022-01-10 20:15:35 -05:00
|
|
|
ErrNoURLProvided = errors.New("cli: no URL provided in argument or via config")
|
2020-06-16 20:52:40 -05:00
|
|
|
ErrIllegalConfigKey = errors.New("cli: given config key is not allowed")
|
2020-08-19 01:03:16 -05:00
|
|
|
ErrScanNotSupported = errors.New("search: scanning of image media type not supported")
|
2020-07-06 17:44:32 -05:00
|
|
|
ErrCLITimeout = errors.New("cli: Query timed out while waiting for results")
|
2020-10-29 07:47:27 -05:00
|
|
|
ErrDuplicateConfigName = errors.New("cli: cli config name already added")
|
2021-04-05 19:40:33 -05:00
|
|
|
ErrInvalidRoute = errors.New("routes: invalid route prefix")
|
|
|
|
ErrImgStoreNotFound = errors.New("routes: image store not found corresponding to given route")
|
2021-07-20 16:04:10 -05:00
|
|
|
ErrEmptyValue = errors.New("cache: empty value")
|
2021-01-25 13:04:03 -05:00
|
|
|
ErrEmptyRepoList = errors.New("search: no repository found")
|
2021-06-08 15:11:18 -05:00
|
|
|
ErrInvalidRepositoryName = errors.New("routes: not a repository name")
|
|
|
|
ErrSyncMissingCatalog = errors.New("sync: couldn't fetch upstream registry's catalog")
|
2021-10-29 21:10:55 -05:00
|
|
|
ErrMethodNotSupported = errors.New("storage: method not supported")
|
2021-12-13 14:23:31 -05:00
|
|
|
ErrInvalidMetric = errors.New("metrics: invalid metric func")
|
2021-12-20 23:18:13 -05:00
|
|
|
ErrInjected = errors.New("test: injected failure")
|
2021-12-29 10:14:56 -05:00
|
|
|
ErrSyncInvalidUpstreamURL = errors.New("sync: upstream url not found in sync config")
|
2022-03-10 10:39:11 -05:00
|
|
|
ErrRegistryNoContent = errors.New("sync: could not find a Content that matches localRepo")
|
2022-11-15 01:21:49 -05:00
|
|
|
ErrSyncReferrerNotFound = errors.New("sync: couldn't find upstream referrer")
|
|
|
|
ErrSyncReferrer = errors.New("sync: failed to get upstream referrer")
|
2022-06-24 08:08:47 -05:00
|
|
|
ErrImageLintAnnotations = errors.New("routes: lint checks failed")
|
2022-07-14 10:13:46 -05:00
|
|
|
ErrParsingAuthHeader = errors.New("auth: failed parsing authorization header")
|
2022-09-09 00:41:13 -05:00
|
|
|
ErrBadType = errors.New("core: invalid type")
|
2022-08-30 17:12:10 -05:00
|
|
|
ErrParsingHTTPHeader = errors.New("routes: invalid HTTP header")
|
|
|
|
ErrBadRange = errors.New("storage: bad range")
|
2022-09-30 12:32:32 -05:00
|
|
|
ErrBadLayerCount = errors.New("manifest: layers count doesn't correspond to config history")
|
2019-06-20 18:36:40 -05:00
|
|
|
)
|