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