77e69b9cf3
Signed-off-by: Olivier Gambier <olivier@docker.com>
24 lines
326 B
Go
24 lines
326 B
Go
package oss
|
|
|
|
import (
|
|
"github.com/denverdino/aliyungo/util"
|
|
)
|
|
|
|
var originalStrategy = attempts
|
|
|
|
func SetAttemptStrategy(s *util.AttemptStrategy) {
|
|
if s == nil {
|
|
attempts = originalStrategy
|
|
} else {
|
|
attempts = *s
|
|
}
|
|
}
|
|
|
|
func SetListPartsMax(n int) {
|
|
listPartsMax = n
|
|
}
|
|
|
|
func SetListMultiMax(n int) {
|
|
listMultiMax = n
|
|
}
|