needs

package
v0.180.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 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 needs answers what a scan of a descriptor would run: the scanners its enabled controls select, and the external tools those scanners execute.

One answer for every command that asks. `draugr doctor`, the install offer `draugr scan` makes, `draugr tools install` with a descriptor and the MCP server's check_tools all read it, so a tool one of them calls missing is a tool every one of them calls missing. Two derivations of the same list disagree the first time a control gains a second scanner, and the one that over-counts tells somebody a machine that can scan is not ready.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternalInstallHint

func ExternalInstallHint(binary string) string

ExternalInstallHint says where a tool `draugr tools install` does not fetch comes from.

`draugr tools install` fetches pinned releases Draugr has verified, which it can only do for tools it vouched for. For the rest, proprietary ones especially, naming the source is the whole of the help available, and it is much more use than telling somebody to run a command that will not find it.

func Scanners

func Scanners(reg *engine.Registry, model *saga.Model) []plugin.ScannerInfo

Scanners returns the scanners a scan of model would run: each one serving a control the model enables, and among several serving one control, only those the control selects.

func Tools

func Tools(reg *engine.Registry, model *saga.Model) []tools.Tool

Tools returns the external tools needed by the controls enabled anywhere in the model: for each scanner a scan would run, its binary and anything it also requires, plus git when the scanner works on a checked-out repository, plus syft when config.sbom is on. Sorted by binary.

Types

type Use

type Use struct {
	Info     plugin.ScannerInfo
	Controls []string
}

Use is a scanner a scan would run and the enabled controls it would run for.

func Uses

func Uses(reg *engine.Registry, model *saga.Model) []Use

Uses is Scanners with the controls each scanner serves, which is what a message naming the controls a missing tool blocks needs. In registry order.

Jump to

Keyboard shortcuts

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