Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dpkg ¶
type Dpkg struct {
// contains filtered or unexported fields
}
Dpkg provides access to a subset of the overall dpkg features.
Instead of exec'ing dpkg-query (which is sloooow), we instead rely on a native implementation that allows us to execute the operations we need fast and asynchronously.
func NewDpkg ¶
func NewDpkg() *Dpkg
NewDpkg returns a new Dpkg instance, pointing to the system default dpkg runtime dir
func (Dpkg) Architecture ¶
func (Dpkg) QueryForFilePattern ¶
QueryForFilePattern searches through all installed files, matching them against pattern and returns the list of package names containing a file matching patterns.
Returns an error if globbing /var/lib/dpkg/info/*.list fails.
type System ¶
type System struct {
// contains filtered or unexported fields
}
System implements pkg.System for a Debian system
func NewSystem ¶
func NewSystem() *System
NewSystem returns a new System instance, providing it with a valid Dpkg instance.