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 |
|