mirror of
https://github.com/mudler/luet.git
synced 2025-09-03 08:14:46 +00:00
Add accessors for LuetCompilationSpec
This commit is contained in:
@@ -62,10 +62,22 @@ func (cs *LuetCompilationSpec) GetImage() string {
|
||||
return cs.Image
|
||||
}
|
||||
|
||||
func (cs *LuetCompilationSpec) GetOutputPath() string {
|
||||
return cs.OutputPath
|
||||
}
|
||||
|
||||
func (p *LuetCompilationSpec) Rel(s string) string {
|
||||
return filepath.Join(p.GetOutputPath(), s)
|
||||
}
|
||||
|
||||
func (cs *LuetCompilationSpec) SetImage(s string) {
|
||||
cs.Image = s
|
||||
}
|
||||
|
||||
func (cs *LuetCompilationSpec) SetOutputPath(s string) {
|
||||
cs.OutputPath = s
|
||||
}
|
||||
|
||||
func (cs *LuetCompilationSpec) SetSeedImage(s string) {
|
||||
cs.Seed = s
|
||||
}
|
||||
|
Reference in New Issue
Block a user