Documentation
¶
Overview ¶
Package fakecortex answers TheHive's Cortex job endpoint from memory, for unit tests of code that polls analyzer jobs. It is a package of its own so a tool package can use it from its internal tests: testutils imports the tools, and importing net/http directly makes bodyclose flag every SDK call in the package under test.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Jobs ¶
type Jobs struct {
// contains filtered or unexported fields
}
Jobs answers each job's replies in turn, repeating the last one. A job it has no reply for is answered 404. It also answers the scope query TheHiveMCP runs before reading a job: every job is in scope unless OutOfScope says not.
func (*Jobs) OutOfScope ¶
OutOfScope makes the scope query exclude these jobs.
Click to show internal directories.
Click to hide internal directories.