dpkg

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 10 Imported by: 0

Documentation

Overview

Package dpkg provides utilities for interacting with the dpkg package manager database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConffilePathIterator

type ConffilePathIterator struct {
	// contains filtered or unexported fields
}

ConffilePathIterator is an iterator over all paths found in dpkg .conffiles files.

func NewConffilePathIterator

func NewConffilePathIterator(rootFs scalibrfs.FS) (*ConffilePathIterator, error)

NewConffilePathIterator creates a new iterator over conffiles managed by dpkg. The caller is responsible for calling Close() on the returned iterator.

func (ConffilePathIterator) Close

func (it ConffilePathIterator) Close() error

Close closes the iterator and releases any resources.

func (ConffilePathIterator) Name added in v0.5.2

func (it ConffilePathIterator) Name() string

Name returns the path of the dpkg info file currently being processed.

func (ConffilePathIterator) Next

func (it ConffilePathIterator) Next(ctx context.Context) (string, error)

Next returns the path of the next installed file. It returns io.EOF when there are no more files.

func (ConffilePathIterator) Skip added in v0.5.2

func (it ConffilePathIterator) Skip()

Skip skips the current dpkg info file.

type ListFilePathIterator

type ListFilePathIterator struct {
	// contains filtered or unexported fields
}

ListFilePathIterator is an iterator over all paths found in dpkg .list files.

func NewListFilePathIterator

func NewListFilePathIterator(rootFs scalibrfs.FS) (*ListFilePathIterator, error)

NewListFilePathIterator creates a new iterator over files installed by dpkg. The caller is responsible for calling Close() on the returned iterator.

func (ListFilePathIterator) Close

func (it ListFilePathIterator) Close() error

Close closes the iterator and releases any resources.

func (ListFilePathIterator) Name added in v0.5.2

func (it ListFilePathIterator) Name() string

Name returns the path of the dpkg info file currently being processed.

func (ListFilePathIterator) Next

func (it ListFilePathIterator) Next(ctx context.Context) (string, error)

Next returns the path of the next installed file. It returns io.EOF when there are no more files.

func (ListFilePathIterator) Skip added in v0.5.2

func (it ListFilePathIterator) Skip()

Skip skips the current dpkg info file.

Directories

Path Synopsis
testing
dpkgutil
Package dpkgutil provides test utilities for DPKG annotators.
Package dpkgutil provides test utilities for DPKG annotators.

Jump to

Keyboard shortcuts

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