sniff

package
v32.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RulesVersion = 9

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner interface {
	Scan(lager.Logger) bool
	Line(lager.Logger) *scanners.Line
}

type Sniffer

type Sniffer interface {
	Sniff(lager.Logger, Scanner, ViolationHandlerFunc) error
}

func NewDefaultSniffer

func NewDefaultSniffer() Sniffer

func NewSniffer

func NewSniffer(matcher, exclusionMatcher matchers.Matcher) Sniffer

type ViolationHandlerFunc

type ViolationHandlerFunc func(lager.Logger, scanners.Violation) error

func NewArchiveViolationHandlerFunc

func NewArchiveViolationHandlerFunc(
	inflateDir string,
	violationDir string,
	handler ViolationHandlerFunc,
) ViolationHandlerFunc

NewArchiveViolationHandlerFunc returns a ViolationHandlerFunc that copies the file a credential was found from the inflateDir to the violationDir

Directories

Path Synopsis
matchersfakes
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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