scannercommon

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package scannercommon provides the common functions used by the scanner binaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCLIFlagsToConfig

func ApplyCLIFlagsToConfig(config *apb.ScanConfig, flags *cli.Flags)

ApplyCLIFlagsToConfig applies the given CLI flags to the scan config.

func ParseFlags

func ParseFlags() *cli.Flags

ParseFlags parses the scanner binary's cli flags.

func RunScan

func RunScan(flags *cli.Flags, api scanapi.ScanAPI) int

RunScan executes the scan with the given CLI flags and API provider. Returns the exit code that the main binary should exit with.

Types

This section is empty.

Jump to

Keyboard shortcuts

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