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

Method MakeBucket

api-put-bucket.go:128–130  ·  view source on GitHub ↗

MakeBucket creates a new bucket with bucketName with a context to control cancellations and timeouts. Location is an optional argument, by default all buckets are created in US Standard Region. For Amazon S3 for more supported regions - http://docs.aws.amazon.com/general/latest/gr/rande.html For G

(ctx context.Context, bucketName string, opts MakeBucketOptions)

Source from the content-addressed store, hash-verified

126// For Amazon S3 for more supported regions - http://docs.aws.amazon.com/general/latest/gr/rande.html
127// For Google Cloud Storage for more supported regions - https://cloud.google.com/storage/docs/bucket-locations
128func (c *Client) MakeBucket(ctx context.Context, bucketName string, opts MakeBucketOptions) (err error) {
129 return c.makeBucket(ctx, bucketName, opts)
130}

Calls 1

makeBucketMethod · 0.95

Tested by 8

TestGetObjectCoreFunction · 0.64
TestGetBucketPolicyFunction · 0.64
TestCoreCopyObjectFunction · 0.64
TestCoreCopyObjectPartFunction · 0.64
TestCorePutObjectFunction · 0.64
TestCoreMultipartUploadFunction · 0.64