Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteExitHandlers ¶ added in v0.6.1
func ExecuteExitHandlers()
ExecuteExitHandlers is call all registered exit handlers This function should be called when program finish work(i.e. when VM is turned off by guest OS)
func RegisterExitHandler ¶ added in v0.6.1
func RegisterExitHandler(handler func())
RegisterExitHandler appends a func Exit handler to the list of handlers. The handlers will be invoked when vfkit receives a termination or interruption signal
This method is useful when a caller wishes to execute a func before a shutdown.
func SetupExitSignalHandling ¶ added in v0.6.1
func SetupExitSignalHandling(shutdownFunc func())
SetupExitSignalHandling sets up a signal channel to listen for termination or interruption signals. When one of these signals is received, all the registered exit handlers will be invoked, just before terminating the program.
func StringInSlice ¶
func TrimQuotes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.