ecosystemmock

package
v2.0.0-beta2 Latest Latest
Warning

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

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

Documentation

Overview

Package ecosystemmock provides an extractor that 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
JackTT - Gopher 🇻🇳