Tomáš Hozza
43e87632fb
Drop common.CurrentArch() in favor of osbuild/images
...
Drop `common.CurrentArch()` implementation and use
`arch.Current().String()` from the osbuild/images instead.
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2024-01-26 11:32:34 +01:00
Ondřej Budai
abe6ccfb50
upload/azure: migrate from azure-storage-blob-go to azure-sdk-for-go
...
https://github.com/Azure/azure-storage-blob-go/ is deprecated, the main SDK
should be now used instead. Let's migrate the code. There should be no
functional changes.
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2023-04-04 09:09:43 +02:00
Tomas Hozza
ff28b0f5d3
common: define storage units as constants
...
Define all used storage units as constants. Use them in
`DataSizeToUint64()`, instead of literal multiples.
2022-09-15 08:50:33 +02:00
Martin Sehnoutka
7d6dadb598
internal/common: introduce function to convert data sizes
...
This function will be used to parse filesystem sizes specified as
string.
2021-11-02 18:32:47 +01:00
Brian C. Lane
b476078570
Move isStringInSlice to common.IsStringInSlice
2021-07-12 08:58:42 +02:00
Jakub Rusz
1cf2af10d0
tests: add coverage for common/helpers.go
...
This also changes the helpers.go to enable mocking all the different architectures.
2020-04-02 09:14:40 +02:00
Ondřej Budai
d7cbc22da4
lint: fix unhandled errors
2020-03-02 14:28:55 +01:00
Ondřej Budai
80f0888896
cmd/composer: move currentArch helper to common package
...
The helper function might be useful also in different parts of the project.
2020-02-26 16:58:39 +01:00