Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCheckNotFinished is returned by the client when a check of a scan does // not have report because is not FINISHED. ErrCheckNotFinished = errors.New("Check status is not FINISHED") )
Functions ¶
This section is empty.
Types ¶
type CheckData ¶
type CheckData struct { coreclient.Checkdata Report ReportData }
CheckData contains the info regarding a check of a scan.
type CheckReportClient ¶
CheckReportClient defines the services needed by the concurrent client.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client allows to get the reports of a scan concurrently.
func NewClient ¶
func NewClient(coreClient *coreclient.Client, reportClient CheckReportClient, workers int) *Client
NewClient returns a new client scans client.
type ErrorUnexpectedStatus ¶
ErrorUnexpectedStatus is returned when one of calls made by the concurrent client to one endpoint of vulcan core returns an unexpected http status.
func (*ErrorUnexpectedStatus) Error ¶
func (e *ErrorUnexpectedStatus) Error() string
type ReportData ¶
ReportData contanis either the info regarding the report of a check or the error that the client got trying to dowload it.
Click to show internal directories.
Click to hide internal directories.