debian-forge-composer/internal
Tomas Hozza ff95059748 internal/upload: Add support for upload to GCP and CLI tool using it
Add new internal upload target for Google Cloud Platform and
osbuild-upload-gcp CLI tool which uses the API.

Supported features are:
- Authenticate with GCP using explicitly provided JSON credentials
  file or let the authentication be handled automatically by the
  Google cloud client library. The later is useful e.g. when the worker
  is running in GCP VM instance, which has associated permissions with
  it.
- Upload an existing image file into existing Storage bucket.
- Verify MD5 checksum of the uploaded image file against the local
  file's checksum.
- Import the uploaded image file into Compute Node as an Image.
- Delete the uploaded image file after a successful image import.
- Delete all cache files from storage created as part of the image
  import build job.
- Share the imported image with a list of specified accounts.

GCP-specific image type is not yet added, since GCP supports importing
VMDK and VHD images, which the osbuild-composer already supports.

Update go.mod, vendor/ content and SPEC file with new dependencies.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-02-25 18:44:21 +00:00
..
blueprint rhel84/grub2: set saved_entry 2021-02-20 20:01:15 +01:00
boot test/openstack: increase timeout for the instance to become ACTIVE 2021-02-25 17:27:01 +00:00
client test: Add tests for trying to override a system source repo 2021-01-29 08:25:23 -08:00
cloudapi cloudapi: extend the API spec with /version and /openapi.json 2021-02-12 14:25:19 +01:00
common weldr: move common.ComposeState to weldr 2020-11-09 14:17:19 +01:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk distro/rhel84: remove hardcoded root partition UUIDs 2020-12-15 16:43:39 +01:00
distro rhel84/grub2: set saved_entry 2021-02-20 20:01:15 +01:00
jobqueue jobqueue: Replace JobArgs() with Job() 2021-01-19 10:37:51 +01:00
jsondb jsondb: Allow passing nil as document to Read() 2020-05-13 16:45:09 +02:00
kojiapi kojiapi: Job not found should return 404 2021-01-19 10:37:51 +01:00
mocks jobqueue: remove testjobqueue 2021-01-12 12:19:25 +01:00
osbuild rhel84/grub2: set saved_entry 2021-02-20 20:01:15 +01:00
rpmmd rpmmd/Depsolve: expose whether to check GPG signature for each RPM 2020-06-10 19:25:54 +02:00
store distro/rhel84: use a random uuid for XFS partition 2020-12-15 16:43:39 +01:00
target weldr: add vmware upload target to api 2021-02-16 19:06:01 +00:00
test test: add arch to the generate test artifact names 2020-12-01 08:27:44 +01:00
upload internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
weldr weldr/compose/ostree: introduce URL parameter 2021-02-20 14:53:49 +01:00
worker cloudapi: expose upload status 2021-02-05 12:34:28 +01:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00