集群可以设置systemd系统服务

This commit is contained in:
GoEdgeLab
2021-01-11 18:16:22 +08:00
parent 1b2fe816a9
commit 0945b087a1
5 changed files with 638 additions and 260 deletions

View File

@@ -97,6 +97,12 @@ service NodeClusterService {
// 修改集群的WAF策略
rpc updateNodeClusterHTTPFirewallPolicyId (UpdateNodeClusterHTTPFirewallPolicyIdRequest) returns (RPCSuccess);
// 修改集群的系统服务设置
rpc updateNodeClusterSystemService (UpdateNodeClusterSystemServiceRequest) returns (RPCSuccess);
// 查找集群的系统服务设置
rpc findNodeClusterSystemService (FindNodeClusterSystemServiceRequest) returns (FindNodeClusterSystemServiceResponse);
}
// 获取所有集群的信息
@@ -126,6 +132,7 @@ message CreateNodeClusterRequest {
string dnsName = 5;
int64 httpCachePolicyId = 6;
int64 httpFirewallPolicyId = 7;
bytes systemServicesJSON = 8; // 系统服务设置
}
message CreateNodeClusterResponse {
@@ -341,4 +348,21 @@ message UpdateNodeClusterHTTPCachePolicyIdRequest {
message UpdateNodeClusterHTTPFirewallPolicyIdRequest {
int64 nodeClusterId = 1;
int64 httpFirewallPolicyId = 2;
}
// 修改集群的系统服务设置
message UpdateNodeClusterSystemServiceRequest {
int64 nodeClusterId = 1;
string type = 2;
bytes paramsJSON = 3;
}
// 查找集群的系统服务设置
message FindNodeClusterSystemServiceRequest {
int64 nodeClusterId = 1;
string type = 2;
}
message FindNodeClusterSystemServiceResponse {
bytes paramsJSON = 1;
}