Skip to content

Commit

Permalink
Rename BucketOptions to RemoveBucketOptions (#1534)
Browse files Browse the repository at this point in the history
Co-authored-by: Klaus Post <klauspost@gmail.com>
  • Loading branch information
vadmeste and klauspost committed Oct 24, 2021
1 parent 13433ba commit c7924d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api-remove.go
Expand Up @@ -29,9 +29,12 @@ import (
"github.com/minio/minio-go/v7/pkg/s3utils"
)

// BucketOptions special headers to purge buckets, only
// Deprecated: BucketOptions will be renamed to RemoveBucketOptions in future versions.
type BucketOptions = RemoveBucketOptions

// RemoveBucketOptions special headers to purge buckets, only
// useful when endpoint is MinIO
type BucketOptions struct {
type RemoveBucketOptions struct {
ForceDelete bool
}

Expand All @@ -40,7 +43,7 @@ type BucketOptions struct {
// All objects (including all object versions and delete markers)
// in the bucket will be deleted forcibly if bucket options set
// ForceDelete to 'true'.
func (c *Client) RemoveBucketWithOptions(ctx context.Context, bucketName string, opts BucketOptions) error {
func (c *Client) RemoveBucketWithOptions(ctx context.Context, bucketName string, opts RemoveBucketOptions) error {
// Input validation.
if err := s3utils.CheckValidBucketName(bucketName); err != nil {
return err
Expand Down

0 comments on commit c7924d0

Please sign in to comment.