8 Commits 07aa4680f6 ... 36f239c37c

Auteur SHA1 Message Date
  kuanglingwei 36f239c37c opt: 变量大小写 il y a 1 an
  kuanglingwei 78a3d2d890 feature: curlServer增加contentLength返回字段 il y a 1 an
  YuXinLong 15ffd7fb7a feature:新增llnw的证书列表获取接口 il y a 1 an
  kuanglingwei 031c73bbcb feature:grpc Go-Java 带Resolve参数的Curl实现 il y a 1 an
  世祺 e1cbc80711 Argo Smart Routing实现 il y a 1 an
  YuXinLong fe237209c1 cloudflare增加universalCertificate接口 il y a 1 an
  YuXinLong 0167aaecb0 新增证书模块的proto以及证书的增删改功能 il y a 1 an
  YuXinLong 820cb95783 新增证书模块的proto以及证书的增删改功能 il y a 1 an
4 fichiers modifiés avec 140 ajouts et 1 suppressions
  1. 12 0
      certificate.proto
  2. 30 0
      curl.proto
  3. 74 0
      llnwCERT.proto
  4. 24 1
      zone.proto

+ 12 - 0
certificate.proto

@@ -12,6 +12,7 @@ service CertificateCloudflare {
   rpc CreateCertificate (CreateCertificateRequestCloudflare) returns  (CreateCertificateReplyCloudflare) {}
   rpc DeleteCertificate (DeleteCertificateRequestCloudflare) returns (DeleteCertificateReplyCloudflare) {}
   rpc EditCertificate (EditCertificateRequestCloudflare) returns (EditCertificateReplyCloudflare) {}
+  rpc UniversalCertificate(UniversalCertificateRequestCloudflare) returns(UniversalCertificateReplyCloudflare) {}
 }
 
 message CreateCertificateRequestCloudflare {
@@ -35,6 +36,12 @@ message EditCertificateRequestCloudflare {
   string certificate = 5;
   string privateKey = 6;
 }
+message UniversalCertificateRequestCloudflare {
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneName = 3;
+  bool enable = 4;
+}
 
 
 message CreateCertificateReplyCloudflare{
@@ -49,3 +56,8 @@ message EditCertificateReplyCloudflare{
   bool success = 1;
   string id = 2;
 }
+message UniversalCertificateReplyCloudflare{
+  bool success = 1;
+  bool enabled = 2;
+}
+

+ 30 - 0
curl.proto

@@ -0,0 +1,30 @@
+syntax = "proto3";
+
+package curl;
+
+option go_package = "./curl";
+option java_multiple_files = true;
+option java_package = "io.grpc.curl";
+option java_outer_classname = "curlWithResolve";
+
+service CurlWithResolve {
+  // Sends a greeting
+  rpc CurlWithResolveParam (CurlRequest) returns  (CurlReply) {}
+}
+
+// request
+message CurlRequest {
+  string url = 1;
+  string ip = 2;
+  string ua = 3;
+  bool useHeadMethod = 4;
+}
+
+// response
+message CurlReply {
+  int32 code = 1;
+  int64 contentLength = 2;
+  string error = 3;
+}
+
+

+ 74 - 0
llnwCERT.proto

@@ -0,0 +1,74 @@
+syntax = "proto3";
+package llnwApi.Delivery.CERT;
+
+option java_multiple_files = true;
+option java_package = "io.grpc.llnw.delivery.CERT";
+service CertDeliveryService {
+  rpc CreateSSLCert(CreateSSLCertRequest)returns(CreateSSLCertResponse){};
+  rpc PublishSSLCert(PublishSSLCertRequest)returns(PublishSSLCertResponse){};
+  rpc UpdateSSLCert(UpdateSSLCertRequest)returns(UpdateSSLCertResponse){};
+  rpc DeleteSSLCert(DeleteSSLCertRequest)returns(DeleteSSLCertResponse){};
+  rpc WithdrawSSLCert(WithdrawSSLCertRequest)returns(WithdrawSSLCertResponse){};
+  rpc ListSSLCert(ListSSLCertRequest)returns(ListSSLCertResponse){};
+}
+
+message Base{
+  string username = 1;
+  string key = 2;
+}
+message Cert{
+  string certName = 1;
+  string certStatus = 2;
+}
+message CertList{
+  repeated Cert cert = 1;
+}
+message CreateSSLCertRequest{
+  Base base = 1;
+  string shortname = 2;
+  string cert = 3;
+  string certKey = 4;
+  string certName = 5;
+}
+message PublishSSLCertRequest{
+  Base base = 1;
+  string uuid = 2;
+}
+message UpdateSSLCertRequest{
+  Base base = 1;
+  string shortname = 2;
+  string uuid = 3;
+  string cert = 4;
+  string certKey = 5;
+  string certName = 6;
+}
+message DeleteSSLCertRequest{
+  Base base = 1;
+  string uuid = 2;
+}
+message WithdrawSSLCertRequest{
+  Base base = 1;
+  string uuid = 2;
+}
+message CreateSSLCertResponse{
+  string uuid = 1;
+}
+message PublishSSLCertResponse{
+  bool isSuccess = 1;
+}
+message UpdateSSLCertResponse{
+  bool isSuccess = 1;
+}
+message DeleteSSLCertResponse{
+  bool isSuccess = 1;
+}
+message WithdrawSSLCertResponse{
+  bool isSuccess = 1;
+}
+message ListSSLCertRequest{
+  Base base = 1;
+  string shortname = 2;
+}
+message ListSSLCertResponse{
+  CertList certList =1;
+}

+ 24 - 1
zone.proto

@@ -28,6 +28,12 @@ service ZoneCloudflare {
   //RuleSet UR
   rpc UpdateRuleSet(UpdateRuleSetRequestCloudflare) returns (RuleList){}
   rpc GetRuleSet(GetRuleSetRequestCloudflare) returns (RuleList){}
+
+  //Argo Smart Routing Setting UR
+  rpc UpdateArgoSetting(UpdateArgoRequestCloudflare) returns(ArgoSetting){}
+  rpc GetArgoSetting(IdRequest) returns(ArgoSetting){}
+  rpc GetArgoSettingSubscription(IdRequest)returns(ArgoSetting){}
+  rpc CreateArgoSettingSubscription(IdRequest)returns(ArgoSetting){}
 }
 
 //Zone CURD
@@ -224,4 +230,21 @@ message UpdatePageRulesPrioritiesRequestCloudflare{
   string apiEmail = 2;
   string zoneId = 3;
   repeated UpdatePageRulesPrioritiesStruct data = 4;
-}
+}
+
+message ArgoSetting{
+  bool enabled = 1;
+}
+
+message UpdateArgoRequestCloudflare{
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+  ArgoSetting argo_setting = 4;
+}
+
+message IdRequest{
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+}