2022-11-03 00:53:08 +02:00
|
|
|
package constants
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// BlobUploadDir defines the upload directory for blob uploads.
|
2022-11-08 00:38:16 -08: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"
|
2023-01-25 12:50:03 -08:00
|
|
|
ReferrerFilterAnnotation = "org.opencontainers.referrers.filtersApplied"
|
2022-11-22 20:29:57 +02:00
|
|
|
DynamoDBDriverName = "dynamodb"
|
2022-11-03 00:53:08 +02:00
|
|
|
)
|