frostfs-api-go/netmap
Leonard Lyubich 348f9498bd [#356] netmap: Implement the functionality of working with subnets
NeoFS storage node can participate in a subnet group (at least one).
According to NeoFS API V2 protocol, subnets are entered and exited through
the attributes of the node. We should provide functionality for conveniently
setting and reading attributes based on the needs of the network.

Define `NodeSubnetInfo` type which groups information about the subnet
reflected in `NodeInfo`. Implement `WriteSubnetInfo` function which writes
`SubnetInfo` data to `NodeInfo`. It will be used to prepare a request for
registration on the NeoFS network. Implement `IterateSubnets` function which
allows to iterate over all subnets of the node. Moreover, it allows you to
remove a subnet from the `NodeInfo` right during iterative traversal.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-24 17:13:18 +03:00
..
grpc [#355] *: regenerate proto files 2021-11-18 15:04:15 +03:00
test Add v2 version to go module name 2021-11-17 15:29:33 +03:00
attributes.go [#356] netmap: Implement the functionality of working with subnets 2021-11-24 17:13:18 +03:00
attributes_test.go [#356] netmap: Implement the functionality of working with subnets 2021-11-24 17:13:18 +03:00
convert.go Add v2 version to go module name 2021-11-17 15:29:33 +03:00
json.go Add v2 version to go module name 2021-11-17 15:29:33 +03:00
marshal.go Add v2 version to go module name 2021-11-17 15:29:33 +03:00
message_test.go Add v2 version to go module name 2021-11-17 15:29:33 +03:00
string.go Add v2 version to go module name 2021-11-17 15:29:33 +03:00
types.go [#355] v2/refs: add subnetwork ID 2021-11-18 15:04:15 +03:00