exit

package
v50.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shutdown

func Shutdown() error

Shutdown spawns the "shutdown -h now" command to halt the machine

Types

type ExitManager

type ExitManager struct {
	// contains filtered or unexported fields
}

ExitManager manages worker exit.

func New

func New(runnercfg *cfg.RunnerConfig, state *run.State) *ExitManager

Make a new ExitManager object

func (*ExitManager) SetProtocol

func (em *ExitManager) SetProtocol(proto *workerproto.Protocol)

func (*ExitManager) WorkerFinished

func (em *ExitManager) WorkerFinished() error

Jump to

Keyboard shortcuts

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