Expand description
Interface for Key-Value (KV) Stores
The KV store implementation in Tock has two levels:
-
KV Level: This level provides a standard key-value interface with common get/set/add/update/delete operations.
-
KV Permissions Level: This level mirrors the
KV
interface, but each call requires storage permissions. This permits implementing access control permissions with key-value stores in Tock.
The expected setup inside Tock will look like this:
+-----------------------+
| Capsule using K-V |
+-----------------------+
hil::kv::KVPermissions (this file)
+-----------------------+
| K-V in Tock |
+-----------------------+
hil::kv::KV (this file)
+-----------------------+
| K-V library |
+-----------------------+
hil::flash
Traitsยง
- Key-Value interface.
- Callback trait for KV stores.
- Key-Value interface with permissions.