debian-forge-composer/internal/weldr
Brian C. Lane 982d292a96 weldr: Update projects/source/info to support API v1
This commit changes the store.GetAllSources to distinguish between
getting the source by the Name field, or by the ID (the key to the map)
using GetAllSourcesByName and ...ByID.

SourceConfig.RepoConfig() now takes an id parameter because SourceConfig
only stores the Name, not the ID.

In weldr I split the sourceInfoHandler into 2 separate functions for v0
and v1 behavior, with the core of the old function refactored as
getSourceConfigs and used by both of them.

This also adds new structs for the SourceResponseV0 and SourceResponseV1
as well as helper functions for converting to/from store.SourceConfig
2020-06-03 21:24:47 +02:00
..
api.go weldr: Update projects/source/info to support API v1 2020-06-03 21:24:47 +02:00
api_test.go weldr: use compose status for targets as well 2020-06-03 11:49:20 +02:00
compose.go weldr: use compose status for targets as well 2020-06-03 11:49:20 +02:00
json.go weldr: Update projects/source/info to support API v1 2020-06-03 21:24:47 +02:00
upload.go weldr: use compose status for targets as well 2020-06-03 11:49:20 +02:00
util.go composer/job-queue: add scaffolding for the job queue API 2019-09-26 19:53:06 +02:00