Skip to main content

Crate agent_diva_files

Crate agent_diva_files 

Source
Expand description

File management system for Agent Diva

Provides content-addressed storage with deduplication and reference counting. Files are stored by their SHA256 hash, enabling automatic deduplication. Reference counting ensures files are only deleted when no longer referenced.

§模块组织

  • backend - 存储后端 trait 和本地实现
  • config - 配置管理
  • handle - FileHandle 和元数据类型
  • hooks - 生命周期钩子系统(压缩、加密、权限检查等)
  • index - SQLite 索引实现
  • manager - FileManager 主接口
  • storage - 文件存储和 SHA256 计算

Re-exports§

pub use backend::BackendStats;
pub use backend::LocalStorageBackend;
pub use backend::StorageBackend;
pub use channel::ChannelFileInfo;
pub use channel::ChannelManager;
pub use channel::ChannelStats;
pub use config::default_data_dir;
pub use config::default_data_dir_or_fallback;
pub use config::CleanupConfig;
pub use config::CleanupStrategy;
pub use config::FileConfig;
pub use handle::FileHandle;
pub use hooks::CleanupHook;
pub use hooks::HookAction;
pub use hooks::HookCounts;
pub use hooks::HookRegistry;
pub use hooks::MetadataHook;
pub use hooks::ReadHook;
pub use hooks::StorageHook;
pub use index::FileIndex;
pub use index::IndexStats;
pub use index::SqliteIndex;
pub use manager::FileManager;
pub use storage::FileStorage;
pub use storage::StorageStats;

Modules§

backend
Storage backend trait and implementations
channel
频道文件管理模块 - Channel File Management Module
config
Configuration for file management system
handle
File handle with reference counting
hooks
Hook System - 钩子系统的全面解析
index
SQLite-based file index
manager
FileManager - Core file management system
storage
Storage backend for file management

Enums§

FileError
Errors that can occur in the file management system

Type Aliases§

Result