Module zebra_state::config
source ยท Expand description
Cached state configuration for Zebra.
Modulesยง
- hidden ๐
Structsยง
- Configuration for the state service.
Functionsยง
- Check if
entry
is an old database directory, and delete it from the filesystem. Seecheck_and_delete_old_databases
for details. - Spawns a task that checks if there are old database folders, and deletes them from the filesystem.
- Spawns a task that checks if there are old state database folders, and deletes them from the filesystem.
- Returns the full semantic version of the on-disk database at
version_path
. - 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 ifentry
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 fromdir_name
. - read_
dir ๐Return aReadDir
fordir
, after checking thatdir
exists and can be read. - Returns the full semantic version of the on-disk state database, based on its config and network.