grype

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScannerName = "grype"
)

Variables

This section is empty.

Functions

func ConvertCycloneDXFileToSyftJSONFile

func ConvertCycloneDXFileToSyftJSONFile(inputFilePath string, logger *log.Entry) (string, func(), error)

func CreateResults

func CreateResults(doc grype_models.Document, userInput, scannerName, hash string) *scanner.Results

func New

func New(conf *config.Config, logger *log.Entry, resultChan chan job_manager.Result) job_manager.Job

func ReportError

func ReportError(resultChan chan job_manager.Result, err error, logger *log.Entry)

Types

type LocalScanner

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

func (*LocalScanner) Run

func (s *LocalScanner) Run(sourceType utils.SourceType, userInput string) error

type RemoteScanner

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

func (*RemoteScanner) Run

func (s *RemoteScanner) Run(sourceType utils.SourceType, userInput string) error

Jump to

Keyboard shortcuts

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