Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRunCmdOpts = RunCmdOpts{
SetupSignalHandler: core.SetupSignalHandler,
}
Functions ¶
func UsageOptions ¶
func UsageOptions(desc string, options ...interface{}) string
Types ¶
type RunCmdOpts ¶ added in v1.8.1
type RunCmdOpts struct {
// The first returned context is closed upon receiving first signal (SIGSTOP, SIGTERM).
// The second returned context is closed upon receiving second signal.
// We can start graceful shutdown when first context is closed and forcefully stop when the second one is closed.
SetupSignalHandler func() (context.Context, context.Context)
}
Click to show internal directories.
Click to hide internal directories.