mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-24 03:06:48 +01:00
16 lines
248 B
Go
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()
|
|
}
|