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 48117c4a..912b54de 100644
--- a/internal/datasource.go
+++ b/internal/datasource.go
@@ -91,6 +91,8 @@ type DataSource interface {
// GetLatestInfo gets information about the latest versions of a unit and module.
// See LatestInfo for documentation.
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)
// SearchSupport reports the search types supported by this datasource.
SearchSupport() SearchSupport