Documentation ¶
Overview ¶
Package report provides helper functions to extract data from the generated reports
Index ¶
- func ExtractFileHierarchy(m *types.Molly) map[string][]string
- func ExtractFileList(m *types.Molly) []string
- func ExtractFlatMatch(m *types.Match) []*types.FlatMatch
- func ExtractFlatMatches(fr *types.FileData) []*types.FlatMatch
- func ExtractLogHierarchy(r *types.Report) map[string][]string
- func ExtractMatchNames(i *types.FileData, flatten bool) []string
- func ExtractReverseTagHierarchy(mr *types.Report) map[string][]string
- func ExtractTagHierarchy(mr *types.Report) map[string][]string
- func ExtractTags(fr *types.FileData) []string
- func ExtractTagsFromRule(rule *types.Rule) []string
- func FindInFileMatch(f *types.FileData, rulename string) *types.Match
- func FindInFileVar(f *types.FileData, rulename, varname string) (interface{}, bool)
- func FindInReportFile(r *types.Report, filename string) *types.FileData
- func FindInReportMatch(r *types.Report, filename, rulename string) *types.Match
- func FindInReportVar(r *types.Report, filename, rulename, varname string) (interface{}, bool)
- func FindInReportVarBool(r *types.Report, filename, rulename, varname string) (bool, bool)
- func FindInReportVarNumber(r *types.Report, filename, rulename, varname string) (int64, bool)
- func FindInReportVarString(r *types.Report, filename, rulename, varname string) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFileHierarchy ¶
ExtractFileHierarchy creates file hierarchy for generated files
func ExtractFileList ¶
ExtractFileList creates a list of all scanned files
func ExtractFlatMatch ¶
ExtractFlatMatch flattens one match hierarchy
func ExtractFlatMatches ¶
ExtractFlatMatches creates a flat match list for all rules that have no children
func ExtractLogHierarchy ¶
ExtractLogHierarchy creates the hierarchy for logs generated for files
func ExtractMatchNames ¶
ExtractMatchNames return name of all matches
func ExtractReverseTagHierarchy ¶
ExtractReverseTagHierarchy creates file hierarchy for file -> tags
func ExtractTagHierarchy ¶
ExtractTagHierarchy creates file hierarchy for tag -> files
func ExtractTags ¶
ExtractTags gathers tags from a file match
func ExtractTagsFromRule ¶
ExtractTagsFromRule extracts tags from a rule
func FindInFileMatch ¶
FindInFileMatch find match to a rule in a file, rulename "" means any
func FindInFileVar ¶
FindInFileVar finds a variable in a match in a file
func FindInReportFile ¶
FindInReportFile find a file in a report, filename "" means any
func FindInReportMatch ¶
FindInReportMatch find a file in a report, filename or rulename "" means any
func FindInReportVar ¶
FindInReportVar returns variable from a match
func FindInReportVarBool ¶
FindInReportVarBool is a helper for FindInReport when it returns a boolean
func FindInReportVarNumber ¶
FindInReportVarNumber is a helper for FindInReport when it returns a number
Types ¶
This section is empty.