2019-06-20 18:36:40 -05:00
|
|
|
package errors
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
2019-08-15 11:34:54 -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")
|
|
|
|
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")
|
2019-11-18 14:28:52 -05:00
|
|
|
ErrLDAPBadConn = errors.New("ldap: bad connection")
|
2019-08-15 11:34:54 -05:00
|
|
|
ErrLDAPConfig = errors.New("config: invalid LDAP configuration")
|
2020-02-17 16:57:15 -05:00
|
|
|
ErrCacheRootBucket = errors.New("cache: unable to create/update root bucket")
|
|
|
|
ErrCacheNoBucket = errors.New("cache: unable to find bucket")
|
|
|
|
ErrCacheMiss = errors.New("cache: miss")
|
2020-05-11 17:13:24 -05:00
|
|
|
ErrRequireCred = errors.New("ldap: bind credentials required")
|
|
|
|
ErrInvalidCred = errors.New("ldap: invalid credentials")
|
2019-06-20 18:36:40 -05:00
|
|
|
)
|