runner

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CyclicDependencyError

type CyclicDependencyError struct {
	On   string
	Path []string
}

func (*CyclicDependencyError) Error

func (e *CyclicDependencyError) Error() string

func (*CyclicDependencyError) Trace added in v0.2.3

func (e *CyclicDependencyError) Trace() string

type Engine

type Engine interface {
	EvaluateTargets(ctx context.Context, labels ...string) []Result
}

type Result

type Result struct {
	Target Target
	Error  error
}

type Runner added in v0.3.2

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner added in v0.3.2

func NewRunner(targets Targets, maxParallelism int) *Runner

func (*Runner) Metrics added in v0.3.2

func (r *Runner) Metrics() (running, waiting int)

func (*Runner) Run added in v0.3.2

func (r *Runner) Run(ctx context.Context, label string) error

type Target

type Target interface {
	Evaluate(ctx context.Context, engine Engine) error
}

type Targets

type Targets interface {
	LoadTarget(ctx context.Context, label string) (Target, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL