tremplin: replace use of deprecated modules/functions

This change ensures `tremplin` no longer uses deprecated modules and/or
functions. Most of the changes relate to `io/ioutil`, deprecated since
Go 1.16[1], with equivalent functions/variables being implemented in
the `io` and `os` modules.

The only other change involves using `grpc.WithContextDialer()` instead
of the deprecated `grpc.WithDialer()`[2].

[1] https://pkg.go.dev/io/ioutil
[2] https://pkg.go.dev/google.golang.org/grpc#WithDialer

BUG=b:218608945
TEST=staticcheck "chromiumos/tremplin/..."

Change-Id: I552074e12b619bad4dcb87c5afe62dec5fccb3c6
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tremplin/+/6062823
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Jordan Abrahams-Whitehead <ajordanr@google.com>
Reviewed-by: Jordan Abrahams-Whitehead <ajordanr@google.com>
10 files changed
tree: ae384f1316a598f707995f5e0c4e8591db8572c7
  1. src/
  2. .gitignore
  3. DIR_METADATA
  4. OWNERS
  5. README.md
README.md

Tremplin

Tremplin is the “springboard” daemon that runs in the Termina VM and exposes a gRPC interface for managing LXD containers.