debian-forge-composer/internal/client
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
..
blueprints.go Move the API struct definitions into internal/weldr 2020-03-23 21:08:01 +01:00
blueprints_test.go tests: Add missing descriptions to test blueprints 2020-05-28 08:28:11 +02:00
client.go client: Add GetRawBody function to return the io.ReadCloser from the request 2020-04-15 11:35:05 +02:00
client_test.go tests: replace cmd.Diff() with require functions 2020-04-20 14:00:49 +02:00
compose.go client: Add functions to handle Metadata and Results requests 2020-05-28 00:39:10 +02:00
compose_test.go tests: lorax-composer returns 2 errors for these tests 2020-05-28 08:28:11 +02:00
integration_test.go client: drop client timeout in tests 2020-05-12 22:38:10 +02:00
modules.go client: Add /modules/ support 2020-03-25 10:01:14 +01:00
modules_test.go client: Handle the differences between unit tests and integration tests 2020-03-27 19:07:33 +01:00
projects.go client: Add /projects/ support 2020-03-25 10:01:14 +01:00
projects_test.go client: Handle the differences between unit tests and integration tests 2020-03-27 19:07:33 +01:00
source.go weldr: Update projects/source/info to support API v1 2020-06-03 21:24:47 +02:00
source_test.go weldr: Update projects/source/info to support API v1 2020-06-03 21:24:47 +02:00
unit_test.go rpmmd/RepoConf: rename Id to Name 2020-05-28 00:23:54 +02:00
utils.go client: drop client timeout in tests 2020-05-12 22:38:10 +02:00
weldr.go Move the API struct definitions into internal/weldr 2020-03-23 21:08:01 +01:00