debian-forge-composer/internal/target
Ygal Blum feb357e538 Support Generic S3 upload in Composer API
Use case
--------
If Endpoint is not set and Region is - upload to AWS S3
If both the Endpoint and Region are set - upload the Generic S3 via Weldr API
If neither the Endpoint and Region are set - upload the Generic S3 via Composer API (use configuration)

jobimpl-osbuild
---------------
Add configuration fields for Generic S3 upload
Support S3 upload requests coming from Weldr or Composer API to either AWS or Generic S3
Weldr API for Generic S3 requires that all connection parameters but the credentials be passed in the API call
Composer API for Generic S3 requires that all conneciton parameters are taken from the configuration
Adjust to the consolidation in Target and UploadOptions

Target and UploadOptions
------------------------
Add the fields that were specific to the Generic S3 structures to the AWS S3 one
Remove the structures for Generic S3 and always use the AWS S3 ones

Worker Main
-----------
Add Endpoint, Region, Bucket, CABundle and SkipSSLVerification to the configuration structure
Pass the values to the Server

Weldr API
---------
Keep the generic.s3 provider name to maintain the API, but unmarshel into awsS3UploadSettings

tests - api.sh
--------------
Allow the caller to specifiy either AWS or Generic S3 upload targets for specific image types
Implement the pieces required for testing upload to a Generic S3 service
In some cases generalize the AWS S3 functions for reuse

GitLab CI
---------
Add test case for api.sh tests with edge-commit and generic S3
2022-06-02 16:12:53 +03:00
..
aws_target.go Support Generic S3 upload in Composer API 2022-06-02 16:12:53 +03:00
azure_image_target.go worker: add azure image upload target 2021-03-06 15:40:48 +00:00
azure_target.go target/azure: document what it does 2021-03-06 15:40:48 +00:00
gcp_target.go Weldr: support GCP upload target 2022-04-14 19:07:31 +01:00
koji_target.go koji: use nvra as the filename for images 2020-10-27 19:01:30 +00:00
local_target.go worker: support returning returning images as StreamOptimized 2020-08-23 14:45:27 +02:00
oci_target.go Add support for OCI upload provider 2022-01-28 15:16:47 +01:00
target.go Support Generic S3 upload in Composer API 2022-06-02 16:12:53 +03:00
targetresult.go Support Generic S3 upload in Composer API 2022-06-02 16:12:53 +03:00
vmware_target.go weldr: add vmware upload target to api 2021-02-16 19:06:01 +00:00