services/device/device: have publish create new envelope versions

Instead of always using version "0", publish now uploads envelopes at a
new version each time. The version is based on the timestamp.

The envelope from the latest existing version is transfered over to the
new version (keeping with the flag/package preservation behavior of the
old publish command).

Prod and staging need to be updated to fetch updated envelopes from
unversioned object names before checking this in.

MultiPart: 1/2

Change-Id: Id1e059f9bb11c58ea61a9878698b182d29da31b2
2 files changed
tree: 59a884b154be23e014e3deacc0fea8d6c8421e52
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.