worker

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoExec = errors.New("no execution")
)

Functions

func Run

func Run(configPath string, taskPaths []string) error

Types

type APIExecutionSource

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

func (*APIExecutionSource) Next

func (a *APIExecutionSource) Next() (Execution, error)

func (*APIExecutionSource) Report

func (a *APIExecutionSource) Report(result Result) error

type Execution

type Execution client.GetWorkV1Response

type ExecutionSource

type ExecutionSource interface {
	Next() (Execution, error)
	Report(Result) error
}

type Result

type Result struct {
	RunError    error
	Execution   Execution
	TaskResults []command.RunResult
}

type Worker

type Worker struct {
	Exec               ExecutionSource
	ParallelExecutions int
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(configPath string, taskPaths []string) (*Worker, error)

func (*Worker) Start

func (w *Worker) Start()

func (*Worker) Stop

func (w *Worker) Stop() chan struct{}

Directories

Path Synopsis
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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