scanner

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrivyTimeout       = 300
	GrypeServerTimeout = 2 * time.Minute

	SnapshotCreationTimeout = 3 * time.Minute
	SnapshotCopyTimeout     = 15 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func CreateScanner

func CreateScanner(
	config *_config.ScannerConfig,
	providerClient provider.Client,
	backendClient *backendclient.BackendClient,
	scanConfig *models.ScanConfig,
	targetInstances []*types.TargetInstance,
	scanID string,
) *Scanner

func (*Scanner) Clear

func (s *Scanner) Clear()

func (*Scanner) Scan

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

func (*Scanner) SetTargetScanStatusCompletionError

func (s *Scanner) SetTargetScanStatusCompletionError(ctx context.Context, scanResultID, errMsg string) error

Jump to

Keyboard shortcuts

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