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(hostName string, 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
type ScanClientInterface ¶
type ScanClientInterface interface {
Scan(job ScanJob) (*ScanClientJobResults, error)
}
type ScanClientJobResults ¶
type ScanJob ¶
type ScanJob struct {
PullSpec string
Sha string
HubProjectName string
HubProjectVersionName string
HubScanName string
}
func NewScanJob ¶
func (ScanJob) DockerPullSpec ¶ added in v0.0.5
func (ScanJob) DockerTarFilePath ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.