tree: 4a63a074810719d3c15864ae22c2907f03d2cb20 [path history] [tgz]
  1. proto/
  2. service/
  3. BUILD.bazel
  4. main.go
  5. prod.jsonnet
  6. README.md
devtools/depotview/README.md

depotview

Git-as-a-service over gRPC. Useful to get read-only access to hscloud.

Production

There's a prod instance running at depotview.depotview.svc.cluster.local.

Development

$ bazel run //devtools/depotview -- -hspki_disable
$ grpcurl -plaintext -d '{"ref": "master"}' 127.0.0.1:4200 depotview.DepotView.Resolve
{
  "hash": "154baf1cf6ed99ae5b2849f512ea4d58dbbf199e",
  "lastChecked": 1586377071253733703
}
$ grpcurl -plaintext -d '{"hash": "154baf1cf6ed99ae5b2849f512ea4d58dbbf199e", "path": "//README"}' 127.0.0.1:4200 depotview.DepotView.Read
{
  "data": "SFNDbG...."
}