pkg

package
v0.0.0-...-aabf2b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(queuedFiles chan interfaces.File, output interfaces.OutputFormatter, llm interfaces.LlmConnector) *Scanner

func (*Scanner) AddDetector

func (scanner *Scanner) AddDetector(detector interfaces.Detector)

AddDetector adds a new detector to the scanner so that when the scan is started the added detectors are used to alert on findings

func (*Scanner) GetFilesWhichCouldNotBeScanned

func (scanner *Scanner) GetFilesWhichCouldNotBeScanned() chan string

func (*Scanner) GetNumberOfFilesScanned

func (scanner *Scanner) GetNumberOfFilesScanned() int

GetNumberOfFilesScanned returns the number of files which were already scanned

func (*Scanner) GetScannedFiles

func (scanner *Scanner) GetScannedFiles() chan string

func (*Scanner) IsRunning

func (scanner *Scanner) IsRunning() bool

IsRunning returns a boolean value if the scanner is still running

func (*Scanner) SetOptionLogFilesWhichCouldNotBeScanned

func (scanner *Scanner) SetOptionLogFilesWhichCouldNotBeScanned()

func (*Scanner) SetOptionLogScannedFiles

func (scanner *Scanner) SetOptionLogScannedFiles()

func (*Scanner) StartScanning

func (scanner *Scanner) StartScanning(numberOfParallelScanners int)

StartScanning starts the scanning routine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL