Documentation ¶
Overview ¶
Package ndb provides support for read-only access to an RPM "ndb" database.
The support for ndb's native indexes is probably unneeded, but is implemented for completeness.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index is an index over an RPM tag.
func (*Index) Parse ¶
Parse closes over the provided io.ReaderAt and populates the provided Index.
func (*Index) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler for an Index header.
type PackageDB ¶
type PackageDB struct {
// contains filtered or unexported fields
}
PackageDB is the "pkgdb" a.k.a. "Packages.db", the raw package data.
func (*PackageDB) AllHeaders ¶
AllHeaders returns ReaderAts for all RPM headers in the PackageDB.
func (*PackageDB) GetHeader ¶
GetHeader returns an io.ReaderAt populated with rpm.Header data or reports an error.
func (*PackageDB) Parse ¶
Parse closes over the provided io.ReaderAt and populates the provided PackageDB.
func (*PackageDB) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler for a PackageDB header.
type XDB ¶
type XDB struct {
// contains filtered or unexported fields
}
XDB is the "xdb" a.k.a. "Index.db", the ndb mechanism for creating indexes.
func (*XDB) Parse ¶
Parse closes over the passed io.ReaderAt and populates the XDB.
func (*XDB) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler for the xdb header.