Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Leon committed Nov 25, 2024
1 parent 802cc80 commit 79adb85
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
44 changes: 44 additions & 0 deletions src/bucket/archive/mod.rs
Original file line number Diff line number Diff line change
@@ -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<BucketRelativePath>,
pub compression_algorithm: BucketCompression,
}





pub struct ObjectEncoding {
}


pub struct ObjectHashes {
sha_256: Option<String>,
sha_512: Option<String>,
crc_32: Option<u32>,
crc_64: Option<u64>,
blake3: Option<String>,
}
3 changes: 2 additions & 1 deletion src/bucket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
pub mod encryption;
pub mod archive;

0 comments on commit 79adb85

Please sign in to comment.