Add AppNodeFilters and AppNodeListResp messages; implement ListAppNodes and GetOneAppNode RPCs in BrainAppCli
This commit is contained in:
parent
8230e1f831
commit
a9dcfbe9fe
@ -65,10 +65,35 @@ message ListAppContractsReq {
|
|||||||
// string node_pubkey = 3;
|
// string node_pubkey = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message AppNodeFilters {
|
||||||
|
uint32 vcpus = 1;
|
||||||
|
uint32 memory_mb = 2;
|
||||||
|
uint32 storage_mb = 3;
|
||||||
|
string country = 4;
|
||||||
|
string region = 5;
|
||||||
|
string city = 6;
|
||||||
|
string ip = 7;
|
||||||
|
string node_pubkey = 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
message AppNodeListResp {
|
||||||
|
string operator = 1;
|
||||||
|
string node_pubkey = 2;
|
||||||
|
string country = 3;
|
||||||
|
string region = 4;
|
||||||
|
string city = 5;
|
||||||
|
string ip = 6; // required for latency test
|
||||||
|
uint64 price = 7; // nanoLP per unit per minute
|
||||||
|
repeated string reports = 8; // TODO: this will become an enum
|
||||||
|
}
|
||||||
|
|
||||||
service BrainAppCli {
|
service BrainAppCli {
|
||||||
rpc DeployApp (NewAppReq) returns (NewAppRes);
|
rpc DeployApp (NewAppReq) returns (NewAppRes);
|
||||||
rpc DeleteApp (DelAppReq) returns (Empty);
|
rpc DeleteApp (DelAppReq) returns (Empty);
|
||||||
rpc ListAppContracts (ListAppContractsReq) returns (stream AppContract);
|
rpc ListAppContracts (ListAppContractsReq) returns (stream AppContract);
|
||||||
|
rpc ListAppNodes (AppNodeFilters) returns (stream AppNodeListResp);
|
||||||
|
rpc GetOneAppNode (AppNodeFilters) returns (AppNodeListResp);
|
||||||
}
|
}
|
||||||
|
|
||||||
message RegisterAppNodeReq {
|
message RegisterAppNodeReq {
|
||||||
|
Loading…
Reference in New Issue
Block a user