Documentation ¶
Overview ¶
Package subcommand provides a way to execute subcommands while passing the arguments and output via filesystem to avoid data size limitations. It also shares the configuration and other params needed to run cmdintegration and handles panics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KillCommand ¶
func KillCommand(opts KillCmdOpts, cmdname string) error
KillCommand stops a running process
Types ¶
type Cancelled ¶
type Cancelled struct {
// contains filtered or unexported fields
}
Cancelled implementation of error.
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command is struct for executing cmdintegration based commands
type KillCmdOpts ¶
type KillCmdOpts struct {
PrintLog func(msg string, args ...interface{})
}
type Opts ¶
type Opts struct { Logger hclog.Logger Tmpdir string IntegrationConfig cmdintegration.AgentConfig AgentConfig agentconf.Config Integrations []inconfig.IntegrationAgent DeviceInfo deviceinfo.CommonInfo }
Opts are options needed to create Command
Click to show internal directories.
Click to hide internal directories.