package osutil
import "github.com/coreos/etcd/pkg/osutil"
Package osutil implements operating system-related utility functions.
Index ¶
- func Exit(code int)
- func HandleInterrupts()
- func RegisterInterruptHandler(h InterruptHandler)
- func Unsetenv(key string) error
- type InterruptHandler
Functions ¶
func Exit ¶
func Exit(code int)
Exit calls os.Exit
func HandleInterrupts ¶
func HandleInterrupts()
HandleInterrupts is a no-op on windows
func RegisterInterruptHandler ¶
func RegisterInterruptHandler(h InterruptHandler)
RegisterInterruptHandler is a no-op on windows
func Unsetenv ¶
Types ¶
type InterruptHandler ¶
type InterruptHandler func()
Source Files ¶
interrupt_windows.go osutil.go signal.go
- Version
- v3.2.30+incompatible
- Published
- Apr 1, 2020
- Platform
- windows/amd64
- Imports
- 4 packages
- Last checked
- 58 minutes ago –
Tools for package owners.