Add panel feature updates across API, daemon, and web
This commit is contained in:
@@ -46,11 +46,49 @@ message CreateServerRequest {
|
||||
repeated string install_plugin_urls = 9;
|
||||
}
|
||||
|
||||
message UpdateServerRequest {
|
||||
string uuid = 1;
|
||||
string docker_image = 2;
|
||||
int64 memory_limit = 3;
|
||||
int64 disk_limit = 4;
|
||||
int32 cpu_limit = 5;
|
||||
string startup_command = 6;
|
||||
map<string, string> environment = 7;
|
||||
repeated PortMapping ports = 8;
|
||||
}
|
||||
|
||||
message ServerResponse {
|
||||
string uuid = 1;
|
||||
string status = 2;
|
||||
}
|
||||
|
||||
// === Managed Databases ===
|
||||
|
||||
message CreateDatabaseRequest {
|
||||
string server_uuid = 1;
|
||||
string name = 2;
|
||||
string password = 3;
|
||||
}
|
||||
|
||||
message UpdateDatabasePasswordRequest {
|
||||
string username = 1;
|
||||
string password = 2;
|
||||
}
|
||||
|
||||
message DeleteDatabaseRequest {
|
||||
string database_name = 1;
|
||||
string username = 2;
|
||||
}
|
||||
|
||||
message ManagedDatabaseCredentials {
|
||||
string database_name = 1;
|
||||
string username = 2;
|
||||
string password = 3;
|
||||
string host = 4;
|
||||
int32 port = 5;
|
||||
string phpmyadmin_url = 6;
|
||||
}
|
||||
|
||||
// === Power ===
|
||||
|
||||
enum PowerAction {
|
||||
@@ -210,8 +248,12 @@ service DaemonService {
|
||||
|
||||
// Server lifecycle
|
||||
rpc CreateServer(CreateServerRequest) returns (ServerResponse);
|
||||
rpc UpdateServer(UpdateServerRequest) returns (ServerResponse);
|
||||
rpc DeleteServer(ServerIdentifier) returns (Empty);
|
||||
rpc ReinstallServer(ServerIdentifier) returns (Empty);
|
||||
rpc CreateDatabase(CreateDatabaseRequest) returns (ManagedDatabaseCredentials);
|
||||
rpc UpdateDatabasePassword(UpdateDatabasePasswordRequest) returns (Empty);
|
||||
rpc DeleteDatabase(DeleteDatabaseRequest) returns (Empty);
|
||||
|
||||
// Power
|
||||
rpc SetPowerState(PowerRequest) returns (Empty);
|
||||
|
||||
Reference in New Issue
Block a user