diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-19 01:40:38 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-19 01:40:38 +0800 |
| commit | 1e9c97c21f8a4e55420712b054895ff8b4f9a849 (patch) | |
| tree | c6bd37889deb54c024f974f368a9a7d654cad822 /rola-utils/constants/src/bucket.rs | |
| parent | e078163c7cdbbf226c18d3e3afa7268a2878e18b (diff) | |
Implement bucket bind CRUD operations and config loading, along with
CLI integration for listing, setting, and removing bucket bindings.
Diffstat (limited to 'rola-utils/constants/src/bucket.rs')
| -rw-r--r-- | rola-utils/constants/src/bucket.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rola-utils/constants/src/bucket.rs b/rola-utils/constants/src/bucket.rs index e2ebff2..b195b93 100644 --- a/rola-utils/constants/src/bucket.rs +++ b/rola-utils/constants/src/bucket.rs @@ -15,6 +15,9 @@ mod consts { /// Tag storage directory, used to record tags for easy file location pub const DIR_BUCKET_ID_TAGS: &str = "./tags/"; + /// ID mapping table, used to map local IDs to remote IDs (client-only) + pub const DIR_BUCKET_IDMAP: &str = "./map/"; + /// Full object file path template pub const FILE_BUCKET_OBJ: &str = "./objects/{slice1}/{slice2}/{fullname}"; @@ -33,6 +36,16 @@ mod consts { /// Tag file, internally points to a file_id pub const FILE_BUCKET_ID_TAG: &str = "./tags/{tag_name}"; + + /// ID mapping chunk, used to map local IDs to remote IDs (client-only) + /// 26635 bytes per chunk + pub const FILE_BUCKET_IDMAP: &str = "./map/{chunk_num}"; + + /// Remote BUCKET binding (client-only) + pub const FILE_BUCKET_BIND: &str = "./BIND_{bind_id}"; + + /// Prefix of remote BUCKET binding file (client-only) + pub const PREFIX_BUCKET_BIND: &str = "BIND_"; } pub use consts::*; |
