-
Notifications
You must be signed in to change notification settings - Fork 199
/
Copy pathtypes.pb.go
1303 lines (1162 loc) · 46.8 KB
/
types.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
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.33.0
// protoc v3.12.4
// source: types.proto
package proto
import (
any1 "github.com/golang/protobuf/ptypes/any"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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)
)
// Message to store bundle/config.json bytes
type ExtraData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
JsonSpec []byte `protobuf:"bytes,1,opt,name=JsonSpec,proto3" json:"JsonSpec,omitempty"`
RuncOptions *any1.Any `protobuf:"bytes,2,opt,name=RuncOptions,proto3" json:"RuncOptions,omitempty"`
StdinPort uint32 `protobuf:"varint,3,opt,name=StdinPort,proto3" json:"StdinPort,omitempty"`
StdoutPort uint32 `protobuf:"varint,4,opt,name=StdoutPort,proto3" json:"StdoutPort,omitempty"`
StderrPort uint32 `protobuf:"varint,5,opt,name=StderrPort,proto3" json:"StderrPort,omitempty"`
}
func (x *ExtraData) Reset() {
*x = ExtraData{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ExtraData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExtraData) ProtoMessage() {}
func (x *ExtraData) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ExtraData.ProtoReflect.Descriptor instead.
func (*ExtraData) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{0}
}
func (x *ExtraData) GetJsonSpec() []byte {
if x != nil {
return x.JsonSpec
}
return nil
}
func (x *ExtraData) GetRuncOptions() *any1.Any {
if x != nil {
return x.RuncOptions
}
return nil
}
func (x *ExtraData) GetStdinPort() uint32 {
if x != nil {
return x.StdinPort
}
return 0
}
func (x *ExtraData) GetStdoutPort() uint32 {
if x != nil {
return x.StdoutPort
}
return 0
}
func (x *ExtraData) GetStderrPort() uint32 {
if x != nil {
return x.StderrPort
}
return 0
}
// Message to specify network config for a Firecracker VM
type FirecrackerNetworkInterface struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AllowMMDS bool `protobuf:"varint,1,opt,name=AllowMMDS,proto3" json:"AllowMMDS,omitempty"` // Specifies if metadata service should be available on this network interface
InRateLimiter *FirecrackerRateLimiter `protobuf:"bytes,2,opt,name=InRateLimiter,proto3" json:"InRateLimiter,omitempty"` // Specifies a rate limiter for incoming bytes
OutRateLimiter *FirecrackerRateLimiter `protobuf:"bytes,3,opt,name=OutRateLimiter,proto3" json:"OutRateLimiter,omitempty"` // Specifies a rate limiter for outgoing bytes
// CNIConfiguration specifies CNI configuration that will be used to generate
// a network interface for a Firecracker VM.
CNIConfig *CNIConfiguration `protobuf:"bytes,4,opt,name=CNIConfig,proto3" json:"CNIConfig,omitempty"`
// StaticNetworkConfiguration specifies static configuration parameters for a
// Firecracker VM's network interface
StaticConfig *StaticNetworkConfiguration `protobuf:"bytes,5,opt,name=StaticConfig,proto3" json:"StaticConfig,omitempty"`
}
func (x *FirecrackerNetworkInterface) Reset() {
*x = FirecrackerNetworkInterface{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FirecrackerNetworkInterface) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FirecrackerNetworkInterface) ProtoMessage() {}
func (x *FirecrackerNetworkInterface) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FirecrackerNetworkInterface.ProtoReflect.Descriptor instead.
func (*FirecrackerNetworkInterface) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{1}
}
func (x *FirecrackerNetworkInterface) GetAllowMMDS() bool {
if x != nil {
return x.AllowMMDS
}
return false
}
func (x *FirecrackerNetworkInterface) GetInRateLimiter() *FirecrackerRateLimiter {
if x != nil {
return x.InRateLimiter
}
return nil
}
func (x *FirecrackerNetworkInterface) GetOutRateLimiter() *FirecrackerRateLimiter {
if x != nil {
return x.OutRateLimiter
}
return nil
}
func (x *FirecrackerNetworkInterface) GetCNIConfig() *CNIConfiguration {
if x != nil {
return x.CNIConfig
}
return nil
}
func (x *FirecrackerNetworkInterface) GetStaticConfig() *StaticNetworkConfiguration {
if x != nil {
return x.StaticConfig
}
return nil
}
// Message to specify CNI configuration that will be used to
// generate a network interface for a Firecracker VM
type CNIConfiguration struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// NetworkName is the name of a CNI network (as found in CNI
// configuration files) that will be used to generate the
// network interface.
NetworkName string `protobuf:"bytes,1,opt,name=NetworkName,proto3" json:"NetworkName,omitempty"`
// InterfaceName corresponds to the CNI_IFNAME parameter that will be
// provided to CNI plugins during invocation.
InterfaceName string `protobuf:"bytes,2,opt,name=InterfaceName,proto3" json:"InterfaceName,omitempty"`
// BinPath is a list of directories that will be searched when
// looking for CNI plugin binaries. Defaults to just "/opt/cni/bin"
BinPath []string `protobuf:"bytes,3,rep,name=BinPath,proto3" json:"BinPath,omitempty"`
// ConfDir is the directory in which CNI configuration will be sought.
// If not specified, will default to "/etc/cni/conf.d".
ConfDir string `protobuf:"bytes,4,opt,name=ConfDir,proto3" json:"ConfDir,omitempty"`
// CacheDir is the directory in which CNI results will be temporarily
// cached by the runtime. If not specified, it will default to
// "/var/lib/cni"
CacheDir string `protobuf:"bytes,5,opt,name=CacheDir,proto3" json:"CacheDir,omitempty"`
// Args corresponds to the CNI_ARGS parameter that will be provided to
// CNI plugins on invocation.
Args []*CNIConfiguration_CNIArg `protobuf:"bytes,6,rep,name=Args,proto3" json:"Args,omitempty"`
}
func (x *CNIConfiguration) Reset() {
*x = CNIConfiguration{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CNIConfiguration) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CNIConfiguration) ProtoMessage() {}
func (x *CNIConfiguration) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CNIConfiguration.ProtoReflect.Descriptor instead.
func (*CNIConfiguration) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{2}
}
func (x *CNIConfiguration) GetNetworkName() string {
if x != nil {
return x.NetworkName
}
return ""
}
func (x *CNIConfiguration) GetInterfaceName() string {
if x != nil {
return x.InterfaceName
}
return ""
}
func (x *CNIConfiguration) GetBinPath() []string {
if x != nil {
return x.BinPath
}
return nil
}
func (x *CNIConfiguration) GetConfDir() string {
if x != nil {
return x.ConfDir
}
return ""
}
func (x *CNIConfiguration) GetCacheDir() string {
if x != nil {
return x.CacheDir
}
return ""
}
func (x *CNIConfiguration) GetArgs() []*CNIConfiguration_CNIArg {
if x != nil {
return x.Args
}
return nil
}
// Message to specify static configuration parameters for a
// Firecracker VM's network interface
type StaticNetworkConfiguration struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
MacAddress string `protobuf:"bytes,1,opt,name=MacAddress,proto3" json:"MacAddress,omitempty"` // Specifies the mac address for the the device
HostDevName string `protobuf:"bytes,2,opt,name=HostDevName,proto3" json:"HostDevName,omitempty"` // Specifies the name of the tap device on the host
// IPConfig optionally provides static IP configuration that will be configured
// on the VM's internal networking interface. If not specified, no IP
// configuration will be applied to the VM's internal nic automatically.
IPConfig *IPConfiguration `protobuf:"bytes,3,opt,name=IPConfig,proto3" json:"IPConfig,omitempty"`
}
func (x *StaticNetworkConfiguration) Reset() {
*x = StaticNetworkConfiguration{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StaticNetworkConfiguration) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StaticNetworkConfiguration) ProtoMessage() {}
func (x *StaticNetworkConfiguration) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StaticNetworkConfiguration.ProtoReflect.Descriptor instead.
func (*StaticNetworkConfiguration) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{3}
}
func (x *StaticNetworkConfiguration) GetMacAddress() string {
if x != nil {
return x.MacAddress
}
return ""
}
func (x *StaticNetworkConfiguration) GetHostDevName() string {
if x != nil {
return x.HostDevName
}
return ""
}
func (x *StaticNetworkConfiguration) GetIPConfig() *IPConfiguration {
if x != nil {
return x.IPConfig
}
return nil
}
// Message to specify static IP configuration that will be
// applied to a Firecracker VM's network interface internally
type IPConfiguration struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// PrimaryAddr specifies, in CIDR notation, the primary address
// and subnet that a network interface will be assigned inside
// the VM.
PrimaryAddr string `protobuf:"bytes,1,opt,name=PrimaryAddr,proto3" json:"PrimaryAddr,omitempty"`
// GatewayAddr specifies the default gateway that a network interface
// should use inside the VM.
GatewayAddr string `protobuf:"bytes,3,opt,name=GatewayAddr,proto3" json:"GatewayAddr,omitempty"`
// Nameservers is a list of nameservers that the VM will be configured
// to use internally. Currently only up to 2 nameservers can be specified
// (any more in the list will be ignored) and configuration is provided
// to the VM via /proc/net/pnp.
Nameservers []string `protobuf:"bytes,4,rep,name=Nameservers,proto3" json:"Nameservers,omitempty"`
}
func (x *IPConfiguration) Reset() {
*x = IPConfiguration{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IPConfiguration) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IPConfiguration) ProtoMessage() {}
func (x *IPConfiguration) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IPConfiguration.ProtoReflect.Descriptor instead.
func (*IPConfiguration) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{4}
}
func (x *IPConfiguration) GetPrimaryAddr() string {
if x != nil {
return x.PrimaryAddr
}
return ""
}
func (x *IPConfiguration) GetGatewayAddr() string {
if x != nil {
return x.GatewayAddr
}
return ""
}
func (x *IPConfiguration) GetNameservers() []string {
if x != nil {
return x.Nameservers
}
return nil
}
// Message to set the machine config for a Firecracker VM
type FirecrackerMachineConfiguration struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CPUTemplate string `protobuf:"bytes,1,opt,name=CPUTemplate,proto3" json:"CPUTemplate,omitempty"` // Specifies the cpu template. Example: "T2" or "C3"
HtEnabled bool `protobuf:"varint,2,opt,name=HtEnabled,proto3" json:"HtEnabled,omitempty"` // Specifies if hyper-threading should be enabled
// Specifies the memory size of VM
// This lets us create a Firecracker VM of up to 4096 TiB, which
// for a microVM should be large enough
MemSizeMib uint32 `protobuf:"varint,3,opt,name=MemSizeMib,proto3" json:"MemSizeMib,omitempty"`
VcpuCount uint32 `protobuf:"varint,4,opt,name=VcpuCount,proto3" json:"VcpuCount,omitempty"` // Specifies the number of vCPUs for the VM
}
func (x *FirecrackerMachineConfiguration) Reset() {
*x = FirecrackerMachineConfiguration{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FirecrackerMachineConfiguration) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FirecrackerMachineConfiguration) ProtoMessage() {}
func (x *FirecrackerMachineConfiguration) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FirecrackerMachineConfiguration.ProtoReflect.Descriptor instead.
func (*FirecrackerMachineConfiguration) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{5}
}
func (x *FirecrackerMachineConfiguration) GetCPUTemplate() string {
if x != nil {
return x.CPUTemplate
}
return ""
}
func (x *FirecrackerMachineConfiguration) GetHtEnabled() bool {
if x != nil {
return x.HtEnabled
}
return false
}
func (x *FirecrackerMachineConfiguration) GetMemSizeMib() uint32 {
if x != nil {
return x.MemSizeMib
}
return 0
}
func (x *FirecrackerMachineConfiguration) GetVcpuCount() uint32 {
if x != nil {
return x.VcpuCount
}
return 0
}
// Message to specify the block device config for a Firecracker VM
type FirecrackerRootDrive struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) HostPath is the path on the host to the filesystem image or device
// that will supply the rootfs of the VM.
HostPath string `protobuf:"bytes,1,opt,name=HostPath,proto3" json:"HostPath,omitempty"`
// (Optional) If the HostPath points to a drive or image with multiple
// partitions, Partuuid specifies which partition will be used to boot
// the VM
Partuuid string `protobuf:"bytes,2,opt,name=Partuuid,proto3" json:"Partuuid,omitempty"`
// (Optional) If set to true, IsWritable results in the VM Guest's rootfs
// being mounted as read-write. Defaults to false, in which case the
// rootfs is mounted as read-only.
IsWritable bool `protobuf:"varint,3,opt,name=IsWritable,proto3" json:"IsWritable,omitempty"`
// (Optional) RateLimiter configuration that will be applied to the
// backing-drive for the VM's rootfs
RateLimiter *FirecrackerRateLimiter `protobuf:"bytes,4,opt,name=RateLimiter,proto3" json:"RateLimiter,omitempty"`
// (Optional) CacheType specifies the caching strategy for the block device.
// The supported caching strategies are: "Unsafe"(default) and "Writeback".
CacheType string `protobuf:"bytes,5,opt,name=CacheType,proto3" json:"CacheType,omitempty"`
}
func (x *FirecrackerRootDrive) Reset() {
*x = FirecrackerRootDrive{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FirecrackerRootDrive) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FirecrackerRootDrive) ProtoMessage() {}
func (x *FirecrackerRootDrive) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FirecrackerRootDrive.ProtoReflect.Descriptor instead.
func (*FirecrackerRootDrive) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{6}
}
func (x *FirecrackerRootDrive) GetHostPath() string {
if x != nil {
return x.HostPath
}
return ""
}
func (x *FirecrackerRootDrive) GetPartuuid() string {
if x != nil {
return x.Partuuid
}
return ""
}
func (x *FirecrackerRootDrive) GetIsWritable() bool {
if x != nil {
return x.IsWritable
}
return false
}
func (x *FirecrackerRootDrive) GetRateLimiter() *FirecrackerRateLimiter {
if x != nil {
return x.RateLimiter
}
return nil
}
func (x *FirecrackerRootDrive) GetCacheType() string {
if x != nil {
return x.CacheType
}
return ""
}
type FirecrackerDriveMount struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) HostPath is the path on the host to the filesystem image or device
// that will be mounted inside the VM.
HostPath string `protobuf:"bytes,1,opt,name=HostPath,proto3" json:"HostPath,omitempty"`
// (Required) VMPath is the path inside the VM guest at which the filesystem
// image or device will be mounted.
VMPath string `protobuf:"bytes,2,opt,name=VMPath,proto3" json:"VMPath,omitempty"`
// (Required) FilesystemType is the filesystem type (i.e. ext4, xfs, etc.), as
// used when mounting the filesystem image inside the VM. The VM guest kernel
// is expected to have support for this filesystem.
FilesystemType string `protobuf:"bytes,3,opt,name=FilesystemType,proto3" json:"FilesystemType,omitempty"`
// (Optional) Options are fstab-style options that the mount will be performed
// within the VM (i.e. ["rw", "noatime"]). Defaults to none if not specified.
Options []string `protobuf:"bytes,4,rep,name=Options,proto3" json:"Options,omitempty"`
// (Optional) RateLimiter configuration that will be applied to the
// backing-drive for the VM's rootfs
RateLimiter *FirecrackerRateLimiter `protobuf:"bytes,5,opt,name=RateLimiter,proto3" json:"RateLimiter,omitempty"`
// (Optional) If set to true, IsWritable results in the backing file for the
// drive being opened as read-write by the Firecracker VMM on the host, allowing
// writes to the image from within the guest. Defaults to false, in which case
// the block device in the VM will be read-only.
IsWritable bool `protobuf:"varint,6,opt,name=IsWritable,proto3" json:"IsWritable,omitempty"`
// (Optional) CacheType specifies the caching strategy for the block device.
// The supported caching strategies are: "Unsafe"(default) and "Writeback".
CacheType string `protobuf:"bytes,7,opt,name=CacheType,proto3" json:"CacheType,omitempty"`
}
func (x *FirecrackerDriveMount) Reset() {
*x = FirecrackerDriveMount{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FirecrackerDriveMount) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FirecrackerDriveMount) ProtoMessage() {}
func (x *FirecrackerDriveMount) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FirecrackerDriveMount.ProtoReflect.Descriptor instead.
func (*FirecrackerDriveMount) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{7}
}
func (x *FirecrackerDriveMount) GetHostPath() string {
if x != nil {
return x.HostPath
}
return ""
}
func (x *FirecrackerDriveMount) GetVMPath() string {
if x != nil {
return x.VMPath
}
return ""
}
func (x *FirecrackerDriveMount) GetFilesystemType() string {
if x != nil {
return x.FilesystemType
}
return ""
}
func (x *FirecrackerDriveMount) GetOptions() []string {
if x != nil {
return x.Options
}
return nil
}
func (x *FirecrackerDriveMount) GetRateLimiter() *FirecrackerRateLimiter {
if x != nil {
return x.RateLimiter
}
return nil
}
func (x *FirecrackerDriveMount) GetIsWritable() bool {
if x != nil {
return x.IsWritable
}
return false
}
func (x *FirecrackerDriveMount) GetCacheType() string {
if x != nil {
return x.CacheType
}
return ""
}
// Message to specify an IO rate limiter with bytes/s and ops/s limits
type FirecrackerRateLimiter struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Bandwidth *FirecrackerTokenBucket `protobuf:"bytes,1,opt,name=Bandwidth,proto3" json:"Bandwidth,omitempty"` // Specifies a token bucket with bytes as tokens
Ops *FirecrackerTokenBucket `protobuf:"bytes,2,opt,name=Ops,proto3" json:"Ops,omitempty"` // Specifies a token bucket with operations as tokens
}
func (x *FirecrackerRateLimiter) Reset() {
*x = FirecrackerRateLimiter{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FirecrackerRateLimiter) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FirecrackerRateLimiter) ProtoMessage() {}
func (x *FirecrackerRateLimiter) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FirecrackerRateLimiter.ProtoReflect.Descriptor instead.
func (*FirecrackerRateLimiter) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{8}
}
func (x *FirecrackerRateLimiter) GetBandwidth() *FirecrackerTokenBucket {
if x != nil {
return x.Bandwidth
}
return nil
}
func (x *FirecrackerRateLimiter) GetOps() *FirecrackerTokenBucket {
if x != nil {
return x.Ops
}
return nil
}
// Message to specify a token buicket used to rate limit disk and network IO for a Firecracker VM
type FirecrackerTokenBucket struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
OneTimeBurst int64 `protobuf:"varint,1,opt,name=OneTimeBurst,proto3" json:"OneTimeBurst,omitempty"` // Specifies the initial size of the token bucket
RefillTime int64 `protobuf:"varint,2,opt,name=RefillTime,proto3" json:"RefillTime,omitempty"` // Specifies the amount of millis it takes for the bucket to fill
Capacity int64 `protobuf:"varint,3,opt,name=Capacity,proto3" json:"Capacity,omitempty"` // Specifies the number of tokens this bucket can hold
}
func (x *FirecrackerTokenBucket) Reset() {
*x = FirecrackerTokenBucket{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FirecrackerTokenBucket) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FirecrackerTokenBucket) ProtoMessage() {}
func (x *FirecrackerTokenBucket) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FirecrackerTokenBucket.ProtoReflect.Descriptor instead.
func (*FirecrackerTokenBucket) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{9}
}
func (x *FirecrackerTokenBucket) GetOneTimeBurst() int64 {
if x != nil {
return x.OneTimeBurst
}
return 0
}
func (x *FirecrackerTokenBucket) GetRefillTime() int64 {
if x != nil {
return x.RefillTime
}
return 0
}
func (x *FirecrackerTokenBucket) GetCapacity() int64 {
if x != nil {
return x.Capacity
}
return 0
}
type FirecrackerBalloonDevice struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AmountMib int64 `protobuf:"varint,1,opt,name=AmountMib,proto3" json:"AmountMib,omitempty"` //Target balloon size in MiB.
DeflateOnOom bool `protobuf:"varint,2,opt,name=DeflateOnOom,proto3" json:"DeflateOnOom,omitempty"` // Whether the balloon should deflate when the guest has memory pressure.
StatsPollingIntervals int64 `protobuf:"varint,3,opt,name=StatsPollingIntervals,proto3" json:"StatsPollingIntervals,omitempty"` // Interval in seconds between refreshing statistics.
}
func (x *FirecrackerBalloonDevice) Reset() {
*x = FirecrackerBalloonDevice{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FirecrackerBalloonDevice) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FirecrackerBalloonDevice) ProtoMessage() {}
func (x *FirecrackerBalloonDevice) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FirecrackerBalloonDevice.ProtoReflect.Descriptor instead.
func (*FirecrackerBalloonDevice) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{10}
}
func (x *FirecrackerBalloonDevice) GetAmountMib() int64 {
if x != nil {
return x.AmountMib
}
return 0
}
func (x *FirecrackerBalloonDevice) GetDeflateOnOom() bool {
if x != nil {
return x.DeflateOnOom
}
return false
}
func (x *FirecrackerBalloonDevice) GetStatsPollingIntervals() int64 {
if x != nil {
return x.StatsPollingIntervals
}
return 0
}
type CNIConfiguration_CNIArg struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
}
func (x *CNIConfiguration_CNIArg) Reset() {
*x = CNIConfiguration_CNIArg{}
if protoimpl.UnsafeEnabled {
mi := &file_types_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CNIConfiguration_CNIArg) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CNIConfiguration_CNIArg) ProtoMessage() {}
func (x *CNIConfiguration_CNIArg) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CNIConfiguration_CNIArg.ProtoReflect.Descriptor instead.
func (*CNIConfiguration_CNIArg) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{2, 0}
}
func (x *CNIConfiguration_CNIArg) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *CNIConfiguration_CNIArg) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
var File_types_proto protoreflect.FileDescriptor
var file_types_proto_rawDesc = []byte{
0x0a, 0x0b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61,
0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x01, 0x0a, 0x09, 0x45, 0x78, 0x74,
0x72, 0x61, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x4a, 0x73, 0x6f, 0x6e, 0x53, 0x70,
0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x4a, 0x73, 0x6f, 0x6e, 0x53, 0x70,
0x65, 0x63, 0x12, 0x36, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x63, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x52,
0x75, 0x6e, 0x63, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74,
0x64, 0x69, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x53,
0x74, 0x64, 0x69, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x74, 0x64, 0x6f,
0x75, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x53, 0x74,
0x64, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x74, 0x64, 0x65,
0x72, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x53, 0x74,
0x64, 0x65, 0x72, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x22, 0xad, 0x02, 0x0a, 0x1b, 0x46, 0x69, 0x72,
0x65, 0x63, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49,
0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x41, 0x6c, 0x6c, 0x6f,
0x77, 0x4d, 0x4d, 0x44, 0x53, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x41, 0x6c, 0x6c,
0x6f, 0x77, 0x4d, 0x4d, 0x44, 0x53, 0x12, 0x3d, 0x0a, 0x0d, 0x49, 0x6e, 0x52, 0x61, 0x74, 0x65,
0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
0x46, 0x69, 0x72, 0x65, 0x63, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x72, 0x52, 0x61, 0x74, 0x65, 0x4c,
0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x0d, 0x49, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69,
0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x0e, 0x4f, 0x75, 0x74, 0x52, 0x61, 0x74, 0x65,
0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
0x46, 0x69, 0x72, 0x65, 0x63, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x72, 0x52, 0x61, 0x74, 0x65, 0x4c,
0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x4f, 0x75, 0x74, 0x52, 0x61, 0x74, 0x65, 0x4c,
0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x43, 0x4e, 0x49, 0x43, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x43, 0x4e, 0x49, 0x43,
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x43, 0x4e,
0x49, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x69,
0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e,
0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x53, 0x74, 0x61, 0x74,
0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x8a, 0x02, 0x0a, 0x10, 0x43, 0x4e, 0x49,
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a,
0x0b, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0b, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x24, 0x0a, 0x0d, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63,
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x42, 0x69, 0x6e, 0x50, 0x61, 0x74, 0x68,
0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x42, 0x69, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x12,
0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x66, 0x44, 0x69, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
0x52, 0x07, 0x43, 0x6f, 0x6e, 0x66, 0x44, 0x69, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x61, 0x63,
0x68, 0x65, 0x44, 0x69, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x43, 0x61, 0x63,
0x68, 0x65, 0x44, 0x69, 0x72, 0x12, 0x2c, 0x0a, 0x04, 0x41, 0x72, 0x67, 0x73, 0x18, 0x06, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x43, 0x4e, 0x49, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75,
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x4e, 0x49, 0x41, 0x72, 0x67, 0x52, 0x04, 0x41,
0x72, 0x67, 0x73, 0x1a, 0x30, 0x0a, 0x06, 0x43, 0x4e, 0x49, 0x41, 0x72, 0x67, 0x12, 0x10, 0x0a,