We only support local target for now, but this avoids having to open code it. Signed-off-by: Tom Gundersen <teg@jklm.no>
21 lines
386 B
Go
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(),
|
|
},
|
|
}
|
|
}
|