Compare commits

..

1 commit

Author SHA1 Message Date
253d50637f
[#100] preset_s3: Add a flag for percent of versioned buckets
All checks were successful
DCO action / DCO (pull_request) Successful in 1m11s
Tests and linters / Tests (pull_request) Successful in 1m55s
Tests and linters / Tests with -race (pull_request) Successful in 2m17s
Tests and linters / Lint (pull_request) Successful in 2m47s
Add flag "--buckets_versioned". Default is 0 (no versioned buckets)

Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
2024-11-07 09:11:05 +03:00

View file

@ -142,6 +142,8 @@ func (c *Client) Get(bucket, key string) GetResponse {
return GetResponse{Success: true}
}
// DeleteObjectVersion deletes object version with specified versionID.
// If version argument is empty, deletes all versions and delete-markers of specified object.
func (c *Client) DeleteObjectVersion(bucket, key, version string) DeleteResponse {
var toDelete []types.ObjectIdentifier