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:
parent
87e1d01307
commit
44ec19962a
2 changed files with 25 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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. |
|
||||
|
||||
|
||||
<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 -->
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue