mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
25f5a45296
As the number of repos and layers increases, the greater the probability that layers are duplicated. We dedupe using hard links when content is the same. This is intended to be purely a storage layer optimization. Access control when available is orthogonal this optimization. Add a durable cache to help speed up layer lookups. Update README. Add more unit tests.
27 lines
1.4 KiB
Go
27 lines
1.4 KiB
Go
package errors
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
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")
|
|
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")
|
|
)
|