mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-10 09:31:53 +08:00
实现对ACME用户的增删改
This commit is contained in:
@@ -706,6 +706,229 @@ func (x *ListSSLCertsResponse) GetCertsJSON() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 计算某个ACME用户生成的证书数量
|
||||
type CountSSLCertsWithACMEUserIdRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
AcmeUserId int64 `protobuf:"varint,1,opt,name=acmeUserId,proto3" json:"acmeUserId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CountSSLCertsWithACMEUserIdRequest) Reset() {
|
||||
*x = CountSSLCertsWithACMEUserIdRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ssl_cert_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CountSSLCertsWithACMEUserIdRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CountSSLCertsWithACMEUserIdRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CountSSLCertsWithACMEUserIdRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ssl_cert_proto_msgTypes[9]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CountSSLCertsWithACMEUserIdRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CountSSLCertsWithACMEUserIdRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_ssl_cert_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *CountSSLCertsWithACMEUserIdRequest) GetAcmeUserId() int64 {
|
||||
if x != nil {
|
||||
return x.AcmeUserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 计算所有某个管理员/用户下所有的ACME用户生成的证书
|
||||
type CountAllSSLCertsWithACMERequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||||
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CountAllSSLCertsWithACMERequest) Reset() {
|
||||
*x = CountAllSSLCertsWithACMERequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ssl_cert_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CountAllSSLCertsWithACMERequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CountAllSSLCertsWithACMERequest) ProtoMessage() {}
|
||||
|
||||
func (x *CountAllSSLCertsWithACMERequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ssl_cert_proto_msgTypes[10]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CountAllSSLCertsWithACMERequest.ProtoReflect.Descriptor instead.
|
||||
func (*CountAllSSLCertsWithACMERequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_ssl_cert_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *CountAllSSLCertsWithACMERequest) GetAdminId() int64 {
|
||||
if x != nil {
|
||||
return x.AdminId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *CountAllSSLCertsWithACMERequest) GetUserId() int64 {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 列出单个管理员/用户下所有的ACME用户生成的证书
|
||||
type ListSSLCertsWithACMERequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||||
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
|
||||
Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
|
||||
Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ListSSLCertsWithACMERequest) Reset() {
|
||||
*x = ListSSLCertsWithACMERequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ssl_cert_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ListSSLCertsWithACMERequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListSSLCertsWithACMERequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListSSLCertsWithACMERequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ssl_cert_proto_msgTypes[11]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ListSSLCertsWithACMERequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListSSLCertsWithACMERequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_ssl_cert_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *ListSSLCertsWithACMERequest) GetAdminId() int64 {
|
||||
if x != nil {
|
||||
return x.AdminId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ListSSLCertsWithACMERequest) GetUserId() int64 {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ListSSLCertsWithACMERequest) GetOffset() int64 {
|
||||
if x != nil {
|
||||
return x.Offset
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ListSSLCertsWithACMERequest) GetSize() int64 {
|
||||
if x != nil {
|
||||
return x.Size
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ListSSLCertsWithACMEResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
CertsJSON []byte `protobuf:"bytes,1,opt,name=certsJSON,proto3" json:"certsJSON,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ListSSLCertsWithACMEResponse) Reset() {
|
||||
*x = ListSSLCertsWithACMEResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_ssl_cert_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ListSSLCertsWithACMEResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListSSLCertsWithACMEResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListSSLCertsWithACMEResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_ssl_cert_proto_msgTypes[12]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ListSSLCertsWithACMEResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListSSLCertsWithACMEResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_ssl_cert_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *ListSSLCertsWithACMEResponse) GetCertsJSON() []byte {
|
||||
if x != nil {
|
||||
return x.CertsJSON
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_service_ssl_cert_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_service_ssl_cert_proto_rawDesc = []byte{
|
||||
@@ -796,35 +1019,73 @@ var file_service_ssl_cert_proto_rawDesc = []byte{
|
||||
0x73, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||
0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x65, 0x72, 0x74, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x65, 0x72, 0x74, 0x73, 0x4a, 0x53, 0x4f, 0x4e,
|
||||
0x32, 0xb6, 0x03, 0x0a, 0x0e, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76,
|
||||
0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x53, 0x4c,
|
||||
0x43, 0x65, 0x72, 0x74, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72,
|
||||
0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0d, 0x75, 0x70, 0x64,
|
||||
0x22, 0x44, 0x0a, 0x22, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74,
|
||||
0x73, 0x57, 0x69, 0x74, 0x68, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73,
|
||||
0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x63, 0x6d, 0x65,
|
||||
0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x53, 0x0a, 0x1f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41,
|
||||
0x6c, 0x6c, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x41, 0x43,
|
||||
0x4d, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x6d,
|
||||
0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d, 0x69,
|
||||
0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x7b, 0x0a, 0x1b, 0x4c,
|
||||
0x69, 0x73, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x41,
|
||||
0x43, 0x4d, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64,
|
||||
0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d,
|
||||
0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06,
|
||||
0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66,
|
||||
0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01,
|
||||
0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3c, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74,
|
||||
0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x41, 0x43, 0x4d, 0x45,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x65, 0x72, 0x74,
|
||||
0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x65, 0x72,
|
||||
0x74, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x32, 0xc5, 0x05, 0x0a, 0x0e, 0x53, 0x53, 0x4c, 0x43, 0x65,
|
||||
0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x63, 0x72, 0x65,
|
||||
0x61, 0x74, 0x65, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63,
|
||||
0x63, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x53,
|
||||
0x4c, 0x43, 0x65, 0x72, 0x74, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
||||
0x65, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||
0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
|
||||
0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x53,
|
||||
0x4c, 0x43, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x53, 0x4c, 0x43,
|
||||
0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x64, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53,
|
||||
0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x53,
|
||||
0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74,
|
||||
0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||
0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74,
|
||||
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
|
||||
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x39, 0x0a, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74,
|
||||
0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x53, 0x4c, 0x43,
|
||||
0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0d, 0x64, 0x65,
|
||||
0x6c, 0x65, 0x74, 0x65, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x12, 0x18, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75,
|
||||
0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x64, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
|
||||
0x67, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x64, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
|
||||
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x43, 0x6f,
|
||||
0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d,
|
||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x12, 0x17, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0c,
|
||||
0x6c, 0x69, 0x73, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x12, 0x17, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53,
|
||||
0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x5b, 0x0a, 0x1b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73,
|
||||
0x57, 0x69, 0x74, 0x68, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x26,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74,
|
||||
0x73, 0x57, 0x69, 0x74, 0x68, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x18,
|
||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73,
|
||||
0x57, 0x69, 0x74, 0x68, 0x41, 0x43, 0x4d, 0x45, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x57, 0x69,
|
||||
0x74, 0x68, 0x41, 0x43, 0x4d, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x14, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65,
|
||||
0x72, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x41, 0x43, 0x4d, 0x45, 0x12, 0x1f, 0x2e, 0x70, 0x62,
|
||||
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x57, 0x69, 0x74,
|
||||
0x68, 0x41, 0x43, 0x4d, 0x45, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x73, 0x57, 0x69,
|
||||
0x74, 0x68, 0x41, 0x43, 0x4d, 0x45, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06,
|
||||
0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -839,19 +1100,23 @@ func file_service_ssl_cert_proto_rawDescGZIP() []byte {
|
||||
return file_service_ssl_cert_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_service_ssl_cert_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_service_ssl_cert_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||||
var file_service_ssl_cert_proto_goTypes = []interface{}{
|
||||
(*CreateSSLCertRequest)(nil), // 0: pb.CreateSSLCertRequest
|
||||
(*CreateSSLCertResponse)(nil), // 1: pb.CreateSSLCertResponse
|
||||
(*UpdateSSLCertRequest)(nil), // 2: pb.UpdateSSLCertRequest
|
||||
(*FindEnabledSSLCertConfigRequest)(nil), // 3: pb.FindEnabledSSLCertConfigRequest
|
||||
(*FindEnabledSSLCertConfigResponse)(nil), // 4: pb.FindEnabledSSLCertConfigResponse
|
||||
(*DeleteSSLCertRequest)(nil), // 5: pb.DeleteSSLCertRequest
|
||||
(*CountSSLCertRequest)(nil), // 6: pb.CountSSLCertRequest
|
||||
(*ListSSLCertsRequest)(nil), // 7: pb.ListSSLCertsRequest
|
||||
(*ListSSLCertsResponse)(nil), // 8: pb.ListSSLCertsResponse
|
||||
(*RPCSuccess)(nil), // 9: pb.RPCSuccess
|
||||
(*RPCCountResponse)(nil), // 10: pb.RPCCountResponse
|
||||
(*CreateSSLCertRequest)(nil), // 0: pb.CreateSSLCertRequest
|
||||
(*CreateSSLCertResponse)(nil), // 1: pb.CreateSSLCertResponse
|
||||
(*UpdateSSLCertRequest)(nil), // 2: pb.UpdateSSLCertRequest
|
||||
(*FindEnabledSSLCertConfigRequest)(nil), // 3: pb.FindEnabledSSLCertConfigRequest
|
||||
(*FindEnabledSSLCertConfigResponse)(nil), // 4: pb.FindEnabledSSLCertConfigResponse
|
||||
(*DeleteSSLCertRequest)(nil), // 5: pb.DeleteSSLCertRequest
|
||||
(*CountSSLCertRequest)(nil), // 6: pb.CountSSLCertRequest
|
||||
(*ListSSLCertsRequest)(nil), // 7: pb.ListSSLCertsRequest
|
||||
(*ListSSLCertsResponse)(nil), // 8: pb.ListSSLCertsResponse
|
||||
(*CountSSLCertsWithACMEUserIdRequest)(nil), // 9: pb.CountSSLCertsWithACMEUserIdRequest
|
||||
(*CountAllSSLCertsWithACMERequest)(nil), // 10: pb.CountAllSSLCertsWithACMERequest
|
||||
(*ListSSLCertsWithACMERequest)(nil), // 11: pb.ListSSLCertsWithACMERequest
|
||||
(*ListSSLCertsWithACMEResponse)(nil), // 12: pb.ListSSLCertsWithACMEResponse
|
||||
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
|
||||
(*RPCCountResponse)(nil), // 14: pb.RPCCountResponse
|
||||
}
|
||||
var file_service_ssl_cert_proto_depIdxs = []int32{
|
||||
0, // 0: pb.SSLCertService.createSSLCert:input_type -> pb.CreateSSLCertRequest
|
||||
@@ -860,14 +1125,20 @@ var file_service_ssl_cert_proto_depIdxs = []int32{
|
||||
3, // 3: pb.SSLCertService.findEnabledSSLCertConfig:input_type -> pb.FindEnabledSSLCertConfigRequest
|
||||
6, // 4: pb.SSLCertService.countSSLCerts:input_type -> pb.CountSSLCertRequest
|
||||
7, // 5: pb.SSLCertService.listSSLCerts:input_type -> pb.ListSSLCertsRequest
|
||||
1, // 6: pb.SSLCertService.createSSLCert:output_type -> pb.CreateSSLCertResponse
|
||||
9, // 7: pb.SSLCertService.updateSSLCert:output_type -> pb.RPCSuccess
|
||||
9, // 8: pb.SSLCertService.deleteSSLCert:output_type -> pb.RPCSuccess
|
||||
4, // 9: pb.SSLCertService.findEnabledSSLCertConfig:output_type -> pb.FindEnabledSSLCertConfigResponse
|
||||
10, // 10: pb.SSLCertService.countSSLCerts:output_type -> pb.RPCCountResponse
|
||||
8, // 11: pb.SSLCertService.listSSLCerts:output_type -> pb.ListSSLCertsResponse
|
||||
6, // [6:12] is the sub-list for method output_type
|
||||
0, // [0:6] is the sub-list for method input_type
|
||||
9, // 6: pb.SSLCertService.countSSLCertsWithACMEUserId:input_type -> pb.CountSSLCertsWithACMEUserIdRequest
|
||||
10, // 7: pb.SSLCertService.countAllSSLCertsWithACME:input_type -> pb.CountAllSSLCertsWithACMERequest
|
||||
11, // 8: pb.SSLCertService.listSSLCertsWithACME:input_type -> pb.ListSSLCertsWithACMERequest
|
||||
1, // 9: pb.SSLCertService.createSSLCert:output_type -> pb.CreateSSLCertResponse
|
||||
13, // 10: pb.SSLCertService.updateSSLCert:output_type -> pb.RPCSuccess
|
||||
13, // 11: pb.SSLCertService.deleteSSLCert:output_type -> pb.RPCSuccess
|
||||
4, // 12: pb.SSLCertService.findEnabledSSLCertConfig:output_type -> pb.FindEnabledSSLCertConfigResponse
|
||||
14, // 13: pb.SSLCertService.countSSLCerts:output_type -> pb.RPCCountResponse
|
||||
8, // 14: pb.SSLCertService.listSSLCerts:output_type -> pb.ListSSLCertsResponse
|
||||
14, // 15: pb.SSLCertService.countSSLCertsWithACMEUserId:output_type -> pb.RPCCountResponse
|
||||
14, // 16: pb.SSLCertService.countAllSSLCertsWithACME:output_type -> pb.RPCCountResponse
|
||||
12, // 17: pb.SSLCertService.listSSLCertsWithACME:output_type -> pb.ListSSLCertsWithACMEResponse
|
||||
9, // [9:18] is the sub-list for method output_type
|
||||
0, // [0:9] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
@@ -988,6 +1259,54 @@ func file_service_ssl_cert_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_ssl_cert_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CountSSLCertsWithACMEUserIdRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_ssl_cert_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CountAllSSLCertsWithACMERequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_ssl_cert_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ListSSLCertsWithACMERequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_ssl_cert_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ListSSLCertsWithACMEResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@@ -995,7 +1314,7 @@ func file_service_ssl_cert_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_service_ssl_cert_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 9,
|
||||
NumMessages: 13,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
@@ -1033,6 +1352,12 @@ type SSLCertServiceClient interface {
|
||||
CountSSLCerts(ctx context.Context, in *CountSSLCertRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||||
// 列出单页匹配的Cert
|
||||
ListSSLCerts(ctx context.Context, in *ListSSLCertsRequest, opts ...grpc.CallOption) (*ListSSLCertsResponse, error)
|
||||
// 计算某个ACME用户生成的证书数量
|
||||
CountSSLCertsWithACMEUserId(ctx context.Context, in *CountSSLCertsWithACMEUserIdRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||||
// 计算所有某个管理员/用户下所有的ACME用户生成的证书
|
||||
CountAllSSLCertsWithACME(ctx context.Context, in *CountAllSSLCertsWithACMERequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||||
// 列出单个管理员/用户下所有的ACME用户生成的证书
|
||||
ListSSLCertsWithACME(ctx context.Context, in *ListSSLCertsWithACMERequest, opts ...grpc.CallOption) (*ListSSLCertsWithACMEResponse, error)
|
||||
}
|
||||
|
||||
type sSLCertServiceClient struct {
|
||||
@@ -1097,6 +1422,33 @@ func (c *sSLCertServiceClient) ListSSLCerts(ctx context.Context, in *ListSSLCert
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sSLCertServiceClient) CountSSLCertsWithACMEUserId(ctx context.Context, in *CountSSLCertsWithACMEUserIdRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
||||
out := new(RPCCountResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.SSLCertService/countSSLCertsWithACMEUserId", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sSLCertServiceClient) CountAllSSLCertsWithACME(ctx context.Context, in *CountAllSSLCertsWithACMERequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
||||
out := new(RPCCountResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.SSLCertService/countAllSSLCertsWithACME", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sSLCertServiceClient) ListSSLCertsWithACME(ctx context.Context, in *ListSSLCertsWithACMERequest, opts ...grpc.CallOption) (*ListSSLCertsWithACMEResponse, error) {
|
||||
out := new(ListSSLCertsWithACMEResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.SSLCertService/listSSLCertsWithACME", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// SSLCertServiceServer is the server API for SSLCertService service.
|
||||
type SSLCertServiceServer interface {
|
||||
// 创建Cert
|
||||
@@ -1111,6 +1463,12 @@ type SSLCertServiceServer interface {
|
||||
CountSSLCerts(context.Context, *CountSSLCertRequest) (*RPCCountResponse, error)
|
||||
// 列出单页匹配的Cert
|
||||
ListSSLCerts(context.Context, *ListSSLCertsRequest) (*ListSSLCertsResponse, error)
|
||||
// 计算某个ACME用户生成的证书数量
|
||||
CountSSLCertsWithACMEUserId(context.Context, *CountSSLCertsWithACMEUserIdRequest) (*RPCCountResponse, error)
|
||||
// 计算所有某个管理员/用户下所有的ACME用户生成的证书
|
||||
CountAllSSLCertsWithACME(context.Context, *CountAllSSLCertsWithACMERequest) (*RPCCountResponse, error)
|
||||
// 列出单个管理员/用户下所有的ACME用户生成的证书
|
||||
ListSSLCertsWithACME(context.Context, *ListSSLCertsWithACMERequest) (*ListSSLCertsWithACMEResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedSSLCertServiceServer can be embedded to have forward compatible implementations.
|
||||
@@ -1135,6 +1493,15 @@ func (*UnimplementedSSLCertServiceServer) CountSSLCerts(context.Context, *CountS
|
||||
func (*UnimplementedSSLCertServiceServer) ListSSLCerts(context.Context, *ListSSLCertsRequest) (*ListSSLCertsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListSSLCerts not implemented")
|
||||
}
|
||||
func (*UnimplementedSSLCertServiceServer) CountSSLCertsWithACMEUserId(context.Context, *CountSSLCertsWithACMEUserIdRequest) (*RPCCountResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountSSLCertsWithACMEUserId not implemented")
|
||||
}
|
||||
func (*UnimplementedSSLCertServiceServer) CountAllSSLCertsWithACME(context.Context, *CountAllSSLCertsWithACMERequest) (*RPCCountResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountAllSSLCertsWithACME not implemented")
|
||||
}
|
||||
func (*UnimplementedSSLCertServiceServer) ListSSLCertsWithACME(context.Context, *ListSSLCertsWithACMERequest) (*ListSSLCertsWithACMEResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListSSLCertsWithACME not implemented")
|
||||
}
|
||||
|
||||
func RegisterSSLCertServiceServer(s *grpc.Server, srv SSLCertServiceServer) {
|
||||
s.RegisterService(&_SSLCertService_serviceDesc, srv)
|
||||
@@ -1248,6 +1615,60 @@ func _SSLCertService_ListSSLCerts_Handler(srv interface{}, ctx context.Context,
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SSLCertService_CountSSLCertsWithACMEUserId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CountSSLCertsWithACMEUserIdRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SSLCertServiceServer).CountSSLCertsWithACMEUserId(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.SSLCertService/CountSSLCertsWithACMEUserId",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SSLCertServiceServer).CountSSLCertsWithACMEUserId(ctx, req.(*CountSSLCertsWithACMEUserIdRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SSLCertService_CountAllSSLCertsWithACME_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CountAllSSLCertsWithACMERequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SSLCertServiceServer).CountAllSSLCertsWithACME(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.SSLCertService/CountAllSSLCertsWithACME",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SSLCertServiceServer).CountAllSSLCertsWithACME(ctx, req.(*CountAllSSLCertsWithACMERequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SSLCertService_ListSSLCertsWithACME_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListSSLCertsWithACMERequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SSLCertServiceServer).ListSSLCertsWithACME(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.SSLCertService/ListSSLCertsWithACME",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SSLCertServiceServer).ListSSLCertsWithACME(ctx, req.(*ListSSLCertsWithACMERequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _SSLCertService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "pb.SSLCertService",
|
||||
HandlerType: (*SSLCertServiceServer)(nil),
|
||||
@@ -1276,6 +1697,18 @@ var _SSLCertService_serviceDesc = grpc.ServiceDesc{
|
||||
MethodName: "listSSLCerts",
|
||||
Handler: _SSLCertService_ListSSLCerts_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "countSSLCertsWithACMEUserId",
|
||||
Handler: _SSLCertService_CountSSLCertsWithACMEUserId_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "countAllSSLCertsWithACME",
|
||||
Handler: _SSLCertService_CountAllSSLCertsWithACME_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "listSSLCertsWithACME",
|
||||
Handler: _SSLCertService_ListSSLCertsWithACME_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "service_ssl_cert.proto",
|
||||
|
||||
Reference in New Issue
Block a user