grype

package
v0.0.0-...-a4a35a1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cve

type Cve struct {
	Vulnerability string
}

type GrypeDB

type GrypeDB struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

func NewGrypeClient

func NewGrypeClient() (GrypeDB, error)

func (*GrypeDB) ExtractCVEs

func (d *GrypeDB) ExtractCVEs(allVulnRecords []interface{}) ([]Vuln, error)

type Vuln

type Vuln struct {
	Id         string      `json:"id"`
	Source     string      `json:"url"`
	Sev        string      `json:"severity"`
	Desc       string      `json:"description"`
	External   []VulnImage `json:"external_images"`
	Chainguard []VulnImage `json:"chainguard_images"`
}

type VulnImage

type VulnImage struct {
	Image string   `json:"image"`
	Dates []string `json:"dates"`
	Time  string   `json:"-"`
}

Jump to

Keyboard shortcuts

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