scanner

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeregisterRuleByID

func DeregisterRuleByID(id string)

func GetRegisteredRules

func GetRegisteredRules() []cfRules.Rule

func GetRuleByLongID

func GetRuleByLongID(long string) (*cfRules.Rule, error)

GetRuleByLongID ...

func OptionIncludeIgnored

func OptionIncludeIgnored() func(s *Scanner)

OptionIncludeIgnored ...

func OptionIncludePassed

func OptionIncludePassed() func(s *Scanner)

OptionIncludePassed ...

func RegisterCheckRule

func RegisterCheckRule(rules ...cfRules.Rule)

Types

type Ignore

type Ignore struct {
	RuleID string
	Expiry *time.Time
}

type Option

type Option func(s *Scanner)

Option ...

type Scanner

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

Scanner ...

func New

func New(options ...Option) *Scanner

New creates a new Scanner

func (*Scanner) Scan

func (scanner *Scanner) Scan(contexts parser.FileContexts) []result.Result

Scan ...

Jump to

Keyboard shortcuts

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