parser

package
v0.0.0-...-dfd24c6 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	GroupID    string
	ArtifactID string
	Version    string
	Range      vulnmap.Range
}

func (Dependency) String

func (d Dependency) String() string

type DependencyParser

type DependencyParser interface {
	// Parse analyzes the given files contents and returns the found dependencies
	Parse(filePath string) (dependencies []Dependency, err error)
	ParseContent(content string) (dependencies []Dependency, err error)
}

func NewHTMLParser

func NewHTMLParser(config *config.Config) DependencyParser

func NewParser

func NewParser(config *config.Config, path string) DependencyParser

Jump to

Keyboard shortcuts

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