Expand description
Cached state configuration for Zebra.
Modules§
- hidden 🔒
Structs§
- Config
- Configuration for the state service.
Functions§
- check_
and_ 🔒delete_ database - Check if
entry
is an old database directory, and delete it from the filesystem. Seecheck_and_delete_old_databases
for details. - check_
and_ delete_ old_ databases - Spawns a task that checks if there are old database folders, and deletes them from the filesystem.
- check_
and_ delete_ old_ state_ databases - Spawns a task that checks if there are old state database folders, and deletes them from the filesystem.
- database_
format_ 🔒version_ at_ path - Returns the full semantic version of the on-disk database at
version_path
. - database_
format_ version_ on_ disk - Returns the full semantic version of the on-disk database, based on its config, kind, major version, and network.
- delete_
old_ 🔒databases - Check if there are old database folders and delete them from the filesystem.
- gen_
temp_ 🔒path - parse_
dir_ 🔒name - Check if
entry
is a directory with a valid UTF-8 name. (State directory names are guaranteed to be UTF-8.) - parse_
major_ 🔒version - Parse the database major version number from
dir_name
. - read_
dir 🔒 - Return a
ReadDir
fordir
, after checking thatdir
exists and can be read. - state_
database_ format_ version_ on_ disk - Returns the full semantic version of the on-disk state database, based on its config and network.