go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers-sdk/v1/upstream/upstream.pb.go (about) 1 // Copyright (c) Mondoo, Inc. 2 // SPDX-License-Identifier: BUSL-1.1 3 4 // Code generated by protoc-gen-go. DO NOT EDIT. 5 // versions: 6 // protoc-gen-go v1.31.0 7 // protoc v4.24.3 8 // source: upstream.proto 9 10 package upstream 11 12 import ( 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 type UpstreamConfig struct { 27 state protoimpl.MessageState 28 sizeCache protoimpl.SizeCache 29 unknownFields protoimpl.UnknownFields 30 31 AssetMrn string `protobuf:"bytes,1,opt,name=asset_mrn,json=assetMrn,proto3" json:"asset_mrn,omitempty"` 32 SpaceMrn string `protobuf:"bytes,2,opt,name=space_mrn,json=spaceMrn,proto3" json:"space_mrn,omitempty"` 33 ApiEndpoint string `protobuf:"bytes,3,opt,name=api_endpoint,json=apiEndpoint,proto3" json:"api_endpoint,omitempty"` 34 Incognito bool `protobuf:"varint,4,opt,name=incognito,proto3" json:"incognito,omitempty"` 35 Creds *ServiceAccountCredentials `protobuf:"bytes,5,opt,name=creds,proto3" json:"creds,omitempty"` 36 } 37 38 func (x *UpstreamConfig) Reset() { 39 *x = UpstreamConfig{} 40 if protoimpl.UnsafeEnabled { 41 mi := &file_upstream_proto_msgTypes[0] 42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 43 ms.StoreMessageInfo(mi) 44 } 45 } 46 47 func (x *UpstreamConfig) String() string { 48 return protoimpl.X.MessageStringOf(x) 49 } 50 51 func (*UpstreamConfig) ProtoMessage() {} 52 53 func (x *UpstreamConfig) ProtoReflect() protoreflect.Message { 54 mi := &file_upstream_proto_msgTypes[0] 55 if protoimpl.UnsafeEnabled && x != nil { 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 if ms.LoadMessageInfo() == nil { 58 ms.StoreMessageInfo(mi) 59 } 60 return ms 61 } 62 return mi.MessageOf(x) 63 } 64 65 // Deprecated: Use UpstreamConfig.ProtoReflect.Descriptor instead. 66 func (*UpstreamConfig) Descriptor() ([]byte, []int) { 67 return file_upstream_proto_rawDescGZIP(), []int{0} 68 } 69 70 func (x *UpstreamConfig) GetAssetMrn() string { 71 if x != nil { 72 return x.AssetMrn 73 } 74 return "" 75 } 76 77 func (x *UpstreamConfig) GetSpaceMrn() string { 78 if x != nil { 79 return x.SpaceMrn 80 } 81 return "" 82 } 83 84 func (x *UpstreamConfig) GetApiEndpoint() string { 85 if x != nil { 86 return x.ApiEndpoint 87 } 88 return "" 89 } 90 91 func (x *UpstreamConfig) GetIncognito() bool { 92 if x != nil { 93 return x.Incognito 94 } 95 return false 96 } 97 98 func (x *UpstreamConfig) GetCreds() *ServiceAccountCredentials { 99 if x != nil { 100 return x.Creds 101 } 102 return nil 103 } 104 105 type ServiceAccountCredentials struct { 106 state protoimpl.MessageState 107 sizeCache protoimpl.SizeCache 108 unknownFields protoimpl.UnknownFields 109 110 Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty"` 111 ParentMrn string `protobuf:"bytes,2,opt,name=parent_mrn,json=parentMrn,proto3" json:"parent_mrn,omitempty"` 112 PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` 113 Certificate string `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` 114 ApiEndpoint string `protobuf:"bytes,5,opt,name=api_endpoint,json=apiEndpoint,proto3" json:"api_endpoint,omitempty"` 115 } 116 117 func (x *ServiceAccountCredentials) Reset() { 118 *x = ServiceAccountCredentials{} 119 if protoimpl.UnsafeEnabled { 120 mi := &file_upstream_proto_msgTypes[1] 121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 122 ms.StoreMessageInfo(mi) 123 } 124 } 125 126 func (x *ServiceAccountCredentials) String() string { 127 return protoimpl.X.MessageStringOf(x) 128 } 129 130 func (*ServiceAccountCredentials) ProtoMessage() {} 131 132 func (x *ServiceAccountCredentials) ProtoReflect() protoreflect.Message { 133 mi := &file_upstream_proto_msgTypes[1] 134 if protoimpl.UnsafeEnabled && x != nil { 135 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 136 if ms.LoadMessageInfo() == nil { 137 ms.StoreMessageInfo(mi) 138 } 139 return ms 140 } 141 return mi.MessageOf(x) 142 } 143 144 // Deprecated: Use ServiceAccountCredentials.ProtoReflect.Descriptor instead. 145 func (*ServiceAccountCredentials) Descriptor() ([]byte, []int) { 146 return file_upstream_proto_rawDescGZIP(), []int{1} 147 } 148 149 func (x *ServiceAccountCredentials) GetMrn() string { 150 if x != nil { 151 return x.Mrn 152 } 153 return "" 154 } 155 156 func (x *ServiceAccountCredentials) GetParentMrn() string { 157 if x != nil { 158 return x.ParentMrn 159 } 160 return "" 161 } 162 163 func (x *ServiceAccountCredentials) GetPrivateKey() string { 164 if x != nil { 165 return x.PrivateKey 166 } 167 return "" 168 } 169 170 func (x *ServiceAccountCredentials) GetCertificate() string { 171 if x != nil { 172 return x.Certificate 173 } 174 return "" 175 } 176 177 func (x *ServiceAccountCredentials) GetApiEndpoint() string { 178 if x != nil { 179 return x.ApiEndpoint 180 } 181 return "" 182 } 183 184 type Ping struct { 185 state protoimpl.MessageState 186 sizeCache protoimpl.SizeCache 187 unknownFields protoimpl.UnknownFields 188 } 189 190 func (x *Ping) Reset() { 191 *x = Ping{} 192 if protoimpl.UnsafeEnabled { 193 mi := &file_upstream_proto_msgTypes[2] 194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 195 ms.StoreMessageInfo(mi) 196 } 197 } 198 199 func (x *Ping) String() string { 200 return protoimpl.X.MessageStringOf(x) 201 } 202 203 func (*Ping) ProtoMessage() {} 204 205 func (x *Ping) ProtoReflect() protoreflect.Message { 206 mi := &file_upstream_proto_msgTypes[2] 207 if protoimpl.UnsafeEnabled && x != nil { 208 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 209 if ms.LoadMessageInfo() == nil { 210 ms.StoreMessageInfo(mi) 211 } 212 return ms 213 } 214 return mi.MessageOf(x) 215 } 216 217 // Deprecated: Use Ping.ProtoReflect.Descriptor instead. 218 func (*Ping) Descriptor() ([]byte, []int) { 219 return file_upstream_proto_rawDescGZIP(), []int{2} 220 } 221 222 type Pong struct { 223 state protoimpl.MessageState 224 sizeCache protoimpl.SizeCache 225 unknownFields protoimpl.UnknownFields 226 } 227 228 func (x *Pong) Reset() { 229 *x = Pong{} 230 if protoimpl.UnsafeEnabled { 231 mi := &file_upstream_proto_msgTypes[3] 232 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 233 ms.StoreMessageInfo(mi) 234 } 235 } 236 237 func (x *Pong) String() string { 238 return protoimpl.X.MessageStringOf(x) 239 } 240 241 func (*Pong) ProtoMessage() {} 242 243 func (x *Pong) ProtoReflect() protoreflect.Message { 244 mi := &file_upstream_proto_msgTypes[3] 245 if protoimpl.UnsafeEnabled && x != nil { 246 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 247 if ms.LoadMessageInfo() == nil { 248 ms.StoreMessageInfo(mi) 249 } 250 return ms 251 } 252 return mi.MessageOf(x) 253 } 254 255 // Deprecated: Use Pong.ProtoReflect.Descriptor instead. 256 func (*Pong) Descriptor() ([]byte, []int) { 257 return file_upstream_proto_rawDescGZIP(), []int{3} 258 } 259 260 type AgentRegistrationRequest struct { 261 state protoimpl.MessageState 262 sizeCache protoimpl.SizeCache 263 unknownFields protoimpl.UnknownFields 264 265 Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` 266 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 267 AgentInfo *AgentInfo `protobuf:"bytes,3,opt,name=agent_info,json=agentInfo,proto3" json:"agent_info,omitempty"` 268 } 269 270 func (x *AgentRegistrationRequest) Reset() { 271 *x = AgentRegistrationRequest{} 272 if protoimpl.UnsafeEnabled { 273 mi := &file_upstream_proto_msgTypes[4] 274 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 275 ms.StoreMessageInfo(mi) 276 } 277 } 278 279 func (x *AgentRegistrationRequest) String() string { 280 return protoimpl.X.MessageStringOf(x) 281 } 282 283 func (*AgentRegistrationRequest) ProtoMessage() {} 284 285 func (x *AgentRegistrationRequest) ProtoReflect() protoreflect.Message { 286 mi := &file_upstream_proto_msgTypes[4] 287 if protoimpl.UnsafeEnabled && x != nil { 288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 289 if ms.LoadMessageInfo() == nil { 290 ms.StoreMessageInfo(mi) 291 } 292 return ms 293 } 294 return mi.MessageOf(x) 295 } 296 297 // Deprecated: Use AgentRegistrationRequest.ProtoReflect.Descriptor instead. 298 func (*AgentRegistrationRequest) Descriptor() ([]byte, []int) { 299 return file_upstream_proto_rawDescGZIP(), []int{4} 300 } 301 302 func (x *AgentRegistrationRequest) GetToken() string { 303 if x != nil { 304 return x.Token 305 } 306 return "" 307 } 308 309 func (x *AgentRegistrationRequest) GetName() string { 310 if x != nil { 311 return x.Name 312 } 313 return "" 314 } 315 316 func (x *AgentRegistrationRequest) GetAgentInfo() *AgentInfo { 317 if x != nil { 318 return x.AgentInfo 319 } 320 return nil 321 } 322 323 type AgentInfo struct { 324 state protoimpl.MessageState 325 sizeCache protoimpl.SizeCache 326 unknownFields protoimpl.UnknownFields 327 328 Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty"` 329 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 330 Build string `protobuf:"bytes,3,opt,name=build,proto3" json:"build,omitempty"` 331 PlatformName string `protobuf:"bytes,4,opt,name=platform_name,json=platformName,proto3" json:"platform_name,omitempty"` 332 PlatformRelease string `protobuf:"bytes,5,opt,name=platform_release,json=platformRelease,proto3" json:"platform_release,omitempty"` 333 PlatformArch string `protobuf:"bytes,6,opt,name=platform_arch,json=platformArch,proto3" json:"platform_arch,omitempty"` 334 PlatformIp string `protobuf:"bytes,7,opt,name=platform_ip,json=platformIp,proto3" json:"platform_ip,omitempty"` 335 PlatformHostname string `protobuf:"bytes,8,opt,name=platform_hostname,json=platformHostname,proto3" json:"platform_hostname,omitempty"` 336 Labels map[string]string `protobuf:"bytes,18,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 337 PlatformId string `protobuf:"bytes,20,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"` 338 } 339 340 func (x *AgentInfo) Reset() { 341 *x = AgentInfo{} 342 if protoimpl.UnsafeEnabled { 343 mi := &file_upstream_proto_msgTypes[5] 344 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 345 ms.StoreMessageInfo(mi) 346 } 347 } 348 349 func (x *AgentInfo) String() string { 350 return protoimpl.X.MessageStringOf(x) 351 } 352 353 func (*AgentInfo) ProtoMessage() {} 354 355 func (x *AgentInfo) ProtoReflect() protoreflect.Message { 356 mi := &file_upstream_proto_msgTypes[5] 357 if protoimpl.UnsafeEnabled && x != nil { 358 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 359 if ms.LoadMessageInfo() == nil { 360 ms.StoreMessageInfo(mi) 361 } 362 return ms 363 } 364 return mi.MessageOf(x) 365 } 366 367 // Deprecated: Use AgentInfo.ProtoReflect.Descriptor instead. 368 func (*AgentInfo) Descriptor() ([]byte, []int) { 369 return file_upstream_proto_rawDescGZIP(), []int{5} 370 } 371 372 func (x *AgentInfo) GetMrn() string { 373 if x != nil { 374 return x.Mrn 375 } 376 return "" 377 } 378 379 func (x *AgentInfo) GetVersion() string { 380 if x != nil { 381 return x.Version 382 } 383 return "" 384 } 385 386 func (x *AgentInfo) GetBuild() string { 387 if x != nil { 388 return x.Build 389 } 390 return "" 391 } 392 393 func (x *AgentInfo) GetPlatformName() string { 394 if x != nil { 395 return x.PlatformName 396 } 397 return "" 398 } 399 400 func (x *AgentInfo) GetPlatformRelease() string { 401 if x != nil { 402 return x.PlatformRelease 403 } 404 return "" 405 } 406 407 func (x *AgentInfo) GetPlatformArch() string { 408 if x != nil { 409 return x.PlatformArch 410 } 411 return "" 412 } 413 414 func (x *AgentInfo) GetPlatformIp() string { 415 if x != nil { 416 return x.PlatformIp 417 } 418 return "" 419 } 420 421 func (x *AgentInfo) GetPlatformHostname() string { 422 if x != nil { 423 return x.PlatformHostname 424 } 425 return "" 426 } 427 428 func (x *AgentInfo) GetLabels() map[string]string { 429 if x != nil { 430 return x.Labels 431 } 432 return nil 433 } 434 435 func (x *AgentInfo) GetPlatformId() string { 436 if x != nil { 437 return x.PlatformId 438 } 439 return "" 440 } 441 442 type AgentRegistrationConfirmation struct { 443 state protoimpl.MessageState 444 sizeCache protoimpl.SizeCache 445 unknownFields protoimpl.UnknownFields 446 447 AgentMrn string `protobuf:"bytes,1,opt,name=agent_mrn,json=agentMrn,proto3" json:"agent_mrn,omitempty"` 448 Credential *ServiceAccountCredentials `protobuf:"bytes,2,opt,name=credential,proto3" json:"credential,omitempty"` 449 } 450 451 func (x *AgentRegistrationConfirmation) Reset() { 452 *x = AgentRegistrationConfirmation{} 453 if protoimpl.UnsafeEnabled { 454 mi := &file_upstream_proto_msgTypes[6] 455 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 456 ms.StoreMessageInfo(mi) 457 } 458 } 459 460 func (x *AgentRegistrationConfirmation) String() string { 461 return protoimpl.X.MessageStringOf(x) 462 } 463 464 func (*AgentRegistrationConfirmation) ProtoMessage() {} 465 466 func (x *AgentRegistrationConfirmation) ProtoReflect() protoreflect.Message { 467 mi := &file_upstream_proto_msgTypes[6] 468 if protoimpl.UnsafeEnabled && x != nil { 469 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 470 if ms.LoadMessageInfo() == nil { 471 ms.StoreMessageInfo(mi) 472 } 473 return ms 474 } 475 return mi.MessageOf(x) 476 } 477 478 // Deprecated: Use AgentRegistrationConfirmation.ProtoReflect.Descriptor instead. 479 func (*AgentRegistrationConfirmation) Descriptor() ([]byte, []int) { 480 return file_upstream_proto_rawDescGZIP(), []int{6} 481 } 482 483 func (x *AgentRegistrationConfirmation) GetAgentMrn() string { 484 if x != nil { 485 return x.AgentMrn 486 } 487 return "" 488 } 489 490 func (x *AgentRegistrationConfirmation) GetCredential() *ServiceAccountCredentials { 491 if x != nil { 492 return x.Credential 493 } 494 return nil 495 } 496 497 type Mrn struct { 498 state protoimpl.MessageState 499 sizeCache protoimpl.SizeCache 500 unknownFields protoimpl.UnknownFields 501 502 Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty"` 503 } 504 505 func (x *Mrn) Reset() { 506 *x = Mrn{} 507 if protoimpl.UnsafeEnabled { 508 mi := &file_upstream_proto_msgTypes[7] 509 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 510 ms.StoreMessageInfo(mi) 511 } 512 } 513 514 func (x *Mrn) String() string { 515 return protoimpl.X.MessageStringOf(x) 516 } 517 518 func (*Mrn) ProtoMessage() {} 519 520 func (x *Mrn) ProtoReflect() protoreflect.Message { 521 mi := &file_upstream_proto_msgTypes[7] 522 if protoimpl.UnsafeEnabled && x != nil { 523 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 524 if ms.LoadMessageInfo() == nil { 525 ms.StoreMessageInfo(mi) 526 } 527 return ms 528 } 529 return mi.MessageOf(x) 530 } 531 532 // Deprecated: Use Mrn.ProtoReflect.Descriptor instead. 533 func (*Mrn) Descriptor() ([]byte, []int) { 534 return file_upstream_proto_rawDescGZIP(), []int{7} 535 } 536 537 func (x *Mrn) GetMrn() string { 538 if x != nil { 539 return x.Mrn 540 } 541 return "" 542 } 543 544 type Confirmation struct { 545 state protoimpl.MessageState 546 sizeCache protoimpl.SizeCache 547 unknownFields protoimpl.UnknownFields 548 549 Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty"` 550 } 551 552 func (x *Confirmation) Reset() { 553 *x = Confirmation{} 554 if protoimpl.UnsafeEnabled { 555 mi := &file_upstream_proto_msgTypes[8] 556 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 557 ms.StoreMessageInfo(mi) 558 } 559 } 560 561 func (x *Confirmation) String() string { 562 return protoimpl.X.MessageStringOf(x) 563 } 564 565 func (*Confirmation) ProtoMessage() {} 566 567 func (x *Confirmation) ProtoReflect() protoreflect.Message { 568 mi := &file_upstream_proto_msgTypes[8] 569 if protoimpl.UnsafeEnabled && x != nil { 570 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 571 if ms.LoadMessageInfo() == nil { 572 ms.StoreMessageInfo(mi) 573 } 574 return ms 575 } 576 return mi.MessageOf(x) 577 } 578 579 // Deprecated: Use Confirmation.ProtoReflect.Descriptor instead. 580 func (*Confirmation) Descriptor() ([]byte, []int) { 581 return file_upstream_proto_rawDescGZIP(), []int{8} 582 } 583 584 func (x *Confirmation) GetMrn() string { 585 if x != nil { 586 return x.Mrn 587 } 588 return "" 589 } 590 591 type ExchangeSSHKeyRequest struct { 592 state protoimpl.MessageState 593 sizeCache protoimpl.SizeCache 594 unknownFields protoimpl.UnknownFields 595 596 Claims *Claims `protobuf:"bytes,1,opt,name=claims,proto3" json:"claims,omitempty"` 597 Signatures []*SshSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` 598 } 599 600 func (x *ExchangeSSHKeyRequest) Reset() { 601 *x = ExchangeSSHKeyRequest{} 602 if protoimpl.UnsafeEnabled { 603 mi := &file_upstream_proto_msgTypes[9] 604 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 605 ms.StoreMessageInfo(mi) 606 } 607 } 608 609 func (x *ExchangeSSHKeyRequest) String() string { 610 return protoimpl.X.MessageStringOf(x) 611 } 612 613 func (*ExchangeSSHKeyRequest) ProtoMessage() {} 614 615 func (x *ExchangeSSHKeyRequest) ProtoReflect() protoreflect.Message { 616 mi := &file_upstream_proto_msgTypes[9] 617 if protoimpl.UnsafeEnabled && x != nil { 618 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 619 if ms.LoadMessageInfo() == nil { 620 ms.StoreMessageInfo(mi) 621 } 622 return ms 623 } 624 return mi.MessageOf(x) 625 } 626 627 // Deprecated: Use ExchangeSSHKeyRequest.ProtoReflect.Descriptor instead. 628 func (*ExchangeSSHKeyRequest) Descriptor() ([]byte, []int) { 629 return file_upstream_proto_rawDescGZIP(), []int{9} 630 } 631 632 func (x *ExchangeSSHKeyRequest) GetClaims() *Claims { 633 if x != nil { 634 return x.Claims 635 } 636 return nil 637 } 638 639 func (x *ExchangeSSHKeyRequest) GetSignatures() []*SshSignature { 640 if x != nil { 641 return x.Signatures 642 } 643 return nil 644 } 645 646 type ExchangeSSHKeyResponse struct { 647 state protoimpl.MessageState 648 sizeCache protoimpl.SizeCache 649 unknownFields protoimpl.UnknownFields 650 651 Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty"` 652 ParentMrn string `protobuf:"bytes,2,opt,name=parent_mrn,json=parentMrn,proto3" json:"parent_mrn,omitempty"` 653 PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` 654 Certificate string `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` 655 ApiEndpoint string `protobuf:"bytes,5,opt,name=api_endpoint,json=apiEndpoint,proto3" json:"api_endpoint,omitempty"` 656 } 657 658 func (x *ExchangeSSHKeyResponse) Reset() { 659 *x = ExchangeSSHKeyResponse{} 660 if protoimpl.UnsafeEnabled { 661 mi := &file_upstream_proto_msgTypes[10] 662 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 663 ms.StoreMessageInfo(mi) 664 } 665 } 666 667 func (x *ExchangeSSHKeyResponse) String() string { 668 return protoimpl.X.MessageStringOf(x) 669 } 670 671 func (*ExchangeSSHKeyResponse) ProtoMessage() {} 672 673 func (x *ExchangeSSHKeyResponse) ProtoReflect() protoreflect.Message { 674 mi := &file_upstream_proto_msgTypes[10] 675 if protoimpl.UnsafeEnabled && x != nil { 676 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 677 if ms.LoadMessageInfo() == nil { 678 ms.StoreMessageInfo(mi) 679 } 680 return ms 681 } 682 return mi.MessageOf(x) 683 } 684 685 // Deprecated: Use ExchangeSSHKeyResponse.ProtoReflect.Descriptor instead. 686 func (*ExchangeSSHKeyResponse) Descriptor() ([]byte, []int) { 687 return file_upstream_proto_rawDescGZIP(), []int{10} 688 } 689 690 func (x *ExchangeSSHKeyResponse) GetMrn() string { 691 if x != nil { 692 return x.Mrn 693 } 694 return "" 695 } 696 697 func (x *ExchangeSSHKeyResponse) GetParentMrn() string { 698 if x != nil { 699 return x.ParentMrn 700 } 701 return "" 702 } 703 704 func (x *ExchangeSSHKeyResponse) GetPrivateKey() string { 705 if x != nil { 706 return x.PrivateKey 707 } 708 return "" 709 } 710 711 func (x *ExchangeSSHKeyResponse) GetCertificate() string { 712 if x != nil { 713 return x.Certificate 714 } 715 return "" 716 } 717 718 func (x *ExchangeSSHKeyResponse) GetApiEndpoint() string { 719 if x != nil { 720 return x.ApiEndpoint 721 } 722 return "" 723 } 724 725 // Claims follow https://datatracker.ietf.org/doc/html/rfc8693#section-2.1 726 type Claims struct { 727 state protoimpl.MessageState 728 sizeCache protoimpl.SizeCache 729 unknownFields protoimpl.UnknownFields 730 731 Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` 732 // NumericDate as defined in RFC 7519, which uses RFC 3339 733 Exp string `protobuf:"bytes,2,opt,name=exp,proto3" json:"exp,omitempty"` 734 // NumericDate as defined in RFC 7519, which uses RFC 3339 735 Iat string `protobuf:"bytes,3,opt,name=iat,proto3" json:"iat,omitempty"` 736 Resource string `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"` 737 } 738 739 func (x *Claims) Reset() { 740 *x = Claims{} 741 if protoimpl.UnsafeEnabled { 742 mi := &file_upstream_proto_msgTypes[11] 743 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 744 ms.StoreMessageInfo(mi) 745 } 746 } 747 748 func (x *Claims) String() string { 749 return protoimpl.X.MessageStringOf(x) 750 } 751 752 func (*Claims) ProtoMessage() {} 753 754 func (x *Claims) ProtoReflect() protoreflect.Message { 755 mi := &file_upstream_proto_msgTypes[11] 756 if protoimpl.UnsafeEnabled && x != nil { 757 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 758 if ms.LoadMessageInfo() == nil { 759 ms.StoreMessageInfo(mi) 760 } 761 return ms 762 } 763 return mi.MessageOf(x) 764 } 765 766 // Deprecated: Use Claims.ProtoReflect.Descriptor instead. 767 func (*Claims) Descriptor() ([]byte, []int) { 768 return file_upstream_proto_rawDescGZIP(), []int{11} 769 } 770 771 func (x *Claims) GetSubject() string { 772 if x != nil { 773 return x.Subject 774 } 775 return "" 776 } 777 778 func (x *Claims) GetExp() string { 779 if x != nil { 780 return x.Exp 781 } 782 return "" 783 } 784 785 func (x *Claims) GetIat() string { 786 if x != nil { 787 return x.Iat 788 } 789 return "" 790 } 791 792 func (x *Claims) GetResource() string { 793 if x != nil { 794 return x.Resource 795 } 796 return "" 797 } 798 799 type SshSignature struct { 800 state protoimpl.MessageState 801 sizeCache protoimpl.SizeCache 802 unknownFields protoimpl.UnknownFields 803 804 Alg string `protobuf:"bytes,1,opt,name=alg,proto3" json:"alg,omitempty"` 805 Kid string `protobuf:"bytes,2,opt,name=kid,proto3" json:"kid,omitempty"` 806 Sig string `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"` 807 } 808 809 func (x *SshSignature) Reset() { 810 *x = SshSignature{} 811 if protoimpl.UnsafeEnabled { 812 mi := &file_upstream_proto_msgTypes[12] 813 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 814 ms.StoreMessageInfo(mi) 815 } 816 } 817 818 func (x *SshSignature) String() string { 819 return protoimpl.X.MessageStringOf(x) 820 } 821 822 func (*SshSignature) ProtoMessage() {} 823 824 func (x *SshSignature) ProtoReflect() protoreflect.Message { 825 mi := &file_upstream_proto_msgTypes[12] 826 if protoimpl.UnsafeEnabled && x != nil { 827 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 828 if ms.LoadMessageInfo() == nil { 829 ms.StoreMessageInfo(mi) 830 } 831 return ms 832 } 833 return mi.MessageOf(x) 834 } 835 836 // Deprecated: Use SshSignature.ProtoReflect.Descriptor instead. 837 func (*SshSignature) Descriptor() ([]byte, []int) { 838 return file_upstream_proto_rawDescGZIP(), []int{12} 839 } 840 841 func (x *SshSignature) GetAlg() string { 842 if x != nil { 843 return x.Alg 844 } 845 return "" 846 } 847 848 func (x *SshSignature) GetKid() string { 849 if x != nil { 850 return x.Kid 851 } 852 return "" 853 } 854 855 func (x *SshSignature) GetSig() string { 856 if x != nil { 857 return x.Sig 858 } 859 return "" 860 } 861 862 var File_upstream_proto protoreflect.FileDescriptor 863 864 var file_upstream_proto_rawDesc = []byte{ 865 0x0a, 0x0e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 866 0x12, 0x1a, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 867 0x2e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x22, 0xd8, 0x01, 0x0a, 868 0x0e, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 869 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x6d, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 870 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x4d, 0x72, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 871 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x6d, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 872 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x72, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x70, 0x69, 873 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 874 0x0b, 0x61, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 875 0x69, 0x6e, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 876 0x09, 0x69, 0x6e, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x74, 0x6f, 0x12, 0x4b, 0x0a, 0x05, 0x63, 0x72, 877 0x65, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 878 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x75, 0x70, 0x73, 0x74, 0x72, 879 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 880 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 881 0x52, 0x05, 0x63, 0x72, 0x65, 0x64, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x19, 0x53, 0x65, 0x72, 0x76, 882 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 883 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 884 0x28, 0x09, 0x52, 0x03, 0x6d, 0x72, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 885 0x74, 0x5f, 0x6d, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 886 0x65, 0x6e, 0x74, 0x4d, 0x72, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 887 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 888 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 889 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x65, 890 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x70, 0x69, 891 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 892 0x0b, 0x61, 0x70, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x06, 0x0a, 0x04, 893 0x50, 0x69, 0x6e, 0x67, 0x22, 0x06, 0x0a, 0x04, 0x50, 0x6f, 0x6e, 0x67, 0x22, 0x8a, 0x01, 0x0a, 894 0x18, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 895 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 896 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 897 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 898 0x61, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 899 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 900 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 901 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 902 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xb7, 0x03, 0x0a, 0x09, 0x41, 0x67, 903 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x72, 0x6e, 0x18, 0x01, 904 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x72, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 905 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 906 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 907 0x28, 0x09, 0x52, 0x05, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 908 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 909 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 910 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x72, 0x65, 0x6c, 0x65, 0x61, 911 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 912 0x72, 0x6d, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 913 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 914 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x41, 0x72, 0x63, 0x68, 0x12, 0x1f, 915 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x69, 0x70, 0x18, 0x07, 0x20, 916 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x70, 0x12, 917 0x2b, 0x0a, 0x11, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x68, 0x6f, 0x73, 0x74, 918 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x6c, 0x61, 0x74, 919 0x66, 0x6f, 0x72, 0x6d, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x06, 920 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x6d, 921 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x75, 0x70, 922 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 923 0x6e, 0x66, 0x6f, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 924 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x74, 0x66, 925 0x6f, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6c, 926 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 927 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 928 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 929 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 930 0x02, 0x38, 0x01, 0x22, 0x93, 0x01, 0x0a, 0x1d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x67, 931 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 932 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 933 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x4d, 934 0x72, 0x6e, 0x12, 0x55, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 935 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 936 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 937 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 938 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x0a, 0x63, 939 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x17, 0x0a, 0x03, 0x4d, 0x72, 0x6e, 940 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 941 0x72, 0x6e, 0x22, 0x20, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 942 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 943 0x03, 0x6d, 0x72, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x15, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 944 0x65, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 945 0x0a, 0x06, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 946 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 947 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x61, 0x69, 948 0x6d, 0x73, 0x52, 0x06, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x12, 0x48, 0x0a, 0x0a, 0x73, 0x69, 949 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 950 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 951 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x73, 0x68, 0x53, 952 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 953 0x75, 0x72, 0x65, 0x73, 0x22, 0xaf, 0x01, 0x0a, 0x16, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 954 0x65, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 955 0x10, 0x0a, 0x03, 0x6d, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x72, 956 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x72, 0x6e, 0x18, 957 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x72, 0x6e, 958 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 959 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 960 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 961 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 962 0x61, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x70, 0x69, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 963 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x70, 0x69, 0x45, 0x6e, 964 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x62, 0x0a, 0x06, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 965 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 966 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 967 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12, 0x10, 0x0a, 0x03, 968 0x69, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x61, 0x74, 0x12, 0x1a, 969 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 970 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x44, 0x0a, 0x0c, 0x53, 0x73, 971 0x68, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6c, 972 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x6c, 0x67, 0x12, 0x10, 0x0a, 0x03, 973 0x6b, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x69, 0x64, 0x12, 0x10, 974 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x69, 0x67, 975 0x32, 0xbf, 0x02, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 976 0x72, 0x12, 0x80, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 977 0x65, 0x6e, 0x74, 0x12, 0x34, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 978 0x75, 0x65, 0x72, 0x79, 0x2e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 979 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 980 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 981 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x75, 0x70, 0x73, 0x74, 0x72, 982 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x69, 983 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 984 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5c, 0x0a, 0x0f, 0x55, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 985 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 986 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 987 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x72, 0x6e, 0x1a, 0x28, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 988 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 989 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 990 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x08, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6e, 0x67, 0x12, 0x20, 991 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 992 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x69, 0x6e, 0x67, 993 0x1a, 0x20, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 994 0x79, 0x2e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 995 0x6e, 0x67, 0x32, 0x8c, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x63, 0x75, 0x72, 0x65, 0x54, 0x6f, 0x6b, 996 0x65, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x76, 0x0a, 0x0b, 0x45, 0x78, 0x63, 997 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x53, 0x48, 0x12, 0x31, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 998 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 999 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x53, 1000 0x48, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6d, 0x6f, 1001 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x75, 0x70, 0x73, 1002 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 1003 0x65, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 1004 0x00, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x6f, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 1005 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 1006 0x64, 0x65, 0x72, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x70, 0x73, 0x74, 1007 0x72, 0x65, 0x61, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 1008 } 1009 1010 var ( 1011 file_upstream_proto_rawDescOnce sync.Once 1012 file_upstream_proto_rawDescData = file_upstream_proto_rawDesc 1013 ) 1014 1015 func file_upstream_proto_rawDescGZIP() []byte { 1016 file_upstream_proto_rawDescOnce.Do(func() { 1017 file_upstream_proto_rawDescData = protoimpl.X.CompressGZIP(file_upstream_proto_rawDescData) 1018 }) 1019 return file_upstream_proto_rawDescData 1020 } 1021 1022 var file_upstream_proto_msgTypes = make([]protoimpl.MessageInfo, 14) 1023 var file_upstream_proto_goTypes = []interface{}{ 1024 (*UpstreamConfig)(nil), // 0: mondoo.cnquery.upstream.v1.UpstreamConfig 1025 (*ServiceAccountCredentials)(nil), // 1: mondoo.cnquery.upstream.v1.ServiceAccountCredentials 1026 (*Ping)(nil), // 2: mondoo.cnquery.upstream.v1.Ping 1027 (*Pong)(nil), // 3: mondoo.cnquery.upstream.v1.Pong 1028 (*AgentRegistrationRequest)(nil), // 4: mondoo.cnquery.upstream.v1.AgentRegistrationRequest 1029 (*AgentInfo)(nil), // 5: mondoo.cnquery.upstream.v1.AgentInfo 1030 (*AgentRegistrationConfirmation)(nil), // 6: mondoo.cnquery.upstream.v1.AgentRegistrationConfirmation 1031 (*Mrn)(nil), // 7: mondoo.cnquery.upstream.v1.Mrn 1032 (*Confirmation)(nil), // 8: mondoo.cnquery.upstream.v1.Confirmation 1033 (*ExchangeSSHKeyRequest)(nil), // 9: mondoo.cnquery.upstream.v1.ExchangeSSHKeyRequest 1034 (*ExchangeSSHKeyResponse)(nil), // 10: mondoo.cnquery.upstream.v1.ExchangeSSHKeyResponse 1035 (*Claims)(nil), // 11: mondoo.cnquery.upstream.v1.Claims 1036 (*SshSignature)(nil), // 12: mondoo.cnquery.upstream.v1.SshSignature 1037 nil, // 13: mondoo.cnquery.upstream.v1.AgentInfo.LabelsEntry 1038 } 1039 var file_upstream_proto_depIdxs = []int32{ 1040 1, // 0: mondoo.cnquery.upstream.v1.UpstreamConfig.creds:type_name -> mondoo.cnquery.upstream.v1.ServiceAccountCredentials 1041 5, // 1: mondoo.cnquery.upstream.v1.AgentRegistrationRequest.agent_info:type_name -> mondoo.cnquery.upstream.v1.AgentInfo 1042 13, // 2: mondoo.cnquery.upstream.v1.AgentInfo.labels:type_name -> mondoo.cnquery.upstream.v1.AgentInfo.LabelsEntry 1043 1, // 3: mondoo.cnquery.upstream.v1.AgentRegistrationConfirmation.credential:type_name -> mondoo.cnquery.upstream.v1.ServiceAccountCredentials 1044 11, // 4: mondoo.cnquery.upstream.v1.ExchangeSSHKeyRequest.claims:type_name -> mondoo.cnquery.upstream.v1.Claims 1045 12, // 5: mondoo.cnquery.upstream.v1.ExchangeSSHKeyRequest.signatures:type_name -> mondoo.cnquery.upstream.v1.SshSignature 1046 4, // 6: mondoo.cnquery.upstream.v1.AgentManager.RegisterAgent:input_type -> mondoo.cnquery.upstream.v1.AgentRegistrationRequest 1047 7, // 7: mondoo.cnquery.upstream.v1.AgentManager.UnRegisterAgent:input_type -> mondoo.cnquery.upstream.v1.Mrn 1048 2, // 8: mondoo.cnquery.upstream.v1.AgentManager.PingPong:input_type -> mondoo.cnquery.upstream.v1.Ping 1049 9, // 9: mondoo.cnquery.upstream.v1.SecureTokenService.ExchangeSSH:input_type -> mondoo.cnquery.upstream.v1.ExchangeSSHKeyRequest 1050 6, // 10: mondoo.cnquery.upstream.v1.AgentManager.RegisterAgent:output_type -> mondoo.cnquery.upstream.v1.AgentRegistrationConfirmation 1051 8, // 11: mondoo.cnquery.upstream.v1.AgentManager.UnRegisterAgent:output_type -> mondoo.cnquery.upstream.v1.Confirmation 1052 3, // 12: mondoo.cnquery.upstream.v1.AgentManager.PingPong:output_type -> mondoo.cnquery.upstream.v1.Pong 1053 10, // 13: mondoo.cnquery.upstream.v1.SecureTokenService.ExchangeSSH:output_type -> mondoo.cnquery.upstream.v1.ExchangeSSHKeyResponse 1054 10, // [10:14] is the sub-list for method output_type 1055 6, // [6:10] is the sub-list for method input_type 1056 6, // [6:6] is the sub-list for extension type_name 1057 6, // [6:6] is the sub-list for extension extendee 1058 0, // [0:6] is the sub-list for field type_name 1059 } 1060 1061 func init() { file_upstream_proto_init() } 1062 func file_upstream_proto_init() { 1063 if File_upstream_proto != nil { 1064 return 1065 } 1066 if !protoimpl.UnsafeEnabled { 1067 file_upstream_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1068 switch v := v.(*UpstreamConfig); i { 1069 case 0: 1070 return &v.state 1071 case 1: 1072 return &v.sizeCache 1073 case 2: 1074 return &v.unknownFields 1075 default: 1076 return nil 1077 } 1078 } 1079 file_upstream_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1080 switch v := v.(*ServiceAccountCredentials); i { 1081 case 0: 1082 return &v.state 1083 case 1: 1084 return &v.sizeCache 1085 case 2: 1086 return &v.unknownFields 1087 default: 1088 return nil 1089 } 1090 } 1091 file_upstream_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1092 switch v := v.(*Ping); i { 1093 case 0: 1094 return &v.state 1095 case 1: 1096 return &v.sizeCache 1097 case 2: 1098 return &v.unknownFields 1099 default: 1100 return nil 1101 } 1102 } 1103 file_upstream_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1104 switch v := v.(*Pong); i { 1105 case 0: 1106 return &v.state 1107 case 1: 1108 return &v.sizeCache 1109 case 2: 1110 return &v.unknownFields 1111 default: 1112 return nil 1113 } 1114 } 1115 file_upstream_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1116 switch v := v.(*AgentRegistrationRequest); i { 1117 case 0: 1118 return &v.state 1119 case 1: 1120 return &v.sizeCache 1121 case 2: 1122 return &v.unknownFields 1123 default: 1124 return nil 1125 } 1126 } 1127 file_upstream_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1128 switch v := v.(*AgentInfo); i { 1129 case 0: 1130 return &v.state 1131 case 1: 1132 return &v.sizeCache 1133 case 2: 1134 return &v.unknownFields 1135 default: 1136 return nil 1137 } 1138 } 1139 file_upstream_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1140 switch v := v.(*AgentRegistrationConfirmation); i { 1141 case 0: 1142 return &v.state 1143 case 1: 1144 return &v.sizeCache 1145 case 2: 1146 return &v.unknownFields 1147 default: 1148 return nil 1149 } 1150 } 1151 file_upstream_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1152 switch v := v.(*Mrn); i { 1153 case 0: 1154 return &v.state 1155 case 1: 1156 return &v.sizeCache 1157 case 2: 1158 return &v.unknownFields 1159 default: 1160 return nil 1161 } 1162 } 1163 file_upstream_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1164 switch v := v.(*Confirmation); i { 1165 case 0: 1166 return &v.state 1167 case 1: 1168 return &v.sizeCache 1169 case 2: 1170 return &v.unknownFields 1171 default: 1172 return nil 1173 } 1174 } 1175 file_upstream_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1176 switch v := v.(*ExchangeSSHKeyRequest); i { 1177 case 0: 1178 return &v.state 1179 case 1: 1180 return &v.sizeCache 1181 case 2: 1182 return &v.unknownFields 1183 default: 1184 return nil 1185 } 1186 } 1187 file_upstream_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1188 switch v := v.(*ExchangeSSHKeyResponse); i { 1189 case 0: 1190 return &v.state 1191 case 1: 1192 return &v.sizeCache 1193 case 2: 1194 return &v.unknownFields 1195 default: 1196 return nil 1197 } 1198 } 1199 file_upstream_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1200 switch v := v.(*Claims); i { 1201 case 0: 1202 return &v.state 1203 case 1: 1204 return &v.sizeCache 1205 case 2: 1206 return &v.unknownFields 1207 default: 1208 return nil 1209 } 1210 } 1211 file_upstream_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1212 switch v := v.(*SshSignature); i { 1213 case 0: 1214 return &v.state 1215 case 1: 1216 return &v.sizeCache 1217 case 2: 1218 return &v.unknownFields 1219 default: 1220 return nil 1221 } 1222 } 1223 } 1224 type x struct{} 1225 out := protoimpl.TypeBuilder{ 1226 File: protoimpl.DescBuilder{ 1227 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1228 RawDescriptor: file_upstream_proto_rawDesc, 1229 NumEnums: 0, 1230 NumMessages: 14, 1231 NumExtensions: 0, 1232 NumServices: 2, 1233 }, 1234 GoTypes: file_upstream_proto_goTypes, 1235 DependencyIndexes: file_upstream_proto_depIdxs, 1236 MessageInfos: file_upstream_proto_msgTypes, 1237 }.Build() 1238 File_upstream_proto = out.File 1239 file_upstream_proto_rawDesc = nil 1240 file_upstream_proto_goTypes = nil 1241 file_upstream_proto_depIdxs = nil 1242 }