cmd/prober: add search, directory, readme, imports and static page endpoints
The following URLs are added to the prober:
* /pkg/cloud.google.com/go/firestore?tab=<tab> for readme and imports
* /search?q=github
* /pkg/golang.org/x/tools/go (directory page)
* /search-help
* /license-policy
@@ -49,14 +49,30 @@ var probes = []*Probe{
Name: "home",
RelativeURL: "",
},
+ {
+ Name: "search-help",
+ RelativeURL: "search-help",
+ },
+ {
+ Name: "license-policy",
+ RelativeURL: "license-policy",
+ },
{
Name: "pkg-firestore",
RelativeURL: "pkg/cloud.google.com/go/firestore",
},
+ {
+ Name: "pkg-firestore-readme",
+ RelativeURL: "pkg/cloud.google.com/go/firestore?tab=readme",
+ },
{
Name: "pkg-firestore-versions",
RelativeURL: "pkg/cloud.google.com/go/firestore?tab=versions",
},
+ {
+ Name: "pkg-firestore-imports",
+ RelativeURL: "pkg/cloud.google.com/go/firestore?tab=imports",
+ },
{
Name: "pkg-firestore-importedby",
RelativeURL: "pkg/cloud.google.com/go/firestore?tab=importedby",
@@ -65,6 +81,18 @@ var probes = []*Probe{
Name: "pkg-firestore-licenses",
RelativeURL: "pkg/cloud.google.com/go/firestore?tab=licenses",
},
+ {
+ Name: "pkg-errors-importedby",
+ RelativeURL: "pkg/github.com/pkg/errors?tab=importedby",
+ },
+ {
+ Name: "pkg-hortonworks-versions",
+ RelativeURL: "pkg/github.com/hortonworks/cb-cli?tab=versions",
+ },
+ {
+ Name: "pkg-xtoolsgo-directory",
+ RelativeURL: "pkg/golang.org/x/tools/go",
+ },
{
Name: "mod-xtools",
RelativeURL: "mod/golang.org/x/tools",
@@ -78,12 +106,8 @@ var probes = []*Probe{
RelativeURL: "mod/golang.org/x/tools?tab=versions",
},
{
- Name: "pkg-errors-importedby",
- RelativeURL: "pkg/github.com/pkg/errors?tab=importedby",
- },
- {
- Name: "pkg-hortonworks-versions",
- RelativeURL: "pkg/github.com/hortonworks/cb-cli?tab=versions",
+ Name: "search-github",
+ RelativeURL: "search?q=github",
},
}
