scanservice

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AggregateScanAndGetQueue = func(pluginName string, currentContent map[string]string, counts int, ignoreLength bool) []map[string]string {
	aggregatedScans, err := dbservice.AggregateScans(pluginName, currentContent, counts, ignoreLength)
	if err != nil {
		log.Printf("AggregateScans Error: %v", err)
		return aggregatedScans
	}
	if len(currentContent) != 0 && len(aggregatedScans) == 0 {
		log.Printf("New scan was added to the queue of %q without sending.", pluginName)
		return nil
	}
	return aggregatedScans
}
View Source
var (
	SeverityIndexes = map[string]int{
		"critical":   4,
		"high":       3,
		"medium":     2,
		"low":        1,
		"negligible": 0,
	}
)

Functions

This section is empty.

Types

type ScanService

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

func (*ScanService) ResultHandling

func (scan *ScanService) ResultHandling(input string, plugins map[string]plugins.Plugin)

Jump to

Keyboard shortcuts

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