scheduler

package
v0.0.0-...-c30fbfa Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ByDaysScheduleScanConfig  = "ByDaysScheduleScanConfig"
	ByHoursScheduleScanConfig = "ByHoursScheduleScanConfig"
	SingleScheduleScanConfig  = "SingleScheduleScanConfig"
	WeeklyScheduleScanConfig  = "WeeklyScheduleScanConfig"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	Namespaces                    []string
	CisDockerBenchmarkScanEnabled bool
	MaxScanParallelism            int64
	Interval                      time.Duration
	StartTime                     time.Time
	SingleScan                    bool
}

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func CreateScheduler

func CreateScheduler(scanChan chan *runtimescanner.ScanConfig, dbHandler database.Database) *Scheduler

func (*Scheduler) Init

func (s *Scheduler) Init()

func (*Scheduler) Schedule

func (s *Scheduler) Schedule(params *Params)

Jump to

Keyboard shortcuts

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