common

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindMatchesByPackageCPE

func FindMatchesByPackageCPE(store vulnerability.ProviderByCPE, p pkg.Package, upstreamMatcher match.MatcherType) ([]match.Match, error)

FindMatchesByPackageCPE retrieves all vulnerabilities that match the generated CPE

func FindMatchesByPackageDistro

func FindMatchesByPackageDistro(store vulnerability.ProviderByDistro, d *distro.Distro, p pkg.Package, upstreamMatcher match.MatcherType) ([]match.Match, error)

func FindMatchesByPackageLanguage

func FindMatchesByPackageLanguage(store vulnerability.ProviderByLanguage, l syftPkg.Language, p pkg.Package, upstreamMatcher match.MatcherType) ([]match.Match, error)

Types

type FoundCPEs added in v0.13.0

type FoundCPEs struct {
	VersionConstraint string   `json:"versionConstraint"`
	CPEs              []string `json:"cpes"`
}

func (FoundCPEs) Equals added in v0.13.0

func (h FoundCPEs) Equals(other FoundCPEs) bool

type SearchedByCPEs added in v0.13.0

type SearchedByCPEs struct {
	Namespace string   `json:"namespace"`
	CPEs      []string `json:"cpes"`
}

func (*SearchedByCPEs) Merge added in v0.13.0

func (i *SearchedByCPEs) Merge(other SearchedByCPEs) error

Jump to

Keyboard shortcuts

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