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")
|
|
|
|
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")
|
|
|
|
ErrBadUser = errors.New("ldap: non-existent user")
|
|
|
|
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")
|
|
|
|
ErrUnauthorizedAccess = errors.New("cli: unauthorized access. check credentials")
|
|
|
|
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")
|
2019-06-20 18:36:40 -05:00
|
|
|
)
|