Consume CompilerBackend in Compiler

This commit is contained in:
Ettore Di Giacinto
2019-11-04 17:20:00 +01:00
parent add0021cfd
commit b62966ca35
2 changed files with 11 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ import pkg "github.com/mudler/luet/pkg/package"
type Compiler interface {
Compile(CompilationSpec) (*Artifact, error)
FromPackage(pkg.Package) (CompilationSpec, error)
SetBackend(CompilerBackend)
GetBackend() CompilerBackend
}
type CompilerBackend interface {