mirror of
https://github.com/mudler/luet.git
synced 2025-09-08 10:39:19 +00:00
🎨 Port package to types
This refactors DefaultPackage into types.Package and gets rid of the interface. This is a preceeding for a follow up where accessors will be removed from the code. It also does several cleanup, so we get rid also of some unneeded dependencies.
This commit is contained in:
@@ -15,16 +15,14 @@
|
||||
|
||||
package tree
|
||||
|
||||
import (
|
||||
pkg "github.com/mudler/luet/pkg/package"
|
||||
)
|
||||
import "github.com/mudler/luet/pkg/api/core/types"
|
||||
|
||||
// reads a luet tree and generates the package lists
|
||||
type Builder interface {
|
||||
Save(string) error // A tree might be saved to a folder structure (human editable)
|
||||
Load(string) error // A tree might be loaded from a db (e.g. bolt) and written to folder
|
||||
GetDatabase() pkg.PackageDatabase
|
||||
WithDatabase(d pkg.PackageDatabase)
|
||||
GetDatabase() types.PackageDatabase
|
||||
WithDatabase(d types.PackageDatabase)
|
||||
|
||||
GetSourcePath() []string
|
||||
}
|
||||
|
Reference in New Issue
Block a user