Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = errors.New("executable not found")
ErrNotFound is returned from LauncherFromPath when the zeek executable is not found.
Functions ¶
This section is empty.
Types ¶
type Launcher ¶
Launcher is a function to start a pcap import process given a context, input pcap reader, and target output dir. If the process is started successfully, a ProcessWaiter and nil error are returned. If there is an error starting the Process, that error is returned.
func LauncherFromPath ¶
LauncherFromPath returns a Launcher instance that will execute a pcap to zeek log transformation, using the provided path to the command. zeekpath should point to an executable or script that: - expects to receive a pcap file on stdin - writes the resulting logs into its working directory
type ProcessWaiter ¶
type ProcessWaiter interface { // Wait waits for a running process to exit, returning any errors that // occur. Wait() error }
Process is an interface for interacting running with a running process.