list

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0, BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Overview

Package list contains the list of all standalone extractors.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Windows standalone extractors.
	Windows = InitMap{dismpatch.Name: {noCFG(dismpatch.New)}}

	// WindowsExperimental defines experimental extractors. Note that experimental does not mean
	// dangerous.
	WindowsExperimental = InitMap{
		ospackages.Name:    {noCFG(ospackages.NewDefault)},
		regosversion.Name:  {noCFG(regosversion.NewDefault)},
		regpatchlevel.Name: {noCFG(regpatchlevel.NewDefault)},
	}

	// OSExperimental defines experimental OS extractors.
	OSExperimental = InitMap{
		netports.Name: {noCFG(netports.New)},
	}

	// Containers standalone extractors.
	Containers = InitMap{
		containerd.Name: {noCFG(containerd.NewDefault)},
		docker.Name:     {noCFG(docker.New)},
	}

	// Default standalone extractors.
	Default = Windows
	// All standalone extractors.
	All = concat(Windows, WindowsExperimental, Containers, OSExperimental)
)

Functions

func ExtractorsFromName added in v0.3.1

func ExtractorsFromName(name string, cfg *cpb.PluginConfig) ([]standalone.Extractor, error)

ExtractorsFromName returns a list of extractors from a name.

Types

type InitFn added in v0.1.7

type InitFn func(cfg *cpb.PluginConfig) standalone.Extractor

InitFn is the extractor initializer function.

type InitMap added in v0.1.7

type InitMap map[string][]InitFn

InitMap is a map of extractor names to their initers.

Jump to

Keyboard shortcuts

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