Skip to main content

Crate hotshot_orchestrator

Crate hotshot_orchestrator 

Source
Expand description

Orchestrator for manipulating nodes and recording results during a run of HotShot tests

ModulesΒ§

client
The orchestrator’s clients

StructsΒ§

OrchestratorState πŸ”’
The state of the orchestrator

TraitsΒ§

OrchestratorApi
An api exposed by the orchestrator

FunctionsΒ§

api_router πŸ”’
Builds the api module’s routes. Existing clients call these both directly (e.g. api/identity) and under a major-version prefix (v0/api/identity), so the /api tree is mounted at the root and under /v0.
app πŸ”’
Builds the full router: the app-level healthcheck, plus the api module served both unversioned and under /v0. Every response carries permissive CORS headers.
decode_wrapped_body πŸ”’
Decode a POST body from OrchestratorClient.
decode_wrapped_peer_config πŸ”’
Like decode_wrapped_body, but for the ready route, whose inner payload is a raw PeerConfig::to_bytes blob rather than a second vbs-serialized value.
get_builders πŸ”’
get_start πŸ”’
get_tmp_node_index πŸ”’
healthcheck πŸ”’
libp2p_generate_indexed_identity
Generate an keypair based on a seed and an index
malformed_body πŸ”’
peer_pubconfig_ready πŸ”’
post_builder πŸ”’
post_config_after_peer_collected πŸ”’
post_getconfig πŸ”’
post_identity πŸ”’
post_manual_start πŸ”’
post_pubkey πŸ”’
post_ready πŸ”’
post_results πŸ”’
run_orchestrator
Runs the orchestrator

Type AliasesΒ§

OrchestratorVersion
VBS framing version for orchestrator request bodies and the client in client.rs.
SharedOrchestratorState πŸ”’
Shared, lock-guarded orchestrator state, cloned into every axum handler via State.