results

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client implements methods for downloading a report. The client is safe to use concurrently.

func NewClient

func NewClient(d Doer) (*Client, error)

NewClient instantiates and returns a new results client.

func (*Client) GetReport

func (c *Client) GetReport(u string) (*report.Report, error)

GetReport retrieves a report of a check stored on vulcan results. The report is indexed using three parameters: the id of check, the id of the scan the check belongs to and the date the san was run.

type Doer

type Doer interface {
	Get(url string) (resp *http.Response, err error)
}

Doer defines the methods needed by the http client used by the results client.

Jump to

Keyboard shortcuts

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