2020-01-30 11:41:24 +00:00
|
|
|
syntax = "proto3";
|
2020-08-05 19:44:53 +00:00
|
|
|
|
2020-01-30 11:41:24 +00:00
|
|
|
package bootstrap;
|
2020-08-05 19:44:53 +00:00
|
|
|
|
2020-03-31 06:58:22 +00:00
|
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/bootstrap";
|
2020-02-05 12:14:39 +00:00
|
|
|
option csharp_namespace = "NeoFS.API.Bootstrap";
|
2020-01-30 11:41:24 +00:00
|
|
|
|
2020-08-05 19:44:53 +00:00
|
|
|
// Groups the information about the NeoFS node.
|
2020-01-30 11:41:24 +00:00
|
|
|
message NodeInfo {
|
2020-08-05 19:44:53 +00:00
|
|
|
// Carries network address of the NeoFS node.
|
2020-08-05 19:37:42 +00:00
|
|
|
string Address = 1;
|
2020-08-05 19:44:53 +00:00
|
|
|
|
|
|
|
// Carries public key of the NeoFS node in a binary format.
|
|
|
|
bytes PublicKey = 2;
|
|
|
|
|
2020-08-05 21:40:36 +00:00
|
|
|
// 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;
|
2020-08-05 19:29:11 +00:00
|
|
|
|
2020-08-05 19:44:53 +00:00
|
|
|
// Represents the enumeration of various states of the NeoFS node.
|
2020-08-05 19:29:11 +00:00
|
|
|
enum State {
|
2020-08-05 19:44:53 +00:00
|
|
|
// Undefined state.
|
2020-08-05 19:29:11 +00:00
|
|
|
Unknown = 0;
|
2020-08-05 19:44:53 +00:00
|
|
|
|
|
|
|
// Active state on the network.
|
2020-08-05 19:29:11 +00:00
|
|
|
Online = 1;
|
2020-08-05 19:44:53 +00:00
|
|
|
|
|
|
|
// Network unavailable state.
|
2020-08-05 19:29:11 +00:00
|
|
|
Offline = 2;
|
|
|
|
}
|
|
|
|
|
2020-08-05 19:44:53 +00:00
|
|
|
// Carries state of the NeoFS node.
|
2020-08-05 19:29:11 +00:00
|
|
|
State state = 4;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|