From 44ec19962a640450714de10a96285b75873c2582 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 6 Aug 2020 00:40:36 +0300 Subject: [PATCH] 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 --- bootstrap/types.proto | 13 +++++++++++-- proto-docs/bootstrap.md | 15 ++++++++++++++- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/bootstrap/types.proto b/bootstrap/types.proto index 3b52adc..c7d99bb 100644 --- a/bootstrap/types.proto +++ b/bootstrap/types.proto @@ -13,8 +13,17 @@ message NodeInfo { // Carries public key of the NeoFS node in a binary format. bytes PublicKey = 2; - // Carries options of the NeoFS node. - repeated string Options = 3; + // Groups attributes of the NeoFS node. + 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. enum State { diff --git a/proto-docs/bootstrap.md b/proto-docs/bootstrap.md index 39ac713..ad08a7d 100644 --- a/proto-docs/bootstrap.md +++ b/proto-docs/bootstrap.md @@ -7,6 +7,7 @@ - Messages - [NodeInfo](#bootstrap.NodeInfo) + - [NodeInfo.Attribute](#bootstrap.NodeInfo.Attribute) - [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. | | 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. | + + + +### 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. | +