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).
22 lines
483 B
Go
22 lines
483 B
Go
package blueprint
|
|
|
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
|
|
|
type openstackOutput struct{}
|
|
|
|
func (t *openstackOutput) translate(b *Blueprint) *pipeline.Pipeline {
|
|
p := getF30Pipeline()
|
|
addF30FSTabStage(p)
|
|
addF30GRUB2Stage(p)
|
|
addF30SELinuxStage(p)
|
|
addF30QemuAssembler(p, "qcow2", t.getName())
|
|
return p
|
|
}
|
|
|
|
func (t *openstackOutput) getName() string {
|
|
return "image.qcow2"
|
|
}
|
|
|
|
func (t *openstackOutput) getMime() string {
|
|
return "application/x-qemu-disk"
|
|
}
|