mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-07-25 21:12:47 +02:00
* fix GetObjectLockConfigurationHandler * cache and use bucket object lock config * subscribe to bucket configuration changes * increase bucket config cache TTL * refactor * Update weed/s3api/s3api_server.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * avoid duplidated work * rename variable * Update s3api_object_handlers_put.go * fix routing * admin ui and api handler are consistent now * use fields instead of xml * fix test * address comments * Update weed/s3api/s3api_object_handlers_put.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update test/s3/retention/s3_retention_test.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update weed/s3api/object_lock_utils.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * change error style * errorf --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
46 lines
1.5 KiB
Go
46 lines
1.5 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"
|
|
|
|
// 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"
|
|
)
|