-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce client level custom settings with S3TransferAccelerate() API. #586
Introduce client level custom settings with S3TransferAccelerate() API. #586
Conversation
Your review is needed @abperiasamy |
@@ -206,8 +209,7 @@ func privateNew(endpoint, accessKeyID, secretAccessKey string, secure bool) (*Cl | |||
|
|||
// SetAppInfo - add application details to user agent. | |||
func (c *Client) SetAppInfo(appName string, appVersion string) { | |||
// if app name and version is not set, we do not a new user | |||
// agent. | |||
// if app name and version is not set, we do not a new user agent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: s/we do not a new /we do not set a new
@@ -672,9 +685,17 @@ func (c Client) makeTargetURL(bucketName, objectName, bucketLocation string, que | |||
host := c.endpointURL.Host | |||
// For Amazon S3 endpoint, try to fetch location based endpoint. | |||
if s3utils.IsAmazonEndpoint(c.endpointURL) { | |||
// Fetch new host based on the bucket location. | |||
host = getS3Endpoint(bucketLocation) | |||
if c.isS3AccelerateEndpoint { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To support S3 transfer acceleration shouldn't minio-go validate the conditions mentioned in the docs?
http://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html#transfer-acceleration-requirements
e.g, this feature is applicable only on buckets where transfer acceleration is configured.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to validate them, it is up-to the user if they have enabled it from AWS console this would work.
We don't need to introduce a new API.
ca63123
to
3f0a373
Compare
3f0a373
to
4186f8c
Compare
4186f8c
to
bfd2bb8
Compare
Fixes #585