This repository has been archived by the owner on May 12, 2021. It is now read-only.
/
oci.pb.go
11385 lines (10994 loc) · 253 KB
/
oci.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-gogo. DO NOT EDIT.
// source: oci.proto
package grpc
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import _ "github.com/gogo/protobuf/types"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type Spec struct {
// Version of the Open Container Initiative Runtime Specification with which the bundle complies.
Version string `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"`
// Process configures the container process.
Process *Process `protobuf:"bytes,2,opt,name=Process" json:"Process,omitempty"`
// Root configures the container's root filesystem.
Root *Root `protobuf:"bytes,3,opt,name=Root" json:"Root,omitempty"`
// Hostname configures the container's hostname.
Hostname string `protobuf:"bytes,4,opt,name=Hostname,proto3" json:"Hostname,omitempty"`
// Mounts configures additional mounts (on top of Root).
Mounts []Mount `protobuf:"bytes,5,rep,name=Mounts" json:"Mounts"`
// Hooks configures callbacks for container lifecycle events.
Hooks *Hooks `protobuf:"bytes,6,opt,name=Hooks" json:"Hooks,omitempty"`
// Annotations contains arbitrary metadata for the container.
Annotations map[string]string `protobuf:"bytes,7,rep,name=Annotations" json:"Annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Linux is platform-specific configuration for Linux based containers.
Linux *Linux `protobuf:"bytes,8,opt,name=Linux" json:"Linux,omitempty"`
// Solaris is platform-specific configuration for Solaris based containers.
Solaris *Solaris `protobuf:"bytes,9,opt,name=Solaris" json:"Solaris,omitempty"`
// Windows is platform-specific configuration for Windows based containers.
Windows *Windows `protobuf:"bytes,10,opt,name=Windows" json:"Windows,omitempty"`
}
func (m *Spec) Reset() { *m = Spec{} }
func (m *Spec) String() string { return proto.CompactTextString(m) }
func (*Spec) ProtoMessage() {}
func (*Spec) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{0} }
func (m *Spec) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *Spec) GetProcess() *Process {
if m != nil {
return m.Process
}
return nil
}
func (m *Spec) GetRoot() *Root {
if m != nil {
return m.Root
}
return nil
}
func (m *Spec) GetHostname() string {
if m != nil {
return m.Hostname
}
return ""
}
func (m *Spec) GetMounts() []Mount {
if m != nil {
return m.Mounts
}
return nil
}
func (m *Spec) GetHooks() *Hooks {
if m != nil {
return m.Hooks
}
return nil
}
func (m *Spec) GetAnnotations() map[string]string {
if m != nil {
return m.Annotations
}
return nil
}
func (m *Spec) GetLinux() *Linux {
if m != nil {
return m.Linux
}
return nil
}
func (m *Spec) GetSolaris() *Solaris {
if m != nil {
return m.Solaris
}
return nil
}
func (m *Spec) GetWindows() *Windows {
if m != nil {
return m.Windows
}
return nil
}
type Process struct {
// Terminal creates an interactive terminal for the container.
Terminal bool `protobuf:"varint,1,opt,name=Terminal,proto3" json:"Terminal,omitempty"`
// ConsoleSize specifies the size of the console.
ConsoleSize *Box `protobuf:"bytes,2,opt,name=ConsoleSize" json:"ConsoleSize,omitempty"`
// User specifies user information for the process.
User User `protobuf:"bytes,3,opt,name=User" json:"User"`
// Args specifies the binary and arguments for the application to execute.
Args []string `protobuf:"bytes,4,rep,name=Args" json:"Args,omitempty"`
// Env populates the process environment for the process.
Env []string `protobuf:"bytes,5,rep,name=Env" json:"Env,omitempty"`
// Cwd is the current working directory for the process and must be
// relative to the container's root.
Cwd string `protobuf:"bytes,6,opt,name=Cwd,proto3" json:"Cwd,omitempty"`
// Capabilities are Linux capabilities that are kept for the process.
Capabilities *LinuxCapabilities `protobuf:"bytes,7,opt,name=Capabilities" json:"Capabilities,omitempty"`
// Rlimits specifies rlimit options to apply to the process.
Rlimits []POSIXRlimit `protobuf:"bytes,8,rep,name=Rlimits" json:"Rlimits"`
// NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
NoNewPrivileges bool `protobuf:"varint,9,opt,name=NoNewPrivileges,proto3" json:"NoNewPrivileges,omitempty"`
// ApparmorProfile specifies the apparmor profile for the container.
ApparmorProfile string `protobuf:"bytes,10,opt,name=ApparmorProfile,proto3" json:"ApparmorProfile,omitempty"`
// Specify an oom_score_adj for the container.
OOMScoreAdj int64 `protobuf:"varint,11,opt,name=OOMScoreAdj,proto3" json:"OOMScoreAdj,omitempty"`
// SelinuxLabel specifies the selinux context that the container process is run as.
SelinuxLabel string `protobuf:"bytes,12,opt,name=SelinuxLabel,proto3" json:"SelinuxLabel,omitempty"`
}
func (m *Process) Reset() { *m = Process{} }
func (m *Process) String() string { return proto.CompactTextString(m) }
func (*Process) ProtoMessage() {}
func (*Process) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{1} }
func (m *Process) GetTerminal() bool {
if m != nil {
return m.Terminal
}
return false
}
func (m *Process) GetConsoleSize() *Box {
if m != nil {
return m.ConsoleSize
}
return nil
}
func (m *Process) GetUser() User {
if m != nil {
return m.User
}
return User{}
}
func (m *Process) GetArgs() []string {
if m != nil {
return m.Args
}
return nil
}
func (m *Process) GetEnv() []string {
if m != nil {
return m.Env
}
return nil
}
func (m *Process) GetCwd() string {
if m != nil {
return m.Cwd
}
return ""
}
func (m *Process) GetCapabilities() *LinuxCapabilities {
if m != nil {
return m.Capabilities
}
return nil
}
func (m *Process) GetRlimits() []POSIXRlimit {
if m != nil {
return m.Rlimits
}
return nil
}
func (m *Process) GetNoNewPrivileges() bool {
if m != nil {
return m.NoNewPrivileges
}
return false
}
func (m *Process) GetApparmorProfile() string {
if m != nil {
return m.ApparmorProfile
}
return ""
}
func (m *Process) GetOOMScoreAdj() int64 {
if m != nil {
return m.OOMScoreAdj
}
return 0
}
func (m *Process) GetSelinuxLabel() string {
if m != nil {
return m.SelinuxLabel
}
return ""
}
type Box struct {
// Height is the vertical dimension of a box.
Height uint32 `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"`
// Width is the horizontal dimension of a box.
Width uint32 `protobuf:"varint,2,opt,name=Width,proto3" json:"Width,omitempty"`
}
func (m *Box) Reset() { *m = Box{} }
func (m *Box) String() string { return proto.CompactTextString(m) }
func (*Box) ProtoMessage() {}
func (*Box) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{2} }
func (m *Box) GetHeight() uint32 {
if m != nil {
return m.Height
}
return 0
}
func (m *Box) GetWidth() uint32 {
if m != nil {
return m.Width
}
return 0
}
type User struct {
// UID is the user id.
UID uint32 `protobuf:"varint,1,opt,name=UID,proto3" json:"UID,omitempty"`
// GID is the group id.
GID uint32 `protobuf:"varint,2,opt,name=GID,proto3" json:"GID,omitempty"`
// AdditionalGids are additional group ids set for the container's process.
AdditionalGids []uint32 `protobuf:"varint,3,rep,packed,name=AdditionalGids" json:"AdditionalGids,omitempty"`
// Username is the user name.
Username string `protobuf:"bytes,4,opt,name=Username,proto3" json:"Username,omitempty"`
}
func (m *User) Reset() { *m = User{} }
func (m *User) String() string { return proto.CompactTextString(m) }
func (*User) ProtoMessage() {}
func (*User) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{3} }
func (m *User) GetUID() uint32 {
if m != nil {
return m.UID
}
return 0
}
func (m *User) GetGID() uint32 {
if m != nil {
return m.GID
}
return 0
}
func (m *User) GetAdditionalGids() []uint32 {
if m != nil {
return m.AdditionalGids
}
return nil
}
func (m *User) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
type LinuxCapabilities struct {
// Bounding is the set of capabilities checked by the kernel.
Bounding []string `protobuf:"bytes,1,rep,name=Bounding" json:"Bounding,omitempty"`
// Effective is the set of capabilities checked by the kernel.
Effective []string `protobuf:"bytes,2,rep,name=Effective" json:"Effective,omitempty"`
// Inheritable is the capabilities preserved across execve.
Inheritable []string `protobuf:"bytes,3,rep,name=Inheritable" json:"Inheritable,omitempty"`
// Permitted is the limiting superset for effective capabilities.
Permitted []string `protobuf:"bytes,4,rep,name=Permitted" json:"Permitted,omitempty"`
// Ambient is the ambient set of capabilities that are kept.
Ambient []string `protobuf:"bytes,5,rep,name=Ambient" json:"Ambient,omitempty"`
}
func (m *LinuxCapabilities) Reset() { *m = LinuxCapabilities{} }
func (m *LinuxCapabilities) String() string { return proto.CompactTextString(m) }
func (*LinuxCapabilities) ProtoMessage() {}
func (*LinuxCapabilities) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{4} }
func (m *LinuxCapabilities) GetBounding() []string {
if m != nil {
return m.Bounding
}
return nil
}
func (m *LinuxCapabilities) GetEffective() []string {
if m != nil {
return m.Effective
}
return nil
}
func (m *LinuxCapabilities) GetInheritable() []string {
if m != nil {
return m.Inheritable
}
return nil
}
func (m *LinuxCapabilities) GetPermitted() []string {
if m != nil {
return m.Permitted
}
return nil
}
func (m *LinuxCapabilities) GetAmbient() []string {
if m != nil {
return m.Ambient
}
return nil
}
type POSIXRlimit struct {
// Type of the rlimit to set
Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
// Hard is the hard limit for the specified type
Hard uint64 `protobuf:"varint,2,opt,name=Hard,proto3" json:"Hard,omitempty"`
// Soft is the soft limit for the specified type
Soft uint64 `protobuf:"varint,3,opt,name=Soft,proto3" json:"Soft,omitempty"`
}
func (m *POSIXRlimit) Reset() { *m = POSIXRlimit{} }
func (m *POSIXRlimit) String() string { return proto.CompactTextString(m) }
func (*POSIXRlimit) ProtoMessage() {}
func (*POSIXRlimit) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{5} }
func (m *POSIXRlimit) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *POSIXRlimit) GetHard() uint64 {
if m != nil {
return m.Hard
}
return 0
}
func (m *POSIXRlimit) GetSoft() uint64 {
if m != nil {
return m.Soft
}
return 0
}
type Mount struct {
// destination is the path inside the container expect when it starts with "tmp:/"
Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
// source is the path inside the container expect when it starts with "vm:/dev/" or "tmp:/"
// the path which starts with "vm:/dev/" refers the guest vm's "/dev",
// especially, "vm:/dev/hostfs/" refers to the shared filesystem.
// "tmp:/" is a temporary directory which is used for temporary mounts.
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
Options []string `protobuf:"bytes,4,rep,name=options" json:"options,omitempty"`
}
func (m *Mount) Reset() { *m = Mount{} }
func (m *Mount) String() string { return proto.CompactTextString(m) }
func (*Mount) ProtoMessage() {}
func (*Mount) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{6} }
func (m *Mount) GetDestination() string {
if m != nil {
return m.Destination
}
return ""
}
func (m *Mount) GetSource() string {
if m != nil {
return m.Source
}
return ""
}
func (m *Mount) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *Mount) GetOptions() []string {
if m != nil {
return m.Options
}
return nil
}
type Root struct {
// Path is the absolute path to the container's root filesystem.
Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"`
// Readonly makes the root filesystem for the container readonly before the process is executed.
Readonly bool `protobuf:"varint,2,opt,name=Readonly,proto3" json:"Readonly,omitempty"`
}
func (m *Root) Reset() { *m = Root{} }
func (m *Root) String() string { return proto.CompactTextString(m) }
func (*Root) ProtoMessage() {}
func (*Root) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{7} }
func (m *Root) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *Root) GetReadonly() bool {
if m != nil {
return m.Readonly
}
return false
}
type Hooks struct {
// Prestart is a list of hooks to be run before the container process is executed.
Prestart []Hook `protobuf:"bytes,1,rep,name=Prestart" json:"Prestart"`
// Poststart is a list of hooks to be run after the container process is started.
Poststart []Hook `protobuf:"bytes,2,rep,name=Poststart" json:"Poststart"`
// Poststop is a list of hooks to be run after the container process exits.
Poststop []Hook `protobuf:"bytes,3,rep,name=Poststop" json:"Poststop"`
}
func (m *Hooks) Reset() { *m = Hooks{} }
func (m *Hooks) String() string { return proto.CompactTextString(m) }
func (*Hooks) ProtoMessage() {}
func (*Hooks) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{8} }
func (m *Hooks) GetPrestart() []Hook {
if m != nil {
return m.Prestart
}
return nil
}
func (m *Hooks) GetPoststart() []Hook {
if m != nil {
return m.Poststart
}
return nil
}
func (m *Hooks) GetPoststop() []Hook {
if m != nil {
return m.Poststop
}
return nil
}
type Hook struct {
Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"`
Args []string `protobuf:"bytes,2,rep,name=Args" json:"Args,omitempty"`
Env []string `protobuf:"bytes,3,rep,name=Env" json:"Env,omitempty"`
Timeout int64 `protobuf:"varint,4,opt,name=Timeout,proto3" json:"Timeout,omitempty"`
}
func (m *Hook) Reset() { *m = Hook{} }
func (m *Hook) String() string { return proto.CompactTextString(m) }
func (*Hook) ProtoMessage() {}
func (*Hook) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{9} }
func (m *Hook) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *Hook) GetArgs() []string {
if m != nil {
return m.Args
}
return nil
}
func (m *Hook) GetEnv() []string {
if m != nil {
return m.Env
}
return nil
}
func (m *Hook) GetTimeout() int64 {
if m != nil {
return m.Timeout
}
return 0
}
type Linux struct {
// UIDMapping specifies user mappings for supporting user namespaces.
UIDMappings []LinuxIDMapping `protobuf:"bytes,1,rep,name=UIDMappings" json:"UIDMappings"`
// GIDMapping specifies group mappings for supporting user namespaces.
GIDMappings []LinuxIDMapping `protobuf:"bytes,2,rep,name=GIDMappings" json:"GIDMappings"`
// Sysctl are a set of key value pairs that are set for the container on start
Sysctl map[string]string `protobuf:"bytes,3,rep,name=Sysctl" json:"Sysctl,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Resources contain cgroup information for handling resource constraints
// for the container
Resources *LinuxResources `protobuf:"bytes,4,opt,name=Resources" json:"Resources,omitempty"`
// CgroupsPath specifies the path to cgroups that are created and/or joined by the container.
// The path is expected to be relative to the cgroups mountpoint.
// If resources are specified, the cgroups at CgroupsPath will be updated based on resources.
CgroupsPath string `protobuf:"bytes,5,opt,name=CgroupsPath,proto3" json:"CgroupsPath,omitempty"`
// Namespaces contains the namespaces that are created and/or joined by the container
Namespaces []LinuxNamespace `protobuf:"bytes,6,rep,name=Namespaces" json:"Namespaces"`
// Devices are a list of device nodes that are created for the container
Devices []LinuxDevice `protobuf:"bytes,7,rep,name=Devices" json:"Devices"`
// Seccomp specifies the seccomp security settings for the container.
Seccomp *LinuxSeccomp `protobuf:"bytes,8,opt,name=Seccomp" json:"Seccomp,omitempty"`
// RootfsPropagation is the rootfs mount propagation mode for the container.
RootfsPropagation string `protobuf:"bytes,9,opt,name=RootfsPropagation,proto3" json:"RootfsPropagation,omitempty"`
// MaskedPaths masks over the provided paths inside the container.
MaskedPaths []string `protobuf:"bytes,10,rep,name=MaskedPaths" json:"MaskedPaths,omitempty"`
// ReadonlyPaths sets the provided paths as RO inside the container.
ReadonlyPaths []string `protobuf:"bytes,11,rep,name=ReadonlyPaths" json:"ReadonlyPaths,omitempty"`
// MountLabel specifies the selinux context for the mounts in the container.
MountLabel string `protobuf:"bytes,12,opt,name=MountLabel,proto3" json:"MountLabel,omitempty"`
// IntelRdt contains Intel Resource Director Technology (RDT) information
// for handling resource constraints (e.g., L3 cache) for the container
IntelRdt *LinuxIntelRdt `protobuf:"bytes,13,opt,name=IntelRdt" json:"IntelRdt,omitempty"`
}
func (m *Linux) Reset() { *m = Linux{} }
func (m *Linux) String() string { return proto.CompactTextString(m) }
func (*Linux) ProtoMessage() {}
func (*Linux) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{10} }
func (m *Linux) GetUIDMappings() []LinuxIDMapping {
if m != nil {
return m.UIDMappings
}
return nil
}
func (m *Linux) GetGIDMappings() []LinuxIDMapping {
if m != nil {
return m.GIDMappings
}
return nil
}
func (m *Linux) GetSysctl() map[string]string {
if m != nil {
return m.Sysctl
}
return nil
}
func (m *Linux) GetResources() *LinuxResources {
if m != nil {
return m.Resources
}
return nil
}
func (m *Linux) GetCgroupsPath() string {
if m != nil {
return m.CgroupsPath
}
return ""
}
func (m *Linux) GetNamespaces() []LinuxNamespace {
if m != nil {
return m.Namespaces
}
return nil
}
func (m *Linux) GetDevices() []LinuxDevice {
if m != nil {
return m.Devices
}
return nil
}
func (m *Linux) GetSeccomp() *LinuxSeccomp {
if m != nil {
return m.Seccomp
}
return nil
}
func (m *Linux) GetRootfsPropagation() string {
if m != nil {
return m.RootfsPropagation
}
return ""
}
func (m *Linux) GetMaskedPaths() []string {
if m != nil {
return m.MaskedPaths
}
return nil
}
func (m *Linux) GetReadonlyPaths() []string {
if m != nil {
return m.ReadonlyPaths
}
return nil
}
func (m *Linux) GetMountLabel() string {
if m != nil {
return m.MountLabel
}
return ""
}
func (m *Linux) GetIntelRdt() *LinuxIntelRdt {
if m != nil {
return m.IntelRdt
}
return nil
}
type Windows struct {
// Dummy string, never used.
Dummy string `protobuf:"bytes,1,opt,name=dummy,proto3" json:"dummy,omitempty"`
}
func (m *Windows) Reset() { *m = Windows{} }
func (m *Windows) String() string { return proto.CompactTextString(m) }
func (*Windows) ProtoMessage() {}
func (*Windows) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{11} }
func (m *Windows) GetDummy() string {
if m != nil {
return m.Dummy
}
return ""
}
type Solaris struct {
// Dummy string, never used.
Dummy string `protobuf:"bytes,1,opt,name=dummy,proto3" json:"dummy,omitempty"`
}
func (m *Solaris) Reset() { *m = Solaris{} }
func (m *Solaris) String() string { return proto.CompactTextString(m) }
func (*Solaris) ProtoMessage() {}
func (*Solaris) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{12} }
func (m *Solaris) GetDummy() string {
if m != nil {
return m.Dummy
}
return ""
}
type LinuxIDMapping struct {
// HostID is the starting UID/GID on the host to be mapped to 'ContainerID'
HostID uint32 `protobuf:"varint,1,opt,name=HostID,proto3" json:"HostID,omitempty"`
// ContainerID is the starting UID/GID in the container
ContainerID uint32 `protobuf:"varint,2,opt,name=ContainerID,proto3" json:"ContainerID,omitempty"`
// Size is the number of IDs to be mapped
Size_ uint32 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"`
}
func (m *LinuxIDMapping) Reset() { *m = LinuxIDMapping{} }
func (m *LinuxIDMapping) String() string { return proto.CompactTextString(m) }
func (*LinuxIDMapping) ProtoMessage() {}
func (*LinuxIDMapping) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{13} }
func (m *LinuxIDMapping) GetHostID() uint32 {
if m != nil {
return m.HostID
}
return 0
}
func (m *LinuxIDMapping) GetContainerID() uint32 {
if m != nil {
return m.ContainerID
}
return 0
}
func (m *LinuxIDMapping) GetSize_() uint32 {
if m != nil {
return m.Size_
}
return 0
}
type LinuxNamespace struct {
// Type is the type of namespace
Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
// Path is a path to an existing namespace persisted on disk that can be joined
// and is of the same type
Path string `protobuf:"bytes,2,opt,name=Path,proto3" json:"Path,omitempty"`
}
func (m *LinuxNamespace) Reset() { *m = LinuxNamespace{} }
func (m *LinuxNamespace) String() string { return proto.CompactTextString(m) }
func (*LinuxNamespace) ProtoMessage() {}
func (*LinuxNamespace) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{14} }
func (m *LinuxNamespace) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *LinuxNamespace) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
type LinuxDevice struct {
// Path to the device.
Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"`
// Device type, block, char, etc.
Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
// Major is the device's major number.
Major int64 `protobuf:"varint,3,opt,name=Major,proto3" json:"Major,omitempty"`
// Minor is the device's minor number.
Minor int64 `protobuf:"varint,4,opt,name=Minor,proto3" json:"Minor,omitempty"`
// FileMode permission bits for the device.
FileMode uint32 `protobuf:"varint,5,opt,name=FileMode,proto3" json:"FileMode,omitempty"`
// UID of the device.
UID uint32 `protobuf:"varint,6,opt,name=UID,proto3" json:"UID,omitempty"`
// Gid of the device.
GID uint32 `protobuf:"varint,7,opt,name=GID,proto3" json:"GID,omitempty"`
}
func (m *LinuxDevice) Reset() { *m = LinuxDevice{} }
func (m *LinuxDevice) String() string { return proto.CompactTextString(m) }
func (*LinuxDevice) ProtoMessage() {}
func (*LinuxDevice) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{15} }
func (m *LinuxDevice) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *LinuxDevice) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *LinuxDevice) GetMajor() int64 {
if m != nil {
return m.Major
}
return 0
}
func (m *LinuxDevice) GetMinor() int64 {
if m != nil {
return m.Minor
}
return 0
}
func (m *LinuxDevice) GetFileMode() uint32 {
if m != nil {
return m.FileMode
}
return 0
}
func (m *LinuxDevice) GetUID() uint32 {
if m != nil {
return m.UID
}
return 0
}
func (m *LinuxDevice) GetGID() uint32 {
if m != nil {
return m.GID
}
return 0
}
type LinuxResources struct {
// Devices configures the device whitelist.
Devices []LinuxDeviceCgroup `protobuf:"bytes,1,rep,name=Devices" json:"Devices"`
// Memory restriction configuration
Memory *LinuxMemory `protobuf:"bytes,2,opt,name=Memory" json:"Memory,omitempty"`
// CPU resource restriction configuration
CPU *LinuxCPU `protobuf:"bytes,3,opt,name=CPU" json:"CPU,omitempty"`
// Task resource restriction configuration.
Pids *LinuxPids `protobuf:"bytes,4,opt,name=Pids" json:"Pids,omitempty"`
// BlockIO restriction configuration
BlockIO *LinuxBlockIO `protobuf:"bytes,5,opt,name=BlockIO" json:"BlockIO,omitempty"`
// Hugetlb limit (in bytes)
HugepageLimits []LinuxHugepageLimit `protobuf:"bytes,6,rep,name=HugepageLimits" json:"HugepageLimits"`
// Network restriction configuration
Network *LinuxNetwork `protobuf:"bytes,7,opt,name=Network" json:"Network,omitempty"`
}
func (m *LinuxResources) Reset() { *m = LinuxResources{} }
func (m *LinuxResources) String() string { return proto.CompactTextString(m) }
func (*LinuxResources) ProtoMessage() {}
func (*LinuxResources) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{16} }
func (m *LinuxResources) GetDevices() []LinuxDeviceCgroup {
if m != nil {
return m.Devices
}
return nil
}
func (m *LinuxResources) GetMemory() *LinuxMemory {
if m != nil {
return m.Memory
}
return nil
}
func (m *LinuxResources) GetCPU() *LinuxCPU {
if m != nil {
return m.CPU
}
return nil
}
func (m *LinuxResources) GetPids() *LinuxPids {
if m != nil {
return m.Pids
}
return nil
}
func (m *LinuxResources) GetBlockIO() *LinuxBlockIO {
if m != nil {
return m.BlockIO
}
return nil
}
func (m *LinuxResources) GetHugepageLimits() []LinuxHugepageLimit {
if m != nil {
return m.HugepageLimits
}
return nil
}
func (m *LinuxResources) GetNetwork() *LinuxNetwork {
if m != nil {
return m.Network
}
return nil
}
type LinuxMemory struct {
// Memory limit (in bytes).
Limit int64 `protobuf:"varint,1,opt,name=Limit,proto3" json:"Limit,omitempty"`
// Memory reservation or soft_limit (in bytes).
Reservation int64 `protobuf:"varint,2,opt,name=Reservation,proto3" json:"Reservation,omitempty"`
// Total memory limit (memory + swap).
Swap int64 `protobuf:"varint,3,opt,name=Swap,proto3" json:"Swap,omitempty"`
// Kernel memory limit (in bytes).
Kernel int64 `protobuf:"varint,4,opt,name=Kernel,proto3" json:"Kernel,omitempty"`
// Kernel memory limit for tcp (in bytes)
KernelTCP int64 `protobuf:"varint,5,opt,name=KernelTCP,proto3" json:"KernelTCP,omitempty"`
// How aggressive the kernel will swap memory pages.
Swappiness uint64 `protobuf:"varint,6,opt,name=Swappiness,proto3" json:"Swappiness,omitempty"`
// DisableOOMKiller disables the OOM killer for out of memory conditions
DisableOOMKiller bool `protobuf:"varint,7,opt,name=DisableOOMKiller,proto3" json:"DisableOOMKiller,omitempty"`
}
func (m *LinuxMemory) Reset() { *m = LinuxMemory{} }
func (m *LinuxMemory) String() string { return proto.CompactTextString(m) }
func (*LinuxMemory) ProtoMessage() {}
func (*LinuxMemory) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{17} }
func (m *LinuxMemory) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
func (m *LinuxMemory) GetReservation() int64 {
if m != nil {
return m.Reservation
}
return 0
}
func (m *LinuxMemory) GetSwap() int64 {
if m != nil {
return m.Swap
}
return 0
}
func (m *LinuxMemory) GetKernel() int64 {
if m != nil {
return m.Kernel
}
return 0
}
func (m *LinuxMemory) GetKernelTCP() int64 {
if m != nil {
return m.KernelTCP
}
return 0
}
func (m *LinuxMemory) GetSwappiness() uint64 {
if m != nil {
return m.Swappiness
}
return 0
}
func (m *LinuxMemory) GetDisableOOMKiller() bool {
if m != nil {
return m.DisableOOMKiller
}
return false
}
type LinuxCPU struct {
// CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
Shares uint64 `protobuf:"varint,1,opt,name=Shares,proto3" json:"Shares,omitempty"`
// CPU hardcap limit (in usecs). Allowed cpu time in a given period.
Quota int64 `protobuf:"varint,2,opt,name=Quota,proto3" json:"Quota,omitempty"`
// CPU period to be used for hardcapping (in usecs).
Period uint64 `protobuf:"varint,3,opt,name=Period,proto3" json:"Period,omitempty"`
// How much time realtime scheduling may use (in usecs).
RealtimeRuntime int64 `protobuf:"varint,4,opt,name=RealtimeRuntime,proto3" json:"RealtimeRuntime,omitempty"`
// CPU period to be used for realtime scheduling (in usecs).
RealtimePeriod uint64 `protobuf:"varint,5,opt,name=RealtimePeriod,proto3" json:"RealtimePeriod,omitempty"`
// CPUs to use within the cpuset. Default is to use any CPU available.
Cpus string `protobuf:"bytes,6,opt,name=Cpus,proto3" json:"Cpus,omitempty"`
// List of memory nodes in the cpuset. Default is to use any available memory node.
Mems string `protobuf:"bytes,7,opt,name=Mems,proto3" json:"Mems,omitempty"`
}
func (m *LinuxCPU) Reset() { *m = LinuxCPU{} }
func (m *LinuxCPU) String() string { return proto.CompactTextString(m) }
func (*LinuxCPU) ProtoMessage() {}
func (*LinuxCPU) Descriptor() ([]byte, []int) { return fileDescriptorOci, []int{18} }
func (m *LinuxCPU) GetShares() uint64 {
if m != nil {
return m.Shares