repo-updater: Extend Store with methods for external services
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: tsenart
In preparation for the migrations of external services needed in #2025, this change set extends the Store
interface with two methods:
ListExternalServices(ctx context.Context, kinds ...string) ([]*ExternalService, error)
UpsertExternalServices(ctx context.Context, svcs ... *ExternalService) error
All the following changes cascaded from this one and replicate the design of the code that deals with Repos:
ExternalService
and ExternalServices
types.ListExternalServices
and UpsertExternalServices
methods in DBStore
and FakeStore
.ExternalServicesSourcer
to use a Store
instead of an InternalAPI
.
Push commits to the source branch or add previously merged commits to review them.