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:
parent
5a93166f6b
commit
b711e302ba
4 changed files with 149 additions and 64 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue