mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-08 12:56:13 +08:00
* do delete expired entries on s3 list request
https://github.com/seaweedfs/seaweedfs/issues/6837
* disable delete expires s3 entry in filer
* pass opt allowDeleteObjectsByTTL to all servers
* delete on get and head
* add lifecycle expiration s3 tests
* fix opt allowDeleteObjectsByTTL for server
* fix test lifecycle expiration
* fix IsExpired
* fix locationPrefix for updateEntriesTTL
* fix s3tests
* resolv coderabbitai
* GetS3ExpireTime on filer
* go mod
* clear TtlSeconds for volume
* move s3 delete expired entry to filer
* filer delete meta and data
* del unusing func removeExpiredObject
* test s3 put
* test s3 put multipart
* allowDeleteObjectsByTTL by default
* fix pipline tests
* rm dublicate SeaweedFSExpiresS3
* revert expiration tests
* fix updateTTL
* rm log
* resolv comment
* fix delete version object
* fix S3Versioning
* fix delete on FindEntry
* fix delete chunks
* fix sqlite not support concurrent writes/reads
* move deletion out of listing transaction; delete entries and empty folders
* Revert "fix sqlite not support concurrent writes/reads"
This reverts commit 5d5da14e0e.
* clearer handling on recursive empty directory deletion
* handle listing errors
* strut copying
* reuse code to delete empty folders
* use iterative approach with a queue to avoid recursive WithFilerClient calls
* stop a gRPC stream from the client-side callback is to return a specific error, e.g., io.EOF
* still issue UpdateEntry when the flag must be added
* errors join
* join path
* cleaner
* add context, sort directories by depth (deepest first) to avoid redundant checks
* batched operation, refactoring
* prevent deleting bucket
* constant
* reuse code
* more logging
* refactoring
* s3 TTL time
* Safety check
---------
Co-authored-by: chrislu <chris.lu@gmail.com>
48 lines
1.6 KiB
Go
48 lines
1.6 KiB
Go
package s3_constants
|
|
|
|
const (
|
|
ExtAmzOwnerKey = "Seaweed-X-Amz-Owner"
|
|
ExtAmzAclKey = "Seaweed-X-Amz-Acl"
|
|
ExtOwnershipKey = "Seaweed-X-Amz-Ownership"
|
|
ExtVersioningKey = "Seaweed-X-Amz-Versioning"
|
|
ExtVersionIdKey = "Seaweed-X-Amz-Version-Id"
|
|
ExtDeleteMarkerKey = "Seaweed-X-Amz-Delete-Marker"
|
|
ExtIsLatestKey = "Seaweed-X-Amz-Is-Latest"
|
|
ExtETagKey = "Seaweed-X-Amz-ETag"
|
|
ExtLatestVersionIdKey = "Seaweed-X-Amz-Latest-Version-Id"
|
|
ExtLatestVersionFileNameKey = "Seaweed-X-Amz-Latest-Version-File-Name"
|
|
ExtMultipartObjectKey = "key"
|
|
|
|
// Bucket Policy
|
|
ExtBucketPolicyKey = "Seaweed-X-Amz-Bucket-Policy"
|
|
|
|
// Object Retention and Legal Hold
|
|
ExtObjectLockModeKey = "Seaweed-X-Amz-Object-Lock-Mode"
|
|
ExtRetentionUntilDateKey = "Seaweed-X-Amz-Retention-Until-Date"
|
|
ExtLegalHoldKey = "Seaweed-X-Amz-Legal-Hold"
|
|
ExtObjectLockEnabledKey = "Seaweed-X-Amz-Object-Lock-Enabled"
|
|
|
|
// Object Lock Bucket Configuration (individual components, not XML)
|
|
ExtObjectLockDefaultModeKey = "Lock-Default-Mode"
|
|
ExtObjectLockDefaultDaysKey = "Lock-Default-Days"
|
|
ExtObjectLockDefaultYearsKey = "Lock-Default-Years"
|
|
)
|
|
|
|
// Object Lock and Retention Constants
|
|
const (
|
|
// Retention modes
|
|
RetentionModeGovernance = "GOVERNANCE"
|
|
RetentionModeCompliance = "COMPLIANCE"
|
|
|
|
// Legal hold status
|
|
LegalHoldOn = "ON"
|
|
LegalHoldOff = "OFF"
|
|
|
|
// Object lock enabled status
|
|
ObjectLockEnabled = "Enabled"
|
|
|
|
// Bucket versioning status
|
|
VersioningEnabled = "Enabled"
|
|
VersioningSuspended = "Suspended"
|
|
)
|