mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 03:26:36 +08:00
[域名解析]优化解析状态显示
This commit is contained in:
@@ -12,9 +12,12 @@ message DNSDomain {
|
||||
int64 dataUpdatedAt = 4;
|
||||
string dataError = 5;
|
||||
int64 countServerRecords = 6;
|
||||
int64 countAllServers = 13;
|
||||
bool serversChanged = 7;
|
||||
int64 countNodeRecords = 8;
|
||||
int64 countAllNodes = 14;
|
||||
bool nodesChanged = 9;
|
||||
repeated DNSRoute routes = 10;
|
||||
int64 providerId = 11;
|
||||
int64 countNodeClusters = 12;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,9 @@ service DNSDomainService {
|
||||
|
||||
// 判断是否有域名可选
|
||||
rpc existAvailableDomains (ExistAvailableDomainsRequest) returns (ExistAvailableDomainsResponse);
|
||||
|
||||
// 检查域名是否在记录中
|
||||
rpc existDNSDomainRecord (ExistDNSDomainRecordRequest) returns (ExistDNSDomainRecordResponse);
|
||||
}
|
||||
|
||||
// 创建域名
|
||||
@@ -134,4 +137,17 @@ message ExistAvailableDomainsRequest {
|
||||
|
||||
message ExistAvailableDomainsResponse {
|
||||
bool exist = 1;
|
||||
}
|
||||
|
||||
// 检查域名是否在记录中
|
||||
message ExistDNSDomainRecordRequest {
|
||||
int64 dnsDomainId = 1;
|
||||
string name = 2;
|
||||
string type = 3; // 解析类型,比如A, CNAME等
|
||||
string route = 4; // 线路
|
||||
string value = 5; // 值
|
||||
}
|
||||
|
||||
message ExistDNSDomainRecordResponse {
|
||||
bool isOk = 1;
|
||||
}
|
||||
@@ -62,6 +62,9 @@ service NodeClusterService {
|
||||
// 计算使用某个DNS域名的集群数量
|
||||
rpc countAllEnabledNodeClustersWithDNSDomainId (CountAllEnabledNodeClustersWithDNSDomainIdRequest) returns (RPCCountResponse);
|
||||
|
||||
// 查找使用某个域名的所有集群
|
||||
rpc findAllEnabledNodeClustersWithDNSDomainId (FindAllEnabledNodeClustersWithDNSDomainIdRequest) returns (FindAllEnabledNodeClustersWithDNSDomainIdResponse);
|
||||
|
||||
// 检查集群域名是否已经被使用
|
||||
rpc checkNodeClusterDNSName (CheckNodeClusterDNSNameRequest) returns (CheckNodeClusterDNSNameResponse);
|
||||
|
||||
@@ -247,6 +250,15 @@ message CountAllEnabledNodeClustersWithDNSDomainIdRequest {
|
||||
int64 dnsDomainId = 1;
|
||||
}
|
||||
|
||||
// 查找使用某个域名的所有集群
|
||||
message FindAllEnabledNodeClustersWithDNSDomainIdRequest {
|
||||
int64 dnsDomainId = 1;
|
||||
}
|
||||
|
||||
message FindAllEnabledNodeClustersWithDNSDomainIdResponse {
|
||||
repeated NodeCluster nodeClusters = 1;
|
||||
}
|
||||
|
||||
// 检查集群域名是否已经被使用
|
||||
message CheckNodeClusterDNSNameRequest {
|
||||
int64 nodeClusterId = 1;
|
||||
|
||||
Reference in New Issue
Block a user