|
PACS System 0.1.0
PACS DICOM system library
|
Mock S3 client for testing without AWS SDK dependency. More...


Public Member Functions | |
| mock_s3_client (const cloud_storage_config &) | |
| auto | put_object (const std::string &key, const std::vector< std::uint8_t > &data) -> VoidResult override |
| auto | get_object (const std::string &key) -> Result< std::vector< std::uint8_t > > override |
| auto | delete_object (const std::string &key) -> VoidResult override |
| auto | head_object (const std::string &key) const -> bool override |
| auto | get_object_size (const std::string &key) const -> std::size_t override |
| auto | list_objects () const -> std::vector< std::string > override |
| auto | is_connected () const -> bool override |
| auto | multipart_upload (const std::string &key, const std::vector< std::uint8_t > &data, std::size_t part_size, progress_callback callback) -> VoidResult override |
Public Member Functions inherited from kcenon::pacs::storage::s3_storage::s3_client_interface | |
| virtual | ~s3_client_interface ()=default |
Private Attributes | |
| std::unordered_map< std::string, std::vector< std::uint8_t > > | objects_ |
| bool | connected_ |
Mock S3 client for testing without AWS SDK dependency.
Simulates S3 operations using in-memory storage. Always used when PACS_USE_MOCK_S3 is defined or PACS_WITH_AWS_SDK is not set.
Definition at line 112 of file s3_storage.cpp.
|
inlineexplicit |
Definition at line 114 of file s3_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::s3_storage::s3_client_interface.
Definition at line 142 of file s3_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::s3_storage::s3_client_interface.
Definition at line 128 of file s3_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::s3_storage::s3_client_interface.
Definition at line 160 of file s3_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::s3_storage::s3_client_interface.
Definition at line 152 of file s3_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::s3_storage::s3_client_interface.
Definition at line 179 of file s3_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::s3_storage::s3_client_interface.
Definition at line 169 of file s3_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::s3_storage::s3_client_interface.
Definition at line 183 of file s3_storage.cpp.
References kcenon::pacs::storage::s3_storage::s3_client_interface::put_object().

|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::s3_storage::s3_client_interface.
Definition at line 117 of file s3_storage.cpp.
|
private |
Definition at line 206 of file s3_storage.cpp.
|
private |
Definition at line 205 of file s3_storage.cpp.