EnableVersioning - enable object versioning in given bucket.
(ctx context.Context, bucketName string)
| 68 | |
| 69 | // EnableVersioning - enable object versioning in given bucket. |
| 70 | func (c *Client) EnableVersioning(ctx context.Context, bucketName string) error { |
| 71 | return c.SetBucketVersioning(ctx, bucketName, BucketVersioningConfiguration{Status: "Enabled"}) |
| 72 | } |
| 73 | |
| 74 | // SuspendVersioning - suspend object versioning in given bucket. |
| 75 | func (c *Client) SuspendVersioning(ctx context.Context, bucketName string) error { |
no test coverage detected