util

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 2

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 StringInSlice(st string, sl []string) bool

func TrimQuotes

func TrimQuotes(str string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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