mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2026-11-12 00:52:11 +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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove deletes the object; with a versioned bucket this creates a delete
|
// Remove deletes the object. On a versioned bucket this creates a delete
|
||||||
// marker and the data remains recoverable.
|
// 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 {
|
func (c *Client) Remove(ctx context.Context, key string) error {
|
||||||
return c.mc.RemoveObject(ctx, c.Bucket, key, minio.RemoveObjectOptions{})
|
return c.mc.RemoveObject(ctx, c.Bucket, key, minio.RemoveObjectOptions{})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user