GetBucketLocation - get location for the bucket name from location cache, if not fetch freshly by making a new request.
(ctx context.Context, bucketName string)
| 32 | // GetBucketLocation - get location for the bucket name from location cache, if not |
| 33 | // fetch freshly by making a new request. |
| 34 | func (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. |
nothing calls this directly
no test coverage detected