mirror of
https://github.com/nyanotech/object-holder.git
synced 2025-12-16 03:20:25 -08:00
add a flag to only operate on one prefix
This commit is contained in:
parent
b5785ef8fe
commit
11b3be2f16
2
main.go
2
main.go
@ -16,6 +16,7 @@ import (
|
||||
|
||||
var endpoint = flag.String("endpoint", "", "s3 endpoint")
|
||||
var bucket = flag.String("bucket", "", "bucket name")
|
||||
var prefix = flag.String("prefix", "", "only operate on objects starting with this prefix")
|
||||
|
||||
// todo - default to other credentials providers
|
||||
var accessKeyId = flag.String("access-key-id", "", "aws access key")
|
||||
@ -50,6 +51,7 @@ func main() {
|
||||
|
||||
paginator := s3.NewListObjectsV2Paginator(svc, &s3.ListObjectsV2Input{
|
||||
Bucket: bucket,
|
||||
Prefix: prefix,
|
||||
})
|
||||
|
||||
objectQueue := make(chan string)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user