An R6 class to provide a lower-level interface to the querybatch endpoint of the OSV API. Batches are enforced to only process by commit hash, purl, or name+ecosystem. This avoids some confusion as to which is taken preferentially and simplifies query creation.
Details
Pageination is implemented via httr2::req_perform_iterative()
and a private method for
extracting tokens automatically. When initialized, the page_token is set to NULL
;
if a token is generated for large results the process is handled internally. The response object
will contain a list of all returned responses before any formatting occurred. The content field will
contain the list of results with vulnerabilities which may be further parsed into a table format.
Super class
rosv::RosvQuery1
-> RosvQueryBatch
Methods
Inherited methods
Method new()
Set the core request details for subsequent use when called in run()
method.
Usage
RosvQueryBatch$new(
commit = NULL,
version = NULL,
name = NULL,
ecosystem = NULL,
purl = NULL
)
Method parse()
Parse the contents returned into a tidier format.