scanner

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 9 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 {
	PluginName     string   // Name of the scanner plugin to use
	ConfigPath     string   // Path to the configuration file for the scanner
	ReportFormat   string   // Format of the report to generate (e.g., JSON, Sarif)
	AdditionalArgs []string // Additional arguments for the scanner
	ConcurrentJobs int      // Number of concurrent jobs to run
	// contains filtered or unexported fields
}

Scanner represents the configuration and behavior of a scanner.

func New

func New(pluginName, configPath, reportFormat string, additionalArgs []string, concurrentJobs int, logger hclog.Logger) *Scanner

New creates a new Scanner instance with the provided configuration.

func (*Scanner) PrepareScanArgs added in v0.2.0

func (s *Scanner) PrepareScanArgs(cfg *config.Config, repos []shared.RepositoryParams, targetPath, outputPath string) ([]shared.ScannerScanRequest, error)

PrepareScanArgs prepares the arguments needed for the scan operation with the provided configuration.

func (*Scanner) ScanRepos

func (s *Scanner) ScanRepos(cfg *config.Config, scanArgs []shared.ScannerScanRequest) (shared.GenericLaunchesResult, error)

ScanRepos scans multiple repositories concurrently and returns the aggregated results.

Jump to

Keyboard shortcuts

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