Skip to content
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

Merged
merged 1 commit into from
Jan 5, 2017

Conversation

harshavardhana
Copy link
Member

Fixes #585

@harshavardhana
Copy link
Member Author

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.
Copy link
Member

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 {
Copy link
Member

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.

Copy link
Member Author

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.

@harshavardhana harshavardhana force-pushed the support-s3-transfer branch 4 times, most recently from ca63123 to 3f0a373 Compare January 5, 2017 04:27
@harshavardhana harshavardhana removed the request for review from abperiasamy January 5, 2017 04:27
@harshavardhana harshavardhana merged commit 71a719f into minio:master Jan 5, 2017
@harshavardhana harshavardhana deleted the support-s3-transfer branch January 5, 2017 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants