Documentation ¶
Overview ¶
ecosystemmock extractor just returns the passed in Ecosystem string from Ecosystem() This is useful when manually creating an inventory so that inv.Ecosystem() returns the ecosystem you want
Index ¶
- type Extractor
- func (e Extractor) Ecosystem(_ *extractor.Inventory) string
- func (e Extractor) Extract(_ context.Context, _ *filesystem.ScanInput) ([]*extractor.Inventory, error)
- func (e Extractor) FileRequired(_ filesystem.FileAPI) bool
- func (e Extractor) Name() string
- func (e Extractor) Requirements() *plugin.Capabilities
- func (e Extractor) ToPURL(_ *extractor.Inventory) *purl.PackageURL
- func (e Extractor) Version() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor struct {
MockEcosystem string
}
func (Extractor) Ecosystem ¶
Ecosystem returns the OSV ecosystem ('npm') of the software extracted by this extractor.
func (Extractor) FileRequired ¶
func (e Extractor) FileRequired(_ filesystem.FileAPI) bool
func (Extractor) Requirements ¶
func (e Extractor) Requirements() *plugin.Capabilities
Click to show internal directories.
Click to hide internal directories.