Mercurial > hg > orthanc-object-storage
diff Google/GoogleStoragePlugin.h @ 70:16e419fe80c5
Google & Azure: Added the "EnableLegacyUnknownFiles" configuration option
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 06 Sep 2021 14:21:56 +0200 |
parents | b922ae86bbe1 |
children | d7295e8678d7 |
line wrap: on
line diff
--- a/Google/GoogleStoragePlugin.h Fri Jul 09 15:40:07 2021 +0200 +++ b/Google/GoogleStoragePlugin.h Mon Sep 06 14:21:56 2021 +0200 @@ -29,24 +29,3 @@ static const char* GetStoragePluginName(); static IStoragePlugin* CreateStoragePlugin(const OrthancPlugins::OrthancConfiguration& orthancConfig); }; - - -class GoogleStoragePlugin : public BaseStoragePlugin -{ -public: - - std::string bucketName_; - google::cloud::storage::Client mainClient_; // the client that is created at startup. Each thread should copy it when it needs it. (from the doc: Instances of this class created via copy-construction or copy-assignment share the underlying pool of connections. Access to these copies via multiple threads is guaranteed to work. Two threads operating on the same instance of this class is not guaranteed to work.) - -public: - - GoogleStoragePlugin(const std::string& bucketName, - google::cloud::storage::Client& mainClient, - bool enableLegacyStorageStructure - ); - - virtual IWriter* GetWriterForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled); - virtual IReader* GetReaderForObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled); - virtual void DeleteObject(const char* uuid, OrthancPluginContentType type, bool encryptionEnabled); - virtual const char* GetConfigurationSectionName(); -};