debian-forge-composer/internal/client
Tomas Hozza aa6665ad01 Use RepoRegistry in composer and Weldr API
Modify composer to use RepoRegistry, instead of loading the host
repositories, when initializing WeldrAPI.

Modify WeldrAPI to use RepoRegistry, instead of a map of repository
definitions. Make sure that the RepoRegistry method specific to image
type is used in Welder where appropriate. Specifically when depsolving a
Blueprint, which is used to build a specific image type. Update Weldr
API unit tests to reflect the change.

Add a new method to RepoRegistry, allowing to get list of repositories,
which should be used for building an image for a given architecture,
without specifying the exact image type. Add relevant unit tests.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-05-14 15:43:00 +02:00
..
blueprints.go Move the API struct definitions into internal/weldr 2020-03-23 21:08:01 +01:00
blueprints_test.go client: Add an integration test for a bad blueprint depsolve 2020-07-28 08:18:56 +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: remove fedoratest and replace it with test_distro 2021-05-14 15:43:00 +02:00
integration_test.go Tests: remove fedoratest and replace it with test_distro 2021-05-14 15:43:00 +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: Add support for the v1 API to /projects/source/delete 2020-06-03 21:24:47 +02:00
source_test.go test: Add tests for trying to override a system source repo 2021-01-29 08:25:23 -08:00
unit_test.go Use RepoRegistry in composer and Weldr API 2021-05-14 15:43:00 +02:00
utils.go Tests: remove fedoratest and replace it with test_distro 2021-05-14 15:43:00 +02:00
weldr.go Move the API struct definitions into internal/weldr 2020-03-23 21:08:01 +01:00