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

Move s3 signature v4 and v2 to a separate pkg #562

Merged
merged 1 commit into from
Dec 10, 2016

Conversation

vadmeste
Copy link
Member

@vadmeste vadmeste commented Dec 9, 2016

Avoid code duplication by moving code related to signture v2 and v4 in a different location

@vadmeste vadmeste force-pushed the use_s3_signer_pkg branch 2 times, most recently from aff8cb6 to 14e7b4f Compare December 9, 2016 20:23
@@ -32,6 +35,17 @@ var supportedGetReqParams = map[string]struct{}{
"response-content-disposition": {},
}

// getCredential - generates Credential field for post policy
func getCredential(accessKeyID, location string, t time.Time) string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to signer package as well s3signer.GetCredential

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to signer package as well s3signer.GetCredential

Done

@harshavardhana harshavardhana merged commit f69b61d into minio:master Dec 10, 2016
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