frostfs-api-go-pogpp/pkg/netmap
Pavel Karpy 6142a352da [#302] pkg/netmap: Convert nil NetworkInfo to nil message
Document that `NetworkInfo.ToV2` method return `nil`
when called on `nil`. Document that `NewNetworkInfoFromV2`
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
..
test [#293] pkg/netmap: Implement generators of the messages 2021-06-08 18:59:15 +03:00
aggregator.go [#199] sdk/netmap: Correct linter's remarks 2020-11-16 18:51:14 +03:00
clause.go [#199] sdk/netmap: Correct linter's remarks 2020-11-16 18:51:14 +03:00
clause_test.go [#189] sdk/netmap: Define unspecified clause 2020-11-06 09:28:50 +03:00
container.go [#137] sdk: Implement netmap filtering and selection 2020-09-18 10:45:11 +03:00
context.go [#249] pkg/netmap: Add CBF field in placement context 2021-01-27 15:47:06 +03:00
doc.go [#137] sdk: Implement netmap filtering and selection 2020-09-18 10:45:11 +03:00
filter.go [#302] pkg/netmap: Document default values set in NewFilter 2021-06-09 17:23:35 +03:00
filter_test.go [#302] pkg/netmap: Document default values set in NewFilter 2021-06-09 17:23:35 +03:00
helper_test.go [#189] sdk/netmap: Get rid of the use of v2 types in the placement code 2020-11-06 09:28:50 +03:00
netmap.go [#249] pkg/netmap: Add CBF field in placement context 2021-01-27 15:47:06 +03:00
network_info.go [#302] pkg/netmap: Convert nil NetworkInfo to nil message 2021-06-09 17:23:35 +03:00
network_info_test.go [#302] pkg/netmap: Convert nil NetworkInfo to nil message 2021-06-09 17:23:35 +03:00
node_info.go [#255] pkg/netmap: Define constant keys to all well-known attributes 2021-02-11 15:04:13 +03:00
node_info_test.go [#168] netmap: Implement binary and JSON encoders/decoders on Filter 2020-11-13 18:07:26 +03:00
operation.go [#199] sdk/netmap: Correct linter's remarks 2020-11-16 18:51:14 +03:00
operation_test.go [#189] sdk/netmap: Refactor Operation enum 2020-11-06 09:28:50 +03:00
policy.go [#263] pkg/netmap: Do not allocate nil repeated fields during conversion 2021-03-17 14:03:49 +03:00
policy_test.go [#248] netmap: fulfill backup factor for default attribute 2021-02-03 15:31:18 +03:00
replica.go [#168] netmap: Implement binary and JSON encoders/decoders on Filter 2020-11-13 18:07:26 +03:00
replica_test.go [#168] netmap: Implement binary and JSON encoders/decoders on Filter 2020-11-13 18:07:26 +03:00
selector.go [#248] netmap: fulfill backup factor for default attribute 2021-02-03 15:31:18 +03:00
selector_test.go [#255] pkg/netmap: Move common substring of well-known attributes to prefix 2021-02-11 15:04:13 +03:00