java

package
v0.0.0-...-2b6c84e Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalSearchConfig

type ExternalSearchConfig struct {
	SearchMavenUpstream bool
	MavenBaseURL        string
}

type Matcher

type Matcher struct {
	MavenSearcher
	// contains filtered or unexported fields
}

func NewJavaMatcher

func NewJavaMatcher(cfg MatcherConfig) *Matcher

func (*Matcher) Match

func (m *Matcher) Match(store vulnerability.Provider, d *distro.Distro, p pkg.Package) ([]match.Match, error)

func (*Matcher) PackageTypes

func (m *Matcher) PackageTypes() []syftPkg.Type

func (*Matcher) Type

func (m *Matcher) Type() match.MatcherType

type MatcherConfig

type MatcherConfig struct {
	ExternalSearchConfig
	UseCPEs bool
}

type MavenSearcher

type MavenSearcher interface {
	// GetMavenPackageBySha provides an interface for building a package from maven data based on a sha1 digest
	GetMavenPackageBySha(string) (*pkg.Package, error)
}

MavenSearcher is the interface that wraps the GetMavenPackageBySha method.

Jump to

Keyboard shortcuts

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