shell

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute added in v0.3.1

func Execute(globalCtx context.Context, current ExecutionStage) error

func Shutdown

func Shutdown(ctx context.Context, cancel context.CancelFunc, shutdown func(cancelFunc context.CancelFunc)) error

Types

type ExecutionStage added in v0.3.1

type ExecutionStage interface {
	Name() string
	Configure(ctx context.Context, cancel context.CancelFunc) (context.Context, error)
	Run(ctx context.Context) (ExecutionStage, error)
	Shutdown(ctx context.Context, timeout context.CancelFunc) error
	ShutdownTimeout() time.Duration
}

Jump to

Keyboard shortcuts

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