gradatum-storage
Storage trait abstraction with OpenDAL filesystem backend and NFS rejection guard.
Status: Alpha (v0.4.x) — public, Apache-2.0. API not yet stable before v1.0. Part of gradatum — memory backbone for AI agents. · github · gradatum.org
Overview
gradatum-storage defines the Storage async trait and provides a filesystem implementation
backed by OpenDAL. S3 and Azure Blob backends are planned for a future release.
The NFS guard (ensure_local_filesystem) uses statfs(2) to verify that the vault root
is not on an NFS mount before opening. This prevents silent data loss on network
partitions (spec caveat C11). FileStorage::new() calls this check automatically.
Usage
[]
= "0.4.0"
use FileStorage;
use Path;
let storage = new?;
let content = storage.read.await?;
Trait
Feature Flags
| Feature | Description |
|---|---|
fs (default) |
Filesystem backend via OpenDAL |
License
Apache-2.0