Expand description
In-memory aa-storage driver.
DashMap- and parking_lot-backed implementations of the six storage
traits, for unit/integration tests and local development without a real
database. State is ephemeral — it lives only for the life of the process.
§Driver registration
Call register from boot code to announce all six backends to an
aa_storage::Registry under DRIVER_NAME ("memory"), so an
agent-assembly.toml [storage] section can select them by name. The
per-kind factory types build a store from its [storage.memory]
subsection (which the memory driver ignores — it needs no connection
settings).
Modules§
- factory
- Factories that build the in-memory backends for the
aa-storagedriver registry.
Structs§
- Memory
Audit Sink - An
AuditSinkthat appends entries to an in-memory, unbounded buffer. - Memory
Credential Store - A
DashMap-backedCredentialStoremapping key strings to opaque secret bytes. Cloning shares the same underlying map. - Memory
Lifecycle Store - A
DashMap-backedLifecycleStoremapping a registered agent to the instant of its last heartbeat. Cloning shares the same underlying map. - Memory
Policy Store - A
DashMap-backedPolicyStorefor tests and local development. - Memory
Rate Limit Counter - A
DashMap-backedRateLimitCounter. - Memory
Session Store - A
DashMap-backedSessionStorekeyed by session id. Cloning shares the same underlying map.
Constants§
- DRIVER_
NAME - The name the memory driver registers all six storage backends under.
Functions§
- register
- Register the in-memory factories for all six storage kinds into
regunderDRIVER_NAME.