Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrHandlerExists = errors.New("handler with given name already exists")
)
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 Start ¶
func Start() error
Start begins handling SIGTERM and SIGINT and will run the given on-signal handlers when one is called. This can be cancelled by calling Stop().
func Unregister ¶
Unregister un-registers a given shutdown handler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.