internal/vuln: export Client.IDs
This is used by the pagecheck_test currently in the private repo.
(FYI we will plan to move the pagecheck_test file to this repo)
Change-Id: I4b8eacb88b7457324683a438f30dd9e354ef0314
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/492678
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
diff --git a/internal/vuln/client.go b/internal/vuln/client.go
index d5f60f6..5a425b5 100644
--- a/internal/vuln/client.go
+++ b/internal/vuln/client.go
@@ -225,7 +225,7 @@
return nil, nil
}
- ids, err := c.ids(ctx)
+ ids, err := c.IDs(ctx)
if err != nil {
return nil, err
}
@@ -307,8 +307,8 @@
return entries, nil
}
-// ids returns a list of the ids of all the entries in the database.
-func (c *Client) ids(ctx context.Context) (_ []string, err error) {
+// IDs returns a list of the IDs of all the entries in the database.
+func (c *Client) IDs(ctx context.Context) (_ []string, err error) {
b, err := c.vulns(ctx)
if err != nil {
return nil, err