Documentation
¶
Index ¶
- Constants
- Variables
- func AddCommandsFromRegistry(rootCmd *cobra.Command, runtime runtime.Runtime, hiddenColumnTags []string)
- func AddConfigFlag(cmd *cobra.Command)
- func AddFlags(cmd *cobra.Command, params *params.Params, skipParams []params.ValueHint, ...)
- func AddInstanceCommands(rootCmd *cobra.Command, runtime *grpcruntime.Runtime)
- func AddOCIFlags(cmd *cobra.Command, params *params.Params, skipParams []string, ...)
- func AddVerboseFlag(rootCmd *cobra.Command)
- func InitConfig(rootFlags *pflag.FlagSet) error
- func NewConfigCmd(runtime runtime.Runtime, rootFlags *pflag.FlagSet) *cobra.Command
- func NewLoginCmd() *cobra.Command
- func NewLogoutCmd() *cobra.Command
- func NewRunCommand(rootCmd *cobra.Command, runtime runtime.Runtime, hiddenColumnTags []string, ...) *cobra.Command
- func NewSyncCommand(runtime *grpcruntime.Runtime) *cobra.Command
- func NewVersionCmd() *cobra.Command
- func SetFlagsForParams(cmd *cobra.Command, params *params.Params, configPrefix string) error
- type CommandMode
- type GadgetInfo
- type Param
Constants ¶
View Source
const FilePrefix = "@"
Variables ¶
View Source
var Verbose bool
Functions ¶
func AddCommandsFromRegistry ¶
func AddCommandsFromRegistry(rootCmd *cobra.Command, runtime runtime.Runtime, hiddenColumnTags []string)
AddCommandsFromRegistry adds all gadgets known by the registry as cobra commands as a subcommand to their categories
func AddConfigFlag ¶ added in v0.31.0
AddConfigFlag adds the --config flag to the command
func AddInstanceCommands ¶ added in v0.33.0
func AddInstanceCommands( rootCmd *cobra.Command, runtime *grpcruntime.Runtime, )
func AddOCIFlags ¶ added in v0.33.0
func AddVerboseFlag ¶ added in v0.18.0
func InitConfig ¶ added in v0.31.0
InitConfig initializes the config by reading the config file and setting root flags
func NewConfigCmd ¶ added in v0.31.0
func NewLoginCmd ¶ added in v0.20.0
func NewLogoutCmd ¶ added in v0.20.0
func NewRunCommand ¶ added in v0.27.0
func NewSyncCommand ¶ added in v0.21.0
func NewSyncCommand(runtime *grpcruntime.Runtime) *cobra.Command
func NewVersionCmd ¶ added in v0.21.0
Types ¶
type CommandMode ¶ added in v0.33.0
type CommandMode string
const ( CommandModeRun CommandMode = "run" CommandModeAttach CommandMode = "attach" )
type GadgetInfo ¶ added in v0.33.0
type GadgetInfo struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.