pomxmlenhanceable

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pomxmlenhanceable provides an extractor for pom.xml files that can both do offline and transitive scanning.

Index

Constants

View Source
const (
	// Name is the unique name of this extractor.
	Name = "java/pomxmlenhanceable"
)

Variables

This section is empty.

Functions

func EnhanceIfPossible

func EnhanceIfPossible(plug plugin.Plugin, config pomxmlnet.Config)

EnhanceIfPossible calls Extractor.Enhance with the given config if the provided plug(in) is an Extractor

func New

func New() filesystem.Extractor

New returns a new instance of the extractor.

Types

type Extractor

type Extractor struct {
	// contains filtered or unexported fields
}

Extractor extracts Maven packages from pom.xml files.

func (*Extractor) Enhance

func (e *Extractor) Enhance(config pomxmlnet.Config)

Enhance uses the given config to improve the abilities of this extractor, at the cost of additional requirements such as networking and direct fs access

func (*Extractor) Extract

Extract extracts packages from pom.xml files passed through the scan input.

func (*Extractor) FileRequired

func (e *Extractor) FileRequired(api filesystem.FileAPI) bool

FileRequired returns true if the specified file matches Maven POM lockfile patterns.

func (*Extractor) Name

func (e *Extractor) Name() string

Name of the extractor

func (*Extractor) Requirements

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

Requirements of the extractor

func (*Extractor) Version

func (e *Extractor) Version() int

Version of the extractor

Jump to

Keyboard shortcuts

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