Documentation ¶
Overview ¶
Package nodejs contains components for interrogating nodejs packages in container layers.
Index ¶
- Variables
- func NewCoalescer(_ context.Context) (indexer.Coalescer, error)
- func NewEcosystem(_ context.Context) *indexer.Ecosystem
- type Matcher
- func (*Matcher) Filter(record *claircore.IndexRecord) bool
- func (*Matcher) Name() string
- func (*Matcher) Query() []driver.MatchConstraint
- func (*Matcher) VersionAuthoritative() bool
- func (*Matcher) VersionFilter()
- func (*Matcher) Vulnerable(_ context.Context, _ *claircore.IndexRecord, _ *claircore.Vulnerability) (bool, error)
- type Scanner
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Repository = claircore.Repository{
Name: repository,
URI: "https://www.npmjs.com/",
}
)
Functions ¶
Types ¶
type Matcher ¶
type Matcher struct{}
Matcher attempts to correlate discovered nodejs packages with reported vulnerabilities.
func (*Matcher) Filter ¶
func (*Matcher) Filter(record *claircore.IndexRecord) bool
Filter implements driver.Matcher.
func (*Matcher) Query ¶
func (*Matcher) Query() []driver.MatchConstraint
Query implements driver.Matcher.
func (*Matcher) VersionAuthoritative ¶
func (*Matcher) VersionFilter ¶
func (*Matcher) VersionFilter()
func (*Matcher) Vulnerable ¶
func (*Matcher) Vulnerable(_ context.Context, _ *claircore.IndexRecord, _ *claircore.Vulnerability) (bool, error)
Vulnerable implements driver.Matcher.
type Scanner ¶
type Scanner struct{}
Scanner implements the scanner.PackageScanner interface.
It looks for files that seem like package.json and looks at the metadata recorded there.
The zero value is ready to use.
func (*Scanner) DefaultRepository ¶
func (*Scanner) DefaultRepository(_ context.Context) *claircore.Repository
DefaultRepository implements indexer.DefaultRepoScanner.
Click to show internal directories.
Click to hide internal directories.