Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd is the command struct that will be executed after recive the order from the input plugins
func NewOrGet ¶
NewOrGet create the command struct and fill the parameters needed from the config data.
func (*Cmd) MatchConditions ¶
MatchConditions is a filter to replace the variables (usually commands arguments) that are coming from the Input message
func (*Cmd) Run ¶
func (o *Cmd) Run(parentCtx context.Context, rl reactorlog.ReactorLog, msg lib.Msg) error
Run will execute the binary command that was defined in the config. In this function we also define the OUT and ERR data destination of the command.
Click to show internal directories.
Click to hide internal directories.