internal/cloud/gcp: use pkg.go.dev/cloud.google.com/go for Compute Engine

The internal GCP package used `pkg.go.dev/google.golang.org/api` [1] to
interact with Compute Engine API. Modify the package to use the new and
idiomatic `pkg.go.dev/cloud.google.com/go` [2] library for interacting
with the Compute Engine API. The new library have been already used to
interact with the Cloudbuild and Storage APIs. The new library was not
used for Compute Engine since the beginning, because at that time, it
didn't support Compute Engine.

Update go.mod and vendored packages.

[1] https://github.com/googleapis/google-api-go-client
[2] https://github.com/googleapis/google-cloud-go

Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
Tomas Hozza 2022-01-04 11:32:52 +01:00 committed by Sanne Raymaekers
parent 9302befa67
commit 07a5745875
714 changed files with 441887 additions and 233259 deletions

11
go.mod
View file

@ -3,8 +3,9 @@ module github.com/osbuild/osbuild-composer
go 1.16
require (
cloud.google.com/go v0.100.0
cloud.google.com/go/cloudbuild v0.2.0
cloud.google.com/go/storage v1.18.1
cloud.google.com/go/storage v1.18.2
github.com/Azure/azure-pipeline-go v0.2.3
github.com/Azure/azure-sdk-for-go v57.4.0+incompatible
github.com/Azure/azure-storage-blob-go v0.14.0
@ -47,11 +48,11 @@ require (
github.com/stretchr/testify v1.7.0
github.com/ubccr/kerby v0.0.0-20170626144437-201a958fc453
github.com/vmware/govmomi v0.26.1
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sys v0.0.0-20210917161153-d61c044b1678
google.golang.org/api v0.58.0
google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0
golang.org/x/sys v0.0.0-20211210111614-af8b64212486
google.golang.org/api v0.63.0
google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c
google.golang.org/protobuf v1.27.1
gopkg.in/ini.v1 v1.63.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect