Documentation
¶
Index ¶
- Variables
- func Grep(r io.Reader, substr string) (bool, *bytes.Buffer)
- func GrepAndNot(r io.Reader, substr, noSubstr string)
- func GrepTrue(r io.Reader, substr string)
- func ResetDB()
- func RunCli(ctx context.Context, cmd string, args ...string) io.Reader
- func StartDummy(ctx context.Context, args ...string) io.Reader
- func StartServe(ctx context.Context, args ...string) (io.Reader, io.WriteCloser)
- func StoppableCtx() (context.Context, func())
Constants ¶
This section is empty.
Variables ¶
CmdTimeout defines timeout for a command
GrepTimeout defines timeout grep is waiting for substring
Functions ¶
func Grep ¶
Grep reads from reader until finds substring with timeout return result and content that was read
func GrepAndNot ¶
GrepAndNot reads from reader until finds substring with timeout and checks noSubstr was read or fails printing read lines
func GrepTrue ¶
GrepTrue reads from reader until finds substring with timeout or fails printing read lines
func RunCli ¶
RunCli runs lookout subcommand (not a server)
func StartDummy ¶
StartDummy starts dummy analyzer with context and optional arguments
func StartServe ¶
StartServe starts lookout server with context and optional arguments
Types ¶
This section is empty.
Source Files
¶
- cmds.go
- grep.go
Click to show internal directories.
Click to hide internal directories.