frostfs-node/cmd/neofs-node/config/test/config.yaml
Evgenii Stratonikov aba09bb853 [#903] config: support floating-point sizes
Rounding is done using the suffix boundary (i.e. floating point value
with `gb` suffix will return size which is an integer number of
megabytes).

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-11-16 12:43:55 +03:00

68 lines
938 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_float: .5t
size_float_big: 14.123 gb
size_i_am_not_very_clever: 12.12345678
size_bytes: 2048b
size_bytes_no_suffix: 123456
with_default:
default:
sub:
missing: 123
overridden: "x"
missing: 42
overridden: "a"
overridden_with_default: true
custom:
sub:
overridden: "y"
overridden: "b"
overridden_with_default: false