diff --git a/api-bucket-versioning.go b/api-bucket-versioning.go index 930b1b93a..e7839dfdc 100644 --- a/api-bucket-versioning.go +++ b/api-bucket-versioning.go @@ -76,11 +76,19 @@ func (c *Client) SuspendVersioning(ctx context.Context, bucketName string) error return c.SetBucketVersioning(ctx, bucketName, BucketVersioningConfiguration{Status: "Suspended"}) } +// ExcludedPrefix - holds individual prefixes excluded from being versioned. +type ExcludedPrefix struct { + Prefix string +} + // BucketVersioningConfiguration is the versioning configuration structure type BucketVersioningConfiguration struct { XMLName xml.Name `xml:"VersioningConfiguration"` Status string `xml:"Status"` MFADelete string `xml:"MfaDelete,omitempty"` + // MinIO extension - allows selective, prefix-level versioning exclusion. + // Requires versioning to be enabled + ExcludedPrefixes []ExcludedPrefix `xml:",omitempty"` } // Various supported states