github.com/microsoft/moc@v0.17.1/rpc/cloudagent/security/moc_cloudagent_certificate.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_cloudagent_certificate.proto 3 4 package security 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 wrappers "github.com/golang/protobuf/ptypes/wrappers" 11 common "github.com/microsoft/moc/rpc/common" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 math "math" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var _ = proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 28 29 type CertificateType int32 30 31 const ( 32 CertificateType_Client CertificateType = 0 33 CertificateType_Server CertificateType = 1 34 ) 35 36 var CertificateType_name = map[int32]string{ 37 0: "Client", 38 1: "Server", 39 } 40 41 var CertificateType_value = map[string]int32{ 42 "Client": 0, 43 "Server": 1, 44 } 45 46 func (x CertificateType) String() string { 47 return proto.EnumName(CertificateType_name, int32(x)) 48 } 49 50 func (CertificateType) EnumDescriptor() ([]byte, []int) { 51 return fileDescriptor_373194e28b9c267a, []int{0} 52 } 53 54 type CertificateRequest struct { 55 Certificates []*Certificate `protobuf:"bytes,1,rep,name=Certificates,proto3" json:"Certificates,omitempty"` 56 XXX_NoUnkeyedLiteral struct{} `json:"-"` 57 XXX_unrecognized []byte `json:"-"` 58 XXX_sizecache int32 `json:"-"` 59 } 60 61 func (m *CertificateRequest) Reset() { *m = CertificateRequest{} } 62 func (m *CertificateRequest) String() string { return proto.CompactTextString(m) } 63 func (*CertificateRequest) ProtoMessage() {} 64 func (*CertificateRequest) Descriptor() ([]byte, []int) { 65 return fileDescriptor_373194e28b9c267a, []int{0} 66 } 67 68 func (m *CertificateRequest) XXX_Unmarshal(b []byte) error { 69 return xxx_messageInfo_CertificateRequest.Unmarshal(m, b) 70 } 71 func (m *CertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 72 return xxx_messageInfo_CertificateRequest.Marshal(b, m, deterministic) 73 } 74 func (m *CertificateRequest) XXX_Merge(src proto.Message) { 75 xxx_messageInfo_CertificateRequest.Merge(m, src) 76 } 77 func (m *CertificateRequest) XXX_Size() int { 78 return xxx_messageInfo_CertificateRequest.Size(m) 79 } 80 func (m *CertificateRequest) XXX_DiscardUnknown() { 81 xxx_messageInfo_CertificateRequest.DiscardUnknown(m) 82 } 83 84 var xxx_messageInfo_CertificateRequest proto.InternalMessageInfo 85 86 func (m *CertificateRequest) GetCertificates() []*Certificate { 87 if m != nil { 88 return m.Certificates 89 } 90 return nil 91 } 92 93 type CSRRequest struct { 94 CSRs []*CertificateSigningRequest `protobuf:"bytes,1,rep,name=CSRs,proto3" json:"CSRs,omitempty"` 95 XXX_NoUnkeyedLiteral struct{} `json:"-"` 96 XXX_unrecognized []byte `json:"-"` 97 XXX_sizecache int32 `json:"-"` 98 } 99 100 func (m *CSRRequest) Reset() { *m = CSRRequest{} } 101 func (m *CSRRequest) String() string { return proto.CompactTextString(m) } 102 func (*CSRRequest) ProtoMessage() {} 103 func (*CSRRequest) Descriptor() ([]byte, []int) { 104 return fileDescriptor_373194e28b9c267a, []int{1} 105 } 106 107 func (m *CSRRequest) XXX_Unmarshal(b []byte) error { 108 return xxx_messageInfo_CSRRequest.Unmarshal(m, b) 109 } 110 func (m *CSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 111 return xxx_messageInfo_CSRRequest.Marshal(b, m, deterministic) 112 } 113 func (m *CSRRequest) XXX_Merge(src proto.Message) { 114 xxx_messageInfo_CSRRequest.Merge(m, src) 115 } 116 func (m *CSRRequest) XXX_Size() int { 117 return xxx_messageInfo_CSRRequest.Size(m) 118 } 119 func (m *CSRRequest) XXX_DiscardUnknown() { 120 xxx_messageInfo_CSRRequest.DiscardUnknown(m) 121 } 122 123 var xxx_messageInfo_CSRRequest proto.InternalMessageInfo 124 125 func (m *CSRRequest) GetCSRs() []*CertificateSigningRequest { 126 if m != nil { 127 return m.CSRs 128 } 129 return nil 130 } 131 132 type CertificateResponse struct { 133 Certificates []*Certificate `protobuf:"bytes,1,rep,name=Certificates,proto3" json:"Certificates,omitempty"` 134 Result *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"` 135 Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` 136 XXX_NoUnkeyedLiteral struct{} `json:"-"` 137 XXX_unrecognized []byte `json:"-"` 138 XXX_sizecache int32 `json:"-"` 139 } 140 141 func (m *CertificateResponse) Reset() { *m = CertificateResponse{} } 142 func (m *CertificateResponse) String() string { return proto.CompactTextString(m) } 143 func (*CertificateResponse) ProtoMessage() {} 144 func (*CertificateResponse) Descriptor() ([]byte, []int) { 145 return fileDescriptor_373194e28b9c267a, []int{2} 146 } 147 148 func (m *CertificateResponse) XXX_Unmarshal(b []byte) error { 149 return xxx_messageInfo_CertificateResponse.Unmarshal(m, b) 150 } 151 func (m *CertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 152 return xxx_messageInfo_CertificateResponse.Marshal(b, m, deterministic) 153 } 154 func (m *CertificateResponse) XXX_Merge(src proto.Message) { 155 xxx_messageInfo_CertificateResponse.Merge(m, src) 156 } 157 func (m *CertificateResponse) XXX_Size() int { 158 return xxx_messageInfo_CertificateResponse.Size(m) 159 } 160 func (m *CertificateResponse) XXX_DiscardUnknown() { 161 xxx_messageInfo_CertificateResponse.DiscardUnknown(m) 162 } 163 164 var xxx_messageInfo_CertificateResponse proto.InternalMessageInfo 165 166 func (m *CertificateResponse) GetCertificates() []*Certificate { 167 if m != nil { 168 return m.Certificates 169 } 170 return nil 171 } 172 173 func (m *CertificateResponse) GetResult() *wrappers.BoolValue { 174 if m != nil { 175 return m.Result 176 } 177 return nil 178 } 179 180 func (m *CertificateResponse) GetError() string { 181 if m != nil { 182 return m.Error 183 } 184 return "" 185 } 186 187 type CertificateSigningRequest struct { 188 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 189 Csr string `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` 190 OldCertificate string `protobuf:"bytes,3,opt,name=oldCertificate,proto3" json:"oldCertificate,omitempty"` 191 Status *common.Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` 192 CaName string `protobuf:"bytes,5,opt,name=caName,proto3" json:"caName,omitempty"` 193 GroupName string `protobuf:"bytes,6,opt,name=groupName,proto3" json:"groupName,omitempty"` 194 VaultName string `protobuf:"bytes,7,opt,name=vaultName,proto3" json:"vaultName,omitempty"` 195 LocationName string `protobuf:"bytes,8,opt,name=locationName,proto3" json:"locationName,omitempty"` 196 Identity string `protobuf:"bytes,9,opt,name=identity,proto3" json:"identity,omitempty"` 197 Validity int64 `protobuf:"varint,10,opt,name=validity,proto3" json:"validity,omitempty"` 198 IsCA *wrappers.BoolValue `protobuf:"bytes,11,opt,name=isCA,proto3" json:"isCA,omitempty"` 199 XXX_NoUnkeyedLiteral struct{} `json:"-"` 200 XXX_unrecognized []byte `json:"-"` 201 XXX_sizecache int32 `json:"-"` 202 } 203 204 func (m *CertificateSigningRequest) Reset() { *m = CertificateSigningRequest{} } 205 func (m *CertificateSigningRequest) String() string { return proto.CompactTextString(m) } 206 func (*CertificateSigningRequest) ProtoMessage() {} 207 func (*CertificateSigningRequest) Descriptor() ([]byte, []int) { 208 return fileDescriptor_373194e28b9c267a, []int{3} 209 } 210 211 func (m *CertificateSigningRequest) XXX_Unmarshal(b []byte) error { 212 return xxx_messageInfo_CertificateSigningRequest.Unmarshal(m, b) 213 } 214 func (m *CertificateSigningRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 215 return xxx_messageInfo_CertificateSigningRequest.Marshal(b, m, deterministic) 216 } 217 func (m *CertificateSigningRequest) XXX_Merge(src proto.Message) { 218 xxx_messageInfo_CertificateSigningRequest.Merge(m, src) 219 } 220 func (m *CertificateSigningRequest) XXX_Size() int { 221 return xxx_messageInfo_CertificateSigningRequest.Size(m) 222 } 223 func (m *CertificateSigningRequest) XXX_DiscardUnknown() { 224 xxx_messageInfo_CertificateSigningRequest.DiscardUnknown(m) 225 } 226 227 var xxx_messageInfo_CertificateSigningRequest proto.InternalMessageInfo 228 229 func (m *CertificateSigningRequest) GetName() string { 230 if m != nil { 231 return m.Name 232 } 233 return "" 234 } 235 236 func (m *CertificateSigningRequest) GetCsr() string { 237 if m != nil { 238 return m.Csr 239 } 240 return "" 241 } 242 243 func (m *CertificateSigningRequest) GetOldCertificate() string { 244 if m != nil { 245 return m.OldCertificate 246 } 247 return "" 248 } 249 250 func (m *CertificateSigningRequest) GetStatus() *common.Status { 251 if m != nil { 252 return m.Status 253 } 254 return nil 255 } 256 257 func (m *CertificateSigningRequest) GetCaName() string { 258 if m != nil { 259 return m.CaName 260 } 261 return "" 262 } 263 264 func (m *CertificateSigningRequest) GetGroupName() string { 265 if m != nil { 266 return m.GroupName 267 } 268 return "" 269 } 270 271 func (m *CertificateSigningRequest) GetVaultName() string { 272 if m != nil { 273 return m.VaultName 274 } 275 return "" 276 } 277 278 func (m *CertificateSigningRequest) GetLocationName() string { 279 if m != nil { 280 return m.LocationName 281 } 282 return "" 283 } 284 285 func (m *CertificateSigningRequest) GetIdentity() string { 286 if m != nil { 287 return m.Identity 288 } 289 return "" 290 } 291 292 func (m *CertificateSigningRequest) GetValidity() int64 { 293 if m != nil { 294 return m.Validity 295 } 296 return 0 297 } 298 299 func (m *CertificateSigningRequest) GetIsCA() *wrappers.BoolValue { 300 if m != nil { 301 return m.IsCA 302 } 303 return nil 304 } 305 306 type Certificate struct { 307 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 308 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 309 NotBefore int64 `protobuf:"varint,3,opt,name=notBefore,proto3" json:"notBefore,omitempty"` 310 NotAfter int64 `protobuf:"varint,4,opt,name=notAfter,proto3" json:"notAfter,omitempty"` 311 Certificate string `protobuf:"bytes,5,opt,name=certificate,proto3" json:"certificate,omitempty"` 312 Status *common.Status `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` 313 Type CertificateType `protobuf:"varint,7,opt,name=type,proto3,enum=moc.cloudagent.security.CertificateType" json:"type,omitempty"` 314 GroupName string `protobuf:"bytes,8,opt,name=groupName,proto3" json:"groupName,omitempty"` 315 VaultName string `protobuf:"bytes,9,opt,name=vaultName,proto3" json:"vaultName,omitempty"` 316 LocationName string `protobuf:"bytes,10,opt,name=locationName,proto3" json:"locationName,omitempty"` 317 Tags *common.Tags `protobuf:"bytes,11,opt,name=tags,proto3" json:"tags,omitempty"` 318 XXX_NoUnkeyedLiteral struct{} `json:"-"` 319 XXX_unrecognized []byte `json:"-"` 320 XXX_sizecache int32 `json:"-"` 321 } 322 323 func (m *Certificate) Reset() { *m = Certificate{} } 324 func (m *Certificate) String() string { return proto.CompactTextString(m) } 325 func (*Certificate) ProtoMessage() {} 326 func (*Certificate) Descriptor() ([]byte, []int) { 327 return fileDescriptor_373194e28b9c267a, []int{4} 328 } 329 330 func (m *Certificate) XXX_Unmarshal(b []byte) error { 331 return xxx_messageInfo_Certificate.Unmarshal(m, b) 332 } 333 func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 334 return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) 335 } 336 func (m *Certificate) XXX_Merge(src proto.Message) { 337 xxx_messageInfo_Certificate.Merge(m, src) 338 } 339 func (m *Certificate) XXX_Size() int { 340 return xxx_messageInfo_Certificate.Size(m) 341 } 342 func (m *Certificate) XXX_DiscardUnknown() { 343 xxx_messageInfo_Certificate.DiscardUnknown(m) 344 } 345 346 var xxx_messageInfo_Certificate proto.InternalMessageInfo 347 348 func (m *Certificate) GetName() string { 349 if m != nil { 350 return m.Name 351 } 352 return "" 353 } 354 355 func (m *Certificate) GetId() string { 356 if m != nil { 357 return m.Id 358 } 359 return "" 360 } 361 362 func (m *Certificate) GetNotBefore() int64 { 363 if m != nil { 364 return m.NotBefore 365 } 366 return 0 367 } 368 369 func (m *Certificate) GetNotAfter() int64 { 370 if m != nil { 371 return m.NotAfter 372 } 373 return 0 374 } 375 376 func (m *Certificate) GetCertificate() string { 377 if m != nil { 378 return m.Certificate 379 } 380 return "" 381 } 382 383 func (m *Certificate) GetStatus() *common.Status { 384 if m != nil { 385 return m.Status 386 } 387 return nil 388 } 389 390 func (m *Certificate) GetType() CertificateType { 391 if m != nil { 392 return m.Type 393 } 394 return CertificateType_Client 395 } 396 397 func (m *Certificate) GetGroupName() string { 398 if m != nil { 399 return m.GroupName 400 } 401 return "" 402 } 403 404 func (m *Certificate) GetVaultName() string { 405 if m != nil { 406 return m.VaultName 407 } 408 return "" 409 } 410 411 func (m *Certificate) GetLocationName() string { 412 if m != nil { 413 return m.LocationName 414 } 415 return "" 416 } 417 418 func (m *Certificate) GetTags() *common.Tags { 419 if m != nil { 420 return m.Tags 421 } 422 return nil 423 } 424 425 func init() { 426 proto.RegisterEnum("moc.cloudagent.security.CertificateType", CertificateType_name, CertificateType_value) 427 proto.RegisterType((*CertificateRequest)(nil), "moc.cloudagent.security.CertificateRequest") 428 proto.RegisterType((*CSRRequest)(nil), "moc.cloudagent.security.CSRRequest") 429 proto.RegisterType((*CertificateResponse)(nil), "moc.cloudagent.security.CertificateResponse") 430 proto.RegisterType((*CertificateSigningRequest)(nil), "moc.cloudagent.security.CertificateSigningRequest") 431 proto.RegisterType((*Certificate)(nil), "moc.cloudagent.security.Certificate") 432 } 433 434 func init() { proto.RegisterFile("moc_cloudagent_certificate.proto", fileDescriptor_373194e28b9c267a) } 435 436 var fileDescriptor_373194e28b9c267a = []byte{ 437 // 662 bytes of a gzipped FileDescriptorProto 438 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcf, 0x6e, 0xd3, 0x4e, 439 0x10, 0xae, 0x13, 0xd7, 0xbf, 0x66, 0x52, 0xe5, 0x57, 0x2d, 0xa8, 0x35, 0x11, 0xa0, 0x28, 0x45, 440 0x28, 0x40, 0x65, 0x23, 0x73, 0xe5, 0xd2, 0x84, 0x7f, 0x27, 0x90, 0x36, 0x85, 0x03, 0x20, 0x2a, 441 0xc7, 0x9e, 0x98, 0x95, 0x6c, 0xaf, 0xd9, 0x5d, 0xb7, 0xca, 0x13, 0xc0, 0xab, 0xf0, 0x00, 0x3c, 442 0x1a, 0x17, 0x4e, 0xc8, 0x6b, 0x27, 0x71, 0xaa, 0x86, 0x06, 0x89, 0x9e, 0xe2, 0x9d, 0x6f, 0xe6, 443 0x9b, 0x99, 0xef, 0xcb, 0x2e, 0xf4, 0x12, 0x1e, 0x9c, 0x06, 0x31, 0xcf, 0x43, 0x3f, 0xc2, 0x54, 444 0x9d, 0x06, 0x28, 0x14, 0x9b, 0xb2, 0xc0, 0x57, 0xe8, 0x64, 0x82, 0x2b, 0x4e, 0x0e, 0x12, 0x1e, 445 0x38, 0xcb, 0x0c, 0x47, 0x62, 0x90, 0x0b, 0xa6, 0x66, 0xdd, 0xbb, 0x11, 0xe7, 0x51, 0x8c, 0xae, 446 0x4e, 0x9b, 0xe4, 0x53, 0xf7, 0x5c, 0xf8, 0x59, 0x86, 0x42, 0x96, 0x85, 0xdd, 0x03, 0x4d, 0xcd, 447 0x93, 0x84, 0xa7, 0xd5, 0x4f, 0x09, 0xf4, 0x3f, 0x01, 0x19, 0x2d, 0xdb, 0x50, 0xfc, 0x92, 0xa3, 448 0x54, 0xe4, 0x15, 0xec, 0xd6, 0xa2, 0xd2, 0x36, 0x7a, 0xcd, 0x41, 0xdb, 0xbb, 0xe7, 0xac, 0x69, 449 0xef, 0xd4, 0x29, 0x56, 0x2a, 0xfb, 0x27, 0x00, 0xa3, 0x31, 0x9d, 0xf3, 0xbe, 0x00, 0x73, 0x34, 450 0xa6, 0x73, 0x3e, 0x6f, 0x13, 0xbe, 0x31, 0x8b, 0x52, 0x96, 0x46, 0x15, 0x03, 0xd5, 0xf5, 0xfd, 451 0xef, 0x06, 0xdc, 0x58, 0x19, 0x5b, 0x66, 0x3c, 0x95, 0xf8, 0xef, 0xe6, 0x26, 0x1e, 0x58, 0x14, 452 0x65, 0x1e, 0x2b, 0xbb, 0xd1, 0x33, 0x06, 0x6d, 0xaf, 0xeb, 0x94, 0x0a, 0x3b, 0x73, 0x85, 0x9d, 453 0x21, 0xe7, 0xf1, 0x3b, 0x3f, 0xce, 0x91, 0x56, 0x99, 0xe4, 0x26, 0x6c, 0x3f, 0x17, 0x82, 0x0b, 454 0xbb, 0xd9, 0x33, 0x06, 0x2d, 0x5a, 0x1e, 0xfa, 0xbf, 0x1a, 0x70, 0x6b, 0xed, 0x3e, 0x84, 0x80, 455 0x99, 0xfa, 0x09, 0xda, 0x86, 0x2e, 0xd1, 0xdf, 0x64, 0x1f, 0x9a, 0x81, 0x14, 0xba, 0x71, 0x6b, 456 0x68, 0x7e, 0xfb, 0x61, 0x1b, 0xb4, 0x08, 0x90, 0x23, 0xe8, 0xf0, 0x38, 0xac, 0x71, 0x95, 0x8d, 457 0xaa, 0x94, 0x0b, 0x18, 0x39, 0x04, 0x4b, 0x2a, 0x5f, 0xe5, 0xd2, 0x36, 0xf5, 0x06, 0x6d, 0xad, 458 0xc2, 0x58, 0x87, 0x68, 0x05, 0x91, 0x7d, 0xb0, 0x02, 0xff, 0x75, 0x31, 0xc0, 0xb6, 0x1e, 0xa0, 459 0x3a, 0x91, 0xdb, 0xd0, 0x8a, 0x04, 0xcf, 0x33, 0x0d, 0x59, 0x1a, 0x5a, 0x06, 0x0a, 0xf4, 0xcc, 460 0xcf, 0x63, 0xa5, 0xd1, 0xff, 0x4a, 0x74, 0x11, 0x20, 0x7d, 0xd8, 0x8d, 0x79, 0xe0, 0x2b, 0xc6, 461 0x53, 0x9d, 0xb0, 0xa3, 0x13, 0x56, 0x62, 0xa4, 0x0b, 0x3b, 0x2c, 0xc4, 0x54, 0x31, 0x35, 0xb3, 462 0x5b, 0x1a, 0x5f, 0x9c, 0x0b, 0xec, 0xcc, 0x8f, 0x59, 0x58, 0x60, 0xd0, 0x33, 0x06, 0x4d, 0xba, 463 0x38, 0x13, 0x07, 0x4c, 0x26, 0x47, 0xc7, 0x76, 0xfb, 0x4a, 0x53, 0x74, 0x5e, 0xff, 0x67, 0x03, 464 0xda, 0x75, 0x51, 0x2e, 0x93, 0xbb, 0x03, 0x0d, 0x16, 0x96, 0x6a, 0xd3, 0x06, 0x0b, 0x8b, 0xed, 465 0x52, 0xae, 0x86, 0x38, 0xe5, 0xa2, 0x54, 0xb8, 0x49, 0x97, 0x81, 0x62, 0xba, 0x94, 0xab, 0xe3, 466 0xa9, 0x42, 0xa1, 0x85, 0x6d, 0xd2, 0xc5, 0x99, 0xdc, 0x87, 0x76, 0xed, 0xce, 0x96, 0x92, 0x56, 467 0xee, 0xd4, 0x81, 0x9a, 0x35, 0xd6, 0x7a, 0x6b, 0x9e, 0x82, 0xa9, 0x66, 0x59, 0xa9, 0x6f, 0xc7, 468 0x1b, 0x6c, 0xf2, 0x1f, 0x3e, 0x99, 0x65, 0x48, 0x75, 0xd5, 0xaa, 0x81, 0x3b, 0x7f, 0x34, 0xb0, 469 0x75, 0x95, 0x81, 0x70, 0x89, 0x81, 0x77, 0xc0, 0x54, 0x7e, 0x24, 0x2b, 0x23, 0x5a, 0x7a, 0xba, 470 0x13, 0x3f, 0x92, 0x54, 0x87, 0x1f, 0x3e, 0x80, 0xff, 0x2f, 0xcc, 0x45, 0x00, 0xac, 0x51, 0xcc, 471 0x30, 0x55, 0x7b, 0x5b, 0xc5, 0xf7, 0x18, 0xc5, 0x19, 0x8a, 0x3d, 0xc3, 0xfb, 0x6a, 0xc2, 0x5e, 472 0x2d, 0xf7, 0xb8, 0xd8, 0x8e, 0x24, 0xd0, 0x19, 0x09, 0xf4, 0x15, 0xbe, 0x11, 0x6f, 0xb3, 0xb0, 473 0xd0, 0xec, 0xd1, 0x46, 0x97, 0xb8, 0xbc, 0x55, 0xdd, 0xa3, 0xcd, 0x92, 0xcb, 0x57, 0xa3, 0xbf, 474 0x45, 0x26, 0xd0, 0x7c, 0x89, 0xea, 0x7a, 0x7b, 0x20, 0x58, 0xcf, 0x30, 0xc6, 0xeb, 0x5e, 0xe5, 475 0x03, 0x98, 0xc5, 0x13, 0x43, 0x0e, 0xd7, 0xd7, 0x2d, 0xde, 0xe3, 0xbf, 0x26, 0xff, 0x08, 0xdb, 476 0x14, 0x53, 0x3c, 0xbf, 0x16, 0xf6, 0xa1, 0xf7, 0xfe, 0x71, 0xc4, 0xd4, 0xe7, 0x7c, 0xe2, 0x04, 477 0x3c, 0x71, 0x13, 0x16, 0x08, 0x2e, 0xf9, 0x54, 0xb9, 0x09, 0x0f, 0x5c, 0x91, 0x05, 0xee, 0x92, 478 0xc9, 0x9d, 0x33, 0x4d, 0x2c, 0x7d, 0xf5, 0x9f, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x84, 0xa5, 479 0xb9, 0x84, 0x3c, 0x07, 0x00, 0x00, 480 } 481 482 // Reference imports to suppress errors if they are not otherwise used. 483 var _ context.Context 484 var _ grpc.ClientConn 485 486 // This is a compile-time assertion to ensure that this generated file 487 // is compatible with the grpc package it is being compiled against. 488 const _ = grpc.SupportPackageIsVersion4 489 490 // CertificateAgentClient is the client API for CertificateAgent service. 491 // 492 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 493 type CertificateAgentClient interface { 494 CreateOrUpdate(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) 495 Get(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) 496 Delete(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) 497 Sign(ctx context.Context, in *CSRRequest, opts ...grpc.CallOption) (*CertificateResponse, error) 498 Renew(ctx context.Context, in *CSRRequest, opts ...grpc.CallOption) (*CertificateResponse, error) 499 } 500 501 type certificateAgentClient struct { 502 cc *grpc.ClientConn 503 } 504 505 func NewCertificateAgentClient(cc *grpc.ClientConn) CertificateAgentClient { 506 return &certificateAgentClient{cc} 507 } 508 509 func (c *certificateAgentClient) CreateOrUpdate(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) { 510 out := new(CertificateResponse) 511 err := c.cc.Invoke(ctx, "/moc.cloudagent.security.CertificateAgent/CreateOrUpdate", in, out, opts...) 512 if err != nil { 513 return nil, err 514 } 515 return out, nil 516 } 517 518 func (c *certificateAgentClient) Get(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) { 519 out := new(CertificateResponse) 520 err := c.cc.Invoke(ctx, "/moc.cloudagent.security.CertificateAgent/Get", in, out, opts...) 521 if err != nil { 522 return nil, err 523 } 524 return out, nil 525 } 526 527 func (c *certificateAgentClient) Delete(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) { 528 out := new(CertificateResponse) 529 err := c.cc.Invoke(ctx, "/moc.cloudagent.security.CertificateAgent/Delete", in, out, opts...) 530 if err != nil { 531 return nil, err 532 } 533 return out, nil 534 } 535 536 func (c *certificateAgentClient) Sign(ctx context.Context, in *CSRRequest, opts ...grpc.CallOption) (*CertificateResponse, error) { 537 out := new(CertificateResponse) 538 err := c.cc.Invoke(ctx, "/moc.cloudagent.security.CertificateAgent/Sign", in, out, opts...) 539 if err != nil { 540 return nil, err 541 } 542 return out, nil 543 } 544 545 func (c *certificateAgentClient) Renew(ctx context.Context, in *CSRRequest, opts ...grpc.CallOption) (*CertificateResponse, error) { 546 out := new(CertificateResponse) 547 err := c.cc.Invoke(ctx, "/moc.cloudagent.security.CertificateAgent/Renew", in, out, opts...) 548 if err != nil { 549 return nil, err 550 } 551 return out, nil 552 } 553 554 // CertificateAgentServer is the server API for CertificateAgent service. 555 type CertificateAgentServer interface { 556 CreateOrUpdate(context.Context, *CertificateRequest) (*CertificateResponse, error) 557 Get(context.Context, *CertificateRequest) (*CertificateResponse, error) 558 Delete(context.Context, *CertificateRequest) (*CertificateResponse, error) 559 Sign(context.Context, *CSRRequest) (*CertificateResponse, error) 560 Renew(context.Context, *CSRRequest) (*CertificateResponse, error) 561 } 562 563 // UnimplementedCertificateAgentServer can be embedded to have forward compatible implementations. 564 type UnimplementedCertificateAgentServer struct { 565 } 566 567 func (*UnimplementedCertificateAgentServer) CreateOrUpdate(ctx context.Context, req *CertificateRequest) (*CertificateResponse, error) { 568 return nil, status.Errorf(codes.Unimplemented, "method CreateOrUpdate not implemented") 569 } 570 func (*UnimplementedCertificateAgentServer) Get(ctx context.Context, req *CertificateRequest) (*CertificateResponse, error) { 571 return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") 572 } 573 func (*UnimplementedCertificateAgentServer) Delete(ctx context.Context, req *CertificateRequest) (*CertificateResponse, error) { 574 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") 575 } 576 func (*UnimplementedCertificateAgentServer) Sign(ctx context.Context, req *CSRRequest) (*CertificateResponse, error) { 577 return nil, status.Errorf(codes.Unimplemented, "method Sign not implemented") 578 } 579 func (*UnimplementedCertificateAgentServer) Renew(ctx context.Context, req *CSRRequest) (*CertificateResponse, error) { 580 return nil, status.Errorf(codes.Unimplemented, "method Renew not implemented") 581 } 582 583 func RegisterCertificateAgentServer(s *grpc.Server, srv CertificateAgentServer) { 584 s.RegisterService(&_CertificateAgent_serviceDesc, srv) 585 } 586 587 func _CertificateAgent_CreateOrUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 588 in := new(CertificateRequest) 589 if err := dec(in); err != nil { 590 return nil, err 591 } 592 if interceptor == nil { 593 return srv.(CertificateAgentServer).CreateOrUpdate(ctx, in) 594 } 595 info := &grpc.UnaryServerInfo{ 596 Server: srv, 597 FullMethod: "/moc.cloudagent.security.CertificateAgent/CreateOrUpdate", 598 } 599 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 600 return srv.(CertificateAgentServer).CreateOrUpdate(ctx, req.(*CertificateRequest)) 601 } 602 return interceptor(ctx, in, info, handler) 603 } 604 605 func _CertificateAgent_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 606 in := new(CertificateRequest) 607 if err := dec(in); err != nil { 608 return nil, err 609 } 610 if interceptor == nil { 611 return srv.(CertificateAgentServer).Get(ctx, in) 612 } 613 info := &grpc.UnaryServerInfo{ 614 Server: srv, 615 FullMethod: "/moc.cloudagent.security.CertificateAgent/Get", 616 } 617 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 618 return srv.(CertificateAgentServer).Get(ctx, req.(*CertificateRequest)) 619 } 620 return interceptor(ctx, in, info, handler) 621 } 622 623 func _CertificateAgent_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 624 in := new(CertificateRequest) 625 if err := dec(in); err != nil { 626 return nil, err 627 } 628 if interceptor == nil { 629 return srv.(CertificateAgentServer).Delete(ctx, in) 630 } 631 info := &grpc.UnaryServerInfo{ 632 Server: srv, 633 FullMethod: "/moc.cloudagent.security.CertificateAgent/Delete", 634 } 635 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 636 return srv.(CertificateAgentServer).Delete(ctx, req.(*CertificateRequest)) 637 } 638 return interceptor(ctx, in, info, handler) 639 } 640 641 func _CertificateAgent_Sign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 642 in := new(CSRRequest) 643 if err := dec(in); err != nil { 644 return nil, err 645 } 646 if interceptor == nil { 647 return srv.(CertificateAgentServer).Sign(ctx, in) 648 } 649 info := &grpc.UnaryServerInfo{ 650 Server: srv, 651 FullMethod: "/moc.cloudagent.security.CertificateAgent/Sign", 652 } 653 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 654 return srv.(CertificateAgentServer).Sign(ctx, req.(*CSRRequest)) 655 } 656 return interceptor(ctx, in, info, handler) 657 } 658 659 func _CertificateAgent_Renew_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 660 in := new(CSRRequest) 661 if err := dec(in); err != nil { 662 return nil, err 663 } 664 if interceptor == nil { 665 return srv.(CertificateAgentServer).Renew(ctx, in) 666 } 667 info := &grpc.UnaryServerInfo{ 668 Server: srv, 669 FullMethod: "/moc.cloudagent.security.CertificateAgent/Renew", 670 } 671 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 672 return srv.(CertificateAgentServer).Renew(ctx, req.(*CSRRequest)) 673 } 674 return interceptor(ctx, in, info, handler) 675 } 676 677 var _CertificateAgent_serviceDesc = grpc.ServiceDesc{ 678 ServiceName: "moc.cloudagent.security.CertificateAgent", 679 HandlerType: (*CertificateAgentServer)(nil), 680 Methods: []grpc.MethodDesc{ 681 { 682 MethodName: "CreateOrUpdate", 683 Handler: _CertificateAgent_CreateOrUpdate_Handler, 684 }, 685 { 686 MethodName: "Get", 687 Handler: _CertificateAgent_Get_Handler, 688 }, 689 { 690 MethodName: "Delete", 691 Handler: _CertificateAgent_Delete_Handler, 692 }, 693 { 694 MethodName: "Sign", 695 Handler: _CertificateAgent_Sign_Handler, 696 }, 697 { 698 MethodName: "Renew", 699 Handler: _CertificateAgent_Renew_Handler, 700 }, 701 }, 702 Streams: []grpc.StreamDesc{}, 703 Metadata: "moc_cloudagent_certificate.proto", 704 }