test(s3): complete snowball auto-extract compatibility (#2324)

This commit is contained in:
安正超
2026-03-29 19:19:45 +08:00
committed by GitHub
parent 3366bd2464
commit 939a69f9c2
3 changed files with 234 additions and 16 deletions
+19 -1
View File
@@ -75,9 +75,27 @@ pub const AMZ_OBJECT_LOCK_LEGAL_HOLD_LOWER: &str = "x-amz-object-lock-legal-hold
pub const AMZ_OBJECT_LOCK_BYPASS_GOVERNANCE: &str = "X-Amz-Bypass-Governance-Retention";
pub const AMZ_BUCKET_REPLICATION_STATUS: &str = "X-Amz-Replication-Status";
// AmzSnowballExtract will trigger unpacking of an archive content
// Snowball auto-extract compatibility headers.
//
// Supported external request headers:
// - X-Amz-Meta-Snowball-Auto-Extract
// - X-Amz-Snowball-Auto-Extract
// - X-Amz-Meta-Snowball-Prefix
// - X-Amz-Meta-Snowball-Ignore-Dirs
// - X-Amz-Meta-Snowball-Ignore-Errors
// - X-Amz-Meta-Minio-Snowball-Prefix
// - X-Amz-Meta-Minio-Snowball-Ignore-Dirs
// - X-Amz-Meta-Minio-Snowball-Ignore-Errors
//
// Internal compatibility headers:
// - X-Amz-Meta-Rustfs-Snowball-Prefix
// - X-Amz-Meta-Rustfs-Snowball-Ignore-Dirs
// - X-Amz-Meta-Rustfs-Snowball-Ignore-Errors
pub const AMZ_SNOWBALL_EXTRACT: &str = "X-Amz-Meta-Snowball-Auto-Extract";
pub const AMZ_SNOWBALL_EXTRACT_ALT: &str = "X-Amz-Snowball-Auto-Extract";
pub const AMZ_SNOWBALL_PREFIX: &str = "X-Amz-Meta-Snowball-Prefix";
pub const AMZ_SNOWBALL_IGNORE_DIRS: &str = "X-Amz-Meta-Snowball-Ignore-Dirs";
pub const AMZ_SNOWBALL_IGNORE_ERRORS: &str = "X-Amz-Meta-Snowball-Ignore-Errors";
pub const AMZ_MINIO_SNOWBALL_PREFIX: &str = "X-Amz-Meta-Minio-Snowball-Prefix";
pub const AMZ_MINIO_SNOWBALL_IGNORE_DIRS: &str = "X-Amz-Meta-Minio-Snowball-Ignore-Dirs";
pub const AMZ_MINIO_SNOWBALL_IGNORE_ERRORS: &str = "X-Amz-Meta-Minio-Snowball-Ignore-Errors";