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


Classes | |
| struct | blob_data |
Public Member Functions | |
| mock_azure_client (const azure_storage_config &) | |
| auto | put_blob (const std::string &blob_name, const std::vector< std::uint8_t > &data) -> VoidResult override |
| auto | get_blob (const std::string &blob_name) -> Result< std::vector< std::uint8_t > > override |
| auto | delete_blob (const std::string &blob_name) -> VoidResult override |
| auto | head_blob (const std::string &blob_name) const -> bool override |
| auto | get_blob_size (const std::string &blob_name) const -> std::size_t override |
| auto | get_blob_etag (const std::string &blob_name) const -> std::string override |
| auto | get_blob_md5 (const std::string &blob_name) const -> std::string override |
| auto | list_blobs () const -> std::vector< std::string > override |
| auto | is_connected () const -> bool override |
| auto | stage_block (const std::string &blob_name, const std::string &block_id, const std::vector< std::uint8_t > &data) -> VoidResult override |
| auto | commit_blocks (const std::string &blob_name, const std::vector< std::string > &block_ids) -> VoidResult override |
| auto | set_tier (const std::string &blob_name, const std::string &tier) -> VoidResult override |
Public Member Functions inherited from kcenon::pacs::storage::azure_blob_storage::azure_client_interface | |
| virtual | ~azure_client_interface ()=default |
Private Attributes | |
| std::unordered_map< std::string, blob_data > | blobs_ |
| std::unordered_map< std::string, std::unordered_map< std::string, std::vector< std::uint8_t > > > | staged_blocks_ |
| bool | connected_ |
Mock Azure Blob client for testing without Azure SDK dependency.
Simulates Azure Blob operations using in-memory storage. Always used when PACS_USE_MOCK_AZURE is defined or PACS_WITH_AZURE_SDK is not set.
Definition at line 143 of file azure_blob_storage.cpp.
|
inlineexplicit |
Definition at line 146 of file azure_blob_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 255 of file azure_blob_storage.cpp.
References kcenon::pacs::storage::mock_azure_client::blob_data::content_md5, kcenon::pacs::storage::mock_azure_client::blob_data::data, kcenon::pacs::storage::mock_azure_client::blob_data::etag, and kcenon::pacs::storage::mock_azure_client::blob_data::tier.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 182 of file azure_blob_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 166 of file azure_blob_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 210 of file azure_blob_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 219 of file azure_blob_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 201 of file azure_blob_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 193 of file azure_blob_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 238 of file azure_blob_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 228 of file azure_blob_storage.cpp.
References name.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 149 of file azure_blob_storage.cpp.
References kcenon::pacs::storage::mock_azure_client::blob_data::content_md5, kcenon::pacs::storage::mock_azure_client::blob_data::data, kcenon::pacs::storage::mock_azure_client::blob_data::etag, and kcenon::pacs::storage::mock_azure_client::blob_data::tier.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 294 of file azure_blob_storage.cpp.
|
inlinenodiscardoverridevirtual |
Implements kcenon::pacs::storage::azure_blob_storage::azure_client_interface.
Definition at line 242 of file azure_blob_storage.cpp.
|
private |
Definition at line 320 of file azure_blob_storage.cpp.
|
private |
Definition at line 324 of file azure_blob_storage.cpp.
|
private |
Definition at line 323 of file azure_blob_storage.cpp.