Skip to main content

Module setup

Module setup 

Source

Structsยง

LocalParams
Connection information sent between peers in order to start config gen
RestoredGuardianConfig
Restored guardian configuration staged in a temporary directory.
SetupApi
Serves the config gen API endpoints
SetupState
State held by the API after receiving a ConfigGenConnectionsRequest

Enumsยง

ConfigGenOutcome
Result sent from the setup API task to the main setup driver.

Functionsยง

is_expected_backup_path ๐Ÿ”’
restore_backup_to_dir ๐Ÿ”’
Create a fresh restore staging directory under data_dir and unpack into it.
server_endpoints
unpack_backup_to_restore_dir ๐Ÿ”’
Unpack a guardian backup tar into restore_dir and parse it.