recoveryreport

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package recoveryreport prints what recovering a map's capabilities did, as text for people or as one JSON document for tools, and the exit code it ends with. It reads a recovery.Report and changes nothing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitCode added in v0.0.21

func ExitCode(r recovery.Report) int

ExitCode is how a recovery run ends: 2 when any capability failed, else 1 when any is not yet recovered, else 0.

func WriteJSON

func WriteJSON(w io.Writer, r recovery.Report) error

WriteJSON writes the report as one indented JSON document, each capability's file and terms included.

func WriteText

func WriteText(w io.Writer, r recovery.Report) error

WriteText writes the report as text: a first line with the counts and the tokens used, then one block per capability that ran, then the capabilities not yet recovered.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL