Documentation
¶
Overview ¶
Package resources provides formatted output helpers for the resources command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
JSON writes system resource information as formatted JSON to the command's output writer.
Parameters:
- cmd: Cobra command for output. Nil is a no-op.
- snap: collected system resource snapshot
- alerts: evaluated resource alerts
Returns:
- error: Non-nil on JSON encoding failure
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.