scanner

package
v0.0.0-...-f03aceb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ScannerTimeout = 2 * time.Hour // 2-hour timeout

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	ScannerCmd string
	JobService *models.JobService
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(scannerCmd string, jobService *models.JobService, lgr *logger.Logger) *Scanner

func (*Scanner) GetJobsToScan

func (s *Scanner) GetJobsToScan(ctx context.Context) []models.Job

ScanJobs scans the jobs table with status=DEFAULT and returns and array of jobs

func (*Scanner) ProcessScanQueue

func (s *Scanner) ProcessScanQueue(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL