MCPcopy
hub / github.com/minio/minio-go / EnableVersioning

Method EnableVersioning

api-bucket-versioning.go:70–72  ·  view source on GitHub ↗

EnableVersioning - enable object versioning in given bucket.

(ctx context.Context, bucketName string)

Source from the content-addressed store, hash-verified

68
69// EnableVersioning - enable object versioning in given bucket.
70func (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.
75func (c *Client) SuspendVersioning(ctx context.Context, bucketName string) error {

Calls 1

SetBucketVersioningMethod · 0.95

Tested by

no test coverage detected