Pavel Karpy
6fb7c79219
[ #302 ] pkg/netmap: Document default values set in NewPlacementPolicy
...
Document field values of instance constructed via `NewPlacementPolicy`.
Assert the values in corresponding unit test.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-09 17:23:35 +03:00
Pavel Karpy
2176cb9f2b
[ #302 ] pkg/netmap: Convert nil PlacementPolicy
to nil message
...
Document that `PlacementPolicy.ToV2` method return `nil`
when called on `nil`. Document that `PlacementPolicyFromV2`
function return `nil` when called on `nil`. Write corresponding
unit tests.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-06-09 17:23:35 +03:00
Leonard Lyubich
5a9dd7ab3f
[ #263 ] pkg/netmap: Do not allocate nil repeated fields during conversion
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-03-17 14:03:49 +03:00
Leonard Lyubich
e721734599
[ #168 ] netmap: Implement binary and JSON encoders/decoders on Filter
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-13 18:07:26 +03:00
Leonard Lyubich
9f19139999
[ #189 ] sdk/netmap: Refactor PlacementPolicy type
...
Replace alias to v2 type PlacementPolicy with v2-compatible implementation.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-06 09:28:50 +03:00
Leonard Lyubich
6a29d9c360
[ #189 ] sdk/netmap: Refactor Replica type
...
Replace alias to v2 type Replica with v2-compatible implementation.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-06 09:28:50 +03:00
Leonard Lyubich
eb96fffa5c
[ #189 ] sdk/netmap: Refactor Selector type
...
Replace alias to v2 type Selector with v2-compatible implementation.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-06 09:28:50 +03:00
Leonard Lyubich
fd0c10b832
[ #189 ] sdk/netmap: Refactor Filter type
...
Replace alias to v2 type Filter with v2-compatible implementation.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-06 09:28:50 +03:00
Leonard Lyubich
8c1afc6bab
[ #189 ] sdk/netmap: Refactor Clause enum
...
Replace alias to v2 type Clause with v2-compatible implementation.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-06 09:28:50 +03:00
Leonard Lyubich
6d8612fd51
[ #189 ] sdk/netmap: Refactor Operation enum
...
Replace alias to v2 type Operation with v2-compatible implementation.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-06 09:28:50 +03:00
Alex Vanin
3fb3cfd1a5
[ #186 ] sdk/netmap: Use JSON placement policy converters in SDK
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-11-05 10:38:04 +03:00
Alex Vanin
1cbfb337a7
[ #142 ] sdk/netmap: Add type aliases for netmap policy
...
Later on there should be version independent structures.
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:45:11 +03:00