Ondřej Budai
f77f570202
upload/koji: extract RoundTripper from Koji type
...
The RoundTripper bits are not dependant on the Koji type, this commit extracts
them, so the responsibilities are clearly separated.
2020-08-27 17:29:57 +01:00
Ondřej Budai
1a13f6936c
upload/koji: reuse the transport used by xmlrpc when uploading a chunk
...
This way, the handling of session and callnum is done at one place instead of
two places.
2020-08-27 17:29:57 +01:00
Ondřej Budai
87a7e90c98
upload/koji: return the CGImport result
...
Currently, only build id is returned, more will come when needed.
2020-05-19 13:54:53 +02:00
Ondřej Budai
e43eb4da7b
upload/koji: make the hexdigest field consistent
...
We usually try to match the field name with its json/toml/xmlrpc tag. This
commit does exactly that.
2020-05-19 13:54:53 +02:00
Ondřej Budai
184cd24426
upload/koji: handle the unmarshalling error
2020-05-19 13:54:53 +02:00
Ondřej Budai
0c87a7f524
upload/koji: handle the xmlrpc error
...
This is the way to handle situations when the remote method errors.
2020-05-19 13:54:53 +02:00
Tom Gundersen
76515066a8
upload/koji: add helpers to upload to koji
...
This does not yet actually upload the image, and it only supports empty
images. You need to place a an empty file named <filename>, with a valid
extension (e.g., .qcow2) in /mnt/koji/work/<directory>/.
Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-05-19 13:54:53 +02:00