|
@@ -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;
|
|
|
+}
|