Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrHandlerExists = errors.New("handler with given name already exists")
)
View Source
var (
ErrNotStarted = errors.New("shutdown signal handler has not yet been started")
)
Functions ¶
func Register ¶
Register registers a function that will be executed when Podman is terminated by a signal. Handlers are invoked LIFO - the last handler registered is the first run.
func SetExitCode ¶ added in v5.3.0
func SetExitCode(i int)
SetExitCode when we exit after we ran all shutdown handlers, it should be positive.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.