Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDir ¶
EnsureDir ensures the given directory exists, creating it if necessary. Errors if the path already exists as a non-directory.
func FileExists ¶
func TrapSignal ¶
func TrapSignal(logger logger, cb func())
TrapSignal catches SIGTERM and SIGINT, executes the cleanup function, and exits with code 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.