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 ¶
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) Requirements ¶
func (Annotator) Requirements() *plugin.Capabilities
Requirements returns the requirements of the annotator.
Click to show internal directories.
Click to hide internal directories.