local

package
v1.8.2 Latest Latest
Warning

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

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

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 NewZippedDB

func NewZippedDB(dbBasePath, name, url string, offline bool) (*ZipDB, error)

func (*ZipDB) Check

func (*ZipDB) Vulnerabilities

func (db *ZipDB) Vulnerabilities(includeWithdrawn bool) []models.Vulnerability

func (*ZipDB) VulnerabilitiesAffectingPackage

func (db *ZipDB) VulnerabilitiesAffectingPackage(pkg lockfile.PackageDetails) models.Vulnerabilities

Jump to

Keyboard shortcuts

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