cos: Simplify pkg_info json parsing.

This change simplifies the logic for parsing cos-package-info.json
files. It also adds struct tags to the exported types. It also adds and
modifies some minor documentation.

BUG=b/206705809
TEST=go test -run TestPackageInfo

Change-Id: I31c88298a24c1da647b084c1234325e9c883a16a
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/26340
Tested-by: Sam Kunz <samkunz@google.com>
Reviewed-by: Vaibhav Rustagi <vaibhavrustagi@google.com>
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
1 file changed
tree: b1b092ef91438784980efcdb4ee6cefe6b2318cb
  1. release/
  2. src/
  3. testing/
  4. BUILD.bazel
  5. cloudbuild.yaml
  6. CONTRIBUTING.md
  7. deps.bzl
  8. go.mod
  9. go.sum
  10. LICENSE
  11. README.md
  12. run_tests.sh
  13. WORKSPACE
README.md

Tools for Container-Optimized OS

This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.

See CONTRIBUTING.md for how to contribute.