~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/gopkg.in/amz.v3/s3/export_test.go

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package s3
 
2
 
 
3
import (
 
4
        "net/http"
 
5
 
 
6
        "gopkg.in/amz.v3/aws"
 
7
)
 
8
 
 
9
var originalStrategy = attempts
 
10
 
 
11
func BuildError(resp *http.Response) error {
 
12
        return buildError(resp)
 
13
}
 
14
 
 
15
func SetAttemptStrategy(s *aws.AttemptStrategy) {
 
16
        if s == nil {
 
17
                attempts = originalStrategy
 
18
        } else {
 
19
                attempts = *s
 
20
        }
 
21
}
 
22
 
 
23
func AttemptStrategy() aws.AttemptStrategy {
 
24
        return attempts
 
25
}
 
26
 
 
27
func SetListPartsMax(n int) {
 
28
        listPartsMax = n
 
29
}
 
30
 
 
31
func SetListMultiMax(n int) {
 
32
        listMultiMax = n
 
33
}