go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers-sdk/v1/vault/vault.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: vault.proto 9 10 package vault 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 CredentialType int32 27 28 const ( 29 CredentialType_undefined CredentialType = 0 30 CredentialType_password CredentialType = 1 31 CredentialType_private_key CredentialType = 2 32 CredentialType_ssh_agent CredentialType = 3 33 CredentialType_bearer CredentialType = 4 34 CredentialType_credentials_query CredentialType = 5 35 CredentialType_json CredentialType = 6 36 CredentialType_aws_ec2_instance_connect CredentialType = 7 37 CredentialType_aws_ec2_ssm_session CredentialType = 8 38 CredentialType_pkcs12 CredentialType = 9 39 ) 40 41 // Enum value maps for CredentialType. 42 var ( 43 CredentialType_name = map[int32]string{ 44 0: "undefined", 45 1: "password", 46 2: "private_key", 47 3: "ssh_agent", 48 4: "bearer", 49 5: "credentials_query", 50 6: "json", 51 7: "aws_ec2_instance_connect", 52 8: "aws_ec2_ssm_session", 53 9: "pkcs12", 54 } 55 CredentialType_value = map[string]int32{ 56 "undefined": 0, 57 "password": 1, 58 "private_key": 2, 59 "ssh_agent": 3, 60 "bearer": 4, 61 "credentials_query": 5, 62 "json": 6, 63 "aws_ec2_instance_connect": 7, 64 "aws_ec2_ssm_session": 8, 65 "pkcs12": 9, 66 } 67 ) 68 69 func (x CredentialType) Enum() *CredentialType { 70 p := new(CredentialType) 71 *p = x 72 return p 73 } 74 75 func (x CredentialType) String() string { 76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 77 } 78 79 func (CredentialType) Descriptor() protoreflect.EnumDescriptor { 80 return file_vault_proto_enumTypes[0].Descriptor() 81 } 82 83 func (CredentialType) Type() protoreflect.EnumType { 84 return &file_vault_proto_enumTypes[0] 85 } 86 87 func (x CredentialType) Number() protoreflect.EnumNumber { 88 return protoreflect.EnumNumber(x) 89 } 90 91 // Deprecated: Use CredentialType.Descriptor instead. 92 func (CredentialType) EnumDescriptor() ([]byte, []int) { 93 return file_vault_proto_rawDescGZIP(), []int{0} 94 } 95 96 type SecretEncoding int32 97 98 const ( 99 SecretEncoding_encoding_undefined SecretEncoding = 0 100 SecretEncoding_encoding_json SecretEncoding = 1 101 SecretEncoding_encoding_proto SecretEncoding = 2 102 SecretEncoding_encoding_binary SecretEncoding = 3 103 ) 104 105 // Enum value maps for SecretEncoding. 106 var ( 107 SecretEncoding_name = map[int32]string{ 108 0: "encoding_undefined", 109 1: "encoding_json", 110 2: "encoding_proto", 111 3: "encoding_binary", 112 } 113 SecretEncoding_value = map[string]int32{ 114 "encoding_undefined": 0, 115 "encoding_json": 1, 116 "encoding_proto": 2, 117 "encoding_binary": 3, 118 } 119 ) 120 121 func (x SecretEncoding) Enum() *SecretEncoding { 122 p := new(SecretEncoding) 123 *p = x 124 return p 125 } 126 127 func (x SecretEncoding) String() string { 128 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 129 } 130 131 func (SecretEncoding) Descriptor() protoreflect.EnumDescriptor { 132 return file_vault_proto_enumTypes[1].Descriptor() 133 } 134 135 func (SecretEncoding) Type() protoreflect.EnumType { 136 return &file_vault_proto_enumTypes[1] 137 } 138 139 func (x SecretEncoding) Number() protoreflect.EnumNumber { 140 return protoreflect.EnumNumber(x) 141 } 142 143 // Deprecated: Use SecretEncoding.Descriptor instead. 144 func (SecretEncoding) EnumDescriptor() ([]byte, []int) { 145 return file_vault_proto_rawDescGZIP(), []int{1} 146 } 147 148 type VaultType int32 149 150 const ( 151 VaultType_None VaultType = 0 152 VaultType_KeyRing VaultType = 1 153 VaultType_LinuxKernelKeyring VaultType = 2 154 VaultType_EncryptedFile VaultType = 3 155 VaultType_HashiCorp VaultType = 4 156 VaultType_GCPSecretsManager VaultType = 5 157 VaultType_AWSSecretsManager VaultType = 6 158 VaultType_AWSParameterStore VaultType = 7 159 VaultType_GCPBerglas VaultType = 8 160 VaultType_Memory VaultType = 9 161 ) 162 163 // Enum value maps for VaultType. 164 var ( 165 VaultType_name = map[int32]string{ 166 0: "None", 167 1: "KeyRing", 168 2: "LinuxKernelKeyring", 169 3: "EncryptedFile", 170 4: "HashiCorp", 171 5: "GCPSecretsManager", 172 6: "AWSSecretsManager", 173 7: "AWSParameterStore", 174 8: "GCPBerglas", 175 9: "Memory", 176 } 177 VaultType_value = map[string]int32{ 178 "None": 0, 179 "KeyRing": 1, 180 "LinuxKernelKeyring": 2, 181 "EncryptedFile": 3, 182 "HashiCorp": 4, 183 "GCPSecretsManager": 5, 184 "AWSSecretsManager": 6, 185 "AWSParameterStore": 7, 186 "GCPBerglas": 8, 187 "Memory": 9, 188 } 189 ) 190 191 func (x VaultType) Enum() *VaultType { 192 p := new(VaultType) 193 *p = x 194 return p 195 } 196 197 func (x VaultType) String() string { 198 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 199 } 200 201 func (VaultType) Descriptor() protoreflect.EnumDescriptor { 202 return file_vault_proto_enumTypes[2].Descriptor() 203 } 204 205 func (VaultType) Type() protoreflect.EnumType { 206 return &file_vault_proto_enumTypes[2] 207 } 208 209 func (x VaultType) Number() protoreflect.EnumNumber { 210 return protoreflect.EnumNumber(x) 211 } 212 213 // Deprecated: Use VaultType.Descriptor instead. 214 func (VaultType) EnumDescriptor() ([]byte, []int) { 215 return file_vault_proto_rawDescGZIP(), []int{2} 216 } 217 218 type SecretID struct { 219 state protoimpl.MessageState 220 sizeCache protoimpl.SizeCache 221 unknownFields protoimpl.UnknownFields 222 223 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 224 } 225 226 func (x *SecretID) Reset() { 227 *x = SecretID{} 228 if protoimpl.UnsafeEnabled { 229 mi := &file_vault_proto_msgTypes[0] 230 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 231 ms.StoreMessageInfo(mi) 232 } 233 } 234 235 func (x *SecretID) String() string { 236 return protoimpl.X.MessageStringOf(x) 237 } 238 239 func (*SecretID) ProtoMessage() {} 240 241 func (x *SecretID) ProtoReflect() protoreflect.Message { 242 mi := &file_vault_proto_msgTypes[0] 243 if protoimpl.UnsafeEnabled && x != nil { 244 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 245 if ms.LoadMessageInfo() == nil { 246 ms.StoreMessageInfo(mi) 247 } 248 return ms 249 } 250 return mi.MessageOf(x) 251 } 252 253 // Deprecated: Use SecretID.ProtoReflect.Descriptor instead. 254 func (*SecretID) Descriptor() ([]byte, []int) { 255 return file_vault_proto_rawDescGZIP(), []int{0} 256 } 257 258 func (x *SecretID) GetKey() string { 259 if x != nil { 260 return x.Key 261 } 262 return "" 263 } 264 265 type Secret struct { 266 state protoimpl.MessageState 267 sizeCache protoimpl.SizeCache 268 unknownFields protoimpl.UnknownFields 269 270 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 271 Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` 272 Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` 273 Encoding SecretEncoding `protobuf:"varint,4,opt,name=encoding,proto3,enum=cnquery.providers.v1.SecretEncoding" json:"encoding,omitempty"` 274 } 275 276 func (x *Secret) Reset() { 277 *x = Secret{} 278 if protoimpl.UnsafeEnabled { 279 mi := &file_vault_proto_msgTypes[1] 280 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 281 ms.StoreMessageInfo(mi) 282 } 283 } 284 285 func (x *Secret) String() string { 286 return protoimpl.X.MessageStringOf(x) 287 } 288 289 func (*Secret) ProtoMessage() {} 290 291 func (x *Secret) ProtoReflect() protoreflect.Message { 292 mi := &file_vault_proto_msgTypes[1] 293 if protoimpl.UnsafeEnabled && x != nil { 294 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 295 if ms.LoadMessageInfo() == nil { 296 ms.StoreMessageInfo(mi) 297 } 298 return ms 299 } 300 return mi.MessageOf(x) 301 } 302 303 // Deprecated: Use Secret.ProtoReflect.Descriptor instead. 304 func (*Secret) Descriptor() ([]byte, []int) { 305 return file_vault_proto_rawDescGZIP(), []int{1} 306 } 307 308 func (x *Secret) GetKey() string { 309 if x != nil { 310 return x.Key 311 } 312 return "" 313 } 314 315 func (x *Secret) GetLabel() string { 316 if x != nil { 317 return x.Label 318 } 319 return "" 320 } 321 322 func (x *Secret) GetData() []byte { 323 if x != nil { 324 return x.Data 325 } 326 return nil 327 } 328 329 func (x *Secret) GetEncoding() SecretEncoding { 330 if x != nil { 331 return x.Encoding 332 } 333 return SecretEncoding_encoding_undefined 334 } 335 336 type Empty struct { 337 state protoimpl.MessageState 338 sizeCache protoimpl.SizeCache 339 unknownFields protoimpl.UnknownFields 340 } 341 342 func (x *Empty) Reset() { 343 *x = Empty{} 344 if protoimpl.UnsafeEnabled { 345 mi := &file_vault_proto_msgTypes[2] 346 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 347 ms.StoreMessageInfo(mi) 348 } 349 } 350 351 func (x *Empty) String() string { 352 return protoimpl.X.MessageStringOf(x) 353 } 354 355 func (*Empty) ProtoMessage() {} 356 357 func (x *Empty) ProtoReflect() protoreflect.Message { 358 mi := &file_vault_proto_msgTypes[2] 359 if protoimpl.UnsafeEnabled && x != nil { 360 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 361 if ms.LoadMessageInfo() == nil { 362 ms.StoreMessageInfo(mi) 363 } 364 return ms 365 } 366 return mi.MessageOf(x) 367 } 368 369 // Deprecated: Use Empty.ProtoReflect.Descriptor instead. 370 func (*Empty) Descriptor() ([]byte, []int) { 371 return file_vault_proto_rawDescGZIP(), []int{2} 372 } 373 374 type VaultInfo struct { 375 state protoimpl.MessageState 376 sizeCache protoimpl.SizeCache 377 unknownFields protoimpl.UnknownFields 378 379 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 380 } 381 382 func (x *VaultInfo) Reset() { 383 *x = VaultInfo{} 384 if protoimpl.UnsafeEnabled { 385 mi := &file_vault_proto_msgTypes[3] 386 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 387 ms.StoreMessageInfo(mi) 388 } 389 } 390 391 func (x *VaultInfo) String() string { 392 return protoimpl.X.MessageStringOf(x) 393 } 394 395 func (*VaultInfo) ProtoMessage() {} 396 397 func (x *VaultInfo) ProtoReflect() protoreflect.Message { 398 mi := &file_vault_proto_msgTypes[3] 399 if protoimpl.UnsafeEnabled && x != nil { 400 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 401 if ms.LoadMessageInfo() == nil { 402 ms.StoreMessageInfo(mi) 403 } 404 return ms 405 } 406 return mi.MessageOf(x) 407 } 408 409 // Deprecated: Use VaultInfo.ProtoReflect.Descriptor instead. 410 func (*VaultInfo) Descriptor() ([]byte, []int) { 411 return file_vault_proto_rawDescGZIP(), []int{3} 412 } 413 414 func (x *VaultInfo) GetName() string { 415 if x != nil { 416 return x.Name 417 } 418 return "" 419 } 420 421 // Credential holds authentication information 422 type Credential struct { 423 state protoimpl.MessageState 424 sizeCache protoimpl.SizeCache 425 unknownFields protoimpl.UnknownFields 426 427 SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"` 428 Type CredentialType `protobuf:"varint,2,opt,name=type,proto3,enum=cnquery.providers.v1.CredentialType" json:"type,omitempty"` 429 User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` 430 Secret []byte `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"` 431 // the following are optional and sugar for defining a secret 432 // those values are only allowed for reading in yaml values but not via API calls 433 Password string `protobuf:"bytes,21,opt,name=password,proto3" json:"password,omitempty"` // optional, could also be the password for the private key 434 // for user convenience we define private_key, this allows yaml/json writers 435 // to just embed the string representation, otherwise it would need to be base64 encoded 436 PrivateKey string `protobuf:"bytes,22,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` 437 // for user convenience we define private_key_path which loads a local file into the 438 // secret 439 PrivateKeyPath string `protobuf:"bytes,23,opt,name=private_key_path,json=privateKeyPath,proto3" json:"private_key_path,omitempty"` 440 } 441 442 func (x *Credential) Reset() { 443 *x = Credential{} 444 if protoimpl.UnsafeEnabled { 445 mi := &file_vault_proto_msgTypes[4] 446 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 447 ms.StoreMessageInfo(mi) 448 } 449 } 450 451 func (x *Credential) String() string { 452 return protoimpl.X.MessageStringOf(x) 453 } 454 455 func (*Credential) ProtoMessage() {} 456 457 func (x *Credential) ProtoReflect() protoreflect.Message { 458 mi := &file_vault_proto_msgTypes[4] 459 if protoimpl.UnsafeEnabled && x != nil { 460 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 461 if ms.LoadMessageInfo() == nil { 462 ms.StoreMessageInfo(mi) 463 } 464 return ms 465 } 466 return mi.MessageOf(x) 467 } 468 469 // Deprecated: Use Credential.ProtoReflect.Descriptor instead. 470 func (*Credential) Descriptor() ([]byte, []int) { 471 return file_vault_proto_rawDescGZIP(), []int{4} 472 } 473 474 func (x *Credential) GetSecretId() string { 475 if x != nil { 476 return x.SecretId 477 } 478 return "" 479 } 480 481 func (x *Credential) GetType() CredentialType { 482 if x != nil { 483 return x.Type 484 } 485 return CredentialType_undefined 486 } 487 488 func (x *Credential) GetUser() string { 489 if x != nil { 490 return x.User 491 } 492 return "" 493 } 494 495 func (x *Credential) GetSecret() []byte { 496 if x != nil { 497 return x.Secret 498 } 499 return nil 500 } 501 502 func (x *Credential) GetPassword() string { 503 if x != nil { 504 return x.Password 505 } 506 return "" 507 } 508 509 func (x *Credential) GetPrivateKey() string { 510 if x != nil { 511 return x.PrivateKey 512 } 513 return "" 514 } 515 516 func (x *Credential) GetPrivateKeyPath() string { 517 if x != nil { 518 return x.PrivateKeyPath 519 } 520 return "" 521 } 522 523 type VaultConfiguration struct { 524 state protoimpl.MessageState 525 sizeCache protoimpl.SizeCache 526 unknownFields protoimpl.UnknownFields 527 528 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 529 Type VaultType `protobuf:"varint,2,opt,name=type,proto3,enum=cnquery.providers.v1.VaultType" json:"type,omitempty"` 530 Options map[string]string `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 531 } 532 533 func (x *VaultConfiguration) Reset() { 534 *x = VaultConfiguration{} 535 if protoimpl.UnsafeEnabled { 536 mi := &file_vault_proto_msgTypes[5] 537 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 538 ms.StoreMessageInfo(mi) 539 } 540 } 541 542 func (x *VaultConfiguration) String() string { 543 return protoimpl.X.MessageStringOf(x) 544 } 545 546 func (*VaultConfiguration) ProtoMessage() {} 547 548 func (x *VaultConfiguration) ProtoReflect() protoreflect.Message { 549 mi := &file_vault_proto_msgTypes[5] 550 if protoimpl.UnsafeEnabled && x != nil { 551 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 552 if ms.LoadMessageInfo() == nil { 553 ms.StoreMessageInfo(mi) 554 } 555 return ms 556 } 557 return mi.MessageOf(x) 558 } 559 560 // Deprecated: Use VaultConfiguration.ProtoReflect.Descriptor instead. 561 func (*VaultConfiguration) Descriptor() ([]byte, []int) { 562 return file_vault_proto_rawDescGZIP(), []int{5} 563 } 564 565 func (x *VaultConfiguration) GetName() string { 566 if x != nil { 567 return x.Name 568 } 569 return "" 570 } 571 572 func (x *VaultConfiguration) GetType() VaultType { 573 if x != nil { 574 return x.Type 575 } 576 return VaultType_None 577 } 578 579 func (x *VaultConfiguration) GetOptions() map[string]string { 580 if x != nil { 581 return x.Options 582 } 583 return nil 584 } 585 586 var File_vault_proto protoreflect.FileDescriptor 587 588 var file_vault_proto_rawDesc = []byte{ 589 0x0a, 0x0b, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x63, 590 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 591 0x2e, 0x76, 0x31, 0x22, 0x1c, 0x0a, 0x08, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x49, 0x44, 0x12, 592 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 593 0x79, 0x22, 0x86, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 594 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 595 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 596 0x61, 0x62, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 597 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x08, 0x65, 0x6e, 0x63, 0x6f, 598 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x63, 0x6e, 0x71, 599 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x76, 600 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 601 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 602 0x70, 0x74, 0x79, 0x22, 0x1f, 0x0a, 0x09, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x66, 0x6f, 603 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 604 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xfc, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 605 0x69, 0x61, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x69, 0x64, 606 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x49, 0x64, 607 0x12, 0x38, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 608 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 609 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 610 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 611 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x16, 612 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 613 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 614 0x72, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 615 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 616 0x79, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 617 0x4b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 618 0x65, 0x79, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 619 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x74, 0x68, 0x4a, 0x04, 0x08, 620 0x05, 0x10, 0x06, 0x22, 0xea, 0x01, 0x0a, 0x12, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 621 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 622 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33, 623 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x63, 624 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 625 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 626 0x79, 0x70, 0x65, 0x12, 0x4f, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 627 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 628 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x75, 0x6c, 629 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 630 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 631 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 632 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 633 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 634 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 635 0x2a, 0xbd, 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x54, 636 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x75, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 637 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x10, 0x01, 638 0x12, 0x0f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x10, 639 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x73, 0x73, 0x68, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x10, 0x03, 640 0x12, 0x0a, 0x0a, 0x06, 0x62, 0x65, 0x61, 0x72, 0x65, 0x72, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 641 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x71, 0x75, 0x65, 0x72, 642 0x79, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x10, 0x06, 0x12, 0x1c, 0x0a, 643 0x18, 0x61, 0x77, 0x73, 0x5f, 0x65, 0x63, 0x32, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 644 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x10, 0x07, 0x12, 0x17, 0x0a, 0x13, 0x61, 645 0x77, 0x73, 0x5f, 0x65, 0x63, 0x32, 0x5f, 0x73, 0x73, 0x6d, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 646 0x6f, 0x6e, 0x10, 0x08, 0x12, 0x0a, 0x0a, 0x06, 0x70, 0x6b, 0x63, 0x73, 0x31, 0x32, 0x10, 0x09, 647 0x2a, 0x64, 0x0a, 0x0e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 648 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x75, 649 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x65, 0x6e, 650 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x10, 0x01, 0x12, 0x12, 0x0a, 651 0x0e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x10, 652 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x69, 653 0x6e, 0x61, 0x72, 0x79, 0x10, 0x03, 0x2a, 0xbd, 0x01, 0x0a, 0x09, 0x56, 0x61, 0x75, 0x6c, 0x74, 654 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x0b, 655 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x52, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4c, 656 0x69, 0x6e, 0x75, 0x78, 0x4b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x72, 0x69, 0x6e, 657 0x67, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 658 0x46, 0x69, 0x6c, 0x65, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x61, 0x73, 0x68, 0x69, 0x43, 659 0x6f, 0x72, 0x70, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x47, 0x43, 0x50, 0x53, 0x65, 0x63, 0x72, 660 0x65, 0x74, 0x73, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 661 0x41, 0x57, 0x53, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 662 0x72, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x57, 0x53, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 663 0x74, 0x65, 0x72, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x10, 0x07, 0x12, 0x0e, 0x0a, 0x0a, 0x47, 0x43, 664 0x50, 0x42, 0x65, 0x72, 0x67, 0x6c, 0x61, 0x73, 0x10, 0x08, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x65, 665 0x6d, 0x6f, 0x72, 0x79, 0x10, 0x09, 0x32, 0xd8, 0x01, 0x0a, 0x05, 0x56, 0x61, 0x75, 0x6c, 0x74, 666 0x12, 0x45, 0x0a, 0x05, 0x41, 0x62, 0x6f, 0x75, 0x74, 0x12, 0x1b, 0x2e, 0x63, 0x6e, 0x71, 0x75, 667 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 668 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 669 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 670 0x75, 0x6c, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x43, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x1e, 671 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 672 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x49, 0x44, 0x1a, 0x1c, 673 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 674 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x43, 0x0a, 0x03, 675 0x53, 0x65, 0x74, 0x12, 0x1c, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 676 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 677 0x74, 0x1a, 0x1e, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x76, 678 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x49, 679 0x44, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x6f, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 680 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 681 0x64, 0x65, 0x72, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x61, 0x75, 0x6c, 682 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 683 } 684 685 var ( 686 file_vault_proto_rawDescOnce sync.Once 687 file_vault_proto_rawDescData = file_vault_proto_rawDesc 688 ) 689 690 func file_vault_proto_rawDescGZIP() []byte { 691 file_vault_proto_rawDescOnce.Do(func() { 692 file_vault_proto_rawDescData = protoimpl.X.CompressGZIP(file_vault_proto_rawDescData) 693 }) 694 return file_vault_proto_rawDescData 695 } 696 697 var file_vault_proto_enumTypes = make([]protoimpl.EnumInfo, 3) 698 var file_vault_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 699 var file_vault_proto_goTypes = []interface{}{ 700 (CredentialType)(0), // 0: cnquery.providers.v1.CredentialType 701 (SecretEncoding)(0), // 1: cnquery.providers.v1.SecretEncoding 702 (VaultType)(0), // 2: cnquery.providers.v1.VaultType 703 (*SecretID)(nil), // 3: cnquery.providers.v1.SecretID 704 (*Secret)(nil), // 4: cnquery.providers.v1.Secret 705 (*Empty)(nil), // 5: cnquery.providers.v1.Empty 706 (*VaultInfo)(nil), // 6: cnquery.providers.v1.VaultInfo 707 (*Credential)(nil), // 7: cnquery.providers.v1.Credential 708 (*VaultConfiguration)(nil), // 8: cnquery.providers.v1.VaultConfiguration 709 nil, // 9: cnquery.providers.v1.VaultConfiguration.OptionsEntry 710 } 711 var file_vault_proto_depIdxs = []int32{ 712 1, // 0: cnquery.providers.v1.Secret.encoding:type_name -> cnquery.providers.v1.SecretEncoding 713 0, // 1: cnquery.providers.v1.Credential.type:type_name -> cnquery.providers.v1.CredentialType 714 2, // 2: cnquery.providers.v1.VaultConfiguration.type:type_name -> cnquery.providers.v1.VaultType 715 9, // 3: cnquery.providers.v1.VaultConfiguration.options:type_name -> cnquery.providers.v1.VaultConfiguration.OptionsEntry 716 5, // 4: cnquery.providers.v1.Vault.About:input_type -> cnquery.providers.v1.Empty 717 3, // 5: cnquery.providers.v1.Vault.Get:input_type -> cnquery.providers.v1.SecretID 718 4, // 6: cnquery.providers.v1.Vault.Set:input_type -> cnquery.providers.v1.Secret 719 6, // 7: cnquery.providers.v1.Vault.About:output_type -> cnquery.providers.v1.VaultInfo 720 4, // 8: cnquery.providers.v1.Vault.Get:output_type -> cnquery.providers.v1.Secret 721 3, // 9: cnquery.providers.v1.Vault.Set:output_type -> cnquery.providers.v1.SecretID 722 7, // [7:10] is the sub-list for method output_type 723 4, // [4:7] is the sub-list for method input_type 724 4, // [4:4] is the sub-list for extension type_name 725 4, // [4:4] is the sub-list for extension extendee 726 0, // [0:4] is the sub-list for field type_name 727 } 728 729 func init() { file_vault_proto_init() } 730 func file_vault_proto_init() { 731 if File_vault_proto != nil { 732 return 733 } 734 if !protoimpl.UnsafeEnabled { 735 file_vault_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 736 switch v := v.(*SecretID); i { 737 case 0: 738 return &v.state 739 case 1: 740 return &v.sizeCache 741 case 2: 742 return &v.unknownFields 743 default: 744 return nil 745 } 746 } 747 file_vault_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 748 switch v := v.(*Secret); i { 749 case 0: 750 return &v.state 751 case 1: 752 return &v.sizeCache 753 case 2: 754 return &v.unknownFields 755 default: 756 return nil 757 } 758 } 759 file_vault_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 760 switch v := v.(*Empty); i { 761 case 0: 762 return &v.state 763 case 1: 764 return &v.sizeCache 765 case 2: 766 return &v.unknownFields 767 default: 768 return nil 769 } 770 } 771 file_vault_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 772 switch v := v.(*VaultInfo); i { 773 case 0: 774 return &v.state 775 case 1: 776 return &v.sizeCache 777 case 2: 778 return &v.unknownFields 779 default: 780 return nil 781 } 782 } 783 file_vault_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 784 switch v := v.(*Credential); i { 785 case 0: 786 return &v.state 787 case 1: 788 return &v.sizeCache 789 case 2: 790 return &v.unknownFields 791 default: 792 return nil 793 } 794 } 795 file_vault_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 796 switch v := v.(*VaultConfiguration); i { 797 case 0: 798 return &v.state 799 case 1: 800 return &v.sizeCache 801 case 2: 802 return &v.unknownFields 803 default: 804 return nil 805 } 806 } 807 } 808 type x struct{} 809 out := protoimpl.TypeBuilder{ 810 File: protoimpl.DescBuilder{ 811 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 812 RawDescriptor: file_vault_proto_rawDesc, 813 NumEnums: 3, 814 NumMessages: 7, 815 NumExtensions: 0, 816 NumServices: 1, 817 }, 818 GoTypes: file_vault_proto_goTypes, 819 DependencyIndexes: file_vault_proto_depIdxs, 820 EnumInfos: file_vault_proto_enumTypes, 821 MessageInfos: file_vault_proto_msgTypes, 822 }.Build() 823 File_vault_proto = out.File 824 file_vault_proto_rawDesc = nil 825 file_vault_proto_goTypes = nil 826 file_vault_proto_depIdxs = nil 827 }