Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶ added in v0.0.6
func Run(ctx context.Context, pcap io.Reader, w zio.Writer, d Display, interval time.Duration, confs ...Config) error
Run executes the provided configs against the pcap stream, writing the produced records to w. If interval is > 0, the d.Stats will be called at that interval.
Types ¶
type Config ¶
type Config struct {
Args []string `yaml:"args"`
Cmd string `yaml:"cmd"`
Globs []string `yaml:"globs"`
ReaderOpts anyio.ReaderOpts `yaml:"-"`
Shaper string `yaml:"shaper"`
StdoutPath string `yaml:"stdout"`
StderrPath string `yaml:"stderr"`
// WorkDir if set uses the provided directory as the working directory for
// the launched analyzer process. Normally a temporary directory is created
// then deleted when the process is complete. If WorkDir is set the working
// directory will not be deleted.
WorkDir string `yaml:"workdir"`
}
func LoadYAMLConfigFile ¶
type ProcessExitError ¶
func (*ProcessExitError) Error ¶
func (p *ProcessExitError) Error() string
Click to show internal directories.
Click to hide internal directories.