Documentation ¶
Index ¶
- Constants
- func ConvertCycloneDXFileToSyftJSONFile(inputFilePath string, logger *log.Entry) (string, func(), error)
- func CreateResults(doc grype_models.Document, userInput, scannerName, hash string) *scanner.Results
- func New(conf *config.Config, logger *log.Entry, resultChan chan job_manager.Result) job_manager.Job
- func ReportError(resultChan chan job_manager.Result, err error, logger *log.Entry)
- type LocalScanner
- type RemoteScanner
Constants ¶
View Source
const (
ScannerName = "grype"
)
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.