upload/azure: rename Image to PageBlob

The UploadImage method doesn't actually create an image. It creates a Page
Blob. Blob is something like S3 object but in the Azure terminology. Page
Blob means that's optimized for random access and it's the only blob type
that can be used to create images.

This commit cleans up the terminology so it's less confusing.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2021-03-03 12:09:08 +01:00 committed by Tom Gundersen
parent 478f69e092
commit 4f66ab5d7c
4 changed files with 16 additions and 16 deletions

View file

@ -234,13 +234,13 @@ func (impl *OSBuildJobImpl) Run(job worker.Job) error {
continue
}
metadata := azure.ImageMetadata{
metadata := azure.BlobMetadata{
ContainerName: options.Container,
ImageName: t.ImageName,
BlobName: t.ImageName,
}
const azureMaxUploadGoroutines = 4
err = azureStorageClient.UploadImage(
err = azureStorageClient.UploadPageBlob(
metadata,
path.Join(outputDirectory, options.Filename),
azureMaxUploadGoroutines,