Guest User

Untitled

a guest
Nov 23rd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.44 KB | None | 0 0
  1. diff --git a/pkg/agent/api/grpc/hyperstart.pb.go b/pkg/agent/api/grpc/hyperstart.pb.go
  2. index 8e77e84..100f3f0 100644
  3. --- a/pkg/agent/api/grpc/hyperstart.pb.go
  4. +++ b/pkg/agent/api/grpc/hyperstart.pb.go
  5. @@ -1,6 +1,5 @@
  6. -// Code generated by protoc-gen-go.
  7. +// Code generated by protoc-gen-go. DO NOT EDIT.
  8. // source: hyperstart.proto
  9. -// DO NOT EDIT!
  10.  
  11. /*
  12. Package grpc is a generated protocol buffer package.
  13. @@ -95,6 +94,13 @@ func (m *CreateContainerRequest) String() string { return proto.Compa
  14. func (*CreateContainerRequest) ProtoMessage() {}
  15. func (*CreateContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  16.  
  17. +func (m *CreateContainerRequest) GetContainerId() string {
  18. + if m != nil {
  19. + return m.ContainerId
  20. + }
  21. + return ""
  22. +}
  23. +
  24. func (m *CreateContainerRequest) GetOCI() *Spec {
  25. if m != nil {
  26. return m.OCI
  27. @@ -111,6 +117,13 @@ func (m *StartContainerRequest) String() string { return proto.Compac
  28. func (*StartContainerRequest) ProtoMessage() {}
  29. func (*StartContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  30.  
  31. +func (m *StartContainerRequest) GetContainerId() string {
  32. + if m != nil {
  33. + return m.ContainerId
  34. + }
  35. + return ""
  36. +}
  37. +
  38. type ExecProcessRequest struct {
  39. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
  40. Process *Process `protobuf:"bytes,2,opt,name=process" json:"process,omitempty"`
  41. @@ -121,6 +134,13 @@ func (m *ExecProcessRequest) String() string { return proto.CompactTe
  42. func (*ExecProcessRequest) ProtoMessage() {}
  43. func (*ExecProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  44.  
  45. +func (m *ExecProcessRequest) GetContainerId() string {
  46. + if m != nil {
  47. + return m.ContainerId
  48. + }
  49. + return ""
  50. +}
  51. +
  52. func (m *ExecProcessRequest) GetProcess() *Process {
  53. if m != nil {
  54. return m.Process
  55. @@ -139,6 +159,27 @@ func (m *SignalProcessRequest) String() string { return proto.Compact
  56. func (*SignalProcessRequest) ProtoMessage() {}
  57. func (*SignalProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  58.  
  59. +func (m *SignalProcessRequest) GetContainerId() string {
  60. + if m != nil {
  61. + return m.ContainerId
  62. + }
  63. + return ""
  64. +}
  65. +
  66. +func (m *SignalProcessRequest) GetProcessId() string {
  67. + if m != nil {
  68. + return m.ProcessId
  69. + }
  70. + return ""
  71. +}
  72. +
  73. +func (m *SignalProcessRequest) GetSignal() uint32 {
  74. + if m != nil {
  75. + return m.Signal
  76. + }
  77. + return 0
  78. +}
  79. +
  80. type WaitProcessRequest struct {
  81. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
  82. ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId" json:"process_id,omitempty"`
  83. @@ -149,6 +190,20 @@ func (m *WaitProcessRequest) String() string { return proto.CompactTe
  84. func (*WaitProcessRequest) ProtoMessage() {}
  85. func (*WaitProcessRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  86.  
  87. +func (m *WaitProcessRequest) GetContainerId() string {
  88. + if m != nil {
  89. + return m.ContainerId
  90. + }
  91. + return ""
  92. +}
  93. +
  94. +func (m *WaitProcessRequest) GetProcessId() string {
  95. + if m != nil {
  96. + return m.ProcessId
  97. + }
  98. + return ""
  99. +}
  100. +
  101. type WaitProcessResponse struct {
  102. Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
  103. }
  104. @@ -158,6 +213,13 @@ func (m *WaitProcessResponse) String() string { return proto.CompactT
  105. func (*WaitProcessResponse) ProtoMessage() {}
  106. func (*WaitProcessResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  107.  
  108. +func (m *WaitProcessResponse) GetStatus() int32 {
  109. + if m != nil {
  110. + return m.Status
  111. + }
  112. + return 0
  113. +}
  114. +
  115. type WriteStreamRequest struct {
  116. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
  117. ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId" json:"process_id,omitempty"`
  118. @@ -169,6 +231,27 @@ func (m *WriteStreamRequest) String() string { return proto.CompactTe
  119. func (*WriteStreamRequest) ProtoMessage() {}
  120. func (*WriteStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  121.  
  122. +func (m *WriteStreamRequest) GetContainerId() string {
  123. + if m != nil {
  124. + return m.ContainerId
  125. + }
  126. + return ""
  127. +}
  128. +
  129. +func (m *WriteStreamRequest) GetProcessId() string {
  130. + if m != nil {
  131. + return m.ProcessId
  132. + }
  133. + return ""
  134. +}
  135. +
  136. +func (m *WriteStreamRequest) GetData() []byte {
  137. + if m != nil {
  138. + return m.Data
  139. + }
  140. + return nil
  141. +}
  142. +
  143. type WriteStreamResponse struct {
  144. Len uint32 `protobuf:"varint,1,opt,name=len" json:"len,omitempty"`
  145. }
  146. @@ -178,6 +261,13 @@ func (m *WriteStreamResponse) String() string { return proto.CompactT
  147. func (*WriteStreamResponse) ProtoMessage() {}
  148. func (*WriteStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  149.  
  150. +func (m *WriteStreamResponse) GetLen() uint32 {
  151. + if m != nil {
  152. + return m.Len
  153. + }
  154. + return 0
  155. +}
  156. +
  157. type ReadStreamRequest struct {
  158. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
  159. ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId" json:"process_id,omitempty"`
  160. @@ -189,6 +279,27 @@ func (m *ReadStreamRequest) String() string { return proto.CompactTex
  161. func (*ReadStreamRequest) ProtoMessage() {}
  162. func (*ReadStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
  163.  
  164. +func (m *ReadStreamRequest) GetContainerId() string {
  165. + if m != nil {
  166. + return m.ContainerId
  167. + }
  168. + return ""
  169. +}
  170. +
  171. +func (m *ReadStreamRequest) GetProcessId() string {
  172. + if m != nil {
  173. + return m.ProcessId
  174. + }
  175. + return ""
  176. +}
  177. +
  178. +func (m *ReadStreamRequest) GetLen() uint32 {
  179. + if m != nil {
  180. + return m.Len
  181. + }
  182. + return 0
  183. +}
  184. +
  185. type ReadStreamResponse struct {
  186. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  187. }
  188. @@ -198,6 +309,13 @@ func (m *ReadStreamResponse) String() string { return proto.CompactTe
  189. func (*ReadStreamResponse) ProtoMessage() {}
  190. func (*ReadStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
  191.  
  192. +func (m *ReadStreamResponse) GetData() []byte {
  193. + if m != nil {
  194. + return m.Data
  195. + }
  196. + return nil
  197. +}
  198. +
  199. type CloseStdinRequest struct {
  200. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
  201. ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId" json:"process_id,omitempty"`
  202. @@ -208,6 +326,20 @@ func (m *CloseStdinRequest) String() string { return proto.CompactTex
  203. func (*CloseStdinRequest) ProtoMessage() {}
  204. func (*CloseStdinRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
  205.  
  206. +func (m *CloseStdinRequest) GetContainerId() string {
  207. + if m != nil {
  208. + return m.ContainerId
  209. + }
  210. + return ""
  211. +}
  212. +
  213. +func (m *CloseStdinRequest) GetProcessId() string {
  214. + if m != nil {
  215. + return m.ProcessId
  216. + }
  217. + return ""
  218. +}
  219. +
  220. type TtyWinResizeRequest struct {
  221. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId" json:"container_id,omitempty"`
  222. ProcessId string `protobuf:"bytes,2,opt,name=process_id,json=processId" json:"process_id,omitempty"`
  223. @@ -220,6 +352,34 @@ func (m *TtyWinResizeRequest) String() string { return proto.CompactT
  224. func (*TtyWinResizeRequest) ProtoMessage() {}
  225. func (*TtyWinResizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
  226.  
  227. +func (m *TtyWinResizeRequest) GetContainerId() string {
  228. + if m != nil {
  229. + return m.ContainerId
  230. + }
  231. + return ""
  232. +}
  233. +
  234. +func (m *TtyWinResizeRequest) GetProcessId() string {
  235. + if m != nil {
  236. + return m.ProcessId
  237. + }
  238. + return ""
  239. +}
  240. +
  241. +func (m *TtyWinResizeRequest) GetRow() uint32 {
  242. + if m != nil {
  243. + return m.Row
  244. + }
  245. + return 0
  246. +}
  247. +
  248. +func (m *TtyWinResizeRequest) GetColumn() uint32 {
  249. + if m != nil {
  250. + return m.Column
  251. + }
  252. + return 0
  253. +}
  254. +
  255. type StartSandboxRequest struct {
  256. Hostname string `protobuf:"bytes,1,opt,name=hostname" json:"hostname,omitempty"`
  257. Dns []string `protobuf:"bytes,2,rep,name=dns" json:"dns,omitempty"`
  258. @@ -230,6 +390,20 @@ func (m *StartSandboxRequest) String() string { return proto.CompactT
  259. func (*StartSandboxRequest) ProtoMessage() {}
  260. func (*StartSandboxRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
  261.  
  262. +func (m *StartSandboxRequest) GetHostname() string {
  263. + if m != nil {
  264. + return m.Hostname
  265. + }
  266. + return ""
  267. +}
  268. +
  269. +func (m *StartSandboxRequest) GetDns() []string {
  270. + if m != nil {
  271. + return m.Dns
  272. + }
  273. + return nil
  274. +}
  275. +
  276. type DestroySandboxRequest struct {
  277. }
  278.  
  279. @@ -248,6 +422,20 @@ func (m *IpAddress) String() string { return proto.CompactTextString(
  280. func (*IpAddress) ProtoMessage() {}
  281. func (*IpAddress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  282.  
  283. +func (m *IpAddress) GetAddress() string {
  284. + if m != nil {
  285. + return m.Address
  286. + }
  287. + return ""
  288. +}
  289. +
  290. +func (m *IpAddress) GetMask() string {
  291. + if m != nil {
  292. + return m.Mask
  293. + }
  294. + return ""
  295. +}
  296. +
  297. type UpdateInterfaceRequest struct {
  298. Type uint64 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"`
  299. Device string `protobuf:"bytes,2,opt,name=device" json:"device,omitempty"`
  300. @@ -261,6 +449,27 @@ func (m *UpdateInterfaceRequest) String() string { return proto.Compa
  301. func (*UpdateInterfaceRequest) ProtoMessage() {}
  302. func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
  303.  
  304. +func (m *UpdateInterfaceRequest) GetType() uint64 {
  305. + if m != nil {
  306. + return m.Type
  307. + }
  308. + return 0
  309. +}
  310. +
  311. +func (m *UpdateInterfaceRequest) GetDevice() string {
  312. + if m != nil {
  313. + return m.Device
  314. + }
  315. + return ""
  316. +}
  317. +
  318. +func (m *UpdateInterfaceRequest) GetNewName() string {
  319. + if m != nil {
  320. + return m.NewName
  321. + }
  322. + return ""
  323. +}
  324. +
  325. func (m *UpdateInterfaceRequest) GetIpAddresses() []*IpAddress {
  326. if m != nil {
  327. return m.IpAddresses
  328. @@ -268,6 +477,13 @@ func (m *UpdateInterfaceRequest) GetIpAddresses() []*IpAddress {
  329. return nil
  330. }
  331.  
  332. +func (m *UpdateInterfaceRequest) GetMtu() uint64 {
  333. + if m != nil {
  334. + return m.Mtu
  335. + }
  336. + return 0
  337. +}
  338. +
  339. type AddRouteRequest struct {
  340. Routes []*Route `protobuf:"bytes,1,rep,name=routes" json:"routes,omitempty"`
  341. }
  342. @@ -303,6 +519,27 @@ func (m *StringUser) String() string { return proto.CompactTextString
  343. func (*StringUser) ProtoMessage() {}
  344. func (*StringUser) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
  345.  
  346. +func (m *StringUser) GetUid() string {
  347. + if m != nil {
  348. + return m.Uid
  349. + }
  350. + return ""
  351. +}
  352. +
  353. +func (m *StringUser) GetGid() string {
  354. + if m != nil {
  355. + return m.Gid
  356. + }
  357. + return ""
  358. +}
  359. +
  360. +func (m *StringUser) GetAdditionalGids() []string {
  361. + if m != nil {
  362. + return m.AdditionalGids
  363. + }
  364. + return nil
  365. +}
  366. +
  367. type Route struct {
  368. Dest string `protobuf:"bytes,1,opt,name=dest" json:"dest,omitempty"`
  369. Gateway string `protobuf:"bytes,2,opt,name=gateway" json:"gateway,omitempty"`
  370. @@ -314,6 +551,27 @@ func (m *Route) String() string { return proto.CompactTextString(m) }
  371. func (*Route) ProtoMessage() {}
  372. func (*Route) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
  373.  
  374. +func (m *Route) GetDest() string {
  375. + if m != nil {
  376. + return m.Dest
  377. + }
  378. + return ""
  379. +}
  380. +
  381. +func (m *Route) GetGateway() string {
  382. + if m != nil {
  383. + return m.Gateway
  384. + }
  385. + return ""
  386. +}
  387. +
  388. +func (m *Route) GetDevice() string {
  389. + if m != nil {
  390. + return m.Device
  391. + }
  392. + return ""
  393. +}
  394. +
  395. func init() {
  396. proto.RegisterType((*CreateContainerRequest)(nil), "grpc.CreateContainerRequest")
  397. proto.RegisterType((*StartContainerRequest)(nil), "grpc.StartContainerRequest")
  398. @@ -343,7 +601,7 @@ var _ grpc1.ClientConn
  399.  
  400. // This is a compile-time assertion to ensure that this generated file
  401. // is compatible with the grpc package it is being compiled against.
  402. -const _ = grpc1.SupportPackageIsVersion2
  403. +const _ = grpc1.SupportPackageIsVersion4
  404.  
  405. // Client API for HyperstartService service
  406.  
  407. @@ -873,12 +1131,15 @@ var _HyperstartService_serviceDesc = grpc1.ServiceDesc{
  408. Handler: _HyperstartService_OnlineCPUMem_Handler,
  409. },
  410. },
  411. - Streams: []grpc1.StreamDesc{},
  412. + Streams: []grpc1.StreamDesc{},
  413. + Metadata: "hyperstart.proto",
  414. }
  415.  
  416. +func init() { proto.RegisterFile("hyperstart.proto", fileDescriptor0) }
  417. +
  418. var fileDescriptor0 = []byte{
  419. // 868 bytes of a gzipped FileDescriptorProto
  420. - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x55, 0xdf, 0x6f, 0x1b, 0x45,
  421. + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdf, 0x6f, 0x1b, 0x45,
  422. 0x10, 0x96, 0x7b, 0x4e, 0x1a, 0x8f, 0x93, 0xa6, 0x59, 0x93, 0xf4, 0x70, 0x8b, 0x14, 0x0e, 0x89,
  423. 0xfa, 0x05, 0x57, 0x04, 0x09, 0xa9, 0x48, 0xa8, 0x0a, 0x26, 0x0a, 0x7e, 0x28, 0xad, 0xce, 0x84,
  424. 0xc0, 0x13, 0x6c, 0x6e, 0xa7, 0xee, 0x81, 0xbd, 0x7b, 0xec, 0xae, 0x71, 0xcd, 0x1b, 0x0f, 0xfc,
  425. diff --git a/pkg/agent/api/grpc/oci.pb.go b/pkg/agent/api/grpc/oci.pb.go
  426. index 32bc5ff..70c0008 100644
  427. --- a/pkg/agent/api/grpc/oci.pb.go
  428. +++ b/pkg/agent/api/grpc/oci.pb.go
  429. @@ -1,6 +1,5 @@
  430. -// Code generated by protoc-gen-go.
  431. +// Code generated by protoc-gen-go. DO NOT EDIT.
  432. // source: oci.proto
  433. -// DO NOT EDIT!
  434.  
  435. package grpc
  436.  
  437. @@ -41,6 +40,13 @@ func (m *Spec) String() string { return proto.CompactTextString(m) }
  438. func (*Spec) ProtoMessage() {}
  439. func (*Spec) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
  440.  
  441. +func (m *Spec) GetVersion() string {
  442. + if m != nil {
  443. + return m.Version
  444. + }
  445. + return ""
  446. +}
  447. +
  448. func (m *Spec) GetProcess() *Process {
  449. if m != nil {
  450. return m.Process
  451. @@ -55,6 +61,13 @@ func (m *Spec) GetRoot() *Root {
  452. return nil
  453. }
  454.  
  455. +func (m *Spec) GetHostname() string {
  456. + if m != nil {
  457. + return m.Hostname
  458. + }
  459. + return ""
  460. +}
  461. +
  462. func (m *Spec) GetMounts() []*Mount {
  463. if m != nil {
  464. return m.Mounts
  465. @@ -130,6 +143,13 @@ func (m *Process) String() string { return proto.CompactTextString(m)
  466. func (*Process) ProtoMessage() {}
  467. func (*Process) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
  468.  
  469. +func (m *Process) GetTerminal() bool {
  470. + if m != nil {
  471. + return m.Terminal
  472. + }
  473. + return false
  474. +}
  475. +
  476. func (m *Process) GetConsoleSize() *Box {
  477. if m != nil {
  478. return m.ConsoleSize
  479. @@ -144,6 +164,27 @@ func (m *Process) GetUser() *User {
  480. return nil
  481. }
  482.  
  483. +func (m *Process) GetArgs() []string {
  484. + if m != nil {
  485. + return m.Args
  486. + }
  487. + return nil
  488. +}
  489. +
  490. +func (m *Process) GetEnv() []string {
  491. + if m != nil {
  492. + return m.Env
  493. + }
  494. + return nil
  495. +}
  496. +
  497. +func (m *Process) GetCwd() string {
  498. + if m != nil {
  499. + return m.Cwd
  500. + }
  501. + return ""
  502. +}
  503. +
  504. func (m *Process) GetCapabilities() *LinuxCapabilities {
  505. if m != nil {
  506. return m.Capabilities
  507. @@ -158,6 +199,34 @@ func (m *Process) GetRlimits() []*POSIXRlimit {
  508. return nil
  509. }
  510.  
  511. +func (m *Process) GetNoNewPrivileges() bool {
  512. + if m != nil {
  513. + return m.NoNewPrivileges
  514. + }
  515. + return false
  516. +}
  517. +
  518. +func (m *Process) GetApparmorProfile() string {
  519. + if m != nil {
  520. + return m.ApparmorProfile
  521. + }
  522. + return ""
  523. +}
  524. +
  525. +func (m *Process) GetOOMScoreAdj() uint32 {
  526. + if m != nil {
  527. + return m.OOMScoreAdj
  528. + }
  529. + return 0
  530. +}
  531. +
  532. +func (m *Process) GetSelinuxLabel() string {
  533. + if m != nil {
  534. + return m.SelinuxLabel
  535. + }
  536. + return ""
  537. +}
  538. +
  539. type Box struct {
  540. // Height is the vertical dimension of a box.
  541. Height uint32 `protobuf:"varint,1,opt,name=Height" json:"Height,omitempty"`
  542. @@ -170,13 +239,27 @@ func (m *Box) String() string { return proto.CompactTextString(m) }
  543. func (*Box) ProtoMessage() {}
  544. func (*Box) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
  545.  
  546. +func (m *Box) GetHeight() uint32 {
  547. + if m != nil {
  548. + return m.Height
  549. + }
  550. + return 0
  551. +}
  552. +
  553. +func (m *Box) GetWidth() uint32 {
  554. + if m != nil {
  555. + return m.Width
  556. + }
  557. + return 0
  558. +}
  559. +
  560. type User struct {
  561. // UID is the user id.
  562. UID uint32 `protobuf:"varint,1,opt,name=UID" json:"UID,omitempty"`
  563. // GID is the group id.
  564. GID uint32 `protobuf:"varint,2,opt,name=GID" json:"GID,omitempty"`
  565. // AdditionalGids are additional group ids set for the container's process.
  566. - AdditionalGids []uint32 `protobuf:"varint,3,rep,name=AdditionalGids" json:"AdditionalGids,omitempty"`
  567. + AdditionalGids []uint32 `protobuf:"varint,3,rep,packed,name=AdditionalGids" json:"AdditionalGids,omitempty"`
  568. // Username is the user name.
  569. Username string `protobuf:"bytes,4,opt,name=Username" json:"Username,omitempty"`
  570. }
  571. @@ -186,6 +269,34 @@ func (m *User) String() string { return proto.CompactTextString(m) }
  572. func (*User) ProtoMessage() {}
  573. func (*User) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
  574.  
  575. +func (m *User) GetUID() uint32 {
  576. + if m != nil {
  577. + return m.UID
  578. + }
  579. + return 0
  580. +}
  581. +
  582. +func (m *User) GetGID() uint32 {
  583. + if m != nil {
  584. + return m.GID
  585. + }
  586. + return 0
  587. +}
  588. +
  589. +func (m *User) GetAdditionalGids() []uint32 {
  590. + if m != nil {
  591. + return m.AdditionalGids
  592. + }
  593. + return nil
  594. +}
  595. +
  596. +func (m *User) GetUsername() string {
  597. + if m != nil {
  598. + return m.Username
  599. + }
  600. + return ""
  601. +}
  602. +
  603. type LinuxCapabilities struct {
  604. // Bounding is the set of capabilities checked by the kernel.
  605. Bounding []string `protobuf:"bytes,1,rep,name=Bounding" json:"Bounding,omitempty"`
  606. @@ -204,6 +315,41 @@ func (m *LinuxCapabilities) String() string { return proto.CompactTex
  607. func (*LinuxCapabilities) ProtoMessage() {}
  608. func (*LinuxCapabilities) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
  609.  
  610. +func (m *LinuxCapabilities) GetBounding() []string {
  611. + if m != nil {
  612. + return m.Bounding
  613. + }
  614. + return nil
  615. +}
  616. +
  617. +func (m *LinuxCapabilities) GetEffective() []string {
  618. + if m != nil {
  619. + return m.Effective
  620. + }
  621. + return nil
  622. +}
  623. +
  624. +func (m *LinuxCapabilities) GetInheritable() []string {
  625. + if m != nil {
  626. + return m.Inheritable
  627. + }
  628. + return nil
  629. +}
  630. +
  631. +func (m *LinuxCapabilities) GetPermitted() []string {
  632. + if m != nil {
  633. + return m.Permitted
  634. + }
  635. + return nil
  636. +}
  637. +
  638. +func (m *LinuxCapabilities) GetAmbient() []string {
  639. + if m != nil {
  640. + return m.Ambient
  641. + }
  642. + return nil
  643. +}
  644. +
  645. type POSIXRlimit struct {
  646. // Type of the rlimit to set
  647. Type string `protobuf:"bytes,1,opt,name=Type" json:"Type,omitempty"`
  648. @@ -218,6 +364,27 @@ func (m *POSIXRlimit) String() string { return proto.CompactTextStrin
  649. func (*POSIXRlimit) ProtoMessage() {}
  650. func (*POSIXRlimit) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
  651.  
  652. +func (m *POSIXRlimit) GetType() string {
  653. + if m != nil {
  654. + return m.Type
  655. + }
  656. + return ""
  657. +}
  658. +
  659. +func (m *POSIXRlimit) GetHard() uint64 {
  660. + if m != nil {
  661. + return m.Hard
  662. + }
  663. + return 0
  664. +}
  665. +
  666. +func (m *POSIXRlimit) GetSoft() uint64 {
  667. + if m != nil {
  668. + return m.Soft
  669. + }
  670. + return 0
  671. +}
  672. +
  673. type Mount struct {
  674. // destination is the path inside the container expect when it starts with "tmp:/"
  675. Destination string `protobuf:"bytes,1,opt,name=destination" json:"destination,omitempty"`
  676. @@ -235,6 +402,34 @@ func (m *Mount) String() string { return proto.CompactTextString(m) }
  677. func (*Mount) ProtoMessage() {}
  678. func (*Mount) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
  679.  
  680. +func (m *Mount) GetDestination() string {
  681. + if m != nil {
  682. + return m.Destination
  683. + }
  684. + return ""
  685. +}
  686. +
  687. +func (m *Mount) GetSource() string {
  688. + if m != nil {
  689. + return m.Source
  690. + }
  691. + return ""
  692. +}
  693. +
  694. +func (m *Mount) GetType() string {
  695. + if m != nil {
  696. + return m.Type
  697. + }
  698. + return ""
  699. +}
  700. +
  701. +func (m *Mount) GetOptions() []string {
  702. + if m != nil {
  703. + return m.Options
  704. + }
  705. + return nil
  706. +}
  707. +
  708. type Root struct {
  709. // Path is the absolute path to the container's root filesystem.
  710. Path string `protobuf:"bytes,1,opt,name=Path" json:"Path,omitempty"`
  711. @@ -247,6 +442,20 @@ func (m *Root) String() string { return proto.CompactTextString(m) }
  712. func (*Root) ProtoMessage() {}
  713. func (*Root) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
  714.  
  715. +func (m *Root) GetPath() string {
  716. + if m != nil {
  717. + return m.Path
  718. + }
  719. + return ""
  720. +}
  721. +
  722. +func (m *Root) GetReadonly() bool {
  723. + if m != nil {
  724. + return m.Readonly
  725. + }
  726. + return false
  727. +}
  728. +
  729. type Hooks struct {
  730. // Prestart is a list of hooks to be run before the container process is executed.
  731. Prestart []*Hook `protobuf:"bytes,1,rep,name=Prestart" json:"Prestart,omitempty"`
  732. @@ -294,6 +503,34 @@ func (m *Hook) String() string { return proto.CompactTextString(m) }
  733. func (*Hook) ProtoMessage() {}
  734. func (*Hook) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} }
  735.  
  736. +func (m *Hook) GetPath() string {
  737. + if m != nil {
  738. + return m.Path
  739. + }
  740. + return ""
  741. +}
  742. +
  743. +func (m *Hook) GetArgs() []string {
  744. + if m != nil {
  745. + return m.Args
  746. + }
  747. + return nil
  748. +}
  749. +
  750. +func (m *Hook) GetEnv() []string {
  751. + if m != nil {
  752. + return m.Env
  753. + }
  754. + return nil
  755. +}
  756. +
  757. +func (m *Hook) GetTimeout() int64 {
  758. + if m != nil {
  759. + return m.Timeout
  760. + }
  761. + return 0
  762. +}
  763. +
  764. type Linux struct {
  765. // UIDMapping specifies user mappings for supporting user namespaces.
  766. UIDMappings []*LinuxIDMapping `protobuf:"bytes,1,rep,name=UIDMappings" json:"UIDMappings,omitempty"`
  767. @@ -360,6 +597,13 @@ func (m *Linux) GetResources() *LinuxResources {
  768. return nil
  769. }
  770.  
  771. +func (m *Linux) GetCgroupsPath() string {
  772. + if m != nil {
  773. + return m.CgroupsPath
  774. + }
  775. + return ""
  776. +}
  777. +
  778. func (m *Linux) GetNamespaces() []*LinuxNamespace {
  779. if m != nil {
  780. return m.Namespaces
  781. @@ -381,6 +625,34 @@ func (m *Linux) GetSeccomp() *LinuxSeccomp {
  782. return nil
  783. }
  784.  
  785. +func (m *Linux) GetRootfsPropagation() string {
  786. + if m != nil {
  787. + return m.RootfsPropagation
  788. + }
  789. + return ""
  790. +}
  791. +
  792. +func (m *Linux) GetMaskedPaths() []string {
  793. + if m != nil {
  794. + return m.MaskedPaths
  795. + }
  796. + return nil
  797. +}
  798. +
  799. +func (m *Linux) GetReadonlyPaths() []string {
  800. + if m != nil {
  801. + return m.ReadonlyPaths
  802. + }
  803. + return nil
  804. +}
  805. +
  806. +func (m *Linux) GetMountLabel() string {
  807. + if m != nil {
  808. + return m.MountLabel
  809. + }
  810. + return ""
  811. +}
  812. +
  813. func (m *Linux) GetIntelRdt() *LinuxIntelRdt {
  814. if m != nil {
  815. return m.IntelRdt
  816. @@ -398,6 +670,13 @@ func (m *Windows) String() string { return proto.CompactTextString(m)
  817. func (*Windows) ProtoMessage() {}
  818. func (*Windows) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} }
  819.  
  820. +func (m *Windows) GetDummy() string {
  821. + if m != nil {
  822. + return m.Dummy
  823. + }
  824. + return ""
  825. +}
  826. +
  827. type Solaris struct {
  828. // Dummy string, never used.
  829. Dummy string `protobuf:"bytes,1,opt,name=dummy" json:"dummy,omitempty"`
  830. @@ -408,6 +687,13 @@ func (m *Solaris) String() string { return proto.CompactTextString(m)
  831. func (*Solaris) ProtoMessage() {}
  832. func (*Solaris) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{12} }
  833.  
  834. +func (m *Solaris) GetDummy() string {
  835. + if m != nil {
  836. + return m.Dummy
  837. + }
  838. + return ""
  839. +}
  840. +
  841. type LinuxIDMapping struct {
  842. // HostID is the starting UID/GID on the host to be mapped to 'ContainerID'
  843. HostID uint32 `protobuf:"varint,1,opt,name=HostID" json:"HostID,omitempty"`
  844. @@ -422,6 +708,27 @@ func (m *LinuxIDMapping) String() string { return proto.CompactTextSt
  845. func (*LinuxIDMapping) ProtoMessage() {}
  846. func (*LinuxIDMapping) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{13} }
  847.  
  848. +func (m *LinuxIDMapping) GetHostID() uint32 {
  849. + if m != nil {
  850. + return m.HostID
  851. + }
  852. + return 0
  853. +}
  854. +
  855. +func (m *LinuxIDMapping) GetContainerID() uint32 {
  856. + if m != nil {
  857. + return m.ContainerID
  858. + }
  859. + return 0
  860. +}
  861. +
  862. +func (m *LinuxIDMapping) GetSize() uint32 {
  863. + if m != nil {
  864. + return m.Size
  865. + }
  866. + return 0
  867. +}
  868. +
  869. type LinuxNamespace struct {
  870. // Type is the type of namespace
  871. Type string `protobuf:"bytes,1,opt,name=Type" json:"Type,omitempty"`
  872. @@ -435,6 +742,20 @@ func (m *LinuxNamespace) String() string { return proto.CompactTextSt
  873. func (*LinuxNamespace) ProtoMessage() {}
  874. func (*LinuxNamespace) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{14} }
  875.  
  876. +func (m *LinuxNamespace) GetType() string {
  877. + if m != nil {
  878. + return m.Type
  879. + }
  880. + return ""
  881. +}
  882. +
  883. +func (m *LinuxNamespace) GetPath() string {
  884. + if m != nil {
  885. + return m.Path
  886. + }
  887. + return ""
  888. +}
  889. +
  890. type LinuxDevice struct {
  891. // Path to the device.
  892. Path string `protobuf:"bytes,1,opt,name=Path" json:"Path,omitempty"`
  893. @@ -457,6 +778,55 @@ func (m *LinuxDevice) String() string { return proto.CompactTextStrin
  894. func (*LinuxDevice) ProtoMessage() {}
  895. func (*LinuxDevice) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{15} }
  896.  
  897. +func (m *LinuxDevice) GetPath() string {
  898. + if m != nil {
  899. + return m.Path
  900. + }
  901. + return ""
  902. +}
  903. +
  904. +func (m *LinuxDevice) GetType() string {
  905. + if m != nil {
  906. + return m.Type
  907. + }
  908. + return ""
  909. +}
  910. +
  911. +func (m *LinuxDevice) GetMajor() int64 {
  912. + if m != nil {
  913. + return m.Major
  914. + }
  915. + return 0
  916. +}
  917. +
  918. +func (m *LinuxDevice) GetMinor() int64 {
  919. + if m != nil {
  920. + return m.Minor
  921. + }
  922. + return 0
  923. +}
  924. +
  925. +func (m *LinuxDevice) GetFileMode() uint32 {
  926. + if m != nil {
  927. + return m.FileMode
  928. + }
  929. + return 0
  930. +}
  931. +
  932. +func (m *LinuxDevice) GetUID() uint32 {
  933. + if m != nil {
  934. + return m.UID
  935. + }
  936. + return 0
  937. +}
  938. +
  939. +func (m *LinuxDevice) GetGID() uint32 {
  940. + if m != nil {
  941. + return m.GID
  942. + }
  943. + return 0
  944. +}
  945. +
  946. type LinuxResources struct {
  947. // Devices configures the device whitelist.
  948. Devices []*LinuxDeviceCgroup `protobuf:"bytes,1,rep,name=Devices" json:"Devices,omitempty"`
  949. @@ -550,6 +920,55 @@ func (m *LinuxMemory) String() string { return proto.CompactTextStrin
  950. func (*LinuxMemory) ProtoMessage() {}
  951. func (*LinuxMemory) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{17} }
  952.  
  953. +func (m *LinuxMemory) GetLimit() int64 {
  954. + if m != nil {
  955. + return m.Limit
  956. + }
  957. + return 0
  958. +}
  959. +
  960. +func (m *LinuxMemory) GetReservation() int64 {
  961. + if m != nil {
  962. + return m.Reservation
  963. + }
  964. + return 0
  965. +}
  966. +
  967. +func (m *LinuxMemory) GetSwap() int64 {
  968. + if m != nil {
  969. + return m.Swap
  970. + }
  971. + return 0
  972. +}
  973. +
  974. +func (m *LinuxMemory) GetKernel() int64 {
  975. + if m != nil {
  976. + return m.Kernel
  977. + }
  978. + return 0
  979. +}
  980. +
  981. +func (m *LinuxMemory) GetKernelTCP() int64 {
  982. + if m != nil {
  983. + return m.KernelTCP
  984. + }
  985. + return 0
  986. +}
  987. +
  988. +func (m *LinuxMemory) GetSwappiness() uint64 {
  989. + if m != nil {
  990. + return m.Swappiness
  991. + }
  992. + return 0
  993. +}
  994. +
  995. +func (m *LinuxMemory) GetDisableOOMKiller() bool {
  996. + if m != nil {
  997. + return m.DisableOOMKiller
  998. + }
  999. + return false
  1000. +}
  1001. +
  1002. type LinuxCPU struct {
  1003. // CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
  1004. Shares uint64 `protobuf:"varint,1,opt,name=Shares" json:"Shares,omitempty"`
  1005. @@ -572,6 +991,55 @@ func (m *LinuxCPU) String() string { return proto.CompactTextString(m
  1006. func (*LinuxCPU) ProtoMessage() {}
  1007. func (*LinuxCPU) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{18} }
  1008.  
  1009. +func (m *LinuxCPU) GetShares() uint64 {
  1010. + if m != nil {
  1011. + return m.Shares
  1012. + }
  1013. + return 0
  1014. +}
  1015. +
  1016. +func (m *LinuxCPU) GetQuota() int64 {
  1017. + if m != nil {
  1018. + return m.Quota
  1019. + }
  1020. + return 0
  1021. +}
  1022. +
  1023. +func (m *LinuxCPU) GetPeriod() uint64 {
  1024. + if m != nil {
  1025. + return m.Period
  1026. + }
  1027. + return 0
  1028. +}
  1029. +
  1030. +func (m *LinuxCPU) GetRealtimeRuntime() int64 {
  1031. + if m != nil {
  1032. + return m.RealtimeRuntime
  1033. + }
  1034. + return 0
  1035. +}
  1036. +
  1037. +func (m *LinuxCPU) GetRealtimePeriod() uint64 {
  1038. + if m != nil {
  1039. + return m.RealtimePeriod
  1040. + }
  1041. + return 0
  1042. +}
  1043. +
  1044. +func (m *LinuxCPU) GetCpus() string {
  1045. + if m != nil {
  1046. + return m.Cpus
  1047. + }
  1048. + return ""
  1049. +}
  1050. +
  1051. +func (m *LinuxCPU) GetMems() string {
  1052. + if m != nil {
  1053. + return m.Mems
  1054. + }
  1055. + return ""
  1056. +}
  1057. +
  1058. type LinuxWeightDevice struct {
  1059. // Major is the device's major number.
  1060. Major int64 `protobuf:"varint,1,opt,name=Major" json:"Major,omitempty"`
  1061. @@ -588,6 +1056,34 @@ func (m *LinuxWeightDevice) String() string { return proto.CompactTex
  1062. func (*LinuxWeightDevice) ProtoMessage() {}
  1063. func (*LinuxWeightDevice) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{19} }
  1064.  
  1065. +func (m *LinuxWeightDevice) GetMajor() int64 {
  1066. + if m != nil {
  1067. + return m.Major
  1068. + }
  1069. + return 0
  1070. +}
  1071. +
  1072. +func (m *LinuxWeightDevice) GetMinor() int64 {
  1073. + if m != nil {
  1074. + return m.Minor
  1075. + }
  1076. + return 0
  1077. +}
  1078. +
  1079. +func (m *LinuxWeightDevice) GetWeight() uint32 {
  1080. + if m != nil {
  1081. + return m.Weight
  1082. + }
  1083. + return 0
  1084. +}
  1085. +
  1086. +func (m *LinuxWeightDevice) GetLeafWeight() uint32 {
  1087. + if m != nil {
  1088. + return m.LeafWeight
  1089. + }
  1090. + return 0
  1091. +}
  1092. +
  1093. type LinuxThrottleDevice struct {
  1094. // Major is the device's major number.
  1095. Major int64 `protobuf:"varint,1,opt,name=Major" json:"Major,omitempty"`
  1096. @@ -602,6 +1098,27 @@ func (m *LinuxThrottleDevice) String() string { return proto.CompactT
  1097. func (*LinuxThrottleDevice) ProtoMessage() {}
  1098. func (*LinuxThrottleDevice) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{20} }
  1099.  
  1100. +func (m *LinuxThrottleDevice) GetMajor() int64 {
  1101. + if m != nil {
  1102. + return m.Major
  1103. + }
  1104. + return 0
  1105. +}
  1106. +
  1107. +func (m *LinuxThrottleDevice) GetMinor() int64 {
  1108. + if m != nil {
  1109. + return m.Minor
  1110. + }
  1111. + return 0
  1112. +}
  1113. +
  1114. +func (m *LinuxThrottleDevice) GetRate() uint64 {
  1115. + if m != nil {
  1116. + return m.Rate
  1117. + }
  1118. + return 0
  1119. +}
  1120. +
  1121. type LinuxBlockIO struct {
  1122. // Specifies per cgroup weight
  1123. Weight uint32 `protobuf:"varint,1,opt,name=Weight" json:"Weight,omitempty"`
  1124. @@ -624,6 +1141,20 @@ func (m *LinuxBlockIO) String() string { return proto.CompactTextStri
  1125. func (*LinuxBlockIO) ProtoMessage() {}
  1126. func (*LinuxBlockIO) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{21} }
  1127.  
  1128. +func (m *LinuxBlockIO) GetWeight() uint32 {
  1129. + if m != nil {
  1130. + return m.Weight
  1131. + }
  1132. + return 0
  1133. +}
  1134. +
  1135. +func (m *LinuxBlockIO) GetLeafWeight() uint32 {
  1136. + if m != nil {
  1137. + return m.LeafWeight
  1138. + }
  1139. + return 0
  1140. +}
  1141. +
  1142. func (m *LinuxBlockIO) GetWeightDevice() []*LinuxWeightDevice {
  1143. if m != nil {
  1144. return m.WeightDevice
  1145. @@ -669,6 +1200,13 @@ func (m *LinuxPids) String() string { return proto.CompactTextString(
  1146. func (*LinuxPids) ProtoMessage() {}
  1147. func (*LinuxPids) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{22} }
  1148.  
  1149. +func (m *LinuxPids) GetLimit() int64 {
  1150. + if m != nil {
  1151. + return m.Limit
  1152. + }
  1153. + return 0
  1154. +}
  1155. +
  1156. type LinuxDeviceCgroup struct {
  1157. // Allow or deny
  1158. Allow bool `protobuf:"varint,1,opt,name=Allow" json:"Allow,omitempty"`
  1159. @@ -687,6 +1225,41 @@ func (m *LinuxDeviceCgroup) String() string { return proto.CompactTex
  1160. func (*LinuxDeviceCgroup) ProtoMessage() {}
  1161. func (*LinuxDeviceCgroup) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{23} }
  1162.  
  1163. +func (m *LinuxDeviceCgroup) GetAllow() bool {
  1164. + if m != nil {
  1165. + return m.Allow
  1166. + }
  1167. + return false
  1168. +}
  1169. +
  1170. +func (m *LinuxDeviceCgroup) GetType() string {
  1171. + if m != nil {
  1172. + return m.Type
  1173. + }
  1174. + return ""
  1175. +}
  1176. +
  1177. +func (m *LinuxDeviceCgroup) GetMajor() int64 {
  1178. + if m != nil {
  1179. + return m.Major
  1180. + }
  1181. + return 0
  1182. +}
  1183. +
  1184. +func (m *LinuxDeviceCgroup) GetMinor() int64 {
  1185. + if m != nil {
  1186. + return m.Minor
  1187. + }
  1188. + return 0
  1189. +}
  1190. +
  1191. +func (m *LinuxDeviceCgroup) GetAccess() string {
  1192. + if m != nil {
  1193. + return m.Access
  1194. + }
  1195. + return ""
  1196. +}
  1197. +
  1198. type LinuxNetwork struct {
  1199. // Set class identifier for container's network packets
  1200. ClassID uint32 `protobuf:"varint,1,opt,name=ClassID" json:"ClassID,omitempty"`
  1201. @@ -699,6 +1272,13 @@ func (m *LinuxNetwork) String() string { return proto.CompactTextStri
  1202. func (*LinuxNetwork) ProtoMessage() {}
  1203. func (*LinuxNetwork) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{24} }
  1204.  
  1205. +func (m *LinuxNetwork) GetClassID() uint32 {
  1206. + if m != nil {
  1207. + return m.ClassID
  1208. + }
  1209. + return 0
  1210. +}
  1211. +
  1212. func (m *LinuxNetwork) GetPriorities() []*LinuxInterfacePriority {
  1213. if m != nil {
  1214. return m.Priorities
  1215. @@ -718,6 +1298,20 @@ func (m *LinuxHugepageLimit) String() string { return proto.CompactTe
  1216. func (*LinuxHugepageLimit) ProtoMessage() {}
  1217. func (*LinuxHugepageLimit) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{25} }
  1218.  
  1219. +func (m *LinuxHugepageLimit) GetPagesize() string {
  1220. + if m != nil {
  1221. + return m.Pagesize
  1222. + }
  1223. + return ""
  1224. +}
  1225. +
  1226. +func (m *LinuxHugepageLimit) GetLimit() uint64 {
  1227. + if m != nil {
  1228. + return m.Limit
  1229. + }
  1230. + return 0
  1231. +}
  1232. +
  1233. type LinuxInterfacePriority struct {
  1234. // Name is the name of the network interface
  1235. Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
  1236. @@ -730,6 +1324,20 @@ func (m *LinuxInterfacePriority) String() string { return proto.Compa
  1237. func (*LinuxInterfacePriority) ProtoMessage() {}
  1238. func (*LinuxInterfacePriority) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{26} }
  1239.  
  1240. +func (m *LinuxInterfacePriority) GetName() string {
  1241. + if m != nil {
  1242. + return m.Name
  1243. + }
  1244. + return ""
  1245. +}
  1246. +
  1247. +func (m *LinuxInterfacePriority) GetPriority() uint32 {
  1248. + if m != nil {
  1249. + return m.Priority
  1250. + }
  1251. + return 0
  1252. +}
  1253. +
  1254. type LinuxSeccomp struct {
  1255. DefaultAction string `protobuf:"bytes,1,opt,name=DefaultAction" json:"DefaultAction,omitempty"`
  1256. Architectures []string `protobuf:"bytes,2,rep,name=Architectures" json:"Architectures,omitempty"`
  1257. @@ -741,6 +1349,20 @@ func (m *LinuxSeccomp) String() string { return proto.CompactTextStri
  1258. func (*LinuxSeccomp) ProtoMessage() {}
  1259. func (*LinuxSeccomp) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{27} }
  1260.  
  1261. +func (m *LinuxSeccomp) GetDefaultAction() string {
  1262. + if m != nil {
  1263. + return m.DefaultAction
  1264. + }
  1265. + return ""
  1266. +}
  1267. +
  1268. +func (m *LinuxSeccomp) GetArchitectures() []string {
  1269. + if m != nil {
  1270. + return m.Architectures
  1271. + }
  1272. + return nil
  1273. +}
  1274. +
  1275. func (m *LinuxSeccomp) GetSyscalls() []*LinuxSyscall {
  1276. if m != nil {
  1277. return m.Syscalls
  1278. @@ -760,6 +1382,34 @@ func (m *LinuxSeccompArg) String() string { return proto.CompactTextS
  1279. func (*LinuxSeccompArg) ProtoMessage() {}
  1280. func (*LinuxSeccompArg) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{28} }
  1281.  
  1282. +func (m *LinuxSeccompArg) GetIndex() uint64 {
  1283. + if m != nil {
  1284. + return m.Index
  1285. + }
  1286. + return 0
  1287. +}
  1288. +
  1289. +func (m *LinuxSeccompArg) GetValue() uint64 {
  1290. + if m != nil {
  1291. + return m.Value
  1292. + }
  1293. + return 0
  1294. +}
  1295. +
  1296. +func (m *LinuxSeccompArg) GetValueTwo() uint64 {
  1297. + if m != nil {
  1298. + return m.ValueTwo
  1299. + }
  1300. + return 0
  1301. +}
  1302. +
  1303. +func (m *LinuxSeccompArg) GetOp() string {
  1304. + if m != nil {
  1305. + return m.Op
  1306. + }
  1307. + return ""
  1308. +}
  1309. +
  1310. type LinuxSyscall struct {
  1311. Names []string `protobuf:"bytes,1,rep,name=Names" json:"Names,omitempty"`
  1312. Action string `protobuf:"bytes,2,opt,name=Action" json:"Action,omitempty"`
  1313. @@ -771,6 +1421,20 @@ func (m *LinuxSyscall) String() string { return proto.CompactTextStri
  1314. func (*LinuxSyscall) ProtoMessage() {}
  1315. func (*LinuxSyscall) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{29} }
  1316.  
  1317. +func (m *LinuxSyscall) GetNames() []string {
  1318. + if m != nil {
  1319. + return m.Names
  1320. + }
  1321. + return nil
  1322. +}
  1323. +
  1324. +func (m *LinuxSyscall) GetAction() string {
  1325. + if m != nil {
  1326. + return m.Action
  1327. + }
  1328. + return ""
  1329. +}
  1330. +
  1331. func (m *LinuxSyscall) GetArgs() []*LinuxSeccompArg {
  1332. if m != nil {
  1333. return m.Args
  1334. @@ -789,6 +1453,13 @@ func (m *LinuxIntelRdt) String() string { return proto.CompactTextStr
  1335. func (*LinuxIntelRdt) ProtoMessage() {}
  1336. func (*LinuxIntelRdt) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{30} }
  1337.  
  1338. +func (m *LinuxIntelRdt) GetL3CacheSchema() string {
  1339. + if m != nil {
  1340. + return m.L3CacheSchema
  1341. + }
  1342. + return ""
  1343. +}
  1344. +
  1345. func init() {
  1346. proto.RegisterType((*Spec)(nil), "grpc.Spec")
  1347. proto.RegisterType((*Process)(nil), "grpc.Process")
  1348. @@ -823,9 +1494,11 @@ func init() {
  1349. proto.RegisterType((*LinuxIntelRdt)(nil), "grpc.LinuxIntelRdt")
  1350. }
  1351.  
  1352. +func init() { proto.RegisterFile("oci.proto", fileDescriptor1) }
  1353. +
  1354. var fileDescriptor1 = []byte{
  1355. // 1926 bytes of a gzipped FileDescriptorProto
  1356. - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x58, 0x4f, 0x73, 0x1b, 0xb7,
  1357. + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x4f, 0x73, 0x1b, 0xb7,
  1358. 0x15, 0x1f, 0x72, 0x29, 0x8a, 0x04, 0x4d, 0xdb, 0x42, 0x1c, 0x65, 0xeb, 0x66, 0x52, 0x65, 0x93,
  1359. 0x49, 0x95, 0x26, 0xa3, 0x4c, 0xed, 0x36, 0x93, 0xfe, 0x9d, 0x52, 0x94, 0x63, 0x71, 0x22, 0x9a,
  1360. 0x0c, 0x28, 0xc5, 0x9d, 0x1e, 0x3a, 0x03, 0xed, 0x82, 0x24, 0xa2, 0xe5, 0x62, 0x07, 0x0b, 0x4a,
Add Comment
Please, Sign In to add comment