debian-forge-composer/internal/store
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
..
test store: verify that old versions of the store can still be unmarshalled 2020-06-03 00:30:01 +02:00
compose.go distro: make the osbuild package internal to the distros 2020-06-03 00:30:01 +02:00
fixtures.go distro: make the osbuild package internal to the distros 2020-06-03 00:30:01 +02:00
json.go distro: make the osbuild package internal to the distros 2020-06-03 00:30:01 +02:00
json_test.go store: verify that old versions of the store can still be unmarshalled 2020-06-03 00:30:01 +02:00
store.go weldr: Update projects/source/info to support API v1 2020-06-03 21:24:47 +02:00
store_test.go store/json: log on dropping composes on unmarshal 2020-05-18 11:50:15 +02:00