mirror of
https://github.com/mudler/luet.git
synced 2025-07-19 01:37:13 +00:00
Define a generic Artifact object for now
This commit is contained in:
parent
b2d305bb8d
commit
4ea8f26878
@ -15,4 +15,23 @@
|
||||
|
||||
package compiler
|
||||
|
||||
type Artifact struct{}
|
||||
type Artifact interface {
|
||||
GetPath() string
|
||||
SetPath(string)
|
||||
}
|
||||
|
||||
type PackageArtifact struct {
|
||||
Path string
|
||||
}
|
||||
|
||||
func NewPackageArtifact(path string) Artifact {
|
||||
return &PackageArtifact{Path: path}
|
||||
}
|
||||
|
||||
func (a *PackageArtifact) GetPath() string {
|
||||
return a.Path
|
||||
}
|
||||
|
||||
func (a *PackageArtifact) SetPath(p string) {
|
||||
a.Path = p
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ func NewLuetCompiler(backend CompilerBackend, t pkg.Tree) Compiler {
|
||||
}
|
||||
}
|
||||
|
||||
func (cs *LuetCompiler) Compile(p CompilationSpec) (*Artifact, error) {
|
||||
func (cs *LuetCompiler) Compile(p CompilationSpec) (Artifact, error) {
|
||||
|
||||
// - If image is not set, we read a base_image. Then we will build one image from it to kick-off our build based
|
||||
// on how we compute the resolvable tree.
|
||||
|
Loading…
Reference in New Issue
Block a user