forked from TrueCloudLab/frostfs-api-go
FrostFS API Golang repository contains implementation of core FrostFS structures that can be used for integration with FrostFS.
348f9498bd
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> |
||
---|---|---|
.github | ||
accounting | ||
acl | ||
audit | ||
container | ||
docs | ||
netmap | ||
object | ||
refs | ||
reputation | ||
rpc | ||
session | ||
signature | ||
status | ||
storagegroup | ||
subnet | ||
tombstone | ||
util | ||
.gitattributes | ||
.gitignore | ||
.golangci.yml | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
CREDITS.md | ||
go.mod | ||
go.sum | ||
LICENSE | ||
Makefile | ||
prepare.sh | ||
README.md |
Golang SDK for NeoFS
Overview
Go implementation of recent NeoFS API versions and SDK layer working with all of them in a handy way.
NeoFS-API compatibility
neofs-api-go version | supported NeoFS-API versions |
---|---|
< v1.20.0 (unsupported) | up to v1.2.0 |
v1.20.x | v2.0.2 |
v1.21.x | v2.1.0 |
v1.22.x | v2.2.0 |
v1.23.x | v2.3.0 |
v1.24.x | v2.4.0 |
v1.25.x | v2.5.0 |
v1.26.x | v2.6.0 |
v1.27.x | v2.7.0 |
v1.28.x | v2.8.0 |
v1.29.x | v2.9.1 |
v1.30.x | v2.10.0 |
Contributing
Feel free to contribute to this project after reading the contributing guidelines.
Before starting to work on a certain topic, create a new issue first, describing the feature/topic you are going to implement.
License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details