Versions in this module Expand all Collapse all v0 v0.4.1 Nov 2, 2026 v0.4.0 Oct 31, 2026 Changes in this version + const KindAsync + const KindDataset + const KindGRPC + const OutcomeCancelled + const OutcomeError + const OutcomeOK + const OutcomeStopped + const OutcomeTimeout + var ErrExampleName = errors.New(...) + func CredentialHeaders(rec Record) []string + func ExampleFile(requestFile, name string) string + func GRPCCallOf(d Deps, in SendInput, includeSecrets bool) (grpcx.Call, diag.List) + func Observers(fns ...func(Event)) func(Event) + func PinExample(rec Record, requestFile, name string) (string, error) + func ResponseKey(version, overlay string) string + func ValidExampleName(name string) bool + func WriteHAR(w io.Writer, records []Record, version string) error + type AttemptRecord struct + Duration time.Duration + Error string + Status int + Wait time.Duration + type AuthPrompted struct + Code string + Expires time.Time + Kind string + Path string + RunID string + URL string + func (AuthPrompted) EventName() string + type Body struct + Base64 string + ContentType string + File string + JSON any + ParseErr string + RawSize int64 + SHA256 string + Size int64 + Text string + type DatasetRunner interface + Run func(ctx context.Context, q dataset.Query) (dataset.Result, error) + type Deps struct + After func(time.Duration) <-chan time.Time + AuthTokens *authx.TokenCache + Clock func() time.Time + DataDir func(collection model.ID) string + Dataset DatasetRunner + Environ []string + GRPC GRPCRunner + Lookup Lookup + NewID func() string + Nodes func(model.NodeType) (nodes.Runner, bool) + Observe func(Event) + Schemas SchemaChecker + Traceparent func(runID, path string) string + Transport http.RoundTripper + Transports transport.Registry + UserAgent string + Vault *vault.Vault + type Digest struct + Format string + Node string + Path string + RunID string + Text string + func (Digest) EventName() string + type Event interface + EventName func() string + type GRPCRunner interface + Run func(ctx context.Context, c grpcx.Call) (grpcx.Result, error) + type Header struct + Name string + Value string + type HookChain struct + Message []HookRef + Post []HookRef + Pre []HookRef + func ChainFor(c model.Collection, r model.Request, v model.RequestVersion) HookChain + func (c HookChain) Filter(ctl model.HookControl) HookChain + type HookFinished struct + Depth int + Diags diag.List + Duration time.Duration + Index int + Level string + Path string + Phase string + RunID string + Status Status + Step string + func (HookFinished) EventName() string + type HookRef struct + Level string + Step model.HookStep + func (h HookRef) Label() string + type HookStarted struct + Depth int + Index int + Level string + Path string + Phase string + RunID string + Step string + func (HookStarted) EventName() string + type Hop struct + Forwarded []string + Header []Header + Location string + Status int + URL string + type Log struct + Message string + Node string + Path string + RunID string + func (Log) EventName() string + type Lookup interface + Collection func(id model.ID) (model.Collection, bool) + Flow func(ref model.Ref, from model.ID) (model.Collection, model.Flow, bool) + Request func(ref model.Ref, from model.ID) (model.Collection, model.Request, bool) + Settings func(collection model.ID, folder string, version model.Settings) settings.Resolved + type MessageReceived struct + Depth int + Message RecordMessage + Path string + RequestID string + RunID string + Seq int + func (MessageReceived) EventName() string + type NodeFinished struct + Depth int + Diags diag.List + Duration time.Duration + Handled bool + Lane string + Node string + Outputs map[string]any + Parent string + Path string + Reason string + RunID string + Status Status + Type string + func (NodeFinished) EventName() string + type NodeStarted struct + Depth int + Lane string + Name string + Node string + Parent string + Path string + RunID string + Type string + func (NodeStarted) EventName() string + type Overlay struct + Name string + Ops []model.OverlayOp + type Preview struct + Diags diag.List + Masked PreviewRequest + Real *PreviewRequest + func PreviewSend(d Deps, in SendInput, includeSecrets bool) Preview + type PreviewPart struct + ContentType string + File string + Name string + Value string + type PreviewRequest struct + Body string + BodyKind string + File string + Headers []Header + Method string + Parts []PreviewPart + URL string + type Record struct + At time.Time + Attempts []AttemptRecord + Body Body + CollectionID model.ID + GRPCCode string + GRPCMessage string + Header []Header + ID string + Kind string + Messages []RecordMessage + Outcome string + Outputs map[string]any + Overlay string + Proto string + Redirects []Hop + Request SentRequest + RequestID model.ID + RequestPath string + RunID string + Status int + Timings Timings + Trailers []Header + Version string + VersionSource string + func (r *Record) HasMessages() bool + func (r *Record) Rows() (count int, truncated bool) + func (r Record) Masked(m vault.Masker) Record + type RecordCaptured struct + Depth int + Node string + Path string + Record Record + RunID string + func (RecordCaptured) EventName() string + type RecordMessage struct + At time.Time + Body Body + Direction string + Headers []Header + Key string + Offset int64 + Partition int32 + Sequence uint64 + type RequestSchemer interface + RequestSchema func(c model.Collection, r model.Request, version string) (schema map[string]any, ok bool) + type RequestSent struct + Attempt int + Depth int + Method string + Path string + RequestID string + RequestPath string + RunID string + URL string + Version string + VersionSource string + func (RequestSent) EventName() string + type ResponseReceived struct + Attempt int + Depth int + Duration time.Duration + Error string + Outcome string + Path string + RequestID string + RunID string + Status int + Wait time.Duration + func (ResponseReceived) EventName() string + type Run struct + func StartRun(ctx context.Context, d Deps, in RunInput) *Run + func (r *Run) Events() <-chan Event + func (r *Run) Wait() RunResult + type RunAborted struct + Grace time.Duration + Inflight []string + Reason string + RunID string + func (RunAborted) EventName() string + type RunCancelled struct + RunID string + func (RunCancelled) EventName() string + type RunFinished struct + Duration time.Duration + RunID string + Status Status + func (RunFinished) EventName() string + type RunInput struct + Collection model.Collection + Env string + Flow model.Flow + Grace time.Duration + Inputs map[string]string + Only []string + Overlay string + PreferVersion string + Prior map[string]map[string]any + PriorVars map[string]any + Seed uint64 + Skip []string + type RunResult struct + Captured []Record + Diags diag.List + Err error + Report report.Run + ReportFile string + RunID string + Saved []string + Seed uint64 + Status Status + type RunStarted struct + At time.Time + Env string + FlowID string + FlowPath string + Kind string + Overlay string + RunID string + Seed uint64 + func (RunStarted) EventName() string + type SchemaChecker interface + Check func(c model.Collection, r model.Request, version string, rec Record) diag.List + type SchemaMatcher interface + Match func(c model.Collection, r model.Request, version string, status int, body any) (violations []SchemaViolation, found bool) + type SchemaViolation struct + Message string + Path string + type Send struct + func StartSend(ctx context.Context, d Deps, in SendInput) *Send + func (s *Send) Events() <-chan Event + func (s *Send) Wait() SendResult + type SendInput struct + Collection model.Collection + Env string + Hooks model.HookControl + Overlay *Overlay + PinnedVersion string + PreferVersion string + Request model.Request + Save string + Seed uint64 + With map[string]string + type SendResult struct + Diags diag.List + Err error + Record *Record + RunID string + Saved []string + Seed uint64 + Status Status + Vars map[string]any + type SentRequest struct + Body *Body + Header []Header + Method string + URL string + type Status string + const StatusAborted + const StatusCancelled + const StatusError + const StatusFailed + const StatusPassed + const StatusSkipped + type Timings struct + Connect time.Duration + DNS time.Duration + TLS time.Duration + TTFB time.Duration + Total time.Duration + type Warning struct + Diag diag.Diagnostic + RunID string + func (Warning) EventName() string