2022-11-02 17:53:08 -05:00
|
|
|
package constants
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// BlobUploadDir defines the upload directory for blob uploads.
|
2023-09-01 12:54:39 -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"
|
|
|
|
DynamoDBDriverName = "dynamodb"
|
|
|
|
DefaultGCDelay = 1 * time.Hour
|
|
|
|
DefaultUntaggedImgeRetentionDelay = 24 * time.Hour
|
|
|
|
DefaultGCInterval = 1 * time.Hour
|
|
|
|
S3StorageDriverName = "s3"
|
|
|
|
LocalStorageDriverName = "local"
|
2022-11-02 17:53:08 -05:00
|
|
|
)
|