38 lines
1 KiB
Protocol Buffer
38 lines
1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package iop;
|
|
|
|
option go_package = "iop/proto/gen/iop";
|
|
|
|
// NodeInfo is a legacy placeholder for node snapshots.
|
|
// Current Edge-Node registration uses RegisterRequest/RegisterResponse in
|
|
// runtime.proto, and Control Plane should observe nodes through Edge.
|
|
message NodeInfo {
|
|
string node_id = 1;
|
|
string name = 2;
|
|
string address = 3;
|
|
string version = 4;
|
|
NodeStatus status = 5;
|
|
map<string, string> labels = 6;
|
|
}
|
|
|
|
enum NodeStatus {
|
|
NODE_STATUS_UNSPECIFIED = 0;
|
|
NODE_STATUS_ONLINE = 1;
|
|
NODE_STATUS_OFFLINE = 2;
|
|
NODE_STATUS_DRAINING = 3;
|
|
}
|
|
|
|
// NodeRegisterRequest is a legacy placeholder and is not the active startup
|
|
// contract. Nodes connect to Edge, not directly to Control Plane.
|
|
message NodeRegisterRequest {
|
|
NodeInfo info = 1;
|
|
}
|
|
|
|
// NodeRegisterResponse is a legacy placeholder retained until the
|
|
// Control Plane contracts are redesigned around Edge.
|
|
message NodeRegisterResponse {
|
|
bool accepted = 1;
|
|
string token = 2;
|
|
string reason = 3;
|
|
}
|