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).
20 lines
399 B
Go
20 lines
399 B
Go
package blueprint
|
|
|
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
|
|
|
type tarOutput struct{}
|
|
|
|
func (t *tarOutput) translate(b *Blueprint) *pipeline.Pipeline {
|
|
p := getF30Pipeline()
|
|
addF30SELinuxStage(p)
|
|
addF30TarAssembler(p, t.getName())
|
|
return p
|
|
}
|
|
|
|
func (t *tarOutput) getName() string {
|
|
return "image.tar"
|
|
}
|
|
|
|
func (t *tarOutput) getMime() string {
|
|
return "application/x-tar"
|
|
}
|