It uses Azure SDK to connect to Azure storage, creates a container there and uploads the image. Unfortunately the API for page blobs does not include some thread pool for upload so I implemented one myself. The performance can be tweaked using the upload chunk size and number of parallel threads. The package is prepared to be refactored into common module within internals package as soon as we agree on the of these common packages for image upload. Add azure-blob-storage rpm package as a dependency It didn't work for me using the `golang(package)` syntax. Using the package name explicitly works.
11 lines
283 B
Modula-2
11 lines
283 B
Modula-2
module github.com/osbuild/osbuild-composer
|
|
|
|
go 1.12
|
|
|
|
require (
|
|
github.com/Azure/azure-storage-blob-go v0.8.0
|
|
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f
|
|
github.com/gobwas/glob v0.2.3
|
|
github.com/google/uuid v1.1.1
|
|
github.com/julienschmidt/httprouter v1.2.0
|
|
)
|