forked from TrueCloudLab/frostfs-api
[#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>
This commit is contained in:
parent
f60273beb9
commit
031579a68d
3 changed files with 77 additions and 42 deletions
|
@ -54,3 +54,39 @@ message PlacementRule {
|
|||
|
||||
repeated SFGroup SFGroups = 2;
|
||||
}
|
||||
|
||||
// Groups the information about the NeoFS node.
|
||||
message NodeInfo {
|
||||
// Carries network address of the NeoFS node.
|
||||
string Address = 1;
|
||||
|
||||
// Carries public key of the NeoFS node in a binary format.
|
||||
bytes PublicKey = 2;
|
||||
|
||||
// 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 {
|
||||
// Undefined state.
|
||||
Unknown = 0;
|
||||
|
||||
// Active state on the network.
|
||||
Online = 1;
|
||||
|
||||
// Network unavailable state.
|
||||
Offline = 2;
|
||||
}
|
||||
|
||||
// Carries state of the NeoFS node.
|
||||
State state = 4;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue