vulnr

package
v0.0.0-...-430ebb6 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	Title string
	Items []Item
}

type Item

type Item struct {
	Title string
	Value string
}

type Service

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

func New

func New(cveAPI *cveawg.Client, ghClient *gh.Client, cache *gocache.Cache) *Service

func (*Service) Get

func (s *Service) Get(ctx context.Context, name string) (*Vulnerability, error)

type Vulnerability

type Vulnerability struct {
	ID          string
	Title       string
	Category    string
	Severity    string
	Description string
	References  []string
	Details     []Details
}

func MapCVE

func MapCVE(cve *cveawg.CVE, trivyCVE *cveawg.TrivyCVE) *Vulnerability

func MapSecurityAdvisory

func MapSecurityAdvisory(ghsa *github.GlobalSecurityAdvisory) *Vulnerability

Jump to

Keyboard shortcuts

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