repository

package
v0.0.0-...-9ef7b20 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CVECollection = "cves"

Variables

This section is empty.

Functions

This section is empty.

Types

type CVERepository

type CVERepository interface {
	Save(cve *models.CVE) error
	GetById(id string) (cve *models.CVE, err error)
	GetByCVEId(cveId string) (cve *models.CVE, err error)
	SearchCVEs(cveId, severity, product, vendor, startDate, endDate string) (cves []*models.CVE, err error)
	GetAll() (cves []*models.CVE, err error)
	Update(cve *models.CVE) error
	DeleteById(id string) error
}

CVERepository is the interface of the vulnerability backend.

func NewCVERepository

func NewCVERepository(conn db.Connection) CVERepository

NewCVERepository creates a new CVERepository instance.

Jump to

Keyboard shortcuts

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