debian-forge-composer/internal/target/target.go
Tom Gundersen 5df6874b94 target: add constructor
We only support local target for now, but this avoids having to
open code it.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2019-09-27 15:54:13 +02:00

21 lines
386 B
Go

package target
import "github.com/google/uuid"
type Target struct {
Name string `json:"name"`
Options Options `json:"options"`
}
type Options struct {
Location string `json:"location"`
}
func New(ComposeID uuid.UUID) *Target {
return &Target{
Name: "org.osbuild.local",
Options: Options{
Location: "/var/lib/osbuild-composer/outputs/" + ComposeID.String(),
},
}
}