convert

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0, BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package convert provides a utility function for converting Veles plugins (Detectors and Validators) to SCALIBR core plugins (FilesystemExtractors and Enrichers)

Index

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.

Jump to

Keyboard shortcuts

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