Expand description
Core check engine for bee-check.
The CLI in main.rs and (in future) the bee-check-web SPA both
consume the same Report shape produced here. See SPEC.md for
the JSON shape.
Structs§
- Chunk
Probe - Chunk
Vantage - Report
- Reseed
Request - Stamp
Status - Result of the
--reseed --stamp <id>pre-flight check. Mirrors ipfs-check’s “stale records” hint in spirit: surface upstream-data problems before doing the operation. - Vantage
Result
Enums§
- Output
Format - Status
- Outcome enum reported per vantage and aggregated for the whole check.
Functions§
- check_
multi_ vantage - Probe
/stewardship/{ref}across all vantages in parallel. Alongside the retrievability call, fetches/addresses(overlay) and/health(Bee version) so the rendered report can surface which neighborhood the probe came from. These ancillary calls are best-effort: failure leavesoverlay/bee_versionunset rather than failing the whole vantage. - check_
stamp - Pre-flight check before
--reseed: look upGET /stamps/{id}on the target Bee and surface usable/expiry concerns. Mirrors the spirit of ipfs-check’s “stale records” UX hint — flag freshness problems before doing the operation. - drill_
down - Walk the manifest at
report.reference, probe each leaf chunk viaGET /chunks/{addr}from every vantage, and attach the result to the report. When the per-vantage overlay is known (already fetched incheck_multi_vantage), eachChunkVantagealso carries the proximity between that vantage and the chunk. - render_
report - render_
stamp_ status - Human-readable summary of a stamp pre-flight check, suitable for
stderr before a
--reseedoperation. - reseed