packages

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2015 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package packages defines PackagesDetector for several sources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DpkgPackagesDetector

type DpkgPackagesDetector struct{}

DpkgPackagesDetector implements PackagesDetector and detects dpkg packages

func (*DpkgPackagesDetector) Detect

func (detector *DpkgPackagesDetector) Detect(data map[string][]byte) ([]*database.Package, error)

Detect detects packages using var/lib/dpkg/status from the input data

func (*DpkgPackagesDetector) GetRequiredFiles

func (detector *DpkgPackagesDetector) GetRequiredFiles() []string

GetRequiredFiles returns the list of files required for Detect, without leading /

type RpmPackagesDetector

type RpmPackagesDetector struct{}

RpmPackagesDetector implements PackagesDetector and detects rpm packages It requires the "rpm" binary to be in the PATH

func (*RpmPackagesDetector) Detect

func (detector *RpmPackagesDetector) Detect(data map[string][]byte) ([]*database.Package, error)

Detect detects packages using var/lib/rpm/Packages from the input data

func (*RpmPackagesDetector) GetRequiredFiles

func (detector *RpmPackagesDetector) GetRequiredFiles() []string

GetRequiredFiles returns the list of files required for Detect, without leading /

Jump to

Keyboard shortcuts

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