derive

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 5 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 derive turns present artefacts into capability, by applying cited knowledge. It is where "this package is installed" becomes "this package can perform these algorithms": a statement about the software, from a citation, not something the host was seen to do.

Every derived fact names the observation it rests on and the knowledge that produced it, and is checked by evidence.Graph.Add, which rejects a derived claim stronger than its inputs. This package imports no platform code and no CycloneDX.

Index

Constants

View Source
const RelProvidedBy = "provided-by"

RelProvidedBy is the relation kind a derived capability uses to point back at the artefact that provides it.

Variables

This section is empty.

Functions

func Capabilities

func Capabilities(g *evidence.Graph) error

Capabilities adds a derived `capable (mapped)` observation to g for every algorithm each recognised artefact provides.

A node qualifies only if its `present` evidence is at least parsed quality: authoritative (a package database row) or parsed (a PE version resource). A name match alone never qualifies (ADR-0002), so a decoy file named like a crypto library is listed as present and never credited with capabilities.

Version-gated capabilities need a readable version; when it cannot be read they are omitted, never assumed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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