java

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalSearchConfig added in v0.54.0

type ExternalSearchConfig struct {
	SearchMavenUpstream bool
	MavenBaseURL        string
}

type Matcher

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

func NewJavaMatcher added in v0.35.0

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 added in v0.35.0

type MatcherConfig struct {
	ExternalSearchConfig
	UseCPEs bool
}

type MavenSearcher added in v0.35.0

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