bootstrap: Replace options with attributes in NodeInfo

Rename Options to Attributes to be in sync with Objects and Nodes and Containers.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-06 00:40:36 +03:00 committed by Stanislav Bogatyrev
parent 87e1d01307
commit 44ec19962a
2 changed files with 25 additions and 3 deletions

View file

@ -13,8 +13,17 @@ message NodeInfo {
// Carries public key of the NeoFS node in a binary format. // Carries public key of the NeoFS node in a binary format.
bytes PublicKey = 2; bytes PublicKey = 2;
// Carries options of the NeoFS node. // Groups attributes of the NeoFS node.
repeated string Options = 3; message Attribute {
// Carries string key to the node attribute.
string Key = 1;
// Carries string value of the node attribute.
string Value = 2;
}
// // Carries list of the NeoFS node attributes in a string key-value format.
repeated Attribute Attributes = 3;
// Represents the enumeration of various states of the NeoFS node. // Represents the enumeration of various states of the NeoFS node.
enum State { enum State {

View file

@ -7,6 +7,7 @@
- Messages - Messages
- [NodeInfo](#bootstrap.NodeInfo) - [NodeInfo](#bootstrap.NodeInfo)
- [NodeInfo.Attribute](#bootstrap.NodeInfo.Attribute)
- [Scalar Value Types](#scalar-value-types) - [Scalar Value Types](#scalar-value-types)
@ -32,9 +33,21 @@ Groups the information about the NeoFS node.
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| Address | [string](#string) | | Carries network address of the NeoFS node. | | Address | [string](#string) | | Carries network address of the NeoFS node. |
| PublicKey | [bytes](#bytes) | | Carries public key of the NeoFS node in a binary format. | | PublicKey | [bytes](#bytes) | | Carries public key of the NeoFS node in a binary format. |
| Options | [string](#string) | repeated | Carries options of the NeoFS node. | | Attributes | [NodeInfo.Attribute](#bootstrap.NodeInfo.Attribute) | repeated | Carries list of the NeoFS node attributes in a string key-value format. |
| state | [NodeInfo.State](#bootstrap.NodeInfo.State) | | Carries state of the NeoFS node. | | state | [NodeInfo.State](#bootstrap.NodeInfo.State) | | Carries state of the NeoFS node. |
<a name="bootstrap.NodeInfo.Attribute"></a>
### Message NodeInfo.Attribute
Groups attributes of the NeoFS node.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| Key | [string](#string) | | Carries string key to the node attribute. |
| Value | [string](#string) | | Carries string value of the node attribute. |
<!-- end messages --> <!-- end messages -->