scanner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseOptions

func ParseOptions(options *Options)

ParseOptions parses the command line flags provided by a user

Types

type Options

type Options struct {
	Input      string   // input file
	Output     string   // output directory
	BinPath    string   // path to the scanner executable
	ExtraHelp  bool     // show scanner executable help
	ExtraFlags []string // extra flags passed directly to the scanner - use ExtraHelp to show them
}

Options holds the default options for a scanner

type Scanner

type Scanner struct {
	Name          string // name of the scanner
	DefaultBinary string // default value for BinPath - defaults to `Name`
}

Scanner holds scanner configuration

func (*Scanner) BuildOptions

func (s *Scanner) BuildOptions() *Options

BuildOptions parses the command line flags provided by a user

func (*Scanner) GetDefaultBinaryPath

func (s *Scanner) GetDefaultBinaryPath() string

Jump to

Keyboard shortcuts

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