diff options
| author | Ethan Lee <ethanalee@google.com> | 2026-03-11 21:04:11 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-23 09:41:31 -0700 |
| commit | c43b677a694ff5791b1b696298c9e29ae6d221bb (patch) | |
| tree | f980f6f50b3251785b6b1925516147a4e9d52e32 /internal/fetchdatasource/fetchdatasource.go | |
| parent | 21d5c77a01c8874095d68e8c10a03c100fcd2070 (diff) | |
| download | go-x-pkgsite-c43b677a694ff5791b1b696298c9e29ae6d221bb.tar.xz | |
internal/api: implement module versions endpoint
- Implement module versions endpoint using ds.GetVersionsForPath
- Introduce paginate helper to generalize paginaton logic
- Update fakedatasource to correctly use V1Path to return all versions
Change-Id: Icc028bf8ca9c13978bb6eba84afe9736ccd6bcee
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/754862
Reviewed-by: Jonathan Amsterdam <jba@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ethan Lee <ethanalee@google.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'internal/fetchdatasource/fetchdatasource.go')
| -rw-r--r-- | internal/fetchdatasource/fetchdatasource.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/fetchdatasource/fetchdatasource.go b/internal/fetchdatasource/fetchdatasource.go index 6676d89f..41573ae5 100644 --- a/internal/fetchdatasource/fetchdatasource.go +++ b/internal/fetchdatasource/fetchdatasource.go @@ -350,6 +350,11 @@ func (ds *FetchDataSource) GetNestedModules(ctx context.Context, modulePath stri return nil, nil } +// GetVersionsForPath is not implemented. +func (ds *FetchDataSource) GetVersionsForPath(ctx context.Context, path string) ([]*internal.ModuleInfo, error) { + return nil, nil +} + // GetModuleReadme is not implemented. func (*FetchDataSource) GetModuleReadme(ctx context.Context, modulePath, resolvedVersion string) (*internal.Readme, error) { return nil, nil |
