2019-05-07 03:29:29 -05:00
|
|
|
syntax = "proto3";
|
2024-01-17 16:47:33 -06:00
|
|
|
package guipb;
|
2019-05-07 03:22:53 -05:00
|
|
|
|
2019-05-25 04:46:11 -05:00
|
|
|
import "config.proto";
|
2019-05-26 01:56:37 -05:00
|
|
|
import "account.proto";
|
2019-05-25 04:46:11 -05:00
|
|
|
|
2019-05-10 13:57:24 -05:00
|
|
|
message Event {
|
2019-05-26 02:47:51 -05:00
|
|
|
EventType type = 1;
|
|
|
|
int32 id = 2;
|
|
|
|
string comment = 3;
|
|
|
|
Config config = 4;
|
|
|
|
Account account = 5; // this is the user
|
2019-05-10 13:57:24 -05:00
|
|
|
|
2019-05-26 02:47:51 -05:00
|
|
|
repeated Response results = 6;
|
|
|
|
repeated Network networks = 7;
|
|
|
|
repeated VM vms = 8;
|
2019-05-25 04:46:11 -05:00
|
|
|
|
2019-05-11 05:35:55 -05:00
|
|
|
enum EventType {
|
2019-05-26 02:47:51 -05:00
|
|
|
ADD = 0;
|
2019-05-11 05:35:55 -05:00
|
|
|
DELETE = 1;
|
|
|
|
POWERON = 2;
|
|
|
|
POWEROFF = 3;
|
2019-05-12 01:02:53 -05:00
|
|
|
HIBERNATE = 4;
|
2019-05-11 05:35:55 -05:00
|
|
|
MIGRATE = 5;
|
2019-05-26 02:47:51 -05:00
|
|
|
DEMO = 6;
|
|
|
|
GET = 7; // request something
|
|
|
|
LOGIN = 8; // attempt to login
|
|
|
|
OK = 9; // everything is ok
|
|
|
|
FAIL = 10; // everything failed
|
2019-05-11 05:35:55 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message Response {
|
2019-05-26 02:47:51 -05:00
|
|
|
EventType type = 1;
|
|
|
|
int32 id = 2;
|
|
|
|
string name = 3;
|
|
|
|
string error = 4;
|
2019-05-11 05:35:55 -05:00
|
|
|
repeated string snippets = 5;
|
|
|
|
}
|
2019-05-12 13:31:57 -05:00
|
|
|
|
|
|
|
message Network {
|
2019-05-26 02:47:51 -05:00
|
|
|
int32 id = 1;
|
|
|
|
string name = 2;
|
|
|
|
int64 total_cpu = 3;
|
|
|
|
int64 total_mem = 4;
|
|
|
|
string login_url = 5;
|
2019-05-12 13:31:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message VM {
|
2019-05-26 02:47:51 -05:00
|
|
|
int64 id = 1;
|
|
|
|
string name = 2;
|
|
|
|
string hostname = 3;
|
|
|
|
int64 cpus = 4;
|
|
|
|
int64 memory = 5;
|
|
|
|
int64 disk = 6;
|
|
|
|
string IPv6 = 7;
|
|
|
|
string role = 8;
|
|
|
|
string baseImage = 9;
|
2019-05-12 13:31:57 -05:00
|
|
|
}
|
2019-05-10 13:57:24 -05:00
|
|
|
}
|