standalone

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package standalone provides a way to extract in a standalone mode (e.g. a command).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, config *Config) ([]*extractor.Inventory, []*plugin.Status, error)

Run the extractors that are specified in the config.

Types

type Config

type Config struct {
	Extractors []Extractor
	ScanRoot   string
}

Config for running standalone extractors.

type Extractor

type Extractor interface {
	extractor.Extractor
	// Extract the information.
	Extract(ctx context.Context, input *ScanInput) ([]*extractor.Inventory, error)
}

Extractor is an interface for plugins that extract information independently. For example, a plugin that executes a command or retrieves information from only one file.

type ScanInput

type ScanInput struct {
	ScanRoot string
}

ScanInput provides information for the extractor about the scan.

Directories

Path Synopsis
containers
containerd
Package containerd extracts container inventory from containerd API.
Package containerd extracts container inventory from containerd API.
containerd/fakeclient
Package fakeclient contains a fake implementation of the containerd client for testing purposes.
Package fakeclient contains a fake implementation of the containerd client for testing purposes.
Package list contains the list of all standalone extractors.
Package list contains the list of all standalone extractors.
windows
common/winproducts
Package winproducts contains information about Windows products.
Package winproducts contains information about Windows products.
dismpatch/dismparser
Package dismparser has methods that can be used to parse DISM output
Package dismparser has methods that can be used to parse DISM output

Jump to

Keyboard shortcuts

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