This upgrade, and vendors aws-sdk-go to version v1.12.36. This is because it has new API calls accessible to the S3 client, specifically S3.ListObjectsV2PagesWithContext Signed-off-by: Sargun Dhillon <sargun@sargun.me>
14 lines
406 B
Go
14 lines
406 B
Go
// +build go1.7
|
|
|
|
package request
|
|
|
|
import "github.com/aws/aws-sdk-go/aws"
|
|
|
|
// setContext updates the Request to use the passed in context for cancellation.
|
|
// Context will also be used for request retry delay.
|
|
//
|
|
// Creates shallow copy of the http.Request with the WithContext method.
|
|
func setRequestContext(r *Request, ctx aws.Context) {
|
|
r.context = ctx
|
|
r.HTTPRequest = r.HTTPRequest.WithContext(ctx)
|
|
}
|