From ccd55d529dd7dcd6db2d39e16215457c7cdd02e7 Mon Sep 17 00:00:00 2001 From: Nick Douma Date: Wed, 11 Nov 2020 11:48:57 +0100 Subject: [PATCH] Add s3.list-objects-v1 extended option and default to false --- internal/backend/s3/config.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/internal/backend/s3/config.go b/internal/backend/s3/config.go index 93de42152..a0aa95609 100644 --- a/internal/backend/s3/config.go +++ b/internal/backend/s3/config.go @@ -20,16 +20,18 @@ type Config struct { Layout string `option:"layout" help:"use this backend layout (default: auto-detect)"` StorageClass string `option:"storage-class" help:"set S3 storage class (STANDARD, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING or REDUCED_REDUNDANCY)"` - Connections uint `option:"connections" help:"set a limit for the number of concurrent connections (default: 5)"` - MaxRetries uint `option:"retries" help:"set the number of retries attempted"` - Region string `option:"region" help:"set region"` - BucketLookup string `option:"bucket-lookup" help:"bucket lookup style: 'auto', 'dns', or 'path'."` + Connections uint `option:"connections" help:"set a limit for the number of concurrent connections (default: 5)"` + MaxRetries uint `option:"retries" help:"set the number of retries attempted"` + Region string `option:"region" help:"set region"` + BucketLookup string `option:"bucket-lookup" help:"bucket lookup style: 'auto', 'dns', or 'path'."` + ListObjectsV1 bool `option:"list-objects-v1" help:"use deprecated V1 api for ListObjects calls."` } // NewConfig returns a new Config with the default values filled in. func NewConfig() Config { return Config{ - Connections: 5, + Connections: 5, + ListObjectsV1: false, } }