mirror of
https://github.com/mudler/luet.git
synced 2025-09-05 17:20:29 +00:00
Add accessors for LuetCompilationSpec
This commit is contained in:
@@ -62,10 +62,22 @@ func (cs *LuetCompilationSpec) GetImage() string {
|
|||||||
return cs.Image
|
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) {
|
func (cs *LuetCompilationSpec) SetImage(s string) {
|
||||||
cs.Image = s
|
cs.Image = s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (cs *LuetCompilationSpec) SetOutputPath(s string) {
|
||||||
|
cs.OutputPath = s
|
||||||
|
}
|
||||||
|
|
||||||
func (cs *LuetCompilationSpec) SetSeedImage(s string) {
|
func (cs *LuetCompilationSpec) SetSeedImage(s string) {
|
||||||
cs.Seed = s
|
cs.Seed = s
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user