utils

package
v1.3.4-alpha9 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPEAnalyzer

type CPEAnalyzer struct {
	WebsiteURLs []string
	// contains filtered or unexported fields
}

func NewCPEAnalyzer

func NewCPEAnalyzer(urls ...string) *CPEAnalyzer

func (*CPEAnalyzer) AvailableCPE

func (c *CPEAnalyzer) AvailableCPE() []*rule.CPE

func (*CPEAnalyzer) Feed

func (c *CPEAnalyzer) Feed(url string, cpes ...*rule.CPE)

func (*CPEAnalyzer) GetCPEsByProduct

func (c *CPEAnalyzer) GetCPEsByProduct(product string) []*rule.CPE

func (*CPEAnalyzer) GetVersionByProduct

func (c *CPEAnalyzer) GetVersionByProduct(product string) (string, error)

func (*CPEAnalyzer) IsProductExisted

func (c *CPEAnalyzer) IsProductExisted(product string) bool

func (*CPEAnalyzer) QueryOrigins

func (c *CPEAnalyzer) QueryOrigins(cpes ...*rule.CPE) map[*rule.CPE]string

Jump to

Keyboard shortcuts

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