dpkg

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0, BSD-3-Clause Imports: 9 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) 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.

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) 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.

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