whiteout/storage/
mod.rs

1pub mod atomic;
2pub mod crypto;
3pub mod local;
4
5pub use local::LocalStorage;
6
7use serde::{Deserialize, Serialize};
8use std::collections::HashMap;
9use std::path::PathBuf;
10
11#[derive(Debug, Clone, Serialize, Deserialize)]
12pub struct StorageEntry {
13    pub file_path: PathBuf,
14    pub key: String,
15    pub value: String,
16    pub encrypted: bool,
17    pub timestamp: chrono::DateTime<chrono::Utc>,
18}
19
20#[derive(Debug, Clone, Serialize, Deserialize, Default)]
21pub struct StorageData {
22    pub entries: HashMap<String, StorageEntry>,
23    pub version: String,
24}