Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Abort(scanID string) (*scanengine.GetScanResponse, error)
- func (c *Client) Create(request scanengine.ScanRequest) (*scanengine.ScanResponse, error)
- func (c *Client) CreateScanRequest(program api.Program, scheduledTime *time.Time, ...) (scanengine.ScanRequest, error)
- func (c *Client) Get(scanID string) (*scanengine.GetScanResponse, error)
- func (c *Client) GetScans(externalID string) (*scanengine.GetScansResponse, error)
- type Config
- type GenericError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ScanEngineErrorKind = "Error calling scan engine" ErrProgramWithoutPolicyGroups = errors.New("Program has no policy groups") ErrNotFound = errors.New("Not found") ErrCreatingScan = errors.New("Error creating scan") ErrGettingScan = errors.New("Error getting scan") ErrGettingScans = errors.New("Error getting scans") ErrAbortingScans = errors.New("Error aborting scans") ErrUnprocessableEntity = errors.New("UnprocessableEntity") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Abort ¶
func (c *Client) Abort(scanID string) (*scanengine.GetScanResponse, error)
Abort send a signal to the scan engine to try to abort a scan.
func (*Client) Create ¶
func (c *Client) Create(request scanengine.ScanRequest) (*scanengine.ScanResponse, error)
Create creates a scan in the scan engine.
func (*Client) CreateScanRequest ¶
func (c *Client) CreateScanRequest(program api.Program, scheduledTime *time.Time, externalID, requestedBy, tag string) (scanengine.ScanRequest, error)
CreateScanRequest creates a scan by calling the scan engine using the information in the parameters.
func (*Client) Get ¶
func (c *Client) Get(scanID string) (*scanengine.GetScanResponse, error)
func (*Client) GetScans ¶
func (c *Client) GetScans(externalID string) (*scanengine.GetScansResponse, error)
GetScans returns all the scans belonging to a team.
type GenericError ¶
func (GenericError) Error ¶
func (g GenericError) Error() string
Click to show internal directories.
Click to hide internal directories.