Documentation
¶
Overview ¶
Package convert provides a utility function for converting Veles plugins (Detectors and Validators) to SCALIBR core plugins (FilesystemExtractors and Enrichers)
Index ¶
- func FromVelesDetector(velesDetector veles.Detector, name string, version int) func() filesystem.Extractor
- func FromVelesDetectorWithRequire(velesDetector veles.Detector, name string, version int, ...) filesystem.Extractor
- func SetupVelesExtractors(extractors []filesystem.Extractor) ([]filesystem.Extractor, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromVelesDetector ¶
func FromVelesDetector(velesDetector veles.Detector, name string, version int) func() filesystem.Extractor
FromVelesDetector converts a Veles Detector into a SCALIBR FilesystemExtractor plugin. This allows enabling Veles Detectors individually like regular SCALIBR plugins. The wrapped FilesystemExtractor does not do any extraction on its own - it's a placeholder plugin that is used to configure the Veles detection before the scan starts.
func FromVelesDetectorWithRequire ¶ added in v0.4.1
func FromVelesDetectorWithRequire(velesDetector veles.Detector, name string, version int, fileRequired func(filesystem.FileAPI) bool) filesystem.Extractor
FromVelesDetectorWithRequire works similar to FromVelesDetector but allows specifying additional files to look at on top of the default ones.
func SetupVelesExtractors ¶
func SetupVelesExtractors(extractors []filesystem.Extractor) ([]filesystem.Extractor, error)
SetupVelesExtractors configures the central Veles secret detection plugin using the placeholder plugins found in the extractor list. Returns the updated extractor list.
Types ¶
This section is empty.