Documentation
¶
Index ¶
- Constants
- type CheckFunc
- type CheckResult
- func CheckClaudeProcess(tc *tmux.Client, sessionName string) CheckResult
- func CheckClaudeSession(uuid string) CheckResult
- func CheckEnvVars(required []string) CheckResult
- func CheckPathEntries(required []string) CheckResult
- func CheckTmuxSession(client *tmux.Client, name string) CheckResult
- func CheckWorkdir(workdir string) CheckResult
- type Results
- type Runner
Constants ¶
const ( StatusPass = "pass" StatusFail = "fail" StatusRecovered = "recovered" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckFunc ¶
type CheckFunc func() CheckResult
CheckFunc is a function that performs a health check.
type CheckResult ¶
CheckResult holds the outcome of a single health check.
func CheckClaudeProcess ¶
func CheckClaudeProcess(tc *tmux.Client, sessionName string) CheckResult
CheckClaudeProcess checks that a claude child process is alive under the tmux pane.
func CheckClaudeSession ¶
func CheckClaudeSession(uuid string) CheckResult
CheckClaudeSession verifies that a Claude session UUID exists in ~/.claude/.
func CheckEnvVars ¶
func CheckEnvVars(required []string) CheckResult
CheckEnvVars checks that all required environment variables are set. Returns fail with list of missing vars if any are absent.
func CheckPathEntries ¶
func CheckPathEntries(required []string) CheckResult
CheckPathEntries checks that all required binaries are available in PATH. An empty list always passes.
func CheckTmuxSession ¶
func CheckTmuxSession(client *tmux.Client, name string) CheckResult
CheckTmuxSession verifies that a tmux session with the given name exists.
func CheckWorkdir ¶
func CheckWorkdir(workdir string) CheckResult
CheckWorkdir verifies that the given directory exists and is a directory.
func (CheckResult) Passed ¶
func (r CheckResult) Passed() bool
Passed returns true if the check passed or was recovered.
type Results ¶
type Results struct {
Items []CheckResult
}
Results holds the outcomes of all executed checks.
func (Results) Failures ¶
func (r Results) Failures() []CheckResult
Failures returns only the failed check results.