tasklet

package
v1.29.5 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRun

func MustRun(runner Runner, opts Opts)

func Run

func Run(runner Runner, opts Opts) error

Types

type Opts

type Opts struct {
	Signal        chan os.Signal
	Timeout       time.Duration
	SuccessPrefix string
}

type Runner

type Runner struct {
	Runner   TaskletFn
	StartMsg string
	StopMsg  string
}

type TaskletFn

type TaskletFn func(output.Progress) error

Jump to

Keyboard shortcuts

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