Learn R Programming

rosv (version 0.5.1)

RosvVulns: R6 Class for OSV Vulns Endpoint

Description

An R6 class to provide a lower-level interface to the vulnerability endpoint of the OSV API.

Arguments

Value

An R6 object to operate with OSV vulns endpoint.

Super class

rosv::RosvQuery1 -> RosvVulns

Methods

Inherited methods


Method new()

Set the core request details for subsequent use when called in run() method.

Usage

RosvVulns$new(vuln_ids)

Arguments

vuln_ids

Character vector of vulnerability IDs.


Method run()

Perform the request and return response for OSV API call.

Usage

RosvVulns$run()


Method print()

Print basic details of query object to screen.

Usage

RosvVulns$print(...)

Arguments

...

Reserved for possible future use.


Method clone()

The objects of this class are cloneable with this method.

Usage

RosvVulns$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

See Also

Examples

Run this code
vulns <- RosvVulns$new(c('RSEC-2023-6', 'GHSA-jq35-85cj-fj4p'))
vulns

Run the code above in your browser using DataLab