Commit graph

31 commits

Author SHA1 Message Date
Pavel Karpy
2536e5a97b [#167] netmap: Add attribute escaping description
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-08-16 15:15:32 +03:00
Leonard Lyubich
6846e300e7 [#160] netmap: Provide the ability to announce multiple addresses
Make `address` field of `netmap.NodeInfo` message repeated (with
corresponding renaming).

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-23 15:28:36 +03:00
ZhangTao
69f09c8030
change csharp namespace (#140)
* change csharp namespace

Signed-off-by: ZhangTao1596 <zhangtao@ngd.neo.org>

* use Neo.FileStorage.API as base namespace

Signed-off-by: ZhangTao1596 <zhangtao@ngd.neo.org>
2021-03-10 13:54:06 +03:00
Alex Vanin
1594dc1f60 [#127] netmap: Add doc comments
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-02-24 20:59:56 +03:00
Leonard Lyubich
1affb7e458 [#127] netmap: Define NetworkInfo rpc in NetmapService
Define `NetworkInfo` rpc which can be used to read the recent NeoFS network
information. Request body is empty, response body contains NetworkInfo
message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-24 20:59:56 +03:00
Leonard Lyubich
3a2e01741a [#127] netmap: Define NetworkInfo message
Define `NetworkInfo` message which groups configuration and state values of
NeoFS network.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-24 20:59:56 +03:00
Stanislav Bogatyrev
5152f607f1 [#129] netmap: Describe UN-LOCODE related attributes
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2021-02-11 14:53:59 +03:00
Leonard Lyubich
854281608e [#129] netmap: Define Continent node attribute
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-11 14:53:59 +03:00
Leonard Lyubich
8410362db3 [#129] netmap: Define SubDiv node attribute
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-11 14:53:59 +03:00
Leonard Lyubich
e71f7fd5a6 [#129] netmap: Define SubDivCode node attribute
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-11 14:53:59 +03:00
Leonard Lyubich
4f7828a1be [#129] netmap: Define Location node attribute
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-11 14:53:59 +03:00
Leonard Lyubich
5d41fa7348 [#129] netmap: Define LocationCode node attribute
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-11 14:53:59 +03:00
Leonard Lyubich
556485c0f4 [#129] netmap: Define CountryCode node attribute
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-11 14:53:59 +03:00
Leonard Lyubich
b61b7d2f30 [#129] netmap: Rename key to LOCODE attribute of the node
Rename `Locode` attribute to `UN-LOCODE`.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-11 14:53:59 +03:00
Stanislav Bogatyrev
a8c1779690 [#81] Clarify that attribute names must be unique
All types of attribute keys must be unique and can't be repeated in the same
entity.

- Containers with duplicated attribute keys must not be accepted by InnerRing on
  creation.
- Nodes with duplicated attribute keys can't be accepted to NetMap by InnerRing
- Objects with duplicated attribute keys must be considered invalid and not
  accepted in PUT operations

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-12-11 10:19:46 +03:00
Stanislav Bogatyrev
063ec430d1 [#86] Clarify that Attributes can't have empty values
In case there is a need to set flag-like attributes, the value should be set to
something like `true` or `1`.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-12-09 16:51:21 +03:00
Stanislav Bogatyrev
6ea8bc3214 [#73] Add JSON field names to netmap package
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-10-19 14:49:14 +03:00
Stanislav Bogatyrev
3f6c211fef Update netmap package docs
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-10-16 12:37:19 +03:00
Stanislav Bogatyrev
af909ec3eb Add well-known attributes for storage nodes
Adding the list of currently well-known node attributes. More to come later.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-10-16 12:37:19 +03:00
Stanislav Bogatyrev
ea61d4e0e9 [#68] Add SAME|DISTINCT selector clause
Helps to define how selection is formed

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-09-07 18:31:31 +03:00
Stanislav Bogatyrev
eab2210ffe [#59] netmap: Add LocalNodeInfo request
This should be used as a handshake to know API Version supported by peer and to
update local netmap view in future.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-09-03 12:47:23 +03:00
Stanislav Bogatyrev
c8054c5daa [#58] netmap: Simplify Placement Policy
Proposed protobuf format for Placement Policy simplifies direct editing in
visual editors and import/export from other formats like JSON.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-09-01 21:15:09 +03:00
Stanislav Bogatyrev
e72dceebd3 [#62] Put NodeInfo public_key field first
To simplify decoding of NodeInfo structure inside netmap smart contract, the
first field, also used as a storage key inside contract, has to be of the fixed
length.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-08-31 14:02:18 +03:00
Stanislav Bogatyrev
e63a482529 [#48] Add grpc suffix to go_package option
To simplify adding more transport level protocols to neofs-api-go in future, we
need to separate currently default gRPC.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-08-17 12:11:38 +03:00
Alex Vanin
af26bd2b5d [#45] Fix go_option in netmap package 2020-08-14 16:08:10 +03:00
Stanislav Bogatyrev
42e35fefff [#45] Fix linter errors
- Changed package names adding version
- Added documentation descriptions (sometimes useless) for all fields
- Changed enum format
- Made SessionToken and BearerToken field names more clear

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-08-13 22:57:00 +03:00
Stanislav Bogatyrev
cfd24944a4 [#38] Typo fixes
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-08-11 21:36:03 +03:00
Stanislav Bogatyrev
327c476ecf [#41] Reindent according to Google Style Guide
Just a minor change to follow 2-space indent declared in Google Style Guide

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-08-11 12:08:37 +03:00
Stanislav Bogatyrev
e75ef53793 [#32] Rename fields according to Protobuf Style Guide
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-08-07 14:36:15 +03:00
Leonard Lyubich
031579a68d [#34] bootstrap: Move NodeInfo to netmap
Move NodeInfo message definition to netmap package. Package bootstrap is
completely removed from the repository.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-08-06 23:33:24 +03:00
Leonard Lyubich
f60273beb9 [#34] Add netmap package
Introduce netmap package to repository. Also as initial use, added container
storage rules message netmap.PlacementRule.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-08-06 23:32:46 +03:00