Versions in this module Expand all Collapse all v0 v0.6.5 Oct 9, 2026 v0.6.4 Oct 8, 2026 v0.6.3 Oct 8, 2026 Changes in this version + var Formats = []string + func Write(w io.Writer, format string, rep Report, color bool) error + func WriteJSON(w io.Writer, rep Report) error + func WriteJUnit(w io.Writer, rep Report) error + func WriteResult(w io.Writer, r Result, color bool) + func WriteTAP(w io.Writer, rep Report) + func WriteText(w io.Writer, rep Report, color bool) + type Check struct + Expr string + Line int + Name string + func ParseContract(r io.Reader) ([]Check, error) + func ParseContractFile(path string) ([]Check, error) + type Report struct + Contract string + EvaluatedAt time.Time + Results []Result + func (r Report) Counts() (passed, failed, errored int) + func (r Report) ExitCode() int + type Result struct + Detail string + Status Status + type Runner struct + At time.Time + Engine *promql.Engine + Parser promparser.Parser + Queryable storage.Queryable + Timeout time.Duration + func (r *Runner) Assert(ctx context.Context, expr string) Result + func (r *Runner) Run(ctx context.Context, c Check) Result + func (r *Runner) RunAll(ctx context.Context, checks []Check) []Result + type Status string + const StatusError + const StatusFail + const StatusPass