cloudapi: add pulp upload target

Add the pulp.ostree upload target to the cloud API and enable it for
edge/iot commits.

Co-Authored-By: Achilleas Koutsou <achilleas@koutsou.net>
This commit is contained in:
Gianluca Zuccarelli 2023-10-16 20:13:46 +02:00 committed by Sanne Raymaekers
parent 5a93166f6b
commit b711e302ba
4 changed files with 149 additions and 64 deletions

View file

@ -391,7 +391,12 @@ func targetResultToUploadStatus(t *target.TargetResult) (*UploadStatus, error) {
uploadOptions = OCIUploadStatus{
Url: ociOptions.URL,
}
case target.TargetNamePulpOSTree:
uploadType = UploadTypesPulpOstree
pulpOSTreeOptions := t.Options.(*target.PulpOSTreeTargetResultOptions)
uploadOptions = PulpOSTreeUploadStatus{
RepoUrl: pulpOSTreeOptions.RepoURL,
}
default:
return nil, fmt.Errorf("unknown upload target: %s", t.Name)
}