Documentation ¶
Overview ¶
Package ruby contains components for interrogating ruby packages in container layers.
Package ruby contains components for interrogating ruby packages in container layers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
Repository = claircore.Repository{
Name: repository,
URI: "https://rubygems.org/gems/",
}
)
Functions ¶
Types ¶
type Matcher ¶ added in v1.5.7
type Matcher struct{}
Matcher attempts to correlate discovered ruby packages with reported vulnerabilities.
func (*Matcher) Filter ¶ added in v1.5.7
func (*Matcher) Filter(record *claircore.IndexRecord) bool
Filter implements driver.Matcher.
func (*Matcher) Query ¶ added in v1.5.7
func (*Matcher) Query() []driver.MatchConstraint
Query implements driver.Matcher.
func (*Matcher) Vulnerable ¶ added in v1.5.7
func (*Matcher) Vulnerable(ctx context.Context, record *claircore.IndexRecord, vuln *claircore.Vulnerability) (bool, error)
Vulnerable implements driver.Matcher.
type RepoScanner ¶
type RepoScanner struct{}
func (*RepoScanner) Kind ¶
func (*RepoScanner) Kind() string
Kind implements scanner.VersionedScanner.
func (*RepoScanner) Name ¶
func (*RepoScanner) Name() string
Name implements scanner.VersionedScanner.
func (*RepoScanner) Scan ¶
func (rs *RepoScanner) Scan(ctx context.Context, layer *claircore.Layer) ([]*claircore.Repository, error)
Scan attempts to find gems and record the package information there.
A return of (nil, nil) is expected if there's nothing found.
func (*RepoScanner) Version ¶
func (*RepoScanner) Version() string
Version implements scanner.VersionedScanner.
type Scanner ¶
type Scanner struct{}
Scanner implements the scanner.PackageScanner interface.
It looks for files that seem like gems, and looks at the metadata recorded there. This type attempts to follow the specs documented here: https://guides.rubygems.org/specification-reference/.
The zero value is ready to use.