Documentation
¶
Overview ¶
Package commands holds the built-in diag commands. Each file registers one command; the dispatcher composes them into a Registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Agent ¶
Agent returns a Command that reports static + slow-changing agent state and the manifest of every other command in r. It is the first command an operator runs against an unfamiliar agent.
func Clock ¶
Clock returns a Command that reports the agent's current notion of time. Useful for diagnosing TLS / JWT failures rooted in clock skew.
func NewDefaultRegistry ¶
NewDefaultRegistry returns a fresh Registry with every built-in command pre-registered. Equivalent to NewRegistry + RegisterAll.
func RegisterAll ¶
RegisterAll registers every built-in diag command into r. The agent main calls this once at startup with a fresh registry. New commands just add a single line here.
Order does not matter for correctness — Registry sorts the manifest — but listing in dependency order helps reviewers see what's new.
Types ¶
This section is empty.