Documentation
¶
Overview ¶
Package statusboard renders the status of an object cluster-wide, for a reader to grasp its issues at a sight: a board of the resources by node, the instance states above it, and below it the notes saying what needs attention.
The resources are rows, in the order the actions run them, grouped by subset, and the nodes are columns. A cell holds the status of the resource on the node, the flags departing from the usual, and the marker of the notes about it. What the label of a resource says the same on every node stays in the label column, and what differs, as a node-scoped address, goes on rows of its own under it, "@<node> <value>". The resource logs, long lines that differ per node, are notes the markers point to, so the board keeps its width.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinDocuments ¶
JoinDocuments joins the renderings of several objects, as their boards or their instance status trees, with a "---" line between each, set apart by empty lines.
func Render ¶
Render returns the board of the object status, its notes wrapped to width columns, or as wide as they need when width is 0.
func RenderTerminal ¶
RenderTerminal returns the board as wide as the terminal attached to the standard output, or the COLUMNS environment variable says, as wide as it needs otherwise.
func RenderTerminalList ¶
RenderTerminalList returns the boards of the objects, separated by a "---" line, as RenderTerminal renders each of them.
Types ¶
This section is empty.