/
image_basis.pb.go
323 lines (292 loc) · 14.3 KB
/
image_basis.pb.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/containeranalysis/v1alpha1/image_basis.proto
package containeranalysis
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Instructions from dockerfile
type DockerImage_Layer_Directive int32
const (
// Default value for unsupported/missing directive
DockerImage_Layer_DIRECTIVE_UNSPECIFIED DockerImage_Layer_Directive = 0
// https://docs.docker.com/reference/builder/#maintainer
DockerImage_Layer_MAINTAINER DockerImage_Layer_Directive = 1
// https://docs.docker.com/reference/builder/#run
DockerImage_Layer_RUN DockerImage_Layer_Directive = 2
// https://docs.docker.com/reference/builder/#cmd
DockerImage_Layer_CMD DockerImage_Layer_Directive = 3
// https://docs.docker.com/reference/builder/#label
DockerImage_Layer_LABEL DockerImage_Layer_Directive = 4
// https://docs.docker.com/reference/builder/#expose
DockerImage_Layer_EXPOSE DockerImage_Layer_Directive = 5
// https://docs.docker.com/reference/builder/#env
DockerImage_Layer_ENV DockerImage_Layer_Directive = 6
// https://docs.docker.com/reference/builder/#add
DockerImage_Layer_ADD DockerImage_Layer_Directive = 7
// https://docs.docker.com/reference/builder/#copy
DockerImage_Layer_COPY DockerImage_Layer_Directive = 8
// https://docs.docker.com/reference/builder/#entrypoint
DockerImage_Layer_ENTRYPOINT DockerImage_Layer_Directive = 9
// https://docs.docker.com/reference/builder/#volume
DockerImage_Layer_VOLUME DockerImage_Layer_Directive = 10
// https://docs.docker.com/reference/builder/#user
DockerImage_Layer_USER DockerImage_Layer_Directive = 11
// https://docs.docker.com/reference/builder/#workdir
DockerImage_Layer_WORKDIR DockerImage_Layer_Directive = 12
// https://docs.docker.com/reference/builder/#arg
DockerImage_Layer_ARG DockerImage_Layer_Directive = 13
// https://docs.docker.com/reference/builder/#onbuild
DockerImage_Layer_ONBUILD DockerImage_Layer_Directive = 14
// https://docs.docker.com/reference/builder/#stopsignal
DockerImage_Layer_STOPSIGNAL DockerImage_Layer_Directive = 15
// https://docs.docker.com/reference/builder/#healthcheck
DockerImage_Layer_HEALTHCHECK DockerImage_Layer_Directive = 16
// https://docs.docker.com/reference/builder/#shell
DockerImage_Layer_SHELL DockerImage_Layer_Directive = 17
)
var DockerImage_Layer_Directive_name = map[int32]string{
0: "DIRECTIVE_UNSPECIFIED",
1: "MAINTAINER",
2: "RUN",
3: "CMD",
4: "LABEL",
5: "EXPOSE",
6: "ENV",
7: "ADD",
8: "COPY",
9: "ENTRYPOINT",
10: "VOLUME",
11: "USER",
12: "WORKDIR",
13: "ARG",
14: "ONBUILD",
15: "STOPSIGNAL",
16: "HEALTHCHECK",
17: "SHELL",
}
var DockerImage_Layer_Directive_value = map[string]int32{
"DIRECTIVE_UNSPECIFIED": 0,
"MAINTAINER": 1,
"RUN": 2,
"CMD": 3,
"LABEL": 4,
"EXPOSE": 5,
"ENV": 6,
"ADD": 7,
"COPY": 8,
"ENTRYPOINT": 9,
"VOLUME": 10,
"USER": 11,
"WORKDIR": 12,
"ARG": 13,
"ONBUILD": 14,
"STOPSIGNAL": 15,
"HEALTHCHECK": 16,
"SHELL": 17,
}
func (x DockerImage_Layer_Directive) String() string {
return proto.EnumName(DockerImage_Layer_Directive_name, int32(x))
}
func (DockerImage_Layer_Directive) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{0, 0, 0}
}
// DockerImage holds types defining base image notes
// and derived image occurrences.
type DockerImage struct {
}
func (m *DockerImage) Reset() { *m = DockerImage{} }
func (m *DockerImage) String() string { return proto.CompactTextString(m) }
func (*DockerImage) ProtoMessage() {}
func (*DockerImage) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
// Layer holds metadata specific to a layer of a Docker image.
type DockerImage_Layer struct {
// The recovered Dockerfile directive used to construct this layer.
Directive DockerImage_Layer_Directive `protobuf:"varint,1,opt,name=directive,enum=google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive" json:"directive,omitempty"`
// The recovered arguments to the Dockerfile directive.
Arguments string `protobuf:"bytes,2,opt,name=arguments" json:"arguments,omitempty"`
}
func (m *DockerImage_Layer) Reset() { *m = DockerImage_Layer{} }
func (m *DockerImage_Layer) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Layer) ProtoMessage() {}
func (*DockerImage_Layer) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
func (m *DockerImage_Layer) GetDirective() DockerImage_Layer_Directive {
if m != nil {
return m.Directive
}
return DockerImage_Layer_DIRECTIVE_UNSPECIFIED
}
func (m *DockerImage_Layer) GetArguments() string {
if m != nil {
return m.Arguments
}
return ""
}
// A set of properties that uniquely identify a given Docker image.
type DockerImage_Fingerprint struct {
// The layer-id of the final layer in the Docker image's v1
// representation.
// This field can be used as a filter in list requests.
V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name" json:"v1_name,omitempty"`
// The ordered list of v2 blobs that represent a given image.
V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob" json:"v2_blob,omitempty"`
// Output only. The name of the image's v2 blobs computed via:
// [bottom] := v2_blob[bottom]
// [N] := sha256(v2_blob[N] + " " + v2_name[N+1])
// Only the name of the final blob is kept.
// This field can be used as a filter in list requests.
V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name" json:"v2_name,omitempty"`
}
func (m *DockerImage_Fingerprint) Reset() { *m = DockerImage_Fingerprint{} }
func (m *DockerImage_Fingerprint) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Fingerprint) ProtoMessage() {}
func (*DockerImage_Fingerprint) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
func (m *DockerImage_Fingerprint) GetV1Name() string {
if m != nil {
return m.V1Name
}
return ""
}
func (m *DockerImage_Fingerprint) GetV2Blob() []string {
if m != nil {
return m.V2Blob
}
return nil
}
func (m *DockerImage_Fingerprint) GetV2Name() string {
if m != nil {
return m.V2Name
}
return ""
}
// Basis describes the base image portion (Note) of the DockerImage
// relationship. Linked occurrences are derived from this or an
// equivalent image via:
// FROM <Basis.resource_url>
// Or an equivalent reference, e.g. a tag of the resource_url.
type DockerImage_Basis struct {
// The resource_url for the resource representing the basis of
// associated occurrence images.
ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl" json:"resource_url,omitempty"`
// The fingerprint of the base image.
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,2,opt,name=fingerprint" json:"fingerprint,omitempty"`
}
func (m *DockerImage_Basis) Reset() { *m = DockerImage_Basis{} }
func (m *DockerImage_Basis) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Basis) ProtoMessage() {}
func (*DockerImage_Basis) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 2} }
func (m *DockerImage_Basis) GetResourceUrl() string {
if m != nil {
return m.ResourceUrl
}
return ""
}
func (m *DockerImage_Basis) GetFingerprint() *DockerImage_Fingerprint {
if m != nil {
return m.Fingerprint
}
return nil
}
// Derived describes the derived image portion (Occurrence) of the
// DockerImage relationship. This image would be produced from a Dockerfile
// with FROM <DockerImage.Basis in attached Note>.
type DockerImage_Derived struct {
// The fingerprint of the derived image.
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,1,opt,name=fingerprint" json:"fingerprint,omitempty"`
// Output only. The number of layers by which this image differs from the
// associated image basis.
Distance uint32 `protobuf:"varint,2,opt,name=distance" json:"distance,omitempty"`
// This contains layer-specific metadata, if populated it has length
// "distance" and is ordered with [distance] being the layer immediately
// following the base image and [1] being the final layer.
LayerInfo []*DockerImage_Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo" json:"layer_info,omitempty"`
// Output only. This contains the base image URL for the derived image
// occurrence.
BaseResourceUrl string `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl" json:"base_resource_url,omitempty"`
}
func (m *DockerImage_Derived) Reset() { *m = DockerImage_Derived{} }
func (m *DockerImage_Derived) String() string { return proto.CompactTextString(m) }
func (*DockerImage_Derived) ProtoMessage() {}
func (*DockerImage_Derived) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 3} }
func (m *DockerImage_Derived) GetFingerprint() *DockerImage_Fingerprint {
if m != nil {
return m.Fingerprint
}
return nil
}
func (m *DockerImage_Derived) GetDistance() uint32 {
if m != nil {
return m.Distance
}
return 0
}
func (m *DockerImage_Derived) GetLayerInfo() []*DockerImage_Layer {
if m != nil {
return m.LayerInfo
}
return nil
}
func (m *DockerImage_Derived) GetBaseResourceUrl() string {
if m != nil {
return m.BaseResourceUrl
}
return ""
}
func init() {
proto.RegisterType((*DockerImage)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage")
proto.RegisterType((*DockerImage_Layer)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Layer")
proto.RegisterType((*DockerImage_Fingerprint)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Fingerprint")
proto.RegisterType((*DockerImage_Basis)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Basis")
proto.RegisterType((*DockerImage_Derived)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Derived")
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive", DockerImage_Layer_Directive_name, DockerImage_Layer_Directive_value)
}
func init() {
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/image_basis.proto", fileDescriptor2)
}
var fileDescriptor2 = []byte{
// 627 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xdf, 0x6e, 0xda, 0x30,
0x14, 0xc6, 0x17, 0x28, 0xd0, 0x9c, 0xf4, 0x8f, 0x6b, 0x69, 0x1a, 0x43, 0xbd, 0x60, 0x95, 0x26,
0x55, 0xbd, 0x08, 0x82, 0x5d, 0x6e, 0xbb, 0x80, 0xc4, 0x85, 0xa8, 0x69, 0x40, 0x06, 0xba, 0x76,
0x9b, 0x84, 0x0c, 0xb8, 0x59, 0xb4, 0x60, 0x23, 0x27, 0x45, 0xea, 0x3b, 0xec, 0x66, 0x37, 0x7d,
0x80, 0x3d, 0xe1, 0xde, 0x60, 0x93, 0x53, 0x28, 0xdd, 0xaa, 0x49, 0xd5, 0xa6, 0xdd, 0x99, 0xf3,
0xf9, 0xfb, 0x7d, 0xf6, 0xf1, 0x21, 0xf0, 0x26, 0x94, 0x32, 0x8c, 0x79, 0x6d, 0xca, 0x17, 0xa9,
0x94, 0x71, 0x52, 0x9b, 0x48, 0x91, 0xb2, 0x48, 0x70, 0xc5, 0x04, 0x8b, 0xaf, 0x93, 0x28, 0xa9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