debian-forge-composer/internal/blueprint/openstack_output.go
Ondřej Budai 15b82a15d2 osbuild-composer: Rename module to github.com/osbuild/osbuild-composer
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).
2019-10-08 21:44:57 +02:00

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"
}