forked from urnetwork/connect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaudit.pb.go
More file actions
694 lines (603 loc) · 19.8 KB
/
audit.pb.go
File metadata and controls
694 lines (603 loc) · 19.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v5.29.3
// source: audit.proto
package protocol
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type EgressProtocol int32
const (
EgressProtocol_IP_TCP EgressProtocol = 0
EgressProtocol_IP_UDP EgressProtocol = 1
)
// Enum value maps for EgressProtocol.
var (
EgressProtocol_name = map[int32]string{
0: "IP_TCP",
1: "IP_UDP",
}
EgressProtocol_value = map[string]int32{
"IP_TCP": 0,
"IP_UDP": 1,
}
)
func (x EgressProtocol) Enum() *EgressProtocol {
p := new(EgressProtocol)
*p = x
return p
}
func (x EgressProtocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EgressProtocol) Descriptor() protoreflect.EnumDescriptor {
return file_audit_proto_enumTypes[0].Descriptor()
}
func (EgressProtocol) Type() protoreflect.EnumType {
return &file_audit_proto_enumTypes[0]
}
func (x EgressProtocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EgressProtocol.Descriptor instead.
func (EgressProtocol) EnumDescriptor() ([]byte, []int) {
return file_audit_proto_rawDescGZIP(), []int{0}
}
// this is sent to the platform
// note the platform does not have prior knowledge and would have to brute force decrypt the audit record
// the provider creates and encrypts the final `AccountRecord` from the partial and discards the partial
type ProviderAudit struct {
state protoimpl.MessageState `protogen:"open.v1"`
Egress *EncryptedEgressRecord `protobuf:"bytes,1,opt,name=Egress,proto3" json:"Egress,omitempty"`
// this data is used to encode the associated `AccountRecord`
// this data is not stored and should be thrown out by the platform
AccountPartial *AccountRecordPartial `protobuf:"bytes,2,opt,name=AccountPartial,proto3" json:"AccountPartial,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ProviderAudit) Reset() {
*x = ProviderAudit{}
mi := &file_audit_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ProviderAudit) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProviderAudit) ProtoMessage() {}
func (x *ProviderAudit) ProtoReflect() protoreflect.Message {
mi := &file_audit_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProviderAudit.ProtoReflect.Descriptor instead.
func (*ProviderAudit) Descriptor() ([]byte, []int) {
return file_audit_proto_rawDescGZIP(), []int{0}
}
func (x *ProviderAudit) GetEgress() *EncryptedEgressRecord {
if x != nil {
return x.Egress
}
return nil
}
func (x *ProviderAudit) GetAccountPartial() *AccountRecordPartial {
if x != nil {
return x.AccountPartial
}
return nil
}
// kept local on provider
// time block is UTC in 50ms blocks
// a typical abuse report will have to account for +-60s, or look up about 1200 blocks per record
type EgressKey struct {
state protoimpl.MessageState `protogen:"open.v1"`
TimeBlock uint64 `protobuf:"varint,1,opt,name=TimeBlock,proto3" json:"TimeBlock,omitempty"`
Protocol EgressProtocol `protobuf:"varint,2,opt,name=Protocol,proto3,enum=bringyour.EgressProtocol" json:"Protocol,omitempty"`
SourceIp []byte `protobuf:"bytes,3,opt,name=SourceIp,proto3" json:"SourceIp,omitempty"`
SourcePort uint32 `protobuf:"varint,4,opt,name=SourcePort,proto3" json:"SourcePort,omitempty"`
DestinationIp []byte `protobuf:"bytes,5,opt,name=DestinationIp,proto3" json:"DestinationIp,omitempty"`
DestinationPort uint32 `protobuf:"varint,6,opt,name=DestinationPort,proto3" json:"DestinationPort,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EgressKey) Reset() {
*x = EgressKey{}
mi := &file_audit_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EgressKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EgressKey) ProtoMessage() {}
func (x *EgressKey) ProtoReflect() protoreflect.Message {
mi := &file_audit_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EgressKey.ProtoReflect.Descriptor instead.
func (*EgressKey) Descriptor() ([]byte, []int) {
return file_audit_proto_rawDescGZIP(), []int{1}
}
func (x *EgressKey) GetTimeBlock() uint64 {
if x != nil {
return x.TimeBlock
}
return 0
}
func (x *EgressKey) GetProtocol() EgressProtocol {
if x != nil {
return x.Protocol
}
return EgressProtocol_IP_TCP
}
func (x *EgressKey) GetSourceIp() []byte {
if x != nil {
return x.SourceIp
}
return nil
}
func (x *EgressKey) GetSourcePort() uint32 {
if x != nil {
return x.SourcePort
}
return 0
}
func (x *EgressKey) GetDestinationIp() []byte {
if x != nil {
return x.DestinationIp
}
return nil
}
func (x *EgressKey) GetDestinationPort() uint32 {
if x != nil {
return x.DestinationPort
}
return 0
}
// kept local on provider
type EgressKeyWithSalt struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key *EgressKey `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
// 128-bit
Salt []byte `protobuf:"bytes,2,opt,name=Salt,proto3" json:"Salt,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EgressKeyWithSalt) Reset() {
*x = EgressKeyWithSalt{}
mi := &file_audit_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EgressKeyWithSalt) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EgressKeyWithSalt) ProtoMessage() {}
func (x *EgressKeyWithSalt) ProtoReflect() protoreflect.Message {
mi := &file_audit_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EgressKeyWithSalt.ProtoReflect.Descriptor instead.
func (*EgressKeyWithSalt) Descriptor() ([]byte, []int) {
return file_audit_proto_rawDescGZIP(), []int{2}
}
func (x *EgressKeyWithSalt) GetKey() *EgressKey {
if x != nil {
return x.Key
}
return nil
}
func (x *EgressKeyWithSalt) GetSalt() []byte {
if x != nil {
return x.Salt
}
return nil
}
// this created on the provider so that the platform cannot see the raw data
// a complete audit record is an `EgressRecord` and an `AccountRecord`
type EncryptedEgressRecord struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 128-bit
Salt []byte `protobuf:"bytes,1,opt,name=Salt,proto3" json:"Salt,omitempty"`
// Argon2id of `EgressKeyWithSalt`
KeyWithSaltHash []byte `protobuf:"bytes,2,opt,name=KeyWithSaltHash,proto3" json:"KeyWithSaltHash,omitempty"`
// AES256 using `EgressRecordSecret`
EncryptedEgress []byte `protobuf:"bytes,3,opt,name=EncryptedEgress,proto3" json:"EncryptedEgress,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EncryptedEgressRecord) Reset() {
*x = EncryptedEgressRecord{}
mi := &file_audit_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EncryptedEgressRecord) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EncryptedEgressRecord) ProtoMessage() {}
func (x *EncryptedEgressRecord) ProtoReflect() protoreflect.Message {
mi := &file_audit_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EncryptedEgressRecord.ProtoReflect.Descriptor instead.
func (*EncryptedEgressRecord) Descriptor() ([]byte, []int) {
return file_audit_proto_rawDescGZIP(), []int{3}
}
func (x *EncryptedEgressRecord) GetSalt() []byte {
if x != nil {
return x.Salt
}
return nil
}
func (x *EncryptedEgressRecord) GetKeyWithSaltHash() []byte {
if x != nil {
return x.KeyWithSaltHash
}
return nil
}
func (x *EncryptedEgressRecord) GetEncryptedEgress() []byte {
if x != nil {
return x.EncryptedEgress
}
return nil
}
type AccountRecordPartial struct {
state protoimpl.MessageState `protogen:"open.v1"`
// ulid
ContractId []byte `protobuf:"bytes,4,opt,name=ContractId,proto3" json:"ContractId,omitempty"`
AccountRecordSecret []byte `protobuf:"bytes,5,opt,name=AccountRecordSecret,proto3" json:"AccountRecordSecret,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AccountRecordPartial) Reset() {
*x = AccountRecordPartial{}
mi := &file_audit_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AccountRecordPartial) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccountRecordPartial) ProtoMessage() {}
func (x *AccountRecordPartial) ProtoReflect() protoreflect.Message {
mi := &file_audit_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AccountRecordPartial.ProtoReflect.Descriptor instead.
func (*AccountRecordPartial) Descriptor() ([]byte, []int) {
return file_audit_proto_rawDescGZIP(), []int{4}
}
func (x *AccountRecordPartial) GetContractId() []byte {
if x != nil {
return x.ContractId
}
return nil
}
func (x *AccountRecordPartial) GetAccountRecordSecret() []byte {
if x != nil {
return x.AccountRecordSecret
}
return nil
}
type EgressRecordSecret struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key *EgressKey `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
// 128-bit
Salt []byte `protobuf:"bytes,2,opt,name=Salt,proto3" json:"Salt,omitempty"`
// 24-bit
Nonce []byte `protobuf:"bytes,3,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EgressRecordSecret) Reset() {
*x = EgressRecordSecret{}
mi := &file_audit_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EgressRecordSecret) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EgressRecordSecret) ProtoMessage() {}
func (x *EgressRecordSecret) ProtoReflect() protoreflect.Message {
mi := &file_audit_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EgressRecordSecret.ProtoReflect.Descriptor instead.
func (*EgressRecordSecret) Descriptor() ([]byte, []int) {
return file_audit_proto_rawDescGZIP(), []int{5}
}
func (x *EgressRecordSecret) GetKey() *EgressKey {
if x != nil {
return x.Key
}
return nil
}
func (x *EgressRecordSecret) GetSalt() []byte {
if x != nil {
return x.Salt
}
return nil
}
func (x *EgressRecordSecret) GetNonce() []byte {
if x != nil {
return x.Nonce
}
return nil
}
type EgressRecord struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key *EgressKey `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
StartTime uint64 `protobuf:"varint,2,opt,name=StartTime,proto3" json:"StartTime,omitempty"`
EndTime *uint64 `protobuf:"varint,3,opt,name=EndTime,proto3,oneof" json:"EndTime,omitempty"`
AccountRecordSecret []byte `protobuf:"bytes,4,opt,name=AccountRecordSecret,proto3" json:"AccountRecordSecret,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EgressRecord) Reset() {
*x = EgressRecord{}
mi := &file_audit_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EgressRecord) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EgressRecord) ProtoMessage() {}
func (x *EgressRecord) ProtoReflect() protoreflect.Message {
mi := &file_audit_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EgressRecord.ProtoReflect.Descriptor instead.
func (*EgressRecord) Descriptor() ([]byte, []int) {
return file_audit_proto_rawDescGZIP(), []int{6}
}
func (x *EgressRecord) GetKey() *EgressKey {
if x != nil {
return x.Key
}
return nil
}
func (x *EgressRecord) GetStartTime() uint64 {
if x != nil {
return x.StartTime
}
return 0
}
func (x *EgressRecord) GetEndTime() uint64 {
if x != nil && x.EndTime != nil {
return *x.EndTime
}
return 0
}
func (x *EgressRecord) GetAccountRecordSecret() []byte {
if x != nil {
return x.AccountRecordSecret
}
return nil
}
type AccountRecord struct {
state protoimpl.MessageState `protogen:"open.v1"`
// ulid
ContractId []byte `protobuf:"bytes,1,opt,name=ContractId,proto3" json:"ContractId,omitempty"`
// ulid
ClientAccountId []byte `protobuf:"bytes,2,opt,name=ClientAccountId,proto3" json:"ClientAccountId,omitempty"`
// ulid
ProviderAccountId []byte `protobuf:"bytes,3,opt,name=ProviderAccountId,proto3" json:"ProviderAccountId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AccountRecord) Reset() {
*x = AccountRecord{}
mi := &file_audit_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AccountRecord) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccountRecord) ProtoMessage() {}
func (x *AccountRecord) ProtoReflect() protoreflect.Message {
mi := &file_audit_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AccountRecord.ProtoReflect.Descriptor instead.
func (*AccountRecord) Descriptor() ([]byte, []int) {
return file_audit_proto_rawDescGZIP(), []int{7}
}
func (x *AccountRecord) GetContractId() []byte {
if x != nil {
return x.ContractId
}
return nil
}
func (x *AccountRecord) GetClientAccountId() []byte {
if x != nil {
return x.ClientAccountId
}
return nil
}
func (x *AccountRecord) GetProviderAccountId() []byte {
if x != nil {
return x.ProviderAccountId
}
return nil
}
var File_audit_proto protoreflect.FileDescriptor
const file_audit_proto_rawDesc = "" +
"\n" +
"\vaudit.proto\x12\tbringyour\"\x92\x01\n" +
"\rProviderAudit\x128\n" +
"\x06Egress\x18\x01 \x01(\v2 .bringyour.EncryptedEgressRecordR\x06Egress\x12G\n" +
"\x0eAccountPartial\x18\x02 \x01(\v2\x1f.bringyour.AccountRecordPartialR\x0eAccountPartial\"\xec\x01\n" +
"\tEgressKey\x12\x1c\n" +
"\tTimeBlock\x18\x01 \x01(\x04R\tTimeBlock\x125\n" +
"\bProtocol\x18\x02 \x01(\x0e2\x19.bringyour.EgressProtocolR\bProtocol\x12\x1a\n" +
"\bSourceIp\x18\x03 \x01(\fR\bSourceIp\x12\x1e\n" +
"\n" +
"SourcePort\x18\x04 \x01(\rR\n" +
"SourcePort\x12$\n" +
"\rDestinationIp\x18\x05 \x01(\fR\rDestinationIp\x12(\n" +
"\x0fDestinationPort\x18\x06 \x01(\rR\x0fDestinationPort\"O\n" +
"\x11EgressKeyWithSalt\x12&\n" +
"\x03Key\x18\x01 \x01(\v2\x14.bringyour.EgressKeyR\x03Key\x12\x12\n" +
"\x04Salt\x18\x02 \x01(\fR\x04Salt\"\x7f\n" +
"\x15EncryptedEgressRecord\x12\x12\n" +
"\x04Salt\x18\x01 \x01(\fR\x04Salt\x12(\n" +
"\x0fKeyWithSaltHash\x18\x02 \x01(\fR\x0fKeyWithSaltHash\x12(\n" +
"\x0fEncryptedEgress\x18\x03 \x01(\fR\x0fEncryptedEgress\"h\n" +
"\x14AccountRecordPartial\x12\x1e\n" +
"\n" +
"ContractId\x18\x04 \x01(\fR\n" +
"ContractId\x120\n" +
"\x13AccountRecordSecret\x18\x05 \x01(\fR\x13AccountRecordSecret\"f\n" +
"\x12EgressRecordSecret\x12&\n" +
"\x03Key\x18\x01 \x01(\v2\x14.bringyour.EgressKeyR\x03Key\x12\x12\n" +
"\x04Salt\x18\x02 \x01(\fR\x04Salt\x12\x14\n" +
"\x05Nonce\x18\x03 \x01(\fR\x05Nonce\"\xb1\x01\n" +
"\fEgressRecord\x12&\n" +
"\x03Key\x18\x01 \x01(\v2\x14.bringyour.EgressKeyR\x03Key\x12\x1c\n" +
"\tStartTime\x18\x02 \x01(\x04R\tStartTime\x12\x1d\n" +
"\aEndTime\x18\x03 \x01(\x04H\x00R\aEndTime\x88\x01\x01\x120\n" +
"\x13AccountRecordSecret\x18\x04 \x01(\fR\x13AccountRecordSecretB\n" +
"\n" +
"\b_EndTime\"\x87\x01\n" +
"\rAccountRecord\x12\x1e\n" +
"\n" +
"ContractId\x18\x01 \x01(\fR\n" +
"ContractId\x12(\n" +
"\x0fClientAccountId\x18\x02 \x01(\fR\x0fClientAccountId\x12,\n" +
"\x11ProviderAccountId\x18\x03 \x01(\fR\x11ProviderAccountId*(\n" +
"\x0eEgressProtocol\x12\n" +
"\n" +
"\x06IP_TCP\x10\x00\x12\n" +
"\n" +
"\x06IP_UDP\x10\x01B'Z%github.com/urnetwork/connect/protocolb\x06proto3"
var (
file_audit_proto_rawDescOnce sync.Once
file_audit_proto_rawDescData []byte
)
func file_audit_proto_rawDescGZIP() []byte {
file_audit_proto_rawDescOnce.Do(func() {
file_audit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_audit_proto_rawDesc), len(file_audit_proto_rawDesc)))
})
return file_audit_proto_rawDescData
}
var file_audit_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_audit_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_audit_proto_goTypes = []any{
(EgressProtocol)(0), // 0: bringyour.EgressProtocol
(*ProviderAudit)(nil), // 1: bringyour.ProviderAudit
(*EgressKey)(nil), // 2: bringyour.EgressKey
(*EgressKeyWithSalt)(nil), // 3: bringyour.EgressKeyWithSalt
(*EncryptedEgressRecord)(nil), // 4: bringyour.EncryptedEgressRecord
(*AccountRecordPartial)(nil), // 5: bringyour.AccountRecordPartial
(*EgressRecordSecret)(nil), // 6: bringyour.EgressRecordSecret
(*EgressRecord)(nil), // 7: bringyour.EgressRecord
(*AccountRecord)(nil), // 8: bringyour.AccountRecord
}
var file_audit_proto_depIdxs = []int32{
4, // 0: bringyour.ProviderAudit.Egress:type_name -> bringyour.EncryptedEgressRecord
5, // 1: bringyour.ProviderAudit.AccountPartial:type_name -> bringyour.AccountRecordPartial
0, // 2: bringyour.EgressKey.Protocol:type_name -> bringyour.EgressProtocol
2, // 3: bringyour.EgressKeyWithSalt.Key:type_name -> bringyour.EgressKey
2, // 4: bringyour.EgressRecordSecret.Key:type_name -> bringyour.EgressKey
2, // 5: bringyour.EgressRecord.Key:type_name -> bringyour.EgressKey
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_audit_proto_init() }
func file_audit_proto_init() {
if File_audit_proto != nil {
return
}
file_audit_proto_msgTypes[6].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_audit_proto_rawDesc), len(file_audit_proto_rawDesc)),
NumEnums: 1,
NumMessages: 8,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_audit_proto_goTypes,
DependencyIndexes: file_audit_proto_depIdxs,
EnumInfos: file_audit_proto_enumTypes,
MessageInfos: file_audit_proto_msgTypes,
}.Build()
File_audit_proto = out.File
file_audit_proto_goTypes = nil
file_audit_proto_depIdxs = nil
}