aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/aws/aws-sdk-go-v2/service/s3/bucketer.go
blob: 4e7f7e24e1c1196cc94e9f6d3721428f7b99a69f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package s3

// implemented by all S3 input structures
type bucketer interface {
	bucket() (string, bool)
}

func bucketFromInput(params interface{}) (string, bool) {
	v, ok := params.(bucketer)
	if !ok {
		return "", false
	}

	return v.bucket()
}