api

package
v0.0.0-...-e85a4bd Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

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, publicKey, privateKey string) *Client

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

func (*Client) FetchAllThreatReportsSince

func (c *Client) FetchAllThreatReportsSince(ctx context.Context, since int64) (<-chan *schema.Report, error)

FetchAllThreatReportsSince will fetch all vulnerabilities with specified parameters

func (*Client) FetchAllVulnerabilities

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

FetchAllVulnerabilities will fetch all vulnerabilities with specified parameters

func (*Client) Request

func (c *Client) Request(ctx context.Context, endpoint string) (io.Reader, error)

Request will fetch the given endpoint and return the response

Jump to

Keyboard shortcuts

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