match

package
v0.1.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Match

type Match struct {
	Type          Type
	Confidence    float64
	Vulnerability vulnerability.Vulnerability
	Package       *pkg.Package
	// SearchKey provides an indication of how this match was found.
	// TODO: is this a good name for what it represents? (which is an audit trail of HOW we got this match from the store)
	SearchKey       string
	IndirectPackage *pkg.Package
	Matcher         MatcherType
}

func (Match) String

func (m Match) String() string

func (Match) Summary

func (m Match) Summary() string

type MatcherType

type MatcherType int
const (
	UnknownMatcherType MatcherType = iota
	ApkMatcher
	RubyBundleMatcher
	DpkgMatcher
	RpmDBMatcher
	JavaMatcher
	PythonMatcher
	JavascriptMatcher
)

func (MatcherType) String

func (f MatcherType) String() string

type Type

type Type int
const (
	UnknownMatchType Type = iota
	ExactDirectMatch
	ExactIndirectMatch
	FuzzyMatch
)

func ParseType

func ParseType(userStr string) Type

func (Type) String

func (f Type) String() string

Jump to

Keyboard shortcuts

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