mrunners

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, factory RunnerFactory)

Types

type Runner

type Runner struct {
	Order  int
	Long   bool
	Action RunnerAction
}

func Create

func Create(opts RunnerOptions) (Runner, error)

type RunnerAction

type RunnerAction interface {
	Do(ctx context.Context)
}

type RunnerFactory

type RunnerFactory = func(opts RunnerOptions) (Runner, error)

type RunnerOptions

type RunnerOptions struct {
	Unit   munit.Unit
	Exec   mexec.Manager
	Logger mlog.ProcLogger
}

func (RunnerOptions) Error

func (ro RunnerOptions) Error(message string)

func (RunnerOptions) Print

func (ro RunnerOptions) Print(message string)

Jump to

Keyboard shortcuts

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