api

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	client.Client
	// contains filtered or unexported fields
}

Client struct

func NewClient

func NewClient(c client.Client, baseURL string) *Client

NewClient creates an object which is used to query the RedHat API

func (*Client) FetchAllCVEs

func (c *Client) FetchAllCVEs(ctx context.Context, since int64) (<-chan runner.Convertible, error)

FetchAllCVEs will fetch all vulnerabilities

func (*Client) FetchCVE

func (c *Client) FetchCVE(ctx context.Context, cveid string) (*schema.CVE, error)

FetchCVE retrieves a single CVE.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL