1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use StorageError;
/// Writes and deletes arbitrary binary blobs in storage by logical path.
///
/// Implementations handle the details of persisting bytes to the backing
/// store (Git tree mutations, filesystem writes, database inserts).
///
/// Usage:
/// ```ignore
/// use auths_core::ports::storage::BlobWriter;
///
/// fn save_metadata(writer: &dyn BlobWriter, id: &str, data: &[u8]) {
/// let path = format!("identities/{id}/metadata");
/// writer.put_blob(&path, data).unwrap();
/// }
/// ```