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 ¶
View Source
var CmdTimeout = time.Minute
CmdTimeout defines timeout for a command
View Source
var GrepTimeout = time.Minute
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 StartDummy ¶
StartDummy starts dummy analyzer with context and optional arguments
func StartServe ¶
StartServe starts lookout server with context and optional arguments
func StoppableCtx ¶
StoppableCtx return ctx and stop function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.