mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2026-11-11 00:22:12 +01:00
archivist: clarify Remove() comment re optional versioning
This commit is contained in:
@@ -97,8 +97,9 @@ func (c *Client) Copy(ctx context.Context, srcKey, dstKey string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Remove deletes the object; with a versioned bucket this creates a delete
|
||||
// marker and the data remains recoverable.
|
||||
// Remove deletes the object. On a versioned bucket this creates a delete
|
||||
// marker and the data remains recoverable; without versioning the deletion
|
||||
// is final (see the startup warning in New).
|
||||
func (c *Client) Remove(ctx context.Context, key string) error {
|
||||
return c.mc.RemoveObject(ctx, c.Bucket, key, minio.RemoveObjectOptions{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user