epss

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBaseURL = "https://epss.cyentia.com"

Variables

View Source
var ErrAPI = errors.New("EPSS API error")

Functions

This section is empty.

Types

type APIAgent added in v0.1.0

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

func NewAgent added in v0.1.0

func NewAgent(client *http.Client, baseURL string) *APIAgent

func (*APIAgent) Read added in v0.1.0

func (a *APIAgent) Read(p []byte) (int, error)

type CVE

type CVE struct {
	ID          string
	Severity    string
	Link        string
	ScoreDate   time.Time
	Probability float64
	Percentile  float64
}

type Scores added in v0.1.0

type Scores struct {
	EPSS       string
	Percentile string
}

type Service

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

func NewService added in v0.1.0

func NewService(r io.Reader) *Service

NewService initializes internal structures, and lazily assigns reader.

func (*Service) Fetch added in v0.1.0

func (s *Service) Fetch() error

Fetch uses the internal reader to fill the internal dataStore

func (*Service) GetCVE added in v0.1.0

func (s *Service) GetCVE(match models.Match) (CVE, error)

func (*Service) GetCVEs added in v0.1.0

func (s *Service) GetCVEs(matches []models.Match) ([]CVE, error)

func (*Service) GrypeAllowRuleFunc added in v0.1.0

func (s *Service) GrypeAllowRuleFunc() func(models.Match, grype.Config) bool

func (*Service) GrypeDenyRuleFunc added in v0.1.0

func (s *Service) GrypeDenyRuleFunc() func([]models.Match, grype.Config) error

Jump to

Keyboard shortcuts

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