processor

package
v0.0.0-...-1066d93 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package processor wraps the call to the scanner and requests to the source for a single type of update to a single file. It includes logic for filtering, sorting, and templating of the source output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	Filename  string // filename modified
	Processor string // name of the processor
	Source    string // name of the source
	Scan      string // name of the scan
	Key       string // key from processor
	Orig      string // previous version
	New       string // new version
}

Change lists changes found or made to scanned files.

func Process

func Process(ctx context.Context, conf config.Config, procName, filename string, r io.Reader, w io.Writer, locks *lockfile.Locks) ([]*Change, error)

Process is used to process a single file with a single scanner and source.

Jump to

Keyboard shortcuts

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