Documentation ¶
Index ¶
- func DefaultDetectors() []detectors.Detector
- func FragmentLineOffset(chunk *sources.Chunk, result *detectors.Result) int64
- type Engine
- func (e *Engine) ChunksChan() chan *sources.Chunk
- func (e *Engine) ChunksScanned() uint64
- func (e *Engine) DetectorAvgTime() map[string][]time.Duration
- func (e *Engine) ResultsChan() chan detectors.ResultWithMetadata
- func (e *Engine) ScanFileSystem(ctx context.Context, directories []string) error
- func (e *Engine) ScanGit(ctx context.Context, repoPath, headRef, baseRef string, maxDepth int, ...) error
- func (e *Engine) ScanGitHub(ctx context.Context, endpoint string, repos, orgs []string, token string, ...) error
- func (e *Engine) ScanGitLab(ctx context.Context, endpoint, token string, repositories []string) error
- func (e *Engine) ScanS3(ctx context.Context, key, secret string, cloudCred bool, buckets []string) error
- func (e *Engine) ScanSyslog(ctx context.Context, address, protocol, certPath, keyPath, format string, ...) error
- type EngineOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDetectors ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) ChunksChan ¶
func (*Engine) ChunksScanned ¶
func (*Engine) ResultsChan ¶
func (e *Engine) ResultsChan() chan detectors.ResultWithMetadata
func (*Engine) ScanFileSystem ¶
func (*Engine) ScanGitHub ¶
func (*Engine) ScanGitLab ¶
type EngineOption ¶
type EngineOption func(*Engine)
func WithConcurrency ¶
func WithConcurrency(concurrency int) EngineOption
func WithDecoders ¶
func WithDecoders(decoders ...decoders.Decoder) EngineOption
func WithDetectors ¶
func WithDetectors(verify bool, d ...detectors.Detector) EngineOption
Click to show internal directories.
Click to hide internal directories.