summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_connection.h')
-rw-r--r--src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_connection.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_connection.h b/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_connection.h
index 5024eb10d46..d748378b8da 100644
--- a/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_connection.h
+++ b/src/third_party/wiredtiger/ext/storage_sources/s3_store/s3_connection.h
@@ -14,18 +14,18 @@
*/
class S3Connection {
public:
- explicit S3Connection(const Aws::S3Crt::ClientConfiguration &config);
- int ListBuckets(std::vector<std::string> &buckets) const;
- int ListObjects(const std::string &bucketName, const std::string &prefix,
- std::vector<std::string> &objects, uint32_t batchSize = 1000, bool listSingle = false) const;
- int PutObject(const std::string &bucketName, const std::string &objectKey,
- const std::string &fileName) const;
- int DeleteObject(const std::string &bucketName, const std::string &objectKey) const;
- int ObjectExists(
- const std::string &bucketName, const std::string &objectKey, bool &exists) const;
+ explicit S3Connection(const Aws::S3Crt::ClientConfiguration &config,
+ const std::string &bucketName, const std::string &objPrefix = "");
+ int ListObjects(const std::string &prefix, std::vector<std::string> &objects,
+ uint32_t batchSize = 1000, bool listSingle = false) const;
+ int PutObject(const std::string &objectKey, const std::string &fileName) const;
+ int DeleteObject(const std::string &objectKey) const;
+ int ObjectExists(const std::string &objectKey, bool &exists) const;
~S3Connection() = default;
private:
- const Aws::S3Crt::S3CrtClient s3CrtClient;
+ const Aws::S3Crt::S3CrtClient _s3CrtClient;
+ const std::string _bucketName;
+ const std::string _objectPrefix;
};
#endif