Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hound ¶
type Hound struct {
// contains filtered or unexported fields
}
Hound is a struct that holds the relevant information, such as the rules and config for the scanner
func (*Hound) CompileSingularRule ¶
CompileSingularRule compiles a single rule into the scanner
func (*Hound) ScanArchive ¶
ScanArchive extracts from the target archive and scans using the the compiled rules
type Result ¶
type Result struct { Path string `json:"path"` Matches []yara.MatchRule `json:"matches"` Err error `json:"error,omitempty"` }
Result is a struct containing the results of scanning a file
func (*Result) FormatMatches ¶
FormatMatches returns a slice of strings corresponding to the matched namespaced rules
func (*Result) LogResult ¶
func (r *Result) LogResult()
LogResult prints the result, showing matches for a particular filepath
func (*Result) MarshalJSON ¶
MarshalJSON marshals a Result into JSON
Click to show internal directories.
Click to hide internal directories.