runtime/internal: Enforce CloudVM invariant

InitCloudVM should always be called before CloudVMPublicAddress,
otherwise it will return the wrong result.

The rest of the code is structured in such a way that InitCloudVM should
always be called first. However, we had a instance where
CloudVMPublicAddress apparently returned the wrong result, just as if it
had been called before InitCloudVM.

For now, we will panic() if CloudVMPublicAddress is ever called first.

Change-Id: Ib569dcaf1ab63d5cdcb0c2706d11411fc398d09f
1 file changed
tree: d9929534dc01362a1e3cf65cb9198550f9248086
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  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.