s3: Force a prefix removal using a special header (#12504)

An S3 client can send `x-minio-force-delete: true` to remove a prefix.
This commit is contained in:
Anis Elleuch
2021-06-16 02:43:14 +01:00
committed by GitHub
parent f30c996d48
commit 7722b91e1d
7 changed files with 72 additions and 1 deletions

View File

@@ -58,6 +58,8 @@ type ObjectOptions struct {
ProxyHeaderSet bool // only set for GET/HEAD in active-active replication scenario
ParentIsObject func(ctx context.Context, bucket, parent string) bool // Used to verify if parent is an object.
DeletePrefix bool // set true to enforce a prefix deletion, only application for DeleteObject API,
// Use the maximum parity (N/2), used when saving server configuration files
MaxParity bool
}