package
0.0.0-20231024134211-210767f15cd2
Repository: https://github.com/khulnasoft-lab/go-vulndb.git
Documentation: pkg.go.dev
# Packages
Package legacydb provides functionality for generating, reading, writing, and validating vulnerability databases according to the legacy schema.
# Functions
FromRepo creates a new Database based on the contents of the "data/osv" folder in the given repo.
No description provided by the author
Load loads a database assuming that path contains a full, valid database following the v1 specification.
New creates a new database from the given entries.
RawLoad loads a database assuming that vulnsPath contains ".json" files representing OSV entries.
Validate checks that the databases in newPath and oldPath are both valid databases, and that the database in newPath can be safely deployed on top of the database in oldPath.
No description provided by the author
# Structs
Database represents a Go Vulnerability Database in the v1 schema.
DBMeta contains metadata about the database itself.
Module contains metadata about a Go module that has one or more vulnerabilities in the database.
ModuleVuln contains metadata about a vulnerability that affects a certain module (as used by the ModulesIndex).
Vuln contains metadata about a vulnerability in the database, as used by the VulnsIndex.
# Type aliases
ModulesIndex is a map from module paths to module metadata.
VulnsIndex is a map from vulnerability IDs to vulnerability metadata.