dpkg

package
v1.5.22 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Overview

Package dpkg implements a package indexer for dpkg packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEcosystem

func NewEcosystem(ctx context.Context) *indexer.Ecosystem

NewEcosystem provides the set of scanners and coalescers for the dpkg ecosystem

Types

type DistrolessScanner added in v1.4.20

type DistrolessScanner struct{}

DistrolessScanner implements the scanner.PackageScanner interface.

This looks for directories that look like dpkg databases and examines the files it finds there.

The zero value is ready to use.

func (*DistrolessScanner) Kind added in v1.4.20

func (ps *DistrolessScanner) Kind() string

Kind implements scanner.VersionedScanner.

func (*DistrolessScanner) Name added in v1.4.20

func (ps *DistrolessScanner) Name() string

Name implements scanner.VersionedScanner.

func (*DistrolessScanner) Scan added in v1.4.20

func (ps *DistrolessScanner) Scan(ctx context.Context, layer *claircore.Layer) ([]*claircore.Package, error)

Scan attempts to find a dpkg database files in the layer and read all of the installed packages it can find. These files are found in the dpkg/status.d directory.

It's expected to return (nil, nil) if there's no dpkg databases in the layer.

It does not respect any dpkg configuration files.

func (*DistrolessScanner) Version added in v1.4.20

func (ps *DistrolessScanner) Version() string

Version implements scanner.VersionedScanner.

type Scanner

type Scanner struct{}

Scanner implements the scanner.PackageScanner interface.

This looks for directories that look like dpkg databases and examines the "status" file it finds there.

The zero value is ready to use.

func (*Scanner) Kind

func (ps *Scanner) Kind() string

Kind implements scanner.VersionedScanner.

func (*Scanner) Name

func (ps *Scanner) Name() string

Name implements scanner.VersionedScanner.

func (*Scanner) Scan

func (ps *Scanner) Scan(ctx context.Context, layer *claircore.Layer) ([]*claircore.Package, error)

Scan attempts to find a dpkg database within the layer and read all of the installed packages it can find in the "status" file.

It's expected to return (nil, nil) if there's no dpkg database in the layer.

It does not respect any dpkg configuration files.

func (*Scanner) Version

func (ps *Scanner) Version() string

Version implements scanner.VersionedScanner.

Jump to

Keyboard shortcuts

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