{"modulePath":"github.com/Apstra/telegraf","version":"v0.0.0-20190826182817-366794569e4f","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package exec\n\n## Functions\n\n```go\nfunc AddNagiosState(exitCode error, acc telegraf.Accumulator) error\n```\n\n## Types\n\n```go\ntype CommandRunner struct{}\n```\n\n```go\nfunc (c CommandRunner) Run(\n\te *Exec,\n\tcommand string,\n\tacc telegraf.Accumulator,\n) ([]byte, error)\n```\n\n```go\ntype Exec struct {\n\tCommands []string\n\tCommand  string\n\tTimeout  internal.Duration\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewExec() *Exec\n```\n\n```go\nfunc (e *Exec) Description() string\n```\n\n```go\nfunc (e *Exec) Gather(acc telegraf.Accumulator) error\n```\n\n```go\nfunc (e *Exec) ProcessCommand(command string, acc telegraf.Accumulator, wg *sync.WaitGroup)\n```\n\n```go\nfunc (e *Exec) SampleConfig() string\n```\n\n```go\nfunc (e *Exec) SetParser(parser parsers.Parser)\n```\n\n```go\ntype Runner interface {\n\tRun(*Exec, string, telegraf.Accumulator) ([]byte, error)\n}\n```\n\n","path":"github.com/Apstra/telegraf/plugins/inputs/exec","name":"exec","synopsis":"","isRedistributable":true}
