Documentation
¶
Index ¶
- func EnsureResultDir(resultsDir string, scannedAt time.Time) (currentDir string, err error)
- func ParseInstalledPkgs(distro config.Distro, kernel models.Kernel, pkgList string) (models.Packages, models.SrcPackages, error)
- func ViaHTTP(header http.Header, body string, toLocalFile bool) (models.ScanResult, error)
- type DetectedCveID
- type DummyFileInfo
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureResultDir ¶
EnsureResultDir ensures the directory for scan results
func ParseInstalledPkgs ¶ added in v0.15.11
Types ¶
type DetectedCveID ¶
type DetectedCveID struct {
CveID string
Confidence models.Confidence
}
DetectedCveID has CveID, Confidence and DetectionMethod fields LenientMatching will be true if this vulnerability is not detected by accurate version matching. see https://github.com/future-architect/vuls/pull/328
type Scanner ¶
type Scanner struct {
ResultsDir string
TimeoutSec int
ScanTimeoutSec int
CacheDBPath string
Debug bool
LogDir string
Quiet bool
DetectIPS bool
Targets map[string]config.ServerInfo
}
Scanner has functions for scan
func (Scanner) Configtest ¶
Configtest checks if the server is scannable.
Click to show internal directories.
Click to hide internal directories.