VictoriaMetrics/vendor/github.com/aws/aws-sdk-go-v2/service/s3/bucketer.go
2023-08-11 08:38:36 -07:00

16 lines
248 B
Go

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()
}