[tilo][entity] Create entity ID structs

An entity's ID-related fields are not necessary when sending RPCs to
update the entity (as opposed to create or finish), only its name is
required.  Including the entity's ID causes an error if the value
doesn't match the ID that is set on the request by resultstore/service.go.
These values *should* always be the same, but since they're allowed to be
empty we'll leave them empty since that's easier.

Adding structs to hold the IDs makes it easier to check whether the IDs are
set or unset, and pass a nil value when necessary.

IN-699 #comment

Change-Id: I024676e21e691d167cb17e82cfebf6347c3b08f7
6 files changed
tree: 295e91f8f8fe5a7245905de57825ef2e5b13e536
  1. cmd/
  2. fuchsia/
  3. fxctx/
  4. fxtesting/
  5. fxtime/
  6. gerrit-policy/
  7. retry/
  8. tilo/
  9. tools/
  10. .gitignore
  11. AUTHORS
  12. go.mod
  13. go.sum
  14. LICENSE
  15. MAINTAINERS
  16. manifest
  17. packages_to_publish.json
  18. PATENTS
  19. README.md
README.md

infra

This repo contains tools and config files necessary to run infrastructure related to builds, code review, version control, and continuous integrations.

In order to build the Go code, you must clone this repo into an appropriately named directory. This should do the trick:

REPO=fuchsia.googlesource.com/infra/infra
git clone https://${REPO} $(go env GOPATH)/src/${REPO}