mirror of
https://github.com/mudler/luet.git
synced 2025-09-02 15:54:39 +00:00
CompilerBackend now consumes a CompilerOptions
This commit is contained in:
@@ -25,8 +25,18 @@ type Compiler interface {
|
||||
GetBackend() CompilerBackend
|
||||
}
|
||||
|
||||
type CompilerBackendOptions struct {
|
||||
ImageName string
|
||||
SourcePath string
|
||||
DockerFileName string
|
||||
Destination string
|
||||
}
|
||||
|
||||
type CompilerBackend interface {
|
||||
BuildImage(name, path,dockerfileName string) error
|
||||
BuildImage(CompilerBackendOptions) error
|
||||
ExportImage(CompilerBackendOptions) error
|
||||
RemoveImage(CompilerBackendOptions) error
|
||||
ImageDefinitionToTar(CompilerBackendOptions) error
|
||||
}
|
||||
|
||||
// CompilationSpec represent a compilation specification derived from a package
|
||||
|
Reference in New Issue
Block a user