Documentation
¶
Overview ¶
Package live provides the host-side LiveProvider implementations: probe (the /-/version convention), command (the universal adapter - any CLI's output is the answer) and static (a ref handed in directly, e.g. piped to the CLI). Deployment records live in the gitlab package, beside the forge that keeps them, and the assumed fallback lives in the core engine, because only the engine knows Green.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseOutput ¶
ParseOutput applies the command output contract: a JSON object {commit, builtAt, state}, or a single token that is a SHA, a tag, or an image ref whose tag part is the answer. The same parser backs the CLI's pipe form (`kubectl ... | onair --live-ref -`).
Types ¶
type Command ¶
Command is the universal live provider: run a user-supplied command and treat its stdout as the answer to "what is live". kubectl, flyctl, ssh + docker inspect, even the heroku CLI - all one seam, no per-platform adapters. Confidence is Reported: user-asserted truth we did not observe ourselves.
Contract: stdout is a commit SHA or anything resolvable to one (a tag, an image ref whose tag is the SHA), or a JSON object {commit, builtAt, state}. A non-zero exit means Live is unavailable - the engine degrades to Assumed = Green.