Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommonFlags ¶
func AddCommonFlags(command *cobra.Command, commonFlags *CommonFlags)
func HideFlagTimeout ¶
func WaitForEnd ¶
func WaitForEnd(f *CommonFlags)
WaitForEnd waits until the user-set timeout happened or SIGINT or SIGTERM is sent to us
Types ¶
type CommonFlags ¶
type CommonFlags struct { // OutputConfig describes the way output should be printed. commonutils.OutputConfig // Saves all runtime socket paths commonutils.RuntimesSocketPathConfig // Containername allows to filter containers by name. Containername string // The name of the container runtimes to be used separated by comma. Runtimes string // RuntimeConfigs contains the list of the container runtimes to be used // with their specific socket path. RuntimeConfigs []*containerutils.RuntimeConfig // Number of seconds that the gadget will run for Timeout int }
CommonFlags contains CLI flags common to several gadgets.
Click to show internal directories.
Click to hide internal directories.