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 |
||
|---|---|---|
| .. | ||
| blueprints.go | ||
| blueprints_test.go | ||
| client.go | ||
| client_test.go | ||
| compose.go | ||
| compose_test.go | ||
| integration_test.go | ||
| modules.go | ||
| modules_test.go | ||
| projects.go | ||
| projects_test.go | ||
| source.go | ||
| source_test.go | ||
| unit_test.go | ||
| utils.go | ||
| weldr.go | ||