Query OSV API for vulnerabilities based upon an individual package
Source:R/query_1.R
osv_query_1.Rd
Query the OSV API for vulnerabilities that include the individual package of interest.
The request is automatically constructed from the provided elements and the returned
values are parsed into a data.frame
.
Usage
osv_query_1(
name = NULL,
version = NULL,
ecosystem = NULL,
commit = NULL,
purl = NULL,
parse = TRUE,
cache = TRUE,
...
)
.osv_query_1(
name = NULL,
version = NULL,
ecosystem = NULL,
commit = NULL,
purl = NULL,
parse = TRUE,
cache = TRUE,
...
)
.osv_query_1_cache(
name = NULL,
version = NULL,
ecosystem = NULL,
commit = NULL,
purl = NULL,
parse = TRUE,
cache = TRUE,
...
)
Arguments
- name
Name of package.
- version
Version of package.
- ecosystem
Ecosystem package lives within (must be set if using
name
).- commit
Commit hash to query against (do not use when version set).
- purl
URL for package (do not use if name or ecosystem set).
- parse
Boolean value to set if the content field should be parsed from JSON list format.
- cache
Boolean value to determine if should use a cached version of the function and API results.
- ...
Additional parameters passed to nested functions.
Functions
.osv_query_1()
: Internal function to runosv_query_1
without caching..osv_query_1_cache()
: Internal function to run a memoise and cached version ofosv_query_1
.