From 79adb856c26390f402fb5d15a64954f4b7173c57 Mon Sep 17 00:00:00 2001 From: cooki Date: Mon, 25 Nov 2024 22:11:19 +0000 Subject: [PATCH] update --- src/bucket/archive/mod.rs | 44 +++++++++++++++++++++++++++++++++++++++ src/bucket/mod.rs | 3 ++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 src/bucket/archive/mod.rs diff --git a/src/bucket/archive/mod.rs b/src/bucket/archive/mod.rs new file mode 100644 index 0000000..0de1540 --- /dev/null +++ b/src/bucket/archive/mod.rs @@ -0,0 +1,44 @@ +use crate::unix_timestamp::UnixTimestamp; + +use super::{bucket_compression::BucketCompression, bucket_guid::BucketGuid, bucket_path::BucketRelativePath}; + + +pub struct BucketMetadata { + pub guid: BucketGuid, + pub updated_at: UnixTimestamp, + pub created_at: UnixTimestamp, + pub capacity: u64, + pub size: u64, +} + +pub struct BucketObjectMetadata { + pub updated_at: UnixTimestamp, + pub created_at: UnixTimestamp, + pub size: u64, + pub encoding: ObjectEncoding, + pub path: BucketRelativePath, + pub hashes: ObjectHashes, +} + + +pub struct VirtualZipMetadate { + pub compression_level: u8, + pub compressed_parts: Vec, + pub compression_algorithm: BucketCompression, +} + + + + + +pub struct ObjectEncoding { +} + + +pub struct ObjectHashes { + sha_256: Option, + sha_512: Option, + crc_32: Option, + crc_64: Option, + blake3: Option, +} diff --git a/src/bucket/mod.rs b/src/bucket/mod.rs index 12d93ef..7ef1e3a 100644 --- a/src/bucket/mod.rs +++ b/src/bucket/mod.rs @@ -8,4 +8,5 @@ pub mod bucket_compression; pub mod storage_operation_behavior_flags; pub mod bucket_limits; pub mod conditional_requests; -pub mod encryption; \ No newline at end of file +pub mod encryption; +pub mod archive;