scanner

package
v3.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScanConfig

type ScanConfig struct {
	IgnoreResultIds []string
	IgnoreRules     []string
	WithValidation  bool
}

type ScanItem

type ScanItem struct {
	Content *string
	// Unique identifier of the item
	ID string
	// User-friendly description and/or link to the item
	Source string
}

func (ScanItem) GetContent

func (i ScanItem) GetContent() *string

func (ScanItem) GetGitInfo

func (i ScanItem) GetGitInfo() *plugins.GitInfo

func (ScanItem) GetID

func (i ScanItem) GetID() string

func (ScanItem) GetSource

func (i ScanItem) GetSource() string

type Scanner

type Scanner interface {
	Scan(scanItems []ScanItem, scanConfig ScanConfig) (*reporting.Report, error)
	ScanDynamic(itemsIn <-chan ScanItem, scanConfig ScanConfig) (*reporting.Report, error)
}

func NewScanner

func NewScanner() Scanner

Jump to

Keyboard shortcuts

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