Documentation
¶
Index ¶
- func BuildCompareSpec(targets []string, baseline string) *restfile.CompareSpec
- func CloneCompareSpec(spec *restfile.CompareSpec) *restfile.CompareSpec
- func CompareBaseIndex(rows []engine.CompareRow, want string) int
- func CompareBaseline(rows []engine.CompareRow, want string) string
- func Emit(ctx context.Context, s Sink, e Evt) error
- func EmitAll(ctx context.Context, s Sink, es ...Evt) error
- func RunCompare(ctx context.Context, dep Dep, sink Sink, pl *ComparePlan) error
- func RunPlan(ctx context.Context, dep Dep, sink Sink, pl *WorkflowPlan) error
- func RunProfile(ctx context.Context, dep Dep, sink Sink, pl *ProfilePlan) error
- type CmpRowDone
- type CmpRowStart
- type ComparePlan
- type Dep
- type Evt
- type EvtMeta
- type IterMeta
- type Mode
- type NopSink
- type ProIterDone
- type ProIterStart
- type ProfilePlan
- type ReqDone
- type ReqMeta
- type ReqStart
- type RowMeta
- type RunDone
- type RunMeta
- type RunStart
- type Sink
- type SinkFunc
- type StepMeta
- type WfStepDone
- type WfStepStart
- type WorkflowPlan
- type WorkflowStepRuntime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCompareSpec ¶ added in v0.27.2
func BuildCompareSpec(targets []string, baseline string) *restfile.CompareSpec
func CloneCompareSpec ¶ added in v0.27.2
func CloneCompareSpec(spec *restfile.CompareSpec) *restfile.CompareSpec
func CompareBaseIndex ¶
func CompareBaseIndex(rows []engine.CompareRow, want string) int
func CompareBaseline ¶
func CompareBaseline(rows []engine.CompareRow, want string) string
func RunCompare ¶
func RunProfile ¶
Types ¶
type CmpRowDone ¶
type CmpRowDone struct {
Meta EvtMeta
Row RowMeta
Result engine.RequestResult
}
type CmpRowStart ¶
type ComparePlan ¶
type ComparePlan struct {
Run RunMeta
Doc *restfile.Document
Request *restfile.Request
Spec restfile.CompareSpec
}
func PrepareCompare ¶
func PrepareCompare( doc *restfile.Document, req *restfile.Request, spec *restfile.CompareSpec, run RunMeta, ) (*ComparePlan, error)
type Dep ¶
type Dep interface {
CollectVariables(
*restfile.Document,
*restfile.Request,
string,
...map[string]string,
) map[string]string
ExecuteWith(
*restfile.Document,
*restfile.Request,
string,
request.ExecOptions,
) (engine.RequestResult, error)
EvalCondition(
context.Context,
*restfile.Document,
*restfile.Request,
string,
string,
*restfile.ConditionSpec,
map[string]string,
map[string]rts.Value,
) (bool, string, error)
EvalForEachItems(
context.Context,
*restfile.Document,
*restfile.Request,
string,
string,
request.ForEachSpec,
map[string]string,
map[string]rts.Value,
) ([]rts.Value, error)
EvalValue(
context.Context,
*restfile.Document,
*restfile.Request,
string,
string,
string,
string,
rts.Pos,
map[string]string,
map[string]rts.Value,
) (rts.Value, error)
PosForLine(*restfile.Document, *restfile.Request, int) rts.Pos
ValueString(context.Context, rts.Pos, rts.Value) (string, error)
}
type ProIterDone ¶
type ProIterDone struct {
Meta EvtMeta
Iter IterMeta
Result engine.RequestResult
}
type ProIterStart ¶
type ProfilePlan ¶
type ProfilePlan struct {
Run RunMeta
Doc *restfile.Document
Request *restfile.Request
Spec restfile.ProfileSpec
Total int
}
func PrepareProfile ¶
type WfStepDone ¶
type WfStepDone struct {
Meta EvtMeta
Step StepMeta
Result engine.RequestResult
}
type WfStepStart ¶
type WorkflowPlan ¶
type WorkflowPlan struct {
Run RunMeta
Doc *restfile.Document
Workflow restfile.Workflow
Steps []WorkflowStepRuntime
Reqs map[string]*restfile.Request
Vars map[string]string
WfVars bool
}
func PrepareForEach ¶
func PrepareWorkflow ¶
type WorkflowStepRuntime ¶
type WorkflowStepRuntime struct {
Step restfile.WorkflowStep
Req *restfile.Request
}
Click to show internal directories.
Click to hide internal directories.