cloudapi/v2: add oci image type to cloudapi
This commit is contained in:
parent
067366ed6a
commit
a7794dc634
4 changed files with 182 additions and 131 deletions
|
|
@ -331,6 +331,8 @@ func imageTypeFromApiImageType(it ImageTypes, arch distro.Arch) string {
|
|||
return "iot-raw-image"
|
||||
case ImageTypesLiveInstaller:
|
||||
return "live-installer"
|
||||
case ImageTypesOci:
|
||||
return "oci"
|
||||
case ImageTypesWsl:
|
||||
return "wsl"
|
||||
}
|
||||
|
|
@ -376,6 +378,12 @@ func targetResultToUploadStatus(t *target.TargetResult) (*UploadStatus, error) {
|
|||
Url: containerOptions.URL,
|
||||
Digest: containerOptions.Digest,
|
||||
}
|
||||
case target.TargetNameOCIObjectStorage:
|
||||
uploadType = UploadTypesOciObjectstorage
|
||||
ociOptions := t.Options.(*target.OCIObjectStorageTargetResultOptions)
|
||||
uploadOptions = OCIUploadStatus{
|
||||
Url: ociOptions.URL,
|
||||
}
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown upload target: %s", t.Name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue