utils

package
v1.3.7-beta2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 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() []*schema.CPE

func (*CPEAnalyzer) Feed

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

func (*CPEAnalyzer) GetCPEsByProduct

func (c *CPEAnalyzer) GetCPEsByProduct(product string) []*schema.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 ...*schema.CPE) map[*schema.CPE]string

Jump to

Keyboard shortcuts

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