utils

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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 HideFlagTimeout(command *cobra.Command)

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.

Jump to

Keyboard shortcuts

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