planner

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAsyncBashJob

func NewAsyncBashJob(caller string, metadata labels.Set, bin string, params []string) job.Job

TODO

func NewBashJob

func NewBashJob(caller string, metadata labels.Set, bin string, params []string) job.Job

Types

type Manager

type Manager interface {
	// business
	model.Planner
	// lifecycle
	common.Debuggable
	common.Daemon
}

func New

func New(es common.MessageSender, opts ...Option) Manager

type Option

type Option func(*manager)

func WithLogDir added in v0.7.0

func WithLogDir(dir string) Option

WithLogDir is where command plans keep one log file per run, under a directory per plan. Empty keeps no files.

func WithLogger

func WithLogger(logger log.Logger) Option

func WithName

func WithName(name string) Option

func WithOutputTailBytes added in v0.7.0

func WithOutputTailBytes(n int) Option

WithOutputTailBytes is how much trailing output a command plan's run reports.

Jump to

Keyboard shortcuts

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