dpkg

package
v0.0.0-...-93c0e2b Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package dpkg provide local scanner for systems using dpkg: ubuntu, debian, etc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct{}

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) ([]*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