Documentation ¶
Index ¶
- type PackageDB
- func (db *PackageDB) Add(pkg types.Package)
- func (db *PackageDB) AddAll(packageList []types.Package)
- func (db *PackageDB) EarlierOrEqual(name string, version version.Version) (packageList []types.Package)
- func (db *PackageDB) ExactlyEqual(name string, version version.Version) (*types.Package, bool)
- func (db *PackageDB) ForEach(fn func(pkg types.Package) error) error
- func (db *PackageDB) Get(name string) (packageList []types.Package)
- func (db *PackageDB) LaterOrEqual(name string, version version.Version) (packageList []types.Package)
- func (db *PackageDB) Len() int
- func (db *PackageDB) Remove(pkg types.Package)
- func (db *PackageDB) StrictlyEarlier(name string, version version.Version) (packageList []types.Package)
- func (db *PackageDB) StrictlyLater(name string, version version.Version) (packageList []types.Package)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageDB ¶
type PackageDB struct {
// contains filtered or unexported fields
}
PackageDB is a package database.
func (*PackageDB) EarlierOrEqual ¶
func (db *PackageDB) EarlierOrEqual(name string, version version.Version) (packageList []types.Package)
EarlierOrEqual returns all packages that match the provided name and are earlier or equal to the provided version.
func (*PackageDB) ExactlyEqual ¶
ExactlyEqual returns the package that matches the provided name and version.
func (*PackageDB) ForEach ¶
ForEach iterates over each package in the database. If the provided function returns an error, the iteration will stop.
func (*PackageDB) LaterOrEqual ¶
func (db *PackageDB) LaterOrEqual(name string, version version.Version) (packageList []types.Package)
LaterOrEqual returns all packages that match the provided name and are later or equal to the provided version.
Click to show internal directories.
Click to hide internal directories.