ecosystemmock

package
v2.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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

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

func (e Extractor) Ecosystem(_ *extractor.Inventory) string

Ecosystem returns the OSV ecosystem ('npm') of the software extracted by this extractor.

func (Extractor) Extract

func (Extractor) FileRequired

func (e Extractor) FileRequired(_ filesystem.FileAPI) bool

func (Extractor) Name

func (e Extractor) Name() string

func (Extractor) Requirements

func (e Extractor) Requirements() *plugin.Capabilities

func (Extractor) ToPURL

ToPURL converts an inventory created by this extractor into a PURL.

func (Extractor) Version

func (e Extractor) Version() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL