mirror of
https://github.com/mudler/luet.git
synced 2025-09-16 15:19:24 +00:00
BoltDB fixups
Unmarshalling needs well-defined structs, also swap pointers in few places where needed. There are few more TODOS pending (like getting UpdatePackage fixed properly)
This commit is contained in:
@@ -38,11 +38,12 @@ type PackageSet interface {
|
||||
RemovePackage(Package) error
|
||||
|
||||
GetPackageFiles(Package) ([]string, error)
|
||||
SetPackageFiles(PackageFile) error
|
||||
SetPackageFiles(*PackageFile) error
|
||||
RemovePackageFiles(Package) error
|
||||
}
|
||||
|
||||
type PackageFile struct {
|
||||
ID int `storm:"id,increment"` // primary key with auto increment
|
||||
PackageFingerprint string
|
||||
Files []string
|
||||
}
|
||||
|
Reference in New Issue
Block a user