Module config

Source
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. See check_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 for dir, after checking that dir 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.