debian-forge-composer/internal/cloud/gcp
Tomas Hozza 249661a948 worker: rework GCP credentials handling
Refactor the handling of GCP credentials in the worker to be equivalent
to what is done for AWS. The main idea is that the code decides which
credentials to use when processing each job. This change will allow
preferring credentials passed via upload `TargetOptions` with the job,
over the credentials configured in worker's configuration or the default
way of authenticating implemented by the Google library.

Move loading of GCP credentials to the internal `gcp` library into
`NewFromFile()` function accepting path to the file with credentials.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2022-04-14 19:07:31 +01:00
..
compute.go internal/cloud/gcp: delete unused internal API 2022-04-14 19:07:31 +01:00
gcp.go worker: rework GCP credentials handling 2022-04-14 19:07:31 +01:00
storage.go internal/cloud/gcp: delete unused internal API 2022-04-14 19:07:31 +01:00