aboutsummaryrefslogtreecommitdiff
path: root/internal/datasource.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/datasource.go')
-rw-r--r--internal/datasource.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/datasource.go b/internal/datasource.go
index 912b54de..f6bf8c84 100644
--- a/internal/datasource.go
+++ b/internal/datasource.go
@@ -93,6 +93,8 @@ type DataSource interface {
GetLatestInfo(ctx context.Context, unitPath, modulePath string, latestUnitMeta *UnitMeta) (LatestInfo, error)
// GetVersionsForPath returns a list of versions for the given path.
GetVersionsForPath(ctx context.Context, path string) ([]*ModuleInfo, error)
+ // GetModulePackages returns a list of packages in the given module version.
+ GetModulePackages(ctx context.Context, modulePath, version string) ([]*PackageMeta, error)
// SearchSupport reports the search types supported by this datasource.
SearchSupport() SearchSupport