Documentation
¶
Index ¶
Constants ¶
View Source
const ( PathGetNextImage = iota PathPostScanResults = iota )
View Source
const ( ErrorTypeUnableToPullDockerImage = iota ErrorTypeFailedToRunJavaScanner = iota )
Variables ¶
This section is empty.
Functions ¶
func ScannerMetricsHandler ¶
func ScannerMetricsHandler(imageScanStats <-chan ScanClientJobResults, httpStats <-chan HttpResult) http.Handler
ScannerMetricsHandler handles http requests to get prometheus metrics for image scanning
Types ¶
type HttpResult ¶
type HubScanClient ¶
type HubScanClient struct {
// contains filtered or unexported fields
}
HubScanClient implements ScanClientInterface using the Black Duck hub and scan client programs.
func NewHubScanClient ¶
func NewHubScanClient(host string, username string, password string) (*HubScanClient, error)
NewHubScanClient requires login credentials in order to instantiate a HubScanClient.
func (*HubScanClient) Scan ¶
func (hsc *HubScanClient) Scan(job ScanJob) ScanClientJobResults
func (*HubScanClient) ScanCliSh ¶
func (hsc *HubScanClient) ScanCliSh(job ScanJob) error
func (*HubScanClient) ScanDockerSh ¶
func (hsc *HubScanClient) ScanDockerSh(job ScanJob) error
type ScanClientInterface ¶
type ScanClientJobResults ¶
Click to show internal directories.
Click to hide internal directories.