brewsource

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 10 Imported by: 0

Documentation

Overview

Package brewsource provides a way to annotate packages with repository url.

Index

Constants

View Source
const (
	// Name of the Annotator
	Name = "misc/brew-source"
)

Variables

This section is empty.

Functions

func New

New returns a new Annotator.

Types

type Annotator

type Annotator struct{}

Annotator adds repository source code identifiers for extracted Homebrew packages. It tries to extract the Git repository URL from the Homebrew package metadata fields: URL, Head, and Mirrors.

func (Annotator) Annotate

func (a Annotator) Annotate(ctx context.Context, input *annotator.ScanInput, results *inventory.Inventory) error

Annotate adds repository source code identifiers for extracted Homebrew packages.

func (Annotator) Name

func (Annotator) Name() string

Name returns the name of the annotator.

func (Annotator) Requirements

func (Annotator) Requirements() *plugin.Capabilities

Requirements returns the requirements of the annotator.

func (Annotator) Version

func (Annotator) Version() int

Version returns the version of the annotator.

Jump to

Keyboard shortcuts

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