targets: add dummy azure and aws targets

These are not currently implemented in the backend, but shows how
the API will look like.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-11-22 13:31:05 +01:00 committed by Ondřej Budai
parent 283e89d0f4
commit e98b189b82
6 changed files with 45 additions and 7 deletions

View file

@ -444,7 +444,11 @@ func (s *Store) DeleteBlueprintFromWorkspace(name string) {
func (s *Store) PushCompose(composeID uuid.UUID, bp *blueprint.Blueprint, composeType string) error {
targets := []*target.Target{
target.NewLocalTarget(target.NewLocalTargetOptions("/var/lib/osbuild-composer/outputs/" + composeID.String())),
target.NewLocalTarget(
&target.LocalTargetOptions{
Location: "/var/lib/osbuild-composer/outputs/" + composeID.String(),
},
),
}
d := distro.New("")
pipeline, err := d.Pipeline(bp, composeType)