Documentation ¶
Overview ¶
Package gobin implements a package scanner that pulls go runtime and dependency information out of a compiled executable.
Index ¶
- Variables
- func NewEcosystem(ctx context.Context) *indexer.Ecosystem
- type Detector
- type Matcher
- func (matcher *Matcher) Filter(record *claircore.IndexRecord) bool
- func (m *Matcher) Name() string
- func (matcher *Matcher) Query() []driver.MatchConstraint
- func (matcher *Matcher) VersionAuthoritative() bool
- func (matcher *Matcher) VersionFilter()
- func (matcher *Matcher) Vulnerable(ctx context.Context, record *claircore.IndexRecord, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Repository = claircore.Repository{
Name: "go",
URI: "https://pkg.go.dev/",
}
)
Functions ¶
Types ¶
type Detector ¶
type Detector struct{}
Detector detects go binaries and reports the packages used to build them.
func (Detector) DefaultRepository ¶
func (Detector) DefaultRepository(ctx context.Context) *claircore.Repository
Scan implements indexer.DefaultRepoScanner.
func (Detector) Scan ¶
Scan implements indexer.PackageScanner.
func (Detector) Version ¶
Version implements indexer.PackageScanner.
type Matcher ¶
type Matcher struct{}
Matcher matches discovered go packages against advisories provided via OSV.
func (*Matcher) Filter ¶
func (matcher *Matcher) Filter(record *claircore.IndexRecord) bool
Filter implements driver.Matcher.
func (*Matcher) Query ¶
func (matcher *Matcher) Query() []driver.MatchConstraint
Query implements driver.Matcher.
func (*Matcher) VersionAuthoritative ¶
func (*Matcher) VersionFilter ¶
func (matcher *Matcher) VersionFilter()
func (*Matcher) Vulnerable ¶
func (matcher *Matcher) Vulnerable(ctx context.Context, record *claircore.IndexRecord, vuln *claircore.Vulnerability) (bool, error)
Vulnerable implements driver.Matcher.
Click to show internal directories.
Click to hide internal directories.