worker

package
v0.0.0-...-402b9ca Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTransformOutput

func DefaultTransformOutput(output string) string

Types

type Worker

type Worker struct {
	TmpDir string
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(options *WorkerExectionOptions) *Worker

func (*Worker) AddEnv

func (w *Worker) AddEnv(key, value string)

func (*Worker) ExecCommand

func (w *Worker) ExecCommand(name string, args ...string) error

func (*Worker) Run

func (w *Worker) Run()

type WorkerExectionOptions

type WorkerExectionOptions struct {
	Handler            executionHandler
	ExecutionDirectory string
	TransformOutput    func(output string) string
	IgnoreFilePatterns []string
}

Jump to

Keyboard shortcuts

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