collector

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 2 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 collector defines CryptoAsset, the finished CycloneDX component (plus its edges) that the CBOM builders exchange.

It used to also define the plugin contract host collectors implemented. That contract is now internal/sense: sensors return evidence (observations and coverage), never finished components, because a component that already carries a capability edge cannot say which parts were seen and which were inferred (docs/decisions/ADR-0001, ADR-0010). CryptoAsset stays because the CBOM builders (host projection, TLS endpoint builder) produce and consume it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoAsset

type CryptoAsset struct {
	// Component must have Type, Name and BOMRef set. BOMRef must be stable
	// across scans of an unchanged host.
	Component cdx.Component

	// Provides lists BOMRefs of assets this one makes available, e.g. a
	// library providing algorithm implementations. It expresses capability,
	// NOT observed use.
	Provides []string

	// DependsOn lists BOMRefs of assets this one relies on.
	DependsOn []string
}

CryptoAsset is one finding: a CycloneDX component plus the edges connecting it to other findings.

Builders create algorithm components through the algo package rather than by hand, so that closed-vocabulary fields are always in-vocabulary. The same component (same BOMRef) may be produced more than once; the CBOM builder merges identical duplicates and rejects conflicting ones.

func (CryptoAsset) Validate

func (a CryptoAsset) Validate() error

Validate checks the structural fields every asset needs. It deliberately does not check CycloneDX vocabularies; the cbom package owns that.

Jump to

Keyboard shortcuts

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