Skip to main content

Module secure_store

Module secure_store 

Source
Expand description

Reusable storage primitives with private-at-creation state.

Structs§

SecureDirectory
A held storage directory; missing components are created privately.
SecureDirectoryLock
A held lock authorizing lock/reread/replace transactions in one directory.

Enums§

SecureStoreError
Fail-closed storage errors with no file contents or secret values.

Constants§

DEFAULT_LOCK_BUDGET
Default budget for bounded cross-process store locks.

Functions§

lock_within_file
Bounded retry of try_lock_once; true when acquired within budget.
try_lock_once
Attempts one nonblocking exclusive lock on an already-open file.
unlock
Releases an exclusive lock held on file.