This should be the best practice according to other popular go projects: - https://github.com/prometheus/prometheus - https://github.com/syncthing/syncthing - https://github.com/drone/drone - https://github.com/hashicorp/terraform Also, this change fixes go get command (it currently fails due to bad package name).
21 lines
443 B
Go
21 lines
443 B
Go
package blueprint
|
|
|
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
|
|
|
type liveIsoOutput struct{}
|
|
|
|
func (t *liveIsoOutput) translate(b *Blueprint) *pipeline.Pipeline {
|
|
// TODO!
|
|
p := getF30Pipeline()
|
|
addF30SELinuxStage(p)
|
|
addF30QemuAssembler(p, "raw", t.getName())
|
|
return p
|
|
}
|
|
|
|
func (t *liveIsoOutput) getName() string {
|
|
return "image.iso"
|
|
}
|
|
|
|
func (t *liveIsoOutput) getMime() string {
|
|
return "application/x-iso9660-image"
|
|
}
|