Implement uninstall

Also add RemovePackage in database implementation (boltdb is not tested yet)

Add test case for uninstall
This commit is contained in:
Ettore Di Giacinto
2019-11-24 00:16:12 +01:00
parent 0d7b2cf448
commit a8b350fd8e
6 changed files with 97 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ type PackageSet interface {
FindPackage(Package) (Package, error)
UpdatePackage(p Package) error
GetAllPackages(packages chan Package) error
RemovePackage(Package) error
GetPackageFiles(Package) ([]string, error)
SetPackageFiles(PackageFile) error