Versions in this module Expand all Collapse all v1 v1.0.1 Feb 25, 2023 Changes in this version + const BaseVulnerabilityURL + const GetEndpoint + const QueryEndpoint + func Get(id string) (*models.Vulnerability, error) + type BatchedQuery struct + Queries []*Query + type BatchedResponse struct + Results []MinimalResponse + func MakeRequest(request BatchedQuery) (*BatchedResponse, error) + type HydratedBatchedResponse struct + Results []Response + func Hydrate(resp *BatchedResponse) (*HydratedBatchedResponse, error) + type MinimalResponse struct + Vulns []MinimalVulnerability + type MinimalVulnerability struct + ID string + type Package struct + Ecosystem string + Name string + PURL string + type Query struct + Commit string + Package Package + Source models.SourceInfo + Version string + func MakeCommitRequest(commit string) *Query + func MakePURLRequest(purl string) *Query + func MakePkgRequest(pkgDetails lockfile.PackageDetails) *Query + type Response struct + Vulns []models.Vulnerability