2022-11-02 17:53:08 -05:00
|
|
|
package constants
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// BlobUploadDir defines the upload directory for blob uploads.
|
2022-11-08 03:38:16 -05:00
|
|
|
BlobUploadDir = ".uploads"
|
|
|
|
SchemaVersion = 2
|
|
|
|
DefaultFilePerms = 0o600
|
|
|
|
DefaultDirPerms = 0o700
|
|
|
|
RLOCK = "RLock"
|
|
|
|
RWLOCK = "RWLock"
|
|
|
|
BlobsCache = "blobs"
|
|
|
|
DuplicatesBucket = "duplicates"
|
|
|
|
OriginalBucket = "original"
|
|
|
|
DBExtensionName = ".db"
|
|
|
|
DBCacheLockCheckTimeout = 10 * time.Second
|
|
|
|
BoltdbName = "cache"
|
|
|
|
ReferrerFilterAnnotation = "org.opencontainers.references.filtersApplied"
|
2022-11-22 13:29:57 -05:00
|
|
|
DynamoDBDriverName = "dynamodb"
|
2022-11-02 17:53:08 -05:00
|
|
|
)
|