scan

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 29 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AdvisoriesSetResolved = "resolved"
	AdvisoriesSetAll      = "all"
)

Variables

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Package       Package
	Vulnerability Vulnerability
}

Finding represents a vulnerability finding for a single package.

func FilterWithAdvisories added in v0.1.0

func FilterWithAdvisories(result *Result, advisoryCfgs *configs.Index[v2.Document], advisoryFilterSet string) ([]*Finding, error)

FilterWithAdvisories filters the findings in the result based on the advisories for the target APK.

type Package

type Package struct {
	ID       string
	Name     string
	Version  string
	Type     string
	Location string
}

type Result added in v0.1.0

type Result struct {
	TargetAPK TargetAPK
	Findings  []*Finding
}

func APKSBOM

func APKSBOM(r io.Reader, localDBFilePath string) (*Result, error)

APKSBOM scans an SBOM of an APK for vulnerabilities.

type TargetAPK added in v0.1.0

type TargetAPK struct {
	Name    string
	Version string
}

type Vulnerability

type Vulnerability struct {
	ID           string
	Severity     string
	Aliases      []string
	FixedVersion string
}

Jump to

Keyboard shortcuts

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