feat: sync httpdns sdk/platform updates without large binaries

This commit is contained in:
robin
2026-03-04 17:59:14 +08:00
parent 853897a6f8
commit 532891fad0
700 changed files with 6096 additions and 2712 deletions

View File

@@ -17,4 +17,5 @@ message HTTPDNSCluster {
int64 updatedAt = 11;
bool autoRemoteStart = 12;
bool accessLogIsOn = 13;
string timeZone = 14;
}

View File

@@ -29,6 +29,7 @@ message CreateHTTPDNSClusterRequest {
bool isDefault = 8;
bool autoRemoteStart = 9;
bool accessLogIsOn = 10;
string timeZone = 11;
}
message CreateHTTPDNSClusterResponse {
@@ -47,6 +48,7 @@ message UpdateHTTPDNSClusterRequest {
bool isDefault = 9;
bool autoRemoteStart = 10;
bool accessLogIsOn = 11;
string timeZone = 12;
}
message DeleteHTTPDNSClusterRequest {

View File

@@ -22,6 +22,15 @@ service HTTPDNSNodeService {
// 下载最新HTTPDNS节点安装文件
rpc downloadHTTPDNSNodeInstallationFile (DownloadHTTPDNSNodeInstallationFileRequest) returns (DownloadHTTPDNSNodeInstallationFileResponse);
// 计算需要升级的HTTPDNS节点数量
rpc countAllUpgradeHTTPDNSNodesWithClusterId (CountAllUpgradeHTTPDNSNodesWithClusterIdRequest) returns (RPCCountResponse);
// 列出所有需要升级的HTTPDNS节点
rpc findAllUpgradeHTTPDNSNodesWithClusterId (FindAllUpgradeHTTPDNSNodesWithClusterIdRequest) returns (FindAllUpgradeHTTPDNSNodesWithClusterIdResponse);
// 升级单个HTTPDNS节点
rpc upgradeHTTPDNSNode (UpgradeHTTPDNSNodeRequest) returns (RPCSuccess);
}
message CreateHTTPDNSNodeRequest {
@@ -103,3 +112,30 @@ message DownloadHTTPDNSNodeInstallationFileResponse {
string version = 4;
string filename = 5;
}
// 计算需要升级的HTTPDNS节点数量
message CountAllUpgradeHTTPDNSNodesWithClusterIdRequest {
int64 clusterId = 1;
}
// 列出所有需要升级的HTTPDNS节点
message FindAllUpgradeHTTPDNSNodesWithClusterIdRequest {
int64 clusterId = 1;
}
message FindAllUpgradeHTTPDNSNodesWithClusterIdResponse {
repeated HTTPDNSNodeUpgrade nodes = 1;
message HTTPDNSNodeUpgrade {
HTTPDNSNode node = 1;
string os = 2;
string arch = 3;
string oldVersion = 4;
string newVersion = 5;
}
}
// 升级单个HTTPDNS节点
message UpgradeHTTPDNSNodeRequest {
int64 nodeId = 1;
}

View File

@@ -25,6 +25,12 @@ service NSNodeService {
// 计算需要升级的NS节点数量
rpc countAllUpgradeNSNodesWithNSClusterId (CountAllUpgradeNSNodesWithNSClusterIdRequest) returns (RPCCountResponse);
// 列出所有需要升级的NS节点
rpc findAllUpgradeNSNodesWithNSClusterId (FindAllUpgradeNSNodesWithNSClusterIdRequest) returns (FindAllUpgradeNSNodesWithNSClusterIdResponse);
// 升级单个NS节点
rpc upgradeNSNode (UpgradeNSNodeRequest) returns (RPCSuccess);
// 创建NS节点
rpc createNSNode (CreateNSNodeRequest) returns (CreateNSNodeResponse);
@@ -316,4 +322,26 @@ message FindNSNodeAPIConfigResponse {
message UpdateNSNodeAPIConfigRequest {
int64 nsNodeId = 1;
bytes apiNodeAddrsJSON = 2;
}
// 列出所有需要升级的NS节点
message FindAllUpgradeNSNodesWithNSClusterIdRequest {
int64 nsClusterId = 1;
}
message FindAllUpgradeNSNodesWithNSClusterIdResponse {
repeated NSNodeUpgrade nodes = 1;
message NSNodeUpgrade {
NSNode nsNode = 1;
string os = 2;
string arch = 3;
string oldVersion = 4;
string newVersion = 5;
}
}
// 升级单个NS节点
message UpgradeNSNodeRequest {
int64 nsNodeId = 1;
}