Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReportClient ¶
type ReportClient struct {
// contains filtered or unexported fields
}
func NewReportClient ¶
func NewReportClient(url string, transport *http.Transport) *ReportClient
func (*ReportClient) SendReport ¶
func (c *ReportClient) SendReport(namespace string, report *tmaxiov1.ImageScanRequestESReport) error
type ScanJob ¶
type ScanJob struct {
SendReportEnabled bool
// contains filtered or unexported fields
}
1:1 ImageScanRequest.ScanTarget
func NewScanJob ¶
type ScanTask ¶
type ScanTask struct {
OnStart func(*ScanTask)
OnSuccess func(*ScanTask)
OnFail func(error)
// contains filtered or unexported fields
}
ImageScanRequest 1:1 (has many ImageScanRequest.ScanTarget)
func NewScanTask ¶
type ScanWorker ¶
type ScanWorker struct {
// contains filtered or unexported fields
}
func NewScanWorker ¶
func NewScanWorker(queueSize, nWorkers int) *ScanWorker
func (*ScanWorker) Start ¶
func (w *ScanWorker) Start()
func (*ScanWorker) Stop ¶
func (w *ScanWorker) Stop()
func (*ScanWorker) Submit ¶
func (w *ScanWorker) Submit(o *ScanTask) *ScanWorker
Click to show internal directories.
Click to hide internal directories.