Documentation ¶
Index ¶
- type CITracker
- func (c *CITracker) FailedComputeOldSimilarityID()
- func (c *CITracker) FailedComputeSimilarityID()
- func (c *CITracker) FailedDetectLine()
- func (c *CITracker) GetOutputLines() int
- func (c *CITracker) TrackFileFound(path string)
- func (c *CITracker) TrackFileFoundCountLines(countLines int)
- func (c *CITracker) TrackFileIgnoreCountLines(countLines int)
- func (c *CITracker) TrackFileParse(path string)
- func (c *CITracker) TrackFileParseCountLines(countLines int)
- func (c *CITracker) TrackQueryExecuting(queryAggregation int)
- func (c *CITracker) TrackQueryExecution(queryAggregation int)
- func (c *CITracker) TrackQueryLoad(queryAggregation int)
- func (c *CITracker) TrackScanPath()
- func (c *CITracker) TrackScanSecret()
- func (c *CITracker) TrackVersion(retrievedVersion model.Version)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CITracker ¶
type CITracker struct { ExecutingQueries int ExecutedQueries int FoundFiles int FailedSimilarityID int FailedOldSimilarityID int LoadedQueries int ParsedFiles int ScanSecrets int ScanPaths int FoundCountLines int ParsedCountLines int IgnoreCountLines int Version model.Version BagOfFilesParse map[string]int BagOfFilesFound map[string]int // contains filtered or unexported fields }
func NewTracker ¶
NewTracker will create a new instance of a tracker with the number of lines to display in results output number of lines can not be smaller than 1
func (*CITracker) FailedComputeOldSimilarityID ¶
func (c *CITracker) FailedComputeOldSimilarityID()
FailedComputeOldSimilarityID - queries that failed to compute old similarity ID
func (*CITracker) FailedComputeSimilarityID ¶
func (c *CITracker) FailedComputeSimilarityID()
FailedComputeSimilarityID - queries that failed to compute similarity ID
func (*CITracker) FailedDetectLine ¶
func (c *CITracker) FailedDetectLine()
FailedDetectLine - queries that fail to detect line are counted as failed to execute queries
func (*CITracker) GetOutputLines ¶
GetOutputLines returns the number of lines to display in results output
func (*CITracker) TrackFileFound ¶
TrackFileFound adds a found file to be scanned
func (*CITracker) TrackFileFoundCountLines ¶
TrackFileFoundCountLines - information about the lines of the scanned files
func (*CITracker) TrackFileIgnoreCountLines ¶
TrackFileIgnoreCountLines - information about the lines ignored of the parsed files
func (*CITracker) TrackFileParse ¶
TrackFileParse adds a successful parsed file to be scanned
func (*CITracker) TrackFileParseCountLines ¶
TrackFileParseCountLines - information about the lines of the parsed files
func (*CITracker) TrackQueryExecuting ¶
TrackQueryExecuting adds a executing queries
func (*CITracker) TrackQueryExecution ¶
TrackQueryExecution adds a query executed
func (*CITracker) TrackQueryLoad ¶
TrackQueryLoad adds a loaded query
func (*CITracker) TrackScanPath ¶
func (c *CITracker) TrackScanPath()
TrackScanPath - paths to preform scan
func (*CITracker) TrackScanSecret ¶
func (c *CITracker) TrackScanSecret()
TrackScanSecret - add to secrets scanned
func (*CITracker) TrackVersion ¶
TrackVersion - information if current version is latest