-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbindata_test.go
622 lines (565 loc) · 23.3 KB
/
bindata_test.go
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
// Code generated by go-bindata.
// sources:
// test-certs/CA.crl
// test-certs/CA.crt
// test-certs/CA.key
// test-certs/client.crt
// test-certs/client.key
// test-certs/invalid-ca.crt
// test-certs/metron.csr
// test-certs/reverselogproxy.csr
// test-certs/server.crt
// test-certs/server.key
// DO NOT EDIT!
package loggregator_test
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
"time"
)
type asset struct {
bytes []byte
info os.FileInfo
}
type bindataFileInfo struct {
name string
size int64
mode os.FileMode
modTime time.Time
}
func (fi bindataFileInfo) Name() string {
return fi.name
}
func (fi bindataFileInfo) Size() int64 {
return fi.size
}
func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
}
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
}
func (fi bindataFileInfo) IsDir() bool {
return false
}
func (fi bindataFileInfo) Sys() interface{} {
return nil
}
var _caCrl = []byte(`-----BEGIN X509 CRL-----
MIIChzBxAgEBMA0GCSqGSIb3DQEBCwUAMBgxFjAUBgNVBAMTDWxvZ2dyZWdhdG9y
Q0EXDTIxMDYxNzIxNTU1NloXDTQ2MDYxNzIxNTU1NVowAKAjMCEwHwYDVR0jBBgw
FoAUX/2QoNqcyZrxb4ktjdoI/p1IsQ8wDQYJKoZIhvcNAQELBQADggIBAE+g2muh
hzWQMptI9Apsnn7m4qUq/y6vtIFiJwt0vQuwb7zOYNiDMVOtSsnzwo/kp6rYzxOj
bsDafUUcHpmQbKl1YlIP/XjJi/SoMGIilXhQCboARTvJTjtpaAH4OFWSOzKQ3Hs8
ggO9iFgTmXXNiqeUH99SKemTcDrduFC9LXAzBH4V6oVyoDssiqzUgpk24EgHP3W0
fC0TuFnT8QBOurv4dTTBk7aVcZ8Yxx5XIQizFDDAmpLBKIuCAXMCSjrYmQuqwtxz
I1CIlvPumal00BqcLGDZTodQoy2bgTJC0KoxBJYAtZLWxwLshVgABN53Vq5vcm5G
KZMhBpxebm+xzVGvIHg1n/ZqeydBGe8I6A56w24TY0lOGZuXYE9rW29EvduRRvXX
8MEiVMKDX3ZrvrxJlRzhFSnxekVdqFCAp1o6OTZ0NeOZbQdFWDzaq0kFpcTqk9/Y
L/924VWuGnbaFAbXPx361HL+byN7CCPBVuWdVxGx2RzR1iW7AVIGVztIHRSD/iwg
qD3Ak9ded0er9XkMqjQpV/VLKqr8GDad1UgZdcqPxTfwvvFRU/XuPv4OlylY+hNt
9S2T+4t5BLRtefWu7n5VMVgYJXqu4vLegFppM+SDOGZQDxhMeQsEhNMndTUy0QBL
GLhpE2YAsO1aBAEm0ObHRizTzbLPmGkqlBSh
-----END X509 CRL-----
`)
func caCrlBytes() ([]byte, error) {
return _caCrl, nil
}
func caCrl() (*asset, error) {
bytes, err := caCrlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "CA.crl", size: 930, mode: os.FileMode(292), modTime: time.Unix(1623966956, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _caCrt = []byte(`-----BEGIN CERTIFICATE-----
MIIE8DCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADAYMRYwFAYDVQQDEw1sb2dn
cmVnYXRvckNBMB4XDTIxMDYxNzIxNTU1NloXDTQ2MDYxNzIxNTU1NVowGDEWMBQG
A1UEAxMNbG9nZ3JlZ2F0b3JDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
ggIBALqfmAQDG6pe09+iFr7q623Cp0SZj/STs8EvkAuSehWh8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63+phQY3/BEGLUwMo/7qf9CwaKLTWKCW+4rm8s2Bx2DoNaXfh
lC9jmNCh5AB+LnJp8FP3QtHvrr4RmqxkjdPCj+qg4Sw5F0Jdv5iv8fPo7H1OXRvx
aOaTg3HQhitHTQC7fbeiwWjaT+dUoM9pztcijeQx/mSoOm/+wYfJEckgwZyuVSSj
RPaWg5CNQC2IeJotpXg1Gv0YguU6s1EIyRj2jiLRFHpRxtYu2KNqS9cs/uJPae0A
usvDlyqw/D/dhRl+JH8rMK8Zxj1vhPD2so0aYU8NTdmeL3tXjRTK0VVEK6nVOvNH
gQcIxHigQjm00Xc0OAVhdUxzVgwbI8ADa0v+6bZjqjlKGytNogkmUwbkZwf5t1/k
LybgDAH2yTpnRmw/PTTVG4ssZcM=
-----END CERTIFICATE-----
`)
func caCrtBytes() ([]byte, error) {
return _caCrt, nil
}
func caCrt() (*asset, error) {
bytes, err := caCrtBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "CA.crt", size: 1773, mode: os.FileMode(292), modTime: time.Unix(1623966956, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _caKey = []byte(`-----BEGIN RSA PRIVATE KEY-----
MIIJKQIBAAKCAgEAup+YBAMbql7T36IWvurrbcKnRJmP9JOzwS+QC5J6FaHwwc+u
iFiOJlPFcBsxOxQv/gCnw9cKmsL0KzrCzPWTN5kxaYsd/FSQiO+B40x7Siw7S5YP
l2Pqvius7T4Cs1Iu6L+QfeaxbBze6kwAkET49OIYe13VPx62poTPxGntsgciV/rO
vSxxD5QWPUkwlQz9DbG8IylN9PbuBta6D1BL91Sy1AS99R6hzavO9SbAyTUGrfDu
XTQZX9odzFVJTS/vt/LDY91eF/Qm//EfnHvxB6yVy1Yqkxrt8yRWQIjKRraZlppV
6jzJ5KvPAfIxp3Cqkc/5aKSSdRbHPZTEBF+Qnp4n9el7B20aC62F9XuSWC/N0JY7
yexowd9+uHPE7j5qF+JOv6JMyXyJPHle+j5wfea52VO64ADXbFew6ded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Vmc23M1iA/Z9AifXW2xndPo6c7fazpsK+38Yay3yk9XUJwpxyHZZlu8yPUW
HyfMzLcvwkgp6C44w36UITFI2vk+Se3RxbJMex3l3JuB5FvC86IxLAKTiUFctSe7
IWcxd2n/C0Wkpnp0lAjb4UJA6b8s3TdPNEFknYDhGYo+uG4tkE2ku4AzWRhViLSw
3AwhE6QY2uaNgzo8SDAx4I6TO+je8m7HAoIBAQCh15BB3hsAL9K+a4SqTQZo85Gx
9O3ACeybPoeviwrIKaNdqZWI+2AJNxcCnXCd+3roJtTGSPakxW3JwDSvqUBfBwcH
A6t+uGaKx1uiOo8sKbdU/Qp+I2ARUclgDkpDU0OjWSPNYqmuJLYztKX7/LtZ2Atm
nbA6YyuyKKQexDSIw/qc2kDKR1UdGm4pxyjsCDqBsyeDnQy4WsSaihD5P6gaKvuH
DjNqakKhU9EAqsKD8SNyUTbGeivzqYs1fhAK3G73BEsrTiP91U/cWfEAA9ow5tF6
3YzaPvuC/cp1RtFgNh+18gZS6r4v9ex4MXg7Ly542ON7iQsIlsxVZrXWWR0o
-----END RSA PRIVATE KEY-----
`)
func caKeyBytes() ([]byte, error) {
return _caKey, nil
}
func caKey() (*asset, error) {
bytes, err := caKeyBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "CA.key", size: 3243, mode: os.FileMode(288), modTime: time.Unix(1623966956, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _clientCrt = []byte(`-----BEGIN CERTIFICATE-----
MIIETDCCAjSgAwIBAgIRAL5EcrmG6+xxPFSHMCpnfTYwDQYJKoZIhvcNAQELBQAw
GDEWMBQGA1UEAxMNbG9nZ3JlZ2F0b3JDQTAeFw0yMTA2MTcyMTU1NTZaFw00NjA2
MTcyMTU1NTRaMBoxGDAWBgNVBAMTD3JldmVyc2Vsb2dwcm94eTCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBAKOth4D/CFwI5tTgp0w+bp4Z4UTCzBopkdc6
5YVQI6tNd5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QrWHRKG4+eKks39a2ho
R11GcxbZuh1dqLJZDan57aREq+aa8IurUDpq265rkzqGldESAJh4R9QLo2ItRtJh
PtnI7Bi0PiLgy4asjpXWvqWzSIlvcEsQSNYcZSbztgPR/ycSyWV6mqgjp40vlgPu
-----END CERTIFICATE-----
`)
func clientCrtBytes() ([]byte, error) {
return _clientCrt, nil
}
func clientCrt() (*asset, error) {
bytes, err := clientCrtBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "client.crt", size: 1549, mode: os.FileMode(292), modTime: time.Unix(1623966956, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _clientKey = []byte(`-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAo62HgP8IXAjm1OCnTD5unhnhRMLMGimR1zrlhVAjq013nHA/
z6FzF0b0LLXzf8/yX/ytXGK1/1EWd/W/b27b7eWuWMF+l8oGEHD40+XGW2CiT8e8
lVYpc72RJak8/MFiRXEnnOXPwKQM5qWQygzhy2R6XzlLCdD6SnAGVSLR5SMU5l+3
FDT+WoMAuG73E8gDpwwLkqfYASLaTNGeyYZLgYk3pkwa6C5u/3MMLfGSvHHmquDz
maJFKBuEBWJvgrPVmxumQtlp3CDWq3QBJUaATd9cw2cRDngDzth89CCQaQX7Ihei
9GEpDbCaaagq1Px9dbssr5AKDULq+5q3r5dZJwIDAQABAoIBAQCc/A2P6ouRAjSr
DkFHPkYIO1g1BASQPziSzvlecKuVXDqRf5OkR/xD4hjFXUoLV13nNEjt5/sYwyQi
sEAI17H2rSkYFZWebfR9Bm2RhrtF3xwuGqtELByb1sCE95n37l6brdjJgh1Nbcq1
2SxSriJOWrOH60KOSrIUfPeF5lycQA27B72POL3B3+lkXQo3Jo53xau96wtiSF8O
ePaKqt75YkkrQyuLbHOvZaxZz1fNoZSRkKcdMX+HoX36K4MjpNwI7mxnAEXlKjTS
mM/+nz+ri/pRMTyxzOE93H/9doTBaRroq6gmPNIEj9i7lpa4xADexeA2AoWST05u
+yvSSYSZAoGBAMduehfpmmzCMwiENl6DA3/wjx9mdoJ3YbIX0eEWR4CC8W9bzKBC
EhOGWoC0QSZaSrXdWW7hnuEBzsZvlpkOCz4J9/hh7IG/113OYvh9uU7y4Q+F8S5F
RlqfdPsGaz2Y1l4hpXFmqXbCU8OybPXpUcFuYnom+KVKVlvmn5fmIKMjAoGBANIa
1UBCdOI/ukZoVYSnMnax7hXkLvuhkJJuyoGXmAMDkqLif89NZwrvbo3MhY80lfOz
+/iz6/Y+Ac/cYxHDItlJFSiWo9imCva8gJ7MWQQJ97uijkcoidoL+jD1aGN7tK41
wHbSt84tyXg5+yljo36hCD+qo/rlOJgIXHSJ62QtAoGATrYRxiJS6p3zGmdkNgUr
enFta407NN79VhcEpPvwGI6Vz8fBiXbKP56FVcrO894rIoBMbfDqjg/ylmswWxQp
58BzeDrd54/Z5pIwibbFTp2ZqlDJEeQRkm7g8rpj1RnfcaOB8rH8LH0iJljjnGML
+3Yfs+pxtHsUfo0VbBRNyVUCgYAQXBSEx2fwggPQHamjBZ3RTjN6suTRpRfrvwK3
qoUknu+ZDUfkbWN7n38dPXKc3vxaGIajK+dQqi1b8Q4pwOcCwkUKfwhNA0jRQ4ZE
VycLQHdwvcyUT9zEBLC7hTBWprg/5GGTHv8+56PLX8BlzaNaZdGNm4zfKWAJvoTs
chzJFQKBgEly6GRIZtWb7UHSMf8izXa6uPeQsp5VXd2PSi0ccd9pffRACMOKnytm
iOmSCLvtA/5+PpCjxRiFUXCOxDDV59XtfHvVU1ZEcJukpRpIAlSu+vjUylgSYMeV
69Dne5L27XtBQ1xvN0cLG7p8Jom7urH4925dpcnhxq5KVSQ9SjUH
-----END RSA PRIVATE KEY-----
`)
func clientKeyBytes() ([]byte, error) {
return _clientKey, nil
}
func clientKey() (*asset, error) {
bytes, err := clientKeyBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "client.key", size: 1675, mode: os.FileMode(288), modTime: time.Unix(1623966956, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _invalidCaCrt = []byte(`foobar
`)
func invalidCaCrtBytes() ([]byte, error) {
return _invalidCaCrt, nil
}
func invalidCaCrt() (*asset, error) {
bytes, err := invalidCaCrtBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "invalid-ca.crt", size: 7, mode: os.FileMode(436), modTime: time.Unix(1623966956, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _metronCsr = []byte(`-----BEGIN CERTIFICATE REQUEST-----
MIICejCCAWICAQAwETEPMA0GA1UEAxMGbWV0cm9uMIIBIjANBgkqhkiG9w0BAQEF
AAOCAQ8AMIIBCgKCAQEA2jF5+Bl4Ayh+xdef50a81gJPksWzEtj907zyJ1SUS2ts
O/SgeFcBoE8ezgFSBOzCiwXzRmy+8S4uvfOhKG0xfygHO7YQJFKnptGmbEyNVpDW
Nhz61YrVh5TK173nu38TgtZqzKakUfxbUr/0JSlV9XXSNf5m1K3SK5jZ2jE14v1l
0O7Nk6pGqI2gbqfkQ42FhsJrWZ2A4TPtMnHEAxRKcSTEJ3HbrGWEbBAxjPe+t1RA
LoiEHCGNx9jsL4Kq+04mCxtGPwNIBgxD8ya8Jwv8VHonHCWupoFvdKsl/zchkG+e
ZCEi9fSLVqrN/eJYo2+R2o/tqWPXsLbRnng3hrcZUQIDAQABoCQwIgYJKoZIhvcN
AQkOMRUwEzARBgNVHREECjAIggZtZXRyb24wDQYJKoZIhvcNAQELBQADggEBANT5
RYbf/OCDlcIo6NIDzFG3Y0S1sQcTFg0IwCaUYgubTfjWOZ3dc7xpqMgoTUXktRzw
GThO0TEnoH628m/3nP5rll/KVQTv3DU3p79l00WlQbaCJvXJ3e2Nz74jumcLuEji
n4g37CBadmCwUymK0+yMfm+94bjBJ3Hdt1XBJslVrBlhPTWtcpIfKKIT2ckCeZNc
FGT2tgob0WG/ys1MQ+bmoezwUb1TZLAcDeKQukUTx395WHL95A6JQRK2QCRm0ZZS
XPQsr4lMFYMztJVc3b4TRxE7o72pV3imnoc+QHX5xfS2eiAtg6ZPKhjCgAHKmgDy
Y+CWzgW9kggs5mfVHOM=
-----END CERTIFICATE REQUEST-----
`)
func metronCsrBytes() ([]byte, error) {
return _metronCsr, nil
}
func metronCsr() (*asset, error) {
bytes, err := metronCsrBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "metron.csr", size: 936, mode: os.FileMode(292), modTime: time.Unix(1623966956, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _reverselogproxyCsr = []byte(`-----BEGIN CERTIFICATE REQUEST-----
MIICjDCCAXQCAQAwGjEYMBYGA1UEAxMPcmV2ZXJzZWxvZ3Byb3h5MIIBIjANBgkq
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo62HgP8IXAjm1OCnTD5unhnhRMLMGimR
1zrlhVAjq013nHA/z6FzF0b0LLXzf8/yX/ytXGK1/1EWd/W/b27b7eWuWMF+l8oG
EHD40+XGW2CiT8e8lVYpc72RJak8/MFiRXEnnOXPwKQM5qWQygzhy2R6XzlLCdD6
SnAGVSLR5SMU5l+3FDT+WoMAuG73E8gDpwwLkqfYASLaTNGeyYZLgYk3pkwa6C5u
/3MMLfGSvHHmquDzmaJFKBuEBWJvgrPVmxumQtlp3CDWq3QBJUaATd9cw2cRDngD
zth89CCQaQX7Ihei9GEpDbCaaagq1Px9dbssr5AKDULq+5q3r5dZJwIDAQABoC0w
KwYJKoZIhvcNAQkOMR4wHDAaBgNVHREEEzARgg9yZXZlcnNlbG9ncHJveHkwDQYJ
KoZIhvcNAQELBQADggEBAJ1E0OdsYteb7B44mdtzLDaErh1voCVQTQeGvhQNIPh4
ODBANBWc26VO/oWvKMN+8SddZ0UmhOCYT6CLAmWzb+U4K5/1X+9tQ5Pv9m5pyDJU
60Wiq8Pp4Oxj5zVX18StDHgZRF1kHoLEw8DF5WoD9zT+pl0rNDNPQ3FXME1ndlkD
266Qj7ubADh8CY1BX61CQtMncg30hawaKRzpG03D2cnuUiwfrOwVTFn9CBptbhK4
gy4vuWw0grPqFlG91J5mbtftlpgrpkwI3jznAKpCV0fRHAGzcagf1y59MLypJQB4
oMilDqr0XVgo8jGY7tPhDTHHaz0cCinuDXY4Jwxv9Vo=
-----END CERTIFICATE REQUEST-----
`)
func reverselogproxyCsrBytes() ([]byte, error) {
return _reverselogproxyCsr, nil
}
func reverselogproxyCsr() (*asset, error) {
bytes, err := reverselogproxyCsrBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "reverselogproxy.csr", size: 960, mode: os.FileMode(292), modTime: time.Unix(1623966956, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _serverCrt = []byte(`-----BEGIN CERTIFICATE-----
MIIEOjCCAiKgAwIBAgIRAOe16YJ7n4JN2Lk+qx+bd+8wDQYJKoZIhvcNAQELBQAw
GDEWMBQGA1UEAxMNbG9nZ3JlZ2F0b3JDQTAeFw0yMTA2MTcyMTU1NTZaFw00NjA2
MTcyMTU1NTRaMBExDzANBgNVBAMTBm1ldHJvbjCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBANoxefgZeAMofsXXn+dGvNYCT5LFsxLY/dO88idUlEtrbDv0
oHhXAaBPHs4BUgTswosF80ZsvvEuLr3zoShtMX8oBzu2ECRSp6bRpmxMjVaQ1jYc
+tWK1YeUyte957t/E4LWasympFH8W1K/9CUpVfV10jX+ZtSt0iuY2doxNeL9ZdDu
zZOqRqiNoG6n5EONhYbCa1mdgOEz7TJxxAMUSnEkxCdx26xlhGwQMYz3vrdUQC6I
hBwhjcfY7C+CqvtOJgsbRj8DSAYMQ/MmvCcL/FR6JxwlrqaBb3SrJf83IZBvnmQh
IvX0i1aqzf3iWKNvkdqP7alj17C20Z54N4a3GVECAwEAAaOBhTCBgjAOBgNVHQ8B
Af8EBAMCA7gwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMB0GA1UdDgQW
BBRj6WW2oRJ5KMaM2FiOqscbWH373TAfBgNVHSMEGDAWgBRf/ZCg2pzJmvFviS2N
2gj+nUixDzARBgNVHREECjAIggZtZXRyb24wDQYJKoZIhvcNAQELBQADggIBALZR
9fJ1RaOgTLZmo7u9gavi7Kl1dwci3z0MQtEiFQLYvEG5rwQVF9VU6Lsrl9IGx/lA
JEFXYX5JAcnvreFTSOl8R2nDXNhVK01yWqk4RG0LnGFeld21Mj2Sxnc6OSy61p2k
Tk6q5LPqqpzzI9KNmAk4RPVeQZsr+qKuu04nr+bjZKX1zjzE+SHnGOIyYj9CsRpG
4AVJFZkQsx124XYMQ2gRGjnqwP73+2mO/nVKR3op7Fl9TN8HB0CJtL3+Rs5aCys2
B2DiRUNfzsGxV6fLnFDM8n0fHl729F6HdFoyUCFWtq08XZ4jhNR+0ufWG3YvvIcv
ZtEdjNzE367/Z843EPlaJGEGOhMkGZzmKqutO5z7NCYFEOBsoN3WF9EMD61IBVkB
/+ljtzPTaet6hTD32po4+bykv4H2DaJ/1oGNDwum7LmaXo3KsrCIstZOTW9Sj3rV
CaX/9w2+JeEXHXI/lmowFAvV17XNtBEyiCRJj0vToo4L6ROnosJN5HRmlc04rC0D
KFStJ3RsB8ghSA6kjiYQcugGNWx4vS5W3FC1AptUdqtd/qV92hKZCpMquHTvKQkL
sBjBTsgHA2sFf6+ybeuKgFYdlmeTycZyMQekeiT8Yn131XHK7TPl0CXx4P7iQ2gm
wFHQbuZKItL28i0keRrtsQAJjiNTlfskahfnD5us
-----END CERTIFICATE-----
`)
func serverCrtBytes() ([]byte, error) {
return _serverCrt, nil
}
func serverCrt() (*asset, error) {
bytes, err := serverCrtBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "server.crt", size: 1525, mode: os.FileMode(292), modTime: time.Unix(1623966956, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _serverKey = []byte(`-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA2jF5+Bl4Ayh+xdef50a81gJPksWzEtj907zyJ1SUS2tsO/Sg
eFcBoE8ezgFSBOzCiwXzRmy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365LWt+cPz5xpxqEz5yOSP
O4PAHGqDuUhPmt9tFjigV9WSInKpggEOKZtUdegjmQ8NYGeNjYvu6kTLoPN4tIol
J8RZpm9bzC2exHcl0TdYyQKBgQCB0oulJGs2uOGnJbaucD8O27l2w7ioWYhhUDu3
Qt42VI5uuu5PvDSeXp4BvcCWxghBrDzKeyeGeHDizycBb0lSGql+gcqO5lyNmKLu
g5fnEDDZVRla0nIqhoFxvTOBjx4zYop/Gk4pBmbZL1RgauMT9QKCJnBbQ0ex0kwE
pZaDcQKBgHxyz/DyXQb3PYQ1+7dYBGQjRtY2nqEKHKdmvMf/Cwj6zqcqNY2uOcmu
8ooq+4RC/uKUOQMjKepTAJcFNfhjncp7NKUHsE6gEIZa9mAADpsPlwehqC3TbqWr
NnhaI9JoDrLxus/3u6nMoWEPRu9g7W8r9HFk/fHdpnFL5kaTI0db
-----END RSA PRIVATE KEY-----
`)
func serverKeyBytes() ([]byte, error) {
return _serverKey, nil
}
func serverKey() (*asset, error) {
bytes, err := serverKeyBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "server.key", size: 1675, mode: os.FileMode(288), modTime: time.Unix(1623966956, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
// Asset loads and returns the asset for the given name.
// It returns an error if the asset could not be found or
// could not be loaded.
func Asset(name string) ([]byte, error) {
cannonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[cannonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
}
return a.bytes, nil
}
return nil, fmt.Errorf("Asset %s not found", name)
}
// MustAsset is like Asset but panics when Asset would return an error.
// It simplifies safe initialization of global variables.
func MustAsset(name string) []byte {
a, err := Asset(name)
if err != nil {
panic("asset: Asset(" + name + "): " + err.Error())
}
return a
}
// AssetInfo loads and returns the asset info for the given name.
// It returns an error if the asset could not be found or
// could not be loaded.
func AssetInfo(name string) (os.FileInfo, error) {
cannonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[cannonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
}
return a.info, nil
}
return nil, fmt.Errorf("AssetInfo %s not found", name)
}
// AssetNames returns the names of the assets.
func AssetNames() []string {
names := make([]string, 0, len(_bindata))
for name := range _bindata {
names = append(names, name)
}
return names
}
// _bindata is a table, holding each asset generator, mapped to its name.
var _bindata = map[string]func() (*asset, error){
"CA.crl": caCrl,
"CA.crt": caCrt,
"CA.key": caKey,
"client.crt": clientCrt,
"client.key": clientKey,
"invalid-ca.crt": invalidCaCrt,
"metron.csr": metronCsr,
"reverselogproxy.csr": reverselogproxyCsr,
"server.crt": serverCrt,
"server.key": serverKey,
}
// AssetDir returns the file names below a certain
// directory embedded in the file by go-bindata.
// For example if you run go-bindata on data/... and data contains the
// following hierarchy:
// data/
// foo.txt
// img/
// a.png
// b.png
// then AssetDir("data") would return []string{"foo.txt", "img"}
// AssetDir("data/img") would return []string{"a.png", "b.png"}
// AssetDir("foo.txt") and AssetDir("notexist") would return an error
// AssetDir("") will return []string{"data"}.
func AssetDir(name string) ([]string, error) {
node := _bintree
if len(name) != 0 {
cannonicalName := strings.Replace(name, "\\", "/", -1)
pathList := strings.Split(cannonicalName, "/")
for _, p := range pathList {
node = node.Children[p]
if node == nil {
return nil, fmt.Errorf("Asset %s not found", name)
}
}
}
if node.Func != nil {
return nil, fmt.Errorf("Asset %s not found", name)
}
rv := make([]string, 0, len(node.Children))
for childName := range node.Children {
rv = append(rv, childName)
}
return rv, nil
}
type bintree struct {
Func func() (*asset, error)
Children map[string]*bintree
}
var _bintree = &bintree{nil, map[string]*bintree{
"CA.crl": &bintree{caCrl, map[string]*bintree{}},
"CA.crt": &bintree{caCrt, map[string]*bintree{}},
"CA.key": &bintree{caKey, map[string]*bintree{}},
"client.crt": &bintree{clientCrt, map[string]*bintree{}},
"client.key": &bintree{clientKey, map[string]*bintree{}},
"invalid-ca.crt": &bintree{invalidCaCrt, map[string]*bintree{}},
"metron.csr": &bintree{metronCsr, map[string]*bintree{}},
"reverselogproxy.csr": &bintree{reverselogproxyCsr, map[string]*bintree{}},
"server.crt": &bintree{serverCrt, map[string]*bintree{}},
"server.key": &bintree{serverKey, map[string]*bintree{}},
}}
// RestoreAsset restores an asset under the given directory
func RestoreAsset(dir, name string) error {
data, err := Asset(name)
if err != nil {
return err
}
info, err := AssetInfo(name)
if err != nil {
return err
}
err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755))
if err != nil {
return err
}
err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
if err != nil {
return err
}
err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
if err != nil {
return err
}
return nil
}
// RestoreAssets restores an asset under the given directory recursively
func RestoreAssets(dir, name string) error {
children, err := AssetDir(name)
// File
if err != nil {
return RestoreAsset(dir, name)
}
// Dir
for _, child := range children {
err = RestoreAssets(dir, filepath.Join(name, child))
if err != nil {
return err
}
}
return nil
}
func _filePath(dir, name string) string {
cannonicalName := strings.Replace(name, "\\", "/", -1)
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
}