scheduler

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, env *model.Environment, numWorkers int, p plan.Plan, pred func(work Work) (bool, error), f func(work Work) error) (int, error)

Types

type Error

type Error struct {
	Work Work
	Err  error
}

func (*Error) Error

func (e *Error) Error() string

type Work

type Work struct {
	I      int
	Target *model.Target
	Cmd    string
}

Jump to

Keyboard shortcuts

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