commands

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

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

func Agent(r *diag.Registry) diag.Command

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

func Clock() diag.Command

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

func NewDefaultRegistry() *diag.Registry

NewDefaultRegistry returns a fresh Registry with every built-in command pre-registered. Equivalent to NewRegistry + RegisterAll.

func RegisterAll

func RegisterAll(r *diag.Registry)

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.

Jump to

Keyboard shortcuts

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