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

Method GetBucketLocation

bucket-cache.go:34–39  ·  view source on GitHub ↗

GetBucketLocation - get location for the bucket name from location cache, if not fetch freshly by making a new request.

(ctx context.Context, bucketName string)

Source from the content-addressed store, hash-verified

32// GetBucketLocation - get location for the bucket name from location cache, if not
33// fetch freshly by making a new request.
34func (c *Client) GetBucketLocation(ctx context.Context, bucketName string) (string, error) {
35 if err := s3utils.CheckValidBucketName(bucketName); err != nil {
36 return "", err
37 }
38 return c.getBucketLocation(ctx, bucketName)
39}
40
41// getBucketLocation - Get location for the bucketName from location map cache, if not
42// fetch freshly by making a new request.

Callers

nothing calls this directly

Calls 2

getBucketLocationMethod · 0.95
CheckValidBucketNameFunction · 0.92

Tested by

no test coverage detected