frostfs-node/cmd/neofs-node/config/test/config.yaml
Evgenii Stratonikov a0abf10c8e [#857] config: allow to parse sizes with suffix
The code is taken from viper as `cast` package that we use
doesn't have needed converter.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-10-08 11:26:24 +03:00

51 lines
609 B
YAML

value: some value
section:
any: thing
sub:
sub:
sub1:
key: val1
sub2:
key: val2
string_slice:
empty: []
filled:
- string1
- string2
incorrect:
string:
correct: some string
incorrect: []
duration:
correct: 15m
incorrect: some string
number:
int_pos: 1
int_neg: -1
fract_pos: 2.5
fract_neg: -2.5
incorrect: some string
bool:
correct: true
correct_string: "true"
incorrect: not true
sizes:
size_kb: 1 kb
size_kb_no_space: 2kb
size_mb: 12m
size_gb: 4g
size_tb: 5 TB
size_bytes: 2048b
size_bytes_no_suffix: 123456