mirror of
https://github.com/mudler/luet.git
synced 2025-09-03 08:14:46 +00:00
Define a generic Artifact object for now
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user