Documentation
¶
Overview ¶
Package dpkgsource provides a way to annotate packages with repository source information.
Index ¶
Constants ¶
const (
// Name of the Annotator
Name = "misc/dpkg-source"
)
Variables ¶
var FetchAptCachePolicy = aptCachePolicy
FetchAptCachePolicy to allow for mocking in testing.
Functions ¶
func MapPackageToSource ¶
MapPackageToSource parses the output of "apt-cache policy" and returns a map from package names to their repository sources.
Types ¶
type Annotator ¶
type Annotator struct{}
Annotator adds repository source context for extracted Debian packages from dpkg extractor.
func (Annotator) Annotate ¶
func (a Annotator) Annotate(ctx context.Context, input *annotator.ScanInput, results *inventory.Inventory) error
Annotate adds repository source context for extracted Debian packages from dpkg extractor.
func (Annotator) Requirements ¶
func (Annotator) Requirements() *plugin.Capabilities
Requirements returns the requirements of the annotator.