DNS节点自动升级

This commit is contained in:
GoEdgeLab
2021-07-22 18:45:36 +08:00
parent f00b9bda10
commit 31308b5b56
5 changed files with 367 additions and 124 deletions

View File

@@ -53,6 +53,9 @@ service NSNodeService {
// 检查新版本
rpc checkNSNodeLatestVersion (CheckNSNodeLatestVersionRequest) returns (CheckNSNodeLatestVersionResponse);
// 下载最新DNS节点安装文件
rpc downloadNSNodeInstallationFile (DownloadNSNodeInstallationFileRequest) returns (DownloadNSNodeInstallationFileResponse);
}
// 根据集群查找所有节点
@@ -181,4 +184,19 @@ message CheckNSNodeLatestVersionRequest {
message CheckNSNodeLatestVersionResponse {
bool hasNewVersion = 1;
string newVersion = 2;
}
}
// 下载最新DNS节点安装文件
message DownloadNSNodeInstallationFileRequest {
string os = 1;
string arch = 2;
int64 chunkOffset = 3;
}
message DownloadNSNodeInstallationFileResponse {
bytes chunkData = 1;
string sum = 2; // 文件的md5sum
int64 offset = 3;
string version = 4;
string filename = 5;
}