fakeextractor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fakeextractor provides a Extractor implementation to be used in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string, version int, requiredFiles []string, pathToNamesErr map[string]NamesErr) scalibrextractor.InventoryExtractor

New returns a fake extractor.

The extractor returns FileRequired(path) = true for any path in requiredFiles. The extractor returns the inventory and error from pathToNamesErr given the same path to Extract(...).

Types

type NamesErr

type NamesErr struct {
	Names []string
	Err   error
}

NamesErr is a list of Inventory names and an error.

Jump to

Keyboard shortcuts

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