FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stackrox/generated/storage/image.pb.go at master · stackrox/stackrox · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
stackrox
/
stackrox
Public
Notifications
You must be signed in to change notification settings
Fork
191
Star
1.3k
Code
Issues
54
Pull requests
604
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
stackrox
/
generated
/
storage
/
image.pb.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
2422 lines (2109 loc) · 75.8 KB
Breadcrumbs
stackrox
/
generated
/
storage
/
image.pb.go
Copy path
File metadata and controls
2422 lines (2109 loc) · 75.8 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v6.32.1
// source: storage/image.proto
package
storage
import
(
protoreflect
"google.golang.org/protobuf/reflect/protoreflect"
protoimpl
"google.golang.org/protobuf/runtime/protoimpl"
timestamppb
"google.golang.org/protobuf/types/known/timestamppb"
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
SourceType
int32
const
(
SourceType_OS
SourceType
=
0
SourceType_PYTHON
SourceType
=
1
SourceType_JAVA
SourceType
=
2
SourceType_RUBY
SourceType
=
3
SourceType_NODEJS
SourceType
=
4
SourceType_GO
SourceType
=
7
SourceType_DOTNETCORERUNTIME
SourceType
=
5
SourceType_INFRASTRUCTURE
SourceType
=
6
)
// Enum value maps for SourceType.
var
(
SourceType_name
=
map
[
int32
]
string
{
0
:
"OS"
,
1
:
"PYTHON"
,
2
:
"JAVA"
,
3
:
"RUBY"
,
4
:
"NODEJS"
,
7
:
"GO"
,
5
:
"DOTNETCORERUNTIME"
,
6
:
"INFRASTRUCTURE"
,
}
SourceType_value
=
map
[
string
]
int32
{
"OS"
:
0
,
"PYTHON"
:
1
,
"JAVA"
:
2
,
"RUBY"
:
3
,
"NODEJS"
:
4
,
"GO"
:
7
,
"DOTNETCORERUNTIME"
:
5
,
"INFRASTRUCTURE"
:
6
,
}
)
func
(
x
SourceType
)
Enum
()
*
SourceType
{
p
:=
new
(
SourceType
)
*
p
=
x
return
p
}
func
(
x
SourceType
)
String
()
string
{
return
protoimpl
.
X
.
EnumStringOf
(
x
.
Descriptor
(),
protoreflect
.
EnumNumber
(
x
))
}
func
(
SourceType
)
Descriptor
() protoreflect.
EnumDescriptor
{
return
file_storage_image_proto_enumTypes
[
0
].
Descriptor
()
}
func
(
SourceType
)
Type
() protoreflect.
EnumType
{
return
&
file_storage_image_proto_enumTypes
[
0
]
}
func
(
x
SourceType
)
Number
() protoreflect.
EnumNumber
{
return
protoreflect
.
EnumNumber
(
x
)
}
// Deprecated: Use SourceType.Descriptor instead.
func
(
SourceType
)
EnumDescriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
0
}
}
type
Image_Note
int32
const
(
Image_MISSING_METADATA
Image_Note
=
0
Image_MISSING_SCAN_DATA
Image_Note
=
1
Image_MISSING_SIGNATURE
Image_Note
=
2
Image_MISSING_SIGNATURE_VERIFICATION_DATA
Image_Note
=
3
)
// Enum value maps for Image_Note.
var
(
Image_Note_name
=
map
[
int32
]
string
{
0
:
"MISSING_METADATA"
,
1
:
"MISSING_SCAN_DATA"
,
2
:
"MISSING_SIGNATURE"
,
3
:
"MISSING_SIGNATURE_VERIFICATION_DATA"
,
}
Image_Note_value
=
map
[
string
]
int32
{
"MISSING_METADATA"
:
0
,
"MISSING_SCAN_DATA"
:
1
,
"MISSING_SIGNATURE"
:
2
,
"MISSING_SIGNATURE_VERIFICATION_DATA"
:
3
,
}
)
func
(
x
Image_Note
)
Enum
()
*
Image_Note
{
p
:=
new
(
Image_Note
)
*
p
=
x
return
p
}
func
(
x
Image_Note
)
String
()
string
{
return
protoimpl
.
X
.
EnumStringOf
(
x
.
Descriptor
(),
protoreflect
.
EnumNumber
(
x
))
}
func
(
Image_Note
)
Descriptor
() protoreflect.
EnumDescriptor
{
return
file_storage_image_proto_enumTypes
[
1
].
Descriptor
()
}
func
(
Image_Note
)
Type
() protoreflect.
EnumType
{
return
&
file_storage_image_proto_enumTypes
[
1
]
}
func
(
x
Image_Note
)
Number
() protoreflect.
EnumNumber
{
return
protoreflect
.
EnumNumber
(
x
)
}
// Deprecated: Use Image_Note.Descriptor instead.
func
(
Image_Note
)
EnumDescriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
0
,
0
}
}
type
ImageScan_Note
int32
const
(
ImageScan_UNSET
ImageScan_Note
=
0
ImageScan_OS_UNAVAILABLE
ImageScan_Note
=
1
ImageScan_PARTIAL_SCAN_DATA
ImageScan_Note
=
2
ImageScan_OS_CVES_UNAVAILABLE
ImageScan_Note
=
3
ImageScan_OS_CVES_STALE
ImageScan_Note
=
4
ImageScan_LANGUAGE_CVES_UNAVAILABLE
ImageScan_Note
=
5
ImageScan_CERTIFIED_RHEL_SCAN_UNAVAILABLE
ImageScan_Note
=
6
)
// Enum value maps for ImageScan_Note.
var
(
ImageScan_Note_name
=
map
[
int32
]
string
{
0
:
"UNSET"
,
1
:
"OS_UNAVAILABLE"
,
2
:
"PARTIAL_SCAN_DATA"
,
3
:
"OS_CVES_UNAVAILABLE"
,
4
:
"OS_CVES_STALE"
,
5
:
"LANGUAGE_CVES_UNAVAILABLE"
,
6
:
"CERTIFIED_RHEL_SCAN_UNAVAILABLE"
,
}
ImageScan_Note_value
=
map
[
string
]
int32
{
"UNSET"
:
0
,
"OS_UNAVAILABLE"
:
1
,
"PARTIAL_SCAN_DATA"
:
2
,
"OS_CVES_UNAVAILABLE"
:
3
,
"OS_CVES_STALE"
:
4
,
"LANGUAGE_CVES_UNAVAILABLE"
:
5
,
"CERTIFIED_RHEL_SCAN_UNAVAILABLE"
:
6
,
}
)
func
(
x
ImageScan_Note
)
Enum
()
*
ImageScan_Note
{
p
:=
new
(
ImageScan_Note
)
*
p
=
x
return
p
}
func
(
x
ImageScan_Note
)
String
()
string
{
return
protoimpl
.
X
.
EnumStringOf
(
x
.
Descriptor
(),
protoreflect
.
EnumNumber
(
x
))
}
func
(
ImageScan_Note
)
Descriptor
() protoreflect.
EnumDescriptor
{
return
file_storage_image_proto_enumTypes
[
2
].
Descriptor
()
}
func
(
ImageScan_Note
)
Type
() protoreflect.
EnumType
{
return
&
file_storage_image_proto_enumTypes
[
2
]
}
func
(
x
ImageScan_Note
)
Number
() protoreflect.
EnumNumber
{
return
protoreflect
.
EnumNumber
(
x
)
}
// Deprecated: Use ImageScan_Note.Descriptor instead.
func
(
ImageScan_Note
)
EnumDescriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
2
,
0
}
}
// Status represents the status of the result.
type
ImageSignatureVerificationResult_Status
int32
const
(
ImageSignatureVerificationResult_UNSET
ImageSignatureVerificationResult_Status
=
0
// VERIFIED is set when the signature's verification was successful.
ImageSignatureVerificationResult_VERIFIED
ImageSignatureVerificationResult_Status
=
1
// FAILED_VERIFICATION is set when the signature's verification failed.
ImageSignatureVerificationResult_FAILED_VERIFICATION
ImageSignatureVerificationResult_Status
=
2
// INVALID_SIGNATURE_ALGO is set when the signature's algorithm is invalid and unsupported.
ImageSignatureVerificationResult_INVALID_SIGNATURE_ALGO
ImageSignatureVerificationResult_Status
=
3
// CORRUPTED_SIGNATURE is set when the raw signature is corrupted, i.e. wrong base64 encoding.
ImageSignatureVerificationResult_CORRUPTED_SIGNATURE
ImageSignatureVerificationResult_Status
=
4
// GENERIC_ERROR is set when an error occurred during verification that cannot be associated with a specific
// status.
ImageSignatureVerificationResult_GENERIC_ERROR
ImageSignatureVerificationResult_Status
=
5
)
// Enum value maps for ImageSignatureVerificationResult_Status.
var
(
ImageSignatureVerificationResult_Status_name
=
map
[
int32
]
string
{
0
:
"UNSET"
,
1
:
"VERIFIED"
,
2
:
"FAILED_VERIFICATION"
,
3
:
"INVALID_SIGNATURE_ALGO"
,
4
:
"CORRUPTED_SIGNATURE"
,
5
:
"GENERIC_ERROR"
,
}
ImageSignatureVerificationResult_Status_value
=
map
[
string
]
int32
{
"UNSET"
:
0
,
"VERIFIED"
:
1
,
"FAILED_VERIFICATION"
:
2
,
"INVALID_SIGNATURE_ALGO"
:
3
,
"CORRUPTED_SIGNATURE"
:
4
,
"GENERIC_ERROR"
:
5
,
}
)
func
(
x
ImageSignatureVerificationResult_Status
)
Enum
()
*
ImageSignatureVerificationResult_Status
{
p
:=
new
(
ImageSignatureVerificationResult_Status
)
*
p
=
x
return
p
}
func
(
x
ImageSignatureVerificationResult_Status
)
String
()
string
{
return
protoimpl
.
X
.
EnumStringOf
(
x
.
Descriptor
(),
protoreflect
.
EnumNumber
(
x
))
}
func
(
ImageSignatureVerificationResult_Status
)
Descriptor
() protoreflect.
EnumDescriptor
{
return
file_storage_image_proto_enumTypes
[
3
].
Descriptor
()
}
func
(
ImageSignatureVerificationResult_Status
)
Type
() protoreflect.
EnumType
{
return
&
file_storage_image_proto_enumTypes
[
3
]
}
func
(
x
ImageSignatureVerificationResult_Status
)
Number
() protoreflect.
EnumNumber
{
return
protoreflect
.
EnumNumber
(
x
)
}
// Deprecated: Use ImageSignatureVerificationResult_Status.Descriptor instead.
func
(
ImageSignatureVerificationResult_Status
)
EnumDescriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
4
,
0
}
}
// Signature format used in this message.
type
CosignSignature_SignatureFormat
int32
const
(
CosignSignature_SIGNATURE_FORMAT_UNSPECIFIED
CosignSignature_SignatureFormat
=
0
// SimpleSigning: signature is stored across raw_signature, signature_payload,
// cert_pem, cert_chain_pem, and rekor_bundle.
CosignSignature_SIMPLE_SIGNING
CosignSignature_SignatureFormat
=
1
// DSSE (Dead Simple Signing Envelope): signature is a complete sigstore bundle
// stored in sigstore_bundle. The decomposed simple signing fields are not used.
CosignSignature_DEAD_SIMPLE_SIGNING_ENVELOPE
CosignSignature_SignatureFormat
=
2
)
// Enum value maps for CosignSignature_SignatureFormat.
var
(
CosignSignature_SignatureFormat_name
=
map
[
int32
]
string
{
0
:
"SIGNATURE_FORMAT_UNSPECIFIED"
,
1
:
"SIMPLE_SIGNING"
,
2
:
"DEAD_SIMPLE_SIGNING_ENVELOPE"
,
}
CosignSignature_SignatureFormat_value
=
map
[
string
]
int32
{
"SIGNATURE_FORMAT_UNSPECIFIED"
:
0
,
"SIMPLE_SIGNING"
:
1
,
"DEAD_SIMPLE_SIGNING_ENVELOPE"
:
2
,
}
)
func
(
x
CosignSignature_SignatureFormat
)
Enum
()
*
CosignSignature_SignatureFormat
{
p
:=
new
(
CosignSignature_SignatureFormat
)
*
p
=
x
return
p
}
func
(
x
CosignSignature_SignatureFormat
)
String
()
string
{
return
protoimpl
.
X
.
EnumStringOf
(
x
.
Descriptor
(),
protoreflect
.
EnumNumber
(
x
))
}
func
(
CosignSignature_SignatureFormat
)
Descriptor
() protoreflect.
EnumDescriptor
{
return
file_storage_image_proto_enumTypes
[
4
].
Descriptor
()
}
func
(
CosignSignature_SignatureFormat
)
Type
() protoreflect.
EnumType
{
return
&
file_storage_image_proto_enumTypes
[
4
]
}
func
(
x
CosignSignature_SignatureFormat
)
Number
() protoreflect.
EnumNumber
{
return
protoreflect
.
EnumNumber
(
x
)
}
// Deprecated: Use CosignSignature_SignatureFormat.Descriptor instead.
func
(
CosignSignature_SignatureFormat
)
EnumDescriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
10
,
0
}
}
// This proto is deprecated and replaced by ImageV2.
// Next Tag: 19
//
// Deprecated: Marked as deprecated in storage/image.proto.
type
Image
struct
{
state
protoimpl.
MessageState
`protogen:"open.v1"`
Id
string
`protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty" search:"Image Sha,hidden" sql:"pk"`
// @gotags: search:"Image Sha,hidden" sql:"pk"
Name
*
ImageName
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// This should deprecate the ImageName field long-term, allowing images with the same digest to be associated with
// different locations.
// TODO(dhaus): For now, this message will be without search tags due to duplicated search tags otherwise.
Names
[]
*
ImageName
`protobuf:"bytes,18,rep,name=names,proto3" json:"names,omitempty" search:"-"`
// @gotags: search:"-"
Metadata
*
ImageMetadata
`protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
Scan
*
ImageScan
`protobuf:"bytes,3,opt,name=scan,proto3" json:"scan,omitempty" policy:"Image Scan"`
// @gotags: policy:"Image Scan"
SignatureVerificationData
*
ImageSignatureVerificationData
`protobuf:"bytes,15,opt,name=signature_verification_data,json=signatureVerificationData,proto3" json:"signature_verification_data,omitempty"`
Signature
*
ImageSignature
`protobuf:"bytes,16,opt,name=signature,proto3" json:"signature,omitempty"`
// Types that are valid to be assigned to SetComponents:
//
// *Image_Components
SetComponents
isImage_SetComponents
`protobuf_oneof:"set_components"`
// Types that are valid to be assigned to SetCves:
//
// *Image_Cves
SetCves
isImage_SetCves
`protobuf_oneof:"set_cves"`
// Types that are valid to be assigned to SetFixable:
//
// *Image_FixableCves
SetFixable
isImage_SetFixable
`protobuf_oneof:"set_fixable"`
LastUpdated
*
timestamppb.
Timestamp
`protobuf:"bytes,5,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty" search:"Last Updated,hidden"`
// @gotags: search:"Last Updated,hidden"
NotPullable
bool
`protobuf:"varint,10,opt,name=not_pullable,json=notPullable,proto3" json:"not_pullable,omitempty"`
IsClusterLocal
bool
`protobuf:"varint,17,opt,name=is_cluster_local,json=isClusterLocal,proto3" json:"is_cluster_local,omitempty"`
Priority
int64
`protobuf:"varint,11,opt,name=priority,proto3" json:"priority,omitempty" search:"Image Risk Priority,hidden"`
// @gotags: search:"Image Risk Priority,hidden"
RiskScore
float32
`protobuf:"fixed32,12,opt,name=risk_score,json=riskScore,proto3" json:"risk_score,omitempty" search:"Image Risk Score,hidden"`
// @gotags: search:"Image Risk Score,hidden"
// Types that are valid to be assigned to SetTopCvss:
//
// *Image_TopCvss
SetTopCvss
isImage_SetTopCvss
`protobuf_oneof:"set_top_cvss"`
Notes
[]
Image_Note
`protobuf:"varint,14,rep,packed,name=notes,proto3,enum=storage.Image_Note" json:"notes,omitempty"`
BaseImageInfo
[]
*
BaseImageInfo
`protobuf:"bytes,19,rep,name=base_image_info,json=baseImageInfo,proto3" json:"base_image_info,omitempty" search:"-" sql:"-"`
// @gotags: search:"-" sql:"-"
unknownFields
protoimpl.
UnknownFields
sizeCache
protoimpl.
SizeCache
}
func
(
x
*
Image
)
Reset
() {
*
x
=
Image
{}
mi
:=
&
file_storage_image_proto_msgTypes
[
0
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
func
(
x
*
Image
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
Image
)
ProtoMessage
() {}
func
(
x
*
Image
)
ProtoReflect
() protoreflect.
Message
{
mi
:=
&
file_storage_image_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 Image.ProtoReflect.Descriptor instead.
func
(
*
Image
)
Descriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
0
}
}
func
(
x
*
Image
)
GetId
()
string
{
if
x
!=
nil
{
return
x
.
Id
}
return
""
}
func
(
x
*
Image
)
GetName
()
*
ImageName
{
if
x
!=
nil
{
return
x
.
Name
}
return
nil
}
func
(
x
*
Image
)
GetNames
() []
*
ImageName
{
if
x
!=
nil
{
return
x
.
Names
}
return
nil
}
func
(
x
*
Image
)
GetMetadata
()
*
ImageMetadata
{
if
x
!=
nil
{
return
x
.
Metadata
}
return
nil
}
func
(
x
*
Image
)
GetScan
()
*
ImageScan
{
if
x
!=
nil
{
return
x
.
Scan
}
return
nil
}
func
(
x
*
Image
)
GetSignatureVerificationData
()
*
ImageSignatureVerificationData
{
if
x
!=
nil
{
return
x
.
SignatureVerificationData
}
return
nil
}
func
(
x
*
Image
)
GetSignature
()
*
ImageSignature
{
if
x
!=
nil
{
return
x
.
Signature
}
return
nil
}
func
(
x
*
Image
)
GetSetComponents
()
isImage_SetComponents
{
if
x
!=
nil
{
return
x
.
SetComponents
}
return
nil
}
func
(
x
*
Image
)
GetComponents
()
int32
{
if
x
!=
nil
{
if
x
,
ok
:=
x
.
SetComponents
.(
*
Image_Components
);
ok
{
return
x
.
Components
}
}
return
0
}
func
(
x
*
Image
)
GetSetCves
()
isImage_SetCves
{
if
x
!=
nil
{
return
x
.
SetCves
}
return
nil
}
func
(
x
*
Image
)
GetCves
()
int32
{
if
x
!=
nil
{
if
x
,
ok
:=
x
.
SetCves
.(
*
Image_Cves
);
ok
{
return
x
.
Cves
}
}
return
0
}
func
(
x
*
Image
)
GetSetFixable
()
isImage_SetFixable
{
if
x
!=
nil
{
return
x
.
SetFixable
}
return
nil
}
func
(
x
*
Image
)
GetFixableCves
()
int32
{
if
x
!=
nil
{
if
x
,
ok
:=
x
.
SetFixable
.(
*
Image_FixableCves
);
ok
{
return
x
.
FixableCves
}
}
return
0
}
func
(
x
*
Image
)
GetLastUpdated
()
*
timestamppb.
Timestamp
{
if
x
!=
nil
{
return
x
.
LastUpdated
}
return
nil
}
func
(
x
*
Image
)
GetNotPullable
()
bool
{
if
x
!=
nil
{
return
x
.
NotPullable
}
return
false
}
func
(
x
*
Image
)
GetIsClusterLocal
()
bool
{
if
x
!=
nil
{
return
x
.
IsClusterLocal
}
return
false
}
func
(
x
*
Image
)
GetPriority
()
int64
{
if
x
!=
nil
{
return
x
.
Priority
}
return
0
}
func
(
x
*
Image
)
GetRiskScore
()
float32
{
if
x
!=
nil
{
return
x
.
RiskScore
}
return
0
}
func
(
x
*
Image
)
GetSetTopCvss
()
isImage_SetTopCvss
{
if
x
!=
nil
{
return
x
.
SetTopCvss
}
return
nil
}
func
(
x
*
Image
)
GetTopCvss
()
float32
{
if
x
!=
nil
{
if
x
,
ok
:=
x
.
SetTopCvss
.(
*
Image_TopCvss
);
ok
{
return
x
.
TopCvss
}
}
return
0
}
func
(
x
*
Image
)
GetNotes
() []
Image_Note
{
if
x
!=
nil
{
return
x
.
Notes
}
return
nil
}
func
(
x
*
Image
)
GetBaseImageInfo
() []
*
BaseImageInfo
{
if
x
!=
nil
{
return
x
.
BaseImageInfo
}
return
nil
}
type
isImage_SetComponents
interface
{
isImage_SetComponents
()
}
type
Image_Components
struct
{
Components
int32
`protobuf:"varint,7,opt,name=components,proto3,oneof" search:"Component Count,hidden"`
// @gotags: search:"Component Count,hidden"
}
func
(
*
Image_Components
)
isImage_SetComponents
() {}
type
isImage_SetCves
interface
{
isImage_SetCves
()
}
type
Image_Cves
struct
{
Cves
int32
`protobuf:"varint,8,opt,name=cves,proto3,oneof" search:"Image CVE Count"`
// @gotags: search:"Image CVE Count"
}
func
(
*
Image_Cves
)
isImage_SetCves
() {}
type
isImage_SetFixable
interface
{
isImage_SetFixable
()
}
type
Image_FixableCves
struct
{
FixableCves
int32
`protobuf:"varint,9,opt,name=fixable_cves,json=fixableCves,proto3,oneof" search:"Fixable CVE Count,hidden"`
// @gotags: search:"Fixable CVE Count,hidden"
}
func
(
*
Image_FixableCves
)
isImage_SetFixable
() {}
type
isImage_SetTopCvss
interface
{
isImage_SetTopCvss
()
}
type
Image_TopCvss
struct
{
TopCvss
float32
`protobuf:"fixed32,13,opt,name=top_cvss,json=topCvss,proto3,oneof" search:"Image Top CVSS"`
// @gotags: search:"Image Top CVSS"
}
func
(
*
Image_TopCvss
)
isImage_SetTopCvss
() {}
type
DataSource
struct
{
state
protoimpl.
MessageState
`protogen:"open.v1"`
Id
string
`protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name
string
`protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Mirror
string
`protobuf:"bytes,3,opt,name=mirror,proto3" json:"mirror,omitempty"`
unknownFields
protoimpl.
UnknownFields
sizeCache
protoimpl.
SizeCache
}
func
(
x
*
DataSource
)
Reset
() {
*
x
=
DataSource
{}
mi
:=
&
file_storage_image_proto_msgTypes
[
1
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
func
(
x
*
DataSource
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
DataSource
)
ProtoMessage
() {}
func
(
x
*
DataSource
)
ProtoReflect
() protoreflect.
Message
{
mi
:=
&
file_storage_image_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 DataSource.ProtoReflect.Descriptor instead.
func
(
*
DataSource
)
Descriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
1
}
}
func
(
x
*
DataSource
)
GetId
()
string
{
if
x
!=
nil
{
return
x
.
Id
}
return
""
}
func
(
x
*
DataSource
)
GetName
()
string
{
if
x
!=
nil
{
return
x
.
Name
}
return
""
}
func
(
x
*
DataSource
)
GetMirror
()
string
{
if
x
!=
nil
{
return
x
.
Mirror
}
return
""
}
// Next tag: 8
type
ImageScan
struct
{
state
protoimpl.
MessageState
`protogen:"open.v1"`
ScannerVersion
string
`protobuf:"bytes,6,opt,name=scanner_version,json=scannerVersion,proto3" json:"scanner_version,omitempty"`
ScanTime
*
timestamppb.
Timestamp
`protobuf:"bytes,1,opt,name=scan_time,json=scanTime,proto3" json:"scan_time,omitempty" search:"Image Scan Time"`
// @gotags: search:"Image Scan Time"
Components
[]
*
EmbeddedImageScanComponent
`protobuf:"bytes,2,rep,name=components,proto3" json:"components,omitempty" sql:"-"`
// @gotags: sql:"-"
OperatingSystem
string
`protobuf:"bytes,4,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty" search:"Image OS"`
// @gotags: search:"Image OS"
// DataSource contains information about which integration was used to scan the image
DataSource
*
DataSource
`protobuf:"bytes,3,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
Notes
[]
ImageScan_Note
`protobuf:"varint,5,rep,packed,name=notes,proto3,enum=storage.ImageScan_Note" json:"notes,omitempty"`
// Types that are valid to be assigned to Hashoneof:
//
// *ImageScan_Hash
Hashoneof
isImageScan_Hashoneof
`protobuf_oneof:"hashoneof"`
unknownFields
protoimpl.
UnknownFields
sizeCache
protoimpl.
SizeCache
}
func
(
x
*
ImageScan
)
Reset
() {
*
x
=
ImageScan
{}
mi
:=
&
file_storage_image_proto_msgTypes
[
2
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
func
(
x
*
ImageScan
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
ImageScan
)
ProtoMessage
() {}
func
(
x
*
ImageScan
)
ProtoReflect
() protoreflect.
Message
{
mi
:=
&
file_storage_image_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 ImageScan.ProtoReflect.Descriptor instead.
func
(
*
ImageScan
)
Descriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
2
}
}
func
(
x
*
ImageScan
)
GetScannerVersion
()
string
{
if
x
!=
nil
{
return
x
.
ScannerVersion
}
return
""
}
func
(
x
*
ImageScan
)
GetScanTime
()
*
timestamppb.
Timestamp
{
if
x
!=
nil
{
return
x
.
ScanTime
}
return
nil
}
func
(
x
*
ImageScan
)
GetComponents
() []
*
EmbeddedImageScanComponent
{
if
x
!=
nil
{
return
x
.
Components
}
return
nil
}
func
(
x
*
ImageScan
)
GetOperatingSystem
()
string
{
if
x
!=
nil
{
return
x
.
OperatingSystem
}
return
""
}
func
(
x
*
ImageScan
)
GetDataSource
()
*
DataSource
{
if
x
!=
nil
{
return
x
.
DataSource
}
return
nil
}
func
(
x
*
ImageScan
)
GetNotes
() []
ImageScan_Note
{
if
x
!=
nil
{
return
x
.
Notes
}
return
nil
}
func
(
x
*
ImageScan
)
GetHashoneof
()
isImageScan_Hashoneof
{
if
x
!=
nil
{
return
x
.
Hashoneof
}
return
nil
}
func
(
x
*
ImageScan
)
GetHash
()
uint64
{
if
x
!=
nil
{
if
x
,
ok
:=
x
.
Hashoneof
.(
*
ImageScan_Hash
);
ok
{
return
x
.
Hash
}
}
return
0
}
type
isImageScan_Hashoneof
interface
{
isImageScan_Hashoneof
()
}
type
ImageScan_Hash
struct
{
Hash
uint64
`protobuf:"varint,7,opt,name=hash,proto3,oneof"`
}
func
(
*
ImageScan_Hash
)
isImageScan_Hashoneof
() {}
type
ImageSignatureVerificationData
struct
{
state
protoimpl.
MessageState
`protogen:"open.v1"`
Results
[]
*
ImageSignatureVerificationResult
`protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
unknownFields
protoimpl.
UnknownFields
sizeCache
protoimpl.
SizeCache
}
func
(
x
*
ImageSignatureVerificationData
)
Reset
() {
*
x
=
ImageSignatureVerificationData
{}
mi
:=
&
file_storage_image_proto_msgTypes
[
3
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
func
(
x
*
ImageSignatureVerificationData
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
ImageSignatureVerificationData
)
ProtoMessage
() {}
func
(
x
*
ImageSignatureVerificationData
)
ProtoReflect
() protoreflect.
Message
{
mi
:=
&
file_storage_image_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 ImageSignatureVerificationData.ProtoReflect.Descriptor instead.
func
(
*
ImageSignatureVerificationData
)
Descriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
3
}
}
func
(
x
*
ImageSignatureVerificationData
)
GetResults
() []
*
ImageSignatureVerificationResult
{
if
x
!=
nil
{
return
x
.
Results
}
return
nil
}
// Next Tag: 7
type
ImageSignatureVerificationResult
struct
{
state
protoimpl.
MessageState
`protogen:"open.v1"`
VerificationTime
*
timestamppb.
Timestamp
`protobuf:"bytes,1,opt,name=verification_time,json=verificationTime,proto3" json:"verification_time,omitempty"`
// verifier_id correlates to the ID of the signature integration used to verify the signature.
VerifierId
string
`protobuf:"bytes,2,opt,name=verifier_id,json=verifierId,proto3" json:"verifier_id,omitempty"`
Status
ImageSignatureVerificationResult_Status
`protobuf:"varint,3,opt,name=status,proto3,enum=storage.ImageSignatureVerificationResult_Status" json:"status,omitempty"`
// description is set in the case of an error with the specific error's message. Otherwise, this will not be set.
Description
string
`protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// The full image names that are verified by this specific signature integration ID.
VerifiedImageReferences
[]
string
`protobuf:"bytes,5,rep,name=verified_image_references,json=verifiedImageReferences,proto3" json:"verified_image_references,omitempty"`
// verifier_name is the name of the signature integration associated with `verifier_id`.
VerifierName
string
`protobuf:"bytes,6,opt,name=verifier_name,json=verifierName,proto3" json:"verifier_name,omitempty"`
unknownFields
protoimpl.
UnknownFields
sizeCache
protoimpl.
SizeCache
}
func
(
x
*
ImageSignatureVerificationResult
)
Reset
() {
*
x
=
ImageSignatureVerificationResult
{}
mi
:=
&
file_storage_image_proto_msgTypes
[
4
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
func
(
x
*
ImageSignatureVerificationResult
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
ImageSignatureVerificationResult
)
ProtoMessage
() {}
func
(
x
*
ImageSignatureVerificationResult
)
ProtoReflect
() protoreflect.
Message
{
mi
:=
&
file_storage_image_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 ImageSignatureVerificationResult.ProtoReflect.Descriptor instead.
func
(
*
ImageSignatureVerificationResult
)
Descriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
4
}
}
func
(
x
*
ImageSignatureVerificationResult
)
GetVerificationTime
()
*
timestamppb.
Timestamp
{
if
x
!=
nil
{
return
x
.
VerificationTime
}
return
nil
}
func
(
x
*
ImageSignatureVerificationResult
)
GetVerifierId
()
string
{
if
x
!=
nil
{
return
x
.
VerifierId
}
return
""
}
func
(
x
*
ImageSignatureVerificationResult
)
GetStatus
()
ImageSignatureVerificationResult_Status
{
if
x
!=
nil
{
return
x
.
Status
}
return
ImageSignatureVerificationResult_UNSET
}
func
(
x
*
ImageSignatureVerificationResult
)
GetDescription
()
string
{
if
x
!=
nil
{
return
x
.
Description
}
return
""
}
func
(
x
*
ImageSignatureVerificationResult
)
GetVerifiedImageReferences
() []
string
{
if
x
!=
nil
{
return
x
.
VerifiedImageReferences
}
return
nil
}
func
(
x
*
ImageSignatureVerificationResult
)
GetVerifierName
()
string
{
if
x
!=
nil
{
return
x
.
VerifierName
}
return
""
}
// Next Tag: 14
type
EmbeddedImageScanComponent
struct
{
state
protoimpl.
MessageState
`protogen:"open.v1"`
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" search:"Component"`
// @gotags: search:"Component"
Version
string
`protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty" search:"Component Version"`
// @gotags: search:"Component Version"
License
*
License
`protobuf:"bytes,3,opt,name=license,proto3" json:"license,omitempty"`
Vulns
[]
*
EmbeddedVulnerability
`protobuf:"bytes,4,rep,name=vulns,proto3" json:"vulns,omitempty" hash:"set"`
// @gotags: hash:"set"
// Types that are valid to be assigned to HasLayerIndex:
//
// *EmbeddedImageScanComponent_LayerIndex
HasLayerIndex
isEmbeddedImageScanComponent_HasLayerIndex
`protobuf_oneof:"has_layer_index"`
Priority
int64
`protobuf:"varint,6,opt,name=priority,proto3" json:"priority,omitempty" hash:"ignore"`
// @gotags: hash:"ignore"
Source
SourceType
`protobuf:"varint,7,opt,name=source,proto3,enum=storage.SourceType" json:"source,omitempty"`
Location
string
`protobuf:"bytes,8,opt,name=location,proto3" json:"location,omitempty"`
// Types that are valid to be assigned to SetTopCvss:
//
// *EmbeddedImageScanComponent_TopCvss
SetTopCvss
isEmbeddedImageScanComponent_SetTopCvss
`protobuf_oneof:"set_top_cvss"`
RiskScore
float32
`protobuf:"fixed32,10,opt,name=risk_score,json=riskScore,proto3" json:"risk_score,omitempty" search:"Component Risk Score,hidden" hash:"ignore"`
// @gotags: search:"Component Risk Score,hidden" hash:"ignore"
// Component version that fixes all the fixable vulnerabilities in this component.
FixedBy
string
`protobuf:"bytes,11,opt,name=fixed_by,json=fixedBy,proto3" json:"fixed_by,omitempty"`
// Values are cleared after moving to cache, remove them from the grpc return as well
Executables
[]
*
EmbeddedImageScanComponent_Executable
`protobuf:"bytes,12,rep,name=executables,proto3" json:"-"`
// @gotags: json:"-"
Architecture
string
`protobuf:"bytes,13,opt,name=architecture,proto3" json:"architecture,omitempty"`
unknownFields
protoimpl.
UnknownFields
sizeCache
protoimpl.
SizeCache
}
func
(
x
*
EmbeddedImageScanComponent
)
Reset
() {
*
x
=
EmbeddedImageScanComponent
{}
mi
:=
&
file_storage_image_proto_msgTypes
[
5
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
func
(
x
*
EmbeddedImageScanComponent
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
EmbeddedImageScanComponent
)
ProtoMessage
() {}
func
(
x
*
EmbeddedImageScanComponent
)
ProtoReflect
() protoreflect.
Message
{
mi
:=
&
file_storage_image_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 EmbeddedImageScanComponent.ProtoReflect.Descriptor instead.
func
(
*
EmbeddedImageScanComponent
)
Descriptor
() ([]
byte
, []
int
) {
return
file_storage_image_proto_rawDescGZIP
(), []
int
{
5
}
}
func
(
x
*
EmbeddedImageScanComponent
)
GetName
()
string
{
if
x
!=
nil
{
return
x
.
Name
}
return
""
}
func
(
x
*
EmbeddedImageScanComponent
)
GetVersion
()
string
{
if
x
!=
nil
{
return
x
.
Version
}
return
""
}
func
(
x
*
EmbeddedImageScanComponent
)
GetLicense
()
*
License
{
if
x
!=
nil
{
return
x
.
License
}
return
nil
}
func
(
x
*
EmbeddedImageScanComponent
)
GetVulns
() []
*
EmbeddedVulnerability
{
if
x
!=
nil
{
return
x
.
Vulns
}
return
nil
}
func
(
x
*
EmbeddedImageScanComponent
)
GetHasLayerIndex
()
isEmbeddedImageScanComponent_HasLayerIndex
{
if
x
!=
nil
{
return
x
.
HasLayerIndex
}
return
nil
}
func
(
x
*
EmbeddedImageScanComponent
)
GetLayerIndex
()
int32
{
if
x
!=
nil
{
if
x
,
ok
:=
x
.
HasLayerIndex
.(
*
EmbeddedImageScanComponent_LayerIndex
);
ok
{
View remainder of file in raw view
Back
|
FazBrowse Home
|
New Git URL