pipeline

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 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 pipeline scans a commit and derives its map. It is the one entry point for every caller, so the same commit always gives the same bytes.

Index

Constants

View Source
const Version = "0.4.0"

Version is the extractor version every scan records. Bump on any output change; see CHANGELOG.md.

Variables

This section is empty.

Functions

func Map

func Map(raw []byte, set rules.Settings) (*rules.Map, error)

Map reads a facts file and derives its map.

func OriginID

func OriginID(dir string) string

originID turns the origin remote into host/owner/name. Credentials in an https remote never reach the output.

func Scan

func Scan(dir string, o ScanOptions) (*fact.Scan, []string, error)

Scan runs every plugin on dir and returns the normalised scan.

func ScanWorkTree

func ScanWorkTree(dir, repoID, sha, committedAt string, ps []plugin.Plugin, op config.Operator) (*fact.Scan, []string, error)

ScanWorkTree scans dir as it is on disk and only labels it with sha, also inside a git work tree: for test fixtures, whose commit is made up.

Types

type ScanOptions

type ScanOptions struct {
	RepoID      string
	Commit      string
	CommittedAt string
	Plugins     []plugin.Plugin
	Operator    config.Operator
}

ScanOptions says what Scan reads and how. An empty Commit scans the working tree, labelled with HEAD; an empty RepoID is taken from the origin remote.

Jump to

Keyboard shortcuts

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