Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOfflineDatabaseNotFound = errors.New("no offline version of the OSV database is available")
Functions ¶
func MakeRequest ¶
func MakeRequest(r reporter.Reporter, query osv.BatchedQuery, offline bool, localDBPath string) (*osv.HydratedBatchedResponse, error)
Types ¶
type ZipDB ¶
type ZipDB struct { // the name of the database Name string // the url that the zip archive was downloaded from ArchiveURL string // whether this database should make any network requests Offline bool // the path to the zip archive on disk StoredAt string // contains filtered or unexported fields }
func (*ZipDB) Check ¶
func (db *ZipDB) Check(pkgs []lockfile.PackageDetails) (models.Vulnerabilities, error)
func (*ZipDB) Vulnerabilities ¶
func (db *ZipDB) Vulnerabilities(includeWithdrawn bool) []models.Vulnerability
func (*ZipDB) VulnerabilitiesAffectingPackage ¶
func (db *ZipDB) VulnerabilitiesAffectingPackage(pkg lockfile.PackageDetails) models.Vulnerabilities
Click to show internal directories.
Click to hide internal directories.