Documentation ¶
Index ¶
- type DAO
- func (d *DAO) DeletePackage(name string) error
- func (d *DAO) Dump(w io.Writer) error
- func (d *DAO) GetKnownUsages(name string) ([]string, error)
- func (d *DAO) GetPackage(name string) (*Package, error)
- func (d *DAO) GetUnusedSince(usedAt time.Time) ([]string, error)
- func (d *DAO) PackageRemovedAt(name string, binDir string) error
- func (d *DAO) UpdatePackage(name string, pkg *Package) error
- func (d *DAO) UpdatePackageWithUsage(binDir string, name string, pkg *Package) error
- type Package
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO struct {
// contains filtered or unexported fields
}
DAO abstracts away the database access
func (*DAO) DeletePackage ¶
DeletePackage removes a package from the DB
func (*DAO) GetKnownUsages ¶
GetKnownUsages returns a list of bin directories where this package has been seen previously
func (*DAO) GetPackage ¶
GetPackage returns information of a specific package
func (*DAO) GetUnusedSince ¶
GetUnusedSince return packages that have not been used since the given time
func (*DAO) PackageRemovedAt ¶
PackageRemovedAt Removes a package installation from the DB
func (*DAO) UpdatePackage ¶
UpdatePackage Updates the update check time, etag, and the used at time for a package
Click to show internal directories.
Click to hide internal directories.