containers.pb.go 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565
  1. //
  2. //Copyright (c) 2020 Docker Inc.
  3. //
  4. //Permission is hereby granted, free of charge, to any person
  5. //obtaining a copy of this software and associated documentation
  6. //files (the "Software"), to deal in the Software without
  7. //restriction, including without limitation the rights to use, copy,
  8. //modify, merge, publish, distribute, sublicense, and/or sell copies
  9. //of the Software, and to permit persons to whom the Software is
  10. //furnished to do so, subject to the following conditions:
  11. //
  12. //The above copyright notice and this permission notice shall be
  13. //included in all copies or substantial portions of the Software.
  14. //
  15. //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. //EXPRESS OR IMPLIED,
  17. //INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  19. //IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  20. //HOLDERS BE LIABLE FOR ANY CLAIM,
  21. //DAMAGES OR OTHER LIABILITY,
  22. //WHETHER IN AN ACTION OF CONTRACT,
  23. //TORT OR OTHERWISE,
  24. //ARISING FROM, OUT OF OR IN CONNECTION WITH
  25. //THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  26. // Code generated by protoc-gen-go. DO NOT EDIT.
  27. // versions:
  28. // protoc-gen-go v1.22.0
  29. // protoc v3.11.2
  30. // source: protos/containers/v1/containers.proto
  31. package v1
  32. import (
  33. context "context"
  34. proto "github.com/golang/protobuf/proto"
  35. grpc "google.golang.org/grpc"
  36. codes "google.golang.org/grpc/codes"
  37. status "google.golang.org/grpc/status"
  38. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  39. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  40. reflect "reflect"
  41. sync "sync"
  42. )
  43. const (
  44. // Verify that this generated code is sufficiently up-to-date.
  45. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  46. // Verify that runtime/protoimpl is sufficiently up-to-date.
  47. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  48. )
  49. // This is a compile-time assertion that a sufficiently up-to-date version
  50. // of the legacy proto package is being used.
  51. const _ = proto.ProtoPackageIsVersion4
  52. type Port struct {
  53. state protoimpl.MessageState
  54. sizeCache protoimpl.SizeCache
  55. unknownFields protoimpl.UnknownFields
  56. HostPort uint32 `protobuf:"varint,1,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"`
  57. ContainerPort uint32 `protobuf:"varint,2,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"`
  58. Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"`
  59. HostIp string `protobuf:"bytes,4,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"`
  60. }
  61. func (x *Port) Reset() {
  62. *x = Port{}
  63. if protoimpl.UnsafeEnabled {
  64. mi := &file_protos_containers_v1_containers_proto_msgTypes[0]
  65. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  66. ms.StoreMessageInfo(mi)
  67. }
  68. }
  69. func (x *Port) String() string {
  70. return protoimpl.X.MessageStringOf(x)
  71. }
  72. func (*Port) ProtoMessage() {}
  73. func (x *Port) ProtoReflect() protoreflect.Message {
  74. mi := &file_protos_containers_v1_containers_proto_msgTypes[0]
  75. if protoimpl.UnsafeEnabled && x != nil {
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. if ms.LoadMessageInfo() == nil {
  78. ms.StoreMessageInfo(mi)
  79. }
  80. return ms
  81. }
  82. return mi.MessageOf(x)
  83. }
  84. // Deprecated: Use Port.ProtoReflect.Descriptor instead.
  85. func (*Port) Descriptor() ([]byte, []int) {
  86. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{0}
  87. }
  88. func (x *Port) GetHostPort() uint32 {
  89. if x != nil {
  90. return x.HostPort
  91. }
  92. return 0
  93. }
  94. func (x *Port) GetContainerPort() uint32 {
  95. if x != nil {
  96. return x.ContainerPort
  97. }
  98. return 0
  99. }
  100. func (x *Port) GetProtocol() string {
  101. if x != nil {
  102. return x.Protocol
  103. }
  104. return ""
  105. }
  106. func (x *Port) GetHostIp() string {
  107. if x != nil {
  108. return x.HostIp
  109. }
  110. return ""
  111. }
  112. type Container struct {
  113. state protoimpl.MessageState
  114. sizeCache protoimpl.SizeCache
  115. unknownFields protoimpl.UnknownFields
  116. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  117. Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
  118. Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
  119. Command string `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"`
  120. CpuTime uint64 `protobuf:"varint,5,opt,name=cpu_time,json=cpuTime,proto3" json:"cpu_time,omitempty"`
  121. MemoryUsage uint64 `protobuf:"varint,6,opt,name=memory_usage,json=memoryUsage,proto3" json:"memory_usage,omitempty"`
  122. MemoryLimit uint64 `protobuf:"varint,7,opt,name=memory_limit,json=memoryLimit,proto3" json:"memory_limit,omitempty"`
  123. PidsCurrent uint64 `protobuf:"varint,8,opt,name=pids_current,json=pidsCurrent,proto3" json:"pids_current,omitempty"`
  124. PidsLimit uint64 `protobuf:"varint,9,opt,name=pids_limit,json=pidsLimit,proto3" json:"pids_limit,omitempty"`
  125. Labels []string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty"`
  126. Ports []*Port `protobuf:"bytes,11,rep,name=ports,proto3" json:"ports,omitempty"`
  127. }
  128. func (x *Container) Reset() {
  129. *x = Container{}
  130. if protoimpl.UnsafeEnabled {
  131. mi := &file_protos_containers_v1_containers_proto_msgTypes[1]
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. ms.StoreMessageInfo(mi)
  134. }
  135. }
  136. func (x *Container) String() string {
  137. return protoimpl.X.MessageStringOf(x)
  138. }
  139. func (*Container) ProtoMessage() {}
  140. func (x *Container) ProtoReflect() protoreflect.Message {
  141. mi := &file_protos_containers_v1_containers_proto_msgTypes[1]
  142. if protoimpl.UnsafeEnabled && x != nil {
  143. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  144. if ms.LoadMessageInfo() == nil {
  145. ms.StoreMessageInfo(mi)
  146. }
  147. return ms
  148. }
  149. return mi.MessageOf(x)
  150. }
  151. // Deprecated: Use Container.ProtoReflect.Descriptor instead.
  152. func (*Container) Descriptor() ([]byte, []int) {
  153. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{1}
  154. }
  155. func (x *Container) GetId() string {
  156. if x != nil {
  157. return x.Id
  158. }
  159. return ""
  160. }
  161. func (x *Container) GetImage() string {
  162. if x != nil {
  163. return x.Image
  164. }
  165. return ""
  166. }
  167. func (x *Container) GetStatus() string {
  168. if x != nil {
  169. return x.Status
  170. }
  171. return ""
  172. }
  173. func (x *Container) GetCommand() string {
  174. if x != nil {
  175. return x.Command
  176. }
  177. return ""
  178. }
  179. func (x *Container) GetCpuTime() uint64 {
  180. if x != nil {
  181. return x.CpuTime
  182. }
  183. return 0
  184. }
  185. func (x *Container) GetMemoryUsage() uint64 {
  186. if x != nil {
  187. return x.MemoryUsage
  188. }
  189. return 0
  190. }
  191. func (x *Container) GetMemoryLimit() uint64 {
  192. if x != nil {
  193. return x.MemoryLimit
  194. }
  195. return 0
  196. }
  197. func (x *Container) GetPidsCurrent() uint64 {
  198. if x != nil {
  199. return x.PidsCurrent
  200. }
  201. return 0
  202. }
  203. func (x *Container) GetPidsLimit() uint64 {
  204. if x != nil {
  205. return x.PidsLimit
  206. }
  207. return 0
  208. }
  209. func (x *Container) GetLabels() []string {
  210. if x != nil {
  211. return x.Labels
  212. }
  213. return nil
  214. }
  215. func (x *Container) GetPorts() []*Port {
  216. if x != nil {
  217. return x.Ports
  218. }
  219. return nil
  220. }
  221. type DeleteRequest struct {
  222. state protoimpl.MessageState
  223. sizeCache protoimpl.SizeCache
  224. unknownFields protoimpl.UnknownFields
  225. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  226. Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
  227. }
  228. func (x *DeleteRequest) Reset() {
  229. *x = DeleteRequest{}
  230. if protoimpl.UnsafeEnabled {
  231. mi := &file_protos_containers_v1_containers_proto_msgTypes[2]
  232. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  233. ms.StoreMessageInfo(mi)
  234. }
  235. }
  236. func (x *DeleteRequest) String() string {
  237. return protoimpl.X.MessageStringOf(x)
  238. }
  239. func (*DeleteRequest) ProtoMessage() {}
  240. func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
  241. mi := &file_protos_containers_v1_containers_proto_msgTypes[2]
  242. if protoimpl.UnsafeEnabled && x != nil {
  243. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  244. if ms.LoadMessageInfo() == nil {
  245. ms.StoreMessageInfo(mi)
  246. }
  247. return ms
  248. }
  249. return mi.MessageOf(x)
  250. }
  251. // Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
  252. func (*DeleteRequest) Descriptor() ([]byte, []int) {
  253. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{2}
  254. }
  255. func (x *DeleteRequest) GetId() string {
  256. if x != nil {
  257. return x.Id
  258. }
  259. return ""
  260. }
  261. func (x *DeleteRequest) GetForce() bool {
  262. if x != nil {
  263. return x.Force
  264. }
  265. return false
  266. }
  267. type DeleteResponse struct {
  268. state protoimpl.MessageState
  269. sizeCache protoimpl.SizeCache
  270. unknownFields protoimpl.UnknownFields
  271. }
  272. func (x *DeleteResponse) Reset() {
  273. *x = DeleteResponse{}
  274. if protoimpl.UnsafeEnabled {
  275. mi := &file_protos_containers_v1_containers_proto_msgTypes[3]
  276. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  277. ms.StoreMessageInfo(mi)
  278. }
  279. }
  280. func (x *DeleteResponse) String() string {
  281. return protoimpl.X.MessageStringOf(x)
  282. }
  283. func (*DeleteResponse) ProtoMessage() {}
  284. func (x *DeleteResponse) ProtoReflect() protoreflect.Message {
  285. mi := &file_protos_containers_v1_containers_proto_msgTypes[3]
  286. if protoimpl.UnsafeEnabled && x != nil {
  287. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  288. if ms.LoadMessageInfo() == nil {
  289. ms.StoreMessageInfo(mi)
  290. }
  291. return ms
  292. }
  293. return mi.MessageOf(x)
  294. }
  295. // Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
  296. func (*DeleteResponse) Descriptor() ([]byte, []int) {
  297. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{3}
  298. }
  299. type StopRequest struct {
  300. state protoimpl.MessageState
  301. sizeCache protoimpl.SizeCache
  302. unknownFields protoimpl.UnknownFields
  303. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  304. Timeout uint32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
  305. }
  306. func (x *StopRequest) Reset() {
  307. *x = StopRequest{}
  308. if protoimpl.UnsafeEnabled {
  309. mi := &file_protos_containers_v1_containers_proto_msgTypes[4]
  310. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  311. ms.StoreMessageInfo(mi)
  312. }
  313. }
  314. func (x *StopRequest) String() string {
  315. return protoimpl.X.MessageStringOf(x)
  316. }
  317. func (*StopRequest) ProtoMessage() {}
  318. func (x *StopRequest) ProtoReflect() protoreflect.Message {
  319. mi := &file_protos_containers_v1_containers_proto_msgTypes[4]
  320. if protoimpl.UnsafeEnabled && x != nil {
  321. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  322. if ms.LoadMessageInfo() == nil {
  323. ms.StoreMessageInfo(mi)
  324. }
  325. return ms
  326. }
  327. return mi.MessageOf(x)
  328. }
  329. // Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.
  330. func (*StopRequest) Descriptor() ([]byte, []int) {
  331. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{4}
  332. }
  333. func (x *StopRequest) GetId() string {
  334. if x != nil {
  335. return x.Id
  336. }
  337. return ""
  338. }
  339. func (x *StopRequest) GetTimeout() uint32 {
  340. if x != nil {
  341. return x.Timeout
  342. }
  343. return 0
  344. }
  345. type StopResponse struct {
  346. state protoimpl.MessageState
  347. sizeCache protoimpl.SizeCache
  348. unknownFields protoimpl.UnknownFields
  349. }
  350. func (x *StopResponse) Reset() {
  351. *x = StopResponse{}
  352. if protoimpl.UnsafeEnabled {
  353. mi := &file_protos_containers_v1_containers_proto_msgTypes[5]
  354. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  355. ms.StoreMessageInfo(mi)
  356. }
  357. }
  358. func (x *StopResponse) String() string {
  359. return protoimpl.X.MessageStringOf(x)
  360. }
  361. func (*StopResponse) ProtoMessage() {}
  362. func (x *StopResponse) ProtoReflect() protoreflect.Message {
  363. mi := &file_protos_containers_v1_containers_proto_msgTypes[5]
  364. if protoimpl.UnsafeEnabled && x != nil {
  365. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  366. if ms.LoadMessageInfo() == nil {
  367. ms.StoreMessageInfo(mi)
  368. }
  369. return ms
  370. }
  371. return mi.MessageOf(x)
  372. }
  373. // Deprecated: Use StopResponse.ProtoReflect.Descriptor instead.
  374. func (*StopResponse) Descriptor() ([]byte, []int) {
  375. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{5}
  376. }
  377. type RunRequest struct {
  378. state protoimpl.MessageState
  379. sizeCache protoimpl.SizeCache
  380. unknownFields protoimpl.UnknownFields
  381. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  382. Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
  383. Ports []*Port `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"`
  384. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  385. Volumes []string `protobuf:"bytes,5,rep,name=volumes,proto3" json:"volumes,omitempty"`
  386. }
  387. func (x *RunRequest) Reset() {
  388. *x = RunRequest{}
  389. if protoimpl.UnsafeEnabled {
  390. mi := &file_protos_containers_v1_containers_proto_msgTypes[6]
  391. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  392. ms.StoreMessageInfo(mi)
  393. }
  394. }
  395. func (x *RunRequest) String() string {
  396. return protoimpl.X.MessageStringOf(x)
  397. }
  398. func (*RunRequest) ProtoMessage() {}
  399. func (x *RunRequest) ProtoReflect() protoreflect.Message {
  400. mi := &file_protos_containers_v1_containers_proto_msgTypes[6]
  401. if protoimpl.UnsafeEnabled && x != nil {
  402. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  403. if ms.LoadMessageInfo() == nil {
  404. ms.StoreMessageInfo(mi)
  405. }
  406. return ms
  407. }
  408. return mi.MessageOf(x)
  409. }
  410. // Deprecated: Use RunRequest.ProtoReflect.Descriptor instead.
  411. func (*RunRequest) Descriptor() ([]byte, []int) {
  412. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{6}
  413. }
  414. func (x *RunRequest) GetId() string {
  415. if x != nil {
  416. return x.Id
  417. }
  418. return ""
  419. }
  420. func (x *RunRequest) GetImage() string {
  421. if x != nil {
  422. return x.Image
  423. }
  424. return ""
  425. }
  426. func (x *RunRequest) GetPorts() []*Port {
  427. if x != nil {
  428. return x.Ports
  429. }
  430. return nil
  431. }
  432. func (x *RunRequest) GetLabels() map[string]string {
  433. if x != nil {
  434. return x.Labels
  435. }
  436. return nil
  437. }
  438. func (x *RunRequest) GetVolumes() []string {
  439. if x != nil {
  440. return x.Volumes
  441. }
  442. return nil
  443. }
  444. type RunResponse struct {
  445. state protoimpl.MessageState
  446. sizeCache protoimpl.SizeCache
  447. unknownFields protoimpl.UnknownFields
  448. }
  449. func (x *RunResponse) Reset() {
  450. *x = RunResponse{}
  451. if protoimpl.UnsafeEnabled {
  452. mi := &file_protos_containers_v1_containers_proto_msgTypes[7]
  453. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  454. ms.StoreMessageInfo(mi)
  455. }
  456. }
  457. func (x *RunResponse) String() string {
  458. return protoimpl.X.MessageStringOf(x)
  459. }
  460. func (*RunResponse) ProtoMessage() {}
  461. func (x *RunResponse) ProtoReflect() protoreflect.Message {
  462. mi := &file_protos_containers_v1_containers_proto_msgTypes[7]
  463. if protoimpl.UnsafeEnabled && x != nil {
  464. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  465. if ms.LoadMessageInfo() == nil {
  466. ms.StoreMessageInfo(mi)
  467. }
  468. return ms
  469. }
  470. return mi.MessageOf(x)
  471. }
  472. // Deprecated: Use RunResponse.ProtoReflect.Descriptor instead.
  473. func (*RunResponse) Descriptor() ([]byte, []int) {
  474. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{7}
  475. }
  476. type ExecRequest struct {
  477. state protoimpl.MessageState
  478. sizeCache protoimpl.SizeCache
  479. unknownFields protoimpl.UnknownFields
  480. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  481. Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
  482. StreamId string `protobuf:"bytes,3,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
  483. Args []string `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
  484. Env []string `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty"`
  485. Tty bool `protobuf:"varint,6,opt,name=tty,proto3" json:"tty,omitempty"`
  486. }
  487. func (x *ExecRequest) Reset() {
  488. *x = ExecRequest{}
  489. if protoimpl.UnsafeEnabled {
  490. mi := &file_protos_containers_v1_containers_proto_msgTypes[8]
  491. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  492. ms.StoreMessageInfo(mi)
  493. }
  494. }
  495. func (x *ExecRequest) String() string {
  496. return protoimpl.X.MessageStringOf(x)
  497. }
  498. func (*ExecRequest) ProtoMessage() {}
  499. func (x *ExecRequest) ProtoReflect() protoreflect.Message {
  500. mi := &file_protos_containers_v1_containers_proto_msgTypes[8]
  501. if protoimpl.UnsafeEnabled && x != nil {
  502. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  503. if ms.LoadMessageInfo() == nil {
  504. ms.StoreMessageInfo(mi)
  505. }
  506. return ms
  507. }
  508. return mi.MessageOf(x)
  509. }
  510. // Deprecated: Use ExecRequest.ProtoReflect.Descriptor instead.
  511. func (*ExecRequest) Descriptor() ([]byte, []int) {
  512. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{8}
  513. }
  514. func (x *ExecRequest) GetId() string {
  515. if x != nil {
  516. return x.Id
  517. }
  518. return ""
  519. }
  520. func (x *ExecRequest) GetCommand() string {
  521. if x != nil {
  522. return x.Command
  523. }
  524. return ""
  525. }
  526. func (x *ExecRequest) GetStreamId() string {
  527. if x != nil {
  528. return x.StreamId
  529. }
  530. return ""
  531. }
  532. func (x *ExecRequest) GetArgs() []string {
  533. if x != nil {
  534. return x.Args
  535. }
  536. return nil
  537. }
  538. func (x *ExecRequest) GetEnv() []string {
  539. if x != nil {
  540. return x.Env
  541. }
  542. return nil
  543. }
  544. func (x *ExecRequest) GetTty() bool {
  545. if x != nil {
  546. return x.Tty
  547. }
  548. return false
  549. }
  550. type ExecResponse struct {
  551. state protoimpl.MessageState
  552. sizeCache protoimpl.SizeCache
  553. unknownFields protoimpl.UnknownFields
  554. Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
  555. }
  556. func (x *ExecResponse) Reset() {
  557. *x = ExecResponse{}
  558. if protoimpl.UnsafeEnabled {
  559. mi := &file_protos_containers_v1_containers_proto_msgTypes[9]
  560. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  561. ms.StoreMessageInfo(mi)
  562. }
  563. }
  564. func (x *ExecResponse) String() string {
  565. return protoimpl.X.MessageStringOf(x)
  566. }
  567. func (*ExecResponse) ProtoMessage() {}
  568. func (x *ExecResponse) ProtoReflect() protoreflect.Message {
  569. mi := &file_protos_containers_v1_containers_proto_msgTypes[9]
  570. if protoimpl.UnsafeEnabled && x != nil {
  571. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  572. if ms.LoadMessageInfo() == nil {
  573. ms.StoreMessageInfo(mi)
  574. }
  575. return ms
  576. }
  577. return mi.MessageOf(x)
  578. }
  579. // Deprecated: Use ExecResponse.ProtoReflect.Descriptor instead.
  580. func (*ExecResponse) Descriptor() ([]byte, []int) {
  581. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{9}
  582. }
  583. func (x *ExecResponse) GetOutput() []byte {
  584. if x != nil {
  585. return x.Output
  586. }
  587. return nil
  588. }
  589. type ListRequest struct {
  590. state protoimpl.MessageState
  591. sizeCache protoimpl.SizeCache
  592. unknownFields protoimpl.UnknownFields
  593. All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"`
  594. }
  595. func (x *ListRequest) Reset() {
  596. *x = ListRequest{}
  597. if protoimpl.UnsafeEnabled {
  598. mi := &file_protos_containers_v1_containers_proto_msgTypes[10]
  599. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  600. ms.StoreMessageInfo(mi)
  601. }
  602. }
  603. func (x *ListRequest) String() string {
  604. return protoimpl.X.MessageStringOf(x)
  605. }
  606. func (*ListRequest) ProtoMessage() {}
  607. func (x *ListRequest) ProtoReflect() protoreflect.Message {
  608. mi := &file_protos_containers_v1_containers_proto_msgTypes[10]
  609. if protoimpl.UnsafeEnabled && x != nil {
  610. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  611. if ms.LoadMessageInfo() == nil {
  612. ms.StoreMessageInfo(mi)
  613. }
  614. return ms
  615. }
  616. return mi.MessageOf(x)
  617. }
  618. // Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
  619. func (*ListRequest) Descriptor() ([]byte, []int) {
  620. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{10}
  621. }
  622. func (x *ListRequest) GetAll() bool {
  623. if x != nil {
  624. return x.All
  625. }
  626. return false
  627. }
  628. type ListResponse struct {
  629. state protoimpl.MessageState
  630. sizeCache protoimpl.SizeCache
  631. unknownFields protoimpl.UnknownFields
  632. Containers []*Container `protobuf:"bytes,1,rep,name=containers,proto3" json:"containers,omitempty"`
  633. }
  634. func (x *ListResponse) Reset() {
  635. *x = ListResponse{}
  636. if protoimpl.UnsafeEnabled {
  637. mi := &file_protos_containers_v1_containers_proto_msgTypes[11]
  638. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  639. ms.StoreMessageInfo(mi)
  640. }
  641. }
  642. func (x *ListResponse) String() string {
  643. return protoimpl.X.MessageStringOf(x)
  644. }
  645. func (*ListResponse) ProtoMessage() {}
  646. func (x *ListResponse) ProtoReflect() protoreflect.Message {
  647. mi := &file_protos_containers_v1_containers_proto_msgTypes[11]
  648. if protoimpl.UnsafeEnabled && x != nil {
  649. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  650. if ms.LoadMessageInfo() == nil {
  651. ms.StoreMessageInfo(mi)
  652. }
  653. return ms
  654. }
  655. return mi.MessageOf(x)
  656. }
  657. // Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
  658. func (*ListResponse) Descriptor() ([]byte, []int) {
  659. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{11}
  660. }
  661. func (x *ListResponse) GetContainers() []*Container {
  662. if x != nil {
  663. return x.Containers
  664. }
  665. return nil
  666. }
  667. type LogsRequest struct {
  668. state protoimpl.MessageState
  669. sizeCache protoimpl.SizeCache
  670. unknownFields protoimpl.UnknownFields
  671. ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
  672. Follow bool `protobuf:"varint,3,opt,name=follow,proto3" json:"follow,omitempty"`
  673. }
  674. func (x *LogsRequest) Reset() {
  675. *x = LogsRequest{}
  676. if protoimpl.UnsafeEnabled {
  677. mi := &file_protos_containers_v1_containers_proto_msgTypes[12]
  678. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  679. ms.StoreMessageInfo(mi)
  680. }
  681. }
  682. func (x *LogsRequest) String() string {
  683. return protoimpl.X.MessageStringOf(x)
  684. }
  685. func (*LogsRequest) ProtoMessage() {}
  686. func (x *LogsRequest) ProtoReflect() protoreflect.Message {
  687. mi := &file_protos_containers_v1_containers_proto_msgTypes[12]
  688. if protoimpl.UnsafeEnabled && x != nil {
  689. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  690. if ms.LoadMessageInfo() == nil {
  691. ms.StoreMessageInfo(mi)
  692. }
  693. return ms
  694. }
  695. return mi.MessageOf(x)
  696. }
  697. // Deprecated: Use LogsRequest.ProtoReflect.Descriptor instead.
  698. func (*LogsRequest) Descriptor() ([]byte, []int) {
  699. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{12}
  700. }
  701. func (x *LogsRequest) GetContainerId() string {
  702. if x != nil {
  703. return x.ContainerId
  704. }
  705. return ""
  706. }
  707. func (x *LogsRequest) GetFollow() bool {
  708. if x != nil {
  709. return x.Follow
  710. }
  711. return false
  712. }
  713. type LogsResponse struct {
  714. state protoimpl.MessageState
  715. sizeCache protoimpl.SizeCache
  716. unknownFields protoimpl.UnknownFields
  717. Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
  718. }
  719. func (x *LogsResponse) Reset() {
  720. *x = LogsResponse{}
  721. if protoimpl.UnsafeEnabled {
  722. mi := &file_protos_containers_v1_containers_proto_msgTypes[13]
  723. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  724. ms.StoreMessageInfo(mi)
  725. }
  726. }
  727. func (x *LogsResponse) String() string {
  728. return protoimpl.X.MessageStringOf(x)
  729. }
  730. func (*LogsResponse) ProtoMessage() {}
  731. func (x *LogsResponse) ProtoReflect() protoreflect.Message {
  732. mi := &file_protos_containers_v1_containers_proto_msgTypes[13]
  733. if protoimpl.UnsafeEnabled && x != nil {
  734. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  735. if ms.LoadMessageInfo() == nil {
  736. ms.StoreMessageInfo(mi)
  737. }
  738. return ms
  739. }
  740. return mi.MessageOf(x)
  741. }
  742. // Deprecated: Use LogsResponse.ProtoReflect.Descriptor instead.
  743. func (*LogsResponse) Descriptor() ([]byte, []int) {
  744. return file_protos_containers_v1_containers_proto_rawDescGZIP(), []int{13}
  745. }
  746. func (x *LogsResponse) GetValue() []byte {
  747. if x != nil {
  748. return x.Value
  749. }
  750. return nil
  751. }
  752. var File_protos_containers_v1_containers_proto protoreflect.FileDescriptor
  753. var file_protos_containers_v1_containers_proto_rawDesc = []byte{
  754. 0x0a, 0x25, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e,
  755. 0x65, 0x72, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
  756. 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63,
  757. 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63,
  758. 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x7f, 0x0a, 0x04,
  759. 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x6f, 0x72,
  760. 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x6f, 0x72,
  761. 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x70,
  762. 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61,
  763. 0x69, 0x6e, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74,
  764. 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74,
  765. 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x70, 0x18,
  766. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x70, 0x22, 0xdf, 0x02,
  767. 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  768. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69,
  769. 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67,
  770. 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
  771. 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d,
  772. 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d,
  773. 0x61, 0x6e, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x70, 0x75, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
  774. 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x70, 0x75, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x21,
  775. 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06,
  776. 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x55, 0x73, 0x61, 0x67,
  777. 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x6c, 0x69, 0x6d, 0x69,
  778. 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4c,
  779. 0x69, 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x69, 0x64, 0x73, 0x5f, 0x63, 0x75, 0x72,
  780. 0x72, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x69, 0x64, 0x73,
  781. 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x69, 0x64, 0x73, 0x5f,
  782. 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x69, 0x64,
  783. 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73,
  784. 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3f,
  785. 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e,
  786. 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70,
  787. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73,
  788. 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x22,
  789. 0x35, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  790. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  791. 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
  792. 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
  793. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x70,
  794. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
  795. 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f,
  796. 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75,
  797. 0x74, 0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  798. 0x65, 0x22, 0x9d, 0x02, 0x0a, 0x0a, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  799. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  800. 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  801. 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x3f, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18,
  802. 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b,
  803. 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f,
  804. 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x72, 0x74,
  805. 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x53, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c,
  806. 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f,
  807. 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e,
  808. 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75,
  809. 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45,
  810. 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07,
  811. 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x76,
  812. 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
  813. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
  814. 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  815. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
  816. 0x01, 0x22, 0x0d, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  817. 0x22, 0x8c, 0x01, 0x0a, 0x0b, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  818. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  819. 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
  820. 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74,
  821. 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73,
  822. 0x74, 0x72, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18,
  823. 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x65,
  824. 0x6e, 0x76, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, 0x10, 0x0a,
  825. 0x03, 0x74, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x74, 0x79, 0x22,
  826. 0x26, 0x0a, 0x0c, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  827. 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
  828. 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x1f, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52,
  829. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x01, 0x20,
  830. 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x22, 0x5e, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74,
  831. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74,
  832. 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63,
  833. 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72,
  834. 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e,
  835. 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x0a, 0x63, 0x6f,
  836. 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x22, 0x48, 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x73,
  837. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61,
  838. 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63,
  839. 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f,
  840. 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x66, 0x6f, 0x6c, 0x6c,
  841. 0x6f, 0x77, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  842. 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  843. 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0x9f, 0x05, 0x0a, 0x0a, 0x43, 0x6f, 0x6e,
  844. 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x6b, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12,
  845. 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69,
  846. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65,
  847. 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  848. 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61,
  849. 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69,
  850. 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70,
  851. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x04, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x30, 0x2e, 0x63,
  852. 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72,
  853. 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e,
  854. 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31,
  855. 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  856. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
  857. 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  858. 0x65, 0x12, 0x68, 0x0a, 0x03, 0x52, 0x75, 0x6e, 0x12, 0x2f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64,
  859. 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
  860. 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52,
  861. 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e,
  862. 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  863. 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e,
  864. 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x04, 0x45,
  865. 0x78, 0x65, 0x63, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72,
  866. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74,
  867. 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65,
  868. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b,
  869. 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f,
  870. 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63,
  871. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73,
  872. 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70,
  873. 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e,
  874. 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
  875. 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e,
  876. 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61,
  877. 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73,
  878. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x71, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74,
  879. 0x65, 0x12, 0x32, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61,
  880. 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69,
  881. 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65,
  882. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b,
  883. 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f,
  884. 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65,
  885. 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69,
  886. 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2f,
  887. 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61,
  888. 0x69, 0x6e, 0x65, 0x72, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
  889. 0x74, 0x6f, 0x33,
  890. }
  891. var (
  892. file_protos_containers_v1_containers_proto_rawDescOnce sync.Once
  893. file_protos_containers_v1_containers_proto_rawDescData = file_protos_containers_v1_containers_proto_rawDesc
  894. )
  895. func file_protos_containers_v1_containers_proto_rawDescGZIP() []byte {
  896. file_protos_containers_v1_containers_proto_rawDescOnce.Do(func() {
  897. file_protos_containers_v1_containers_proto_rawDescData = protoimpl.X.CompressGZIP(file_protos_containers_v1_containers_proto_rawDescData)
  898. })
  899. return file_protos_containers_v1_containers_proto_rawDescData
  900. }
  901. var file_protos_containers_v1_containers_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
  902. var file_protos_containers_v1_containers_proto_goTypes = []interface{}{
  903. (*Port)(nil), // 0: com.docker.api.protos.containers.v1.Port
  904. (*Container)(nil), // 1: com.docker.api.protos.containers.v1.Container
  905. (*DeleteRequest)(nil), // 2: com.docker.api.protos.containers.v1.DeleteRequest
  906. (*DeleteResponse)(nil), // 3: com.docker.api.protos.containers.v1.DeleteResponse
  907. (*StopRequest)(nil), // 4: com.docker.api.protos.containers.v1.StopRequest
  908. (*StopResponse)(nil), // 5: com.docker.api.protos.containers.v1.StopResponse
  909. (*RunRequest)(nil), // 6: com.docker.api.protos.containers.v1.RunRequest
  910. (*RunResponse)(nil), // 7: com.docker.api.protos.containers.v1.RunResponse
  911. (*ExecRequest)(nil), // 8: com.docker.api.protos.containers.v1.ExecRequest
  912. (*ExecResponse)(nil), // 9: com.docker.api.protos.containers.v1.ExecResponse
  913. (*ListRequest)(nil), // 10: com.docker.api.protos.containers.v1.ListRequest
  914. (*ListResponse)(nil), // 11: com.docker.api.protos.containers.v1.ListResponse
  915. (*LogsRequest)(nil), // 12: com.docker.api.protos.containers.v1.LogsRequest
  916. (*LogsResponse)(nil), // 13: com.docker.api.protos.containers.v1.LogsResponse
  917. nil, // 14: com.docker.api.protos.containers.v1.RunRequest.LabelsEntry
  918. }
  919. var file_protos_containers_v1_containers_proto_depIdxs = []int32{
  920. 0, // 0: com.docker.api.protos.containers.v1.Container.ports:type_name -> com.docker.api.protos.containers.v1.Port
  921. 0, // 1: com.docker.api.protos.containers.v1.RunRequest.ports:type_name -> com.docker.api.protos.containers.v1.Port
  922. 14, // 2: com.docker.api.protos.containers.v1.RunRequest.labels:type_name -> com.docker.api.protos.containers.v1.RunRequest.LabelsEntry
  923. 1, // 3: com.docker.api.protos.containers.v1.ListResponse.containers:type_name -> com.docker.api.protos.containers.v1.Container
  924. 10, // 4: com.docker.api.protos.containers.v1.Containers.List:input_type -> com.docker.api.protos.containers.v1.ListRequest
  925. 4, // 5: com.docker.api.protos.containers.v1.Containers.Stop:input_type -> com.docker.api.protos.containers.v1.StopRequest
  926. 6, // 6: com.docker.api.protos.containers.v1.Containers.Run:input_type -> com.docker.api.protos.containers.v1.RunRequest
  927. 8, // 7: com.docker.api.protos.containers.v1.Containers.Exec:input_type -> com.docker.api.protos.containers.v1.ExecRequest
  928. 12, // 8: com.docker.api.protos.containers.v1.Containers.Logs:input_type -> com.docker.api.protos.containers.v1.LogsRequest
  929. 2, // 9: com.docker.api.protos.containers.v1.Containers.Delete:input_type -> com.docker.api.protos.containers.v1.DeleteRequest
  930. 11, // 10: com.docker.api.protos.containers.v1.Containers.List:output_type -> com.docker.api.protos.containers.v1.ListResponse
  931. 5, // 11: com.docker.api.protos.containers.v1.Containers.Stop:output_type -> com.docker.api.protos.containers.v1.StopResponse
  932. 7, // 12: com.docker.api.protos.containers.v1.Containers.Run:output_type -> com.docker.api.protos.containers.v1.RunResponse
  933. 9, // 13: com.docker.api.protos.containers.v1.Containers.Exec:output_type -> com.docker.api.protos.containers.v1.ExecResponse
  934. 13, // 14: com.docker.api.protos.containers.v1.Containers.Logs:output_type -> com.docker.api.protos.containers.v1.LogsResponse
  935. 3, // 15: com.docker.api.protos.containers.v1.Containers.Delete:output_type -> com.docker.api.protos.containers.v1.DeleteResponse
  936. 10, // [10:16] is the sub-list for method output_type
  937. 4, // [4:10] is the sub-list for method input_type
  938. 4, // [4:4] is the sub-list for extension type_name
  939. 4, // [4:4] is the sub-list for extension extendee
  940. 0, // [0:4] is the sub-list for field type_name
  941. }
  942. func init() { file_protos_containers_v1_containers_proto_init() }
  943. func file_protos_containers_v1_containers_proto_init() {
  944. if File_protos_containers_v1_containers_proto != nil {
  945. return
  946. }
  947. if !protoimpl.UnsafeEnabled {
  948. file_protos_containers_v1_containers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  949. switch v := v.(*Port); i {
  950. case 0:
  951. return &v.state
  952. case 1:
  953. return &v.sizeCache
  954. case 2:
  955. return &v.unknownFields
  956. default:
  957. return nil
  958. }
  959. }
  960. file_protos_containers_v1_containers_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  961. switch v := v.(*Container); i {
  962. case 0:
  963. return &v.state
  964. case 1:
  965. return &v.sizeCache
  966. case 2:
  967. return &v.unknownFields
  968. default:
  969. return nil
  970. }
  971. }
  972. file_protos_containers_v1_containers_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  973. switch v := v.(*DeleteRequest); i {
  974. case 0:
  975. return &v.state
  976. case 1:
  977. return &v.sizeCache
  978. case 2:
  979. return &v.unknownFields
  980. default:
  981. return nil
  982. }
  983. }
  984. file_protos_containers_v1_containers_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  985. switch v := v.(*DeleteResponse); i {
  986. case 0:
  987. return &v.state
  988. case 1:
  989. return &v.sizeCache
  990. case 2:
  991. return &v.unknownFields
  992. default:
  993. return nil
  994. }
  995. }
  996. file_protos_containers_v1_containers_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  997. switch v := v.(*StopRequest); i {
  998. case 0:
  999. return &v.state
  1000. case 1:
  1001. return &v.sizeCache
  1002. case 2:
  1003. return &v.unknownFields
  1004. default:
  1005. return nil
  1006. }
  1007. }
  1008. file_protos_containers_v1_containers_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1009. switch v := v.(*StopResponse); i {
  1010. case 0:
  1011. return &v.state
  1012. case 1:
  1013. return &v.sizeCache
  1014. case 2:
  1015. return &v.unknownFields
  1016. default:
  1017. return nil
  1018. }
  1019. }
  1020. file_protos_containers_v1_containers_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1021. switch v := v.(*RunRequest); i {
  1022. case 0:
  1023. return &v.state
  1024. case 1:
  1025. return &v.sizeCache
  1026. case 2:
  1027. return &v.unknownFields
  1028. default:
  1029. return nil
  1030. }
  1031. }
  1032. file_protos_containers_v1_containers_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1033. switch v := v.(*RunResponse); i {
  1034. case 0:
  1035. return &v.state
  1036. case 1:
  1037. return &v.sizeCache
  1038. case 2:
  1039. return &v.unknownFields
  1040. default:
  1041. return nil
  1042. }
  1043. }
  1044. file_protos_containers_v1_containers_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1045. switch v := v.(*ExecRequest); i {
  1046. case 0:
  1047. return &v.state
  1048. case 1:
  1049. return &v.sizeCache
  1050. case 2:
  1051. return &v.unknownFields
  1052. default:
  1053. return nil
  1054. }
  1055. }
  1056. file_protos_containers_v1_containers_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1057. switch v := v.(*ExecResponse); i {
  1058. case 0:
  1059. return &v.state
  1060. case 1:
  1061. return &v.sizeCache
  1062. case 2:
  1063. return &v.unknownFields
  1064. default:
  1065. return nil
  1066. }
  1067. }
  1068. file_protos_containers_v1_containers_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1069. switch v := v.(*ListRequest); i {
  1070. case 0:
  1071. return &v.state
  1072. case 1:
  1073. return &v.sizeCache
  1074. case 2:
  1075. return &v.unknownFields
  1076. default:
  1077. return nil
  1078. }
  1079. }
  1080. file_protos_containers_v1_containers_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1081. switch v := v.(*ListResponse); i {
  1082. case 0:
  1083. return &v.state
  1084. case 1:
  1085. return &v.sizeCache
  1086. case 2:
  1087. return &v.unknownFields
  1088. default:
  1089. return nil
  1090. }
  1091. }
  1092. file_protos_containers_v1_containers_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1093. switch v := v.(*LogsRequest); i {
  1094. case 0:
  1095. return &v.state
  1096. case 1:
  1097. return &v.sizeCache
  1098. case 2:
  1099. return &v.unknownFields
  1100. default:
  1101. return nil
  1102. }
  1103. }
  1104. file_protos_containers_v1_containers_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1105. switch v := v.(*LogsResponse); i {
  1106. case 0:
  1107. return &v.state
  1108. case 1:
  1109. return &v.sizeCache
  1110. case 2:
  1111. return &v.unknownFields
  1112. default:
  1113. return nil
  1114. }
  1115. }
  1116. }
  1117. type x struct{}
  1118. out := protoimpl.TypeBuilder{
  1119. File: protoimpl.DescBuilder{
  1120. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1121. RawDescriptor: file_protos_containers_v1_containers_proto_rawDesc,
  1122. NumEnums: 0,
  1123. NumMessages: 15,
  1124. NumExtensions: 0,
  1125. NumServices: 1,
  1126. },
  1127. GoTypes: file_protos_containers_v1_containers_proto_goTypes,
  1128. DependencyIndexes: file_protos_containers_v1_containers_proto_depIdxs,
  1129. MessageInfos: file_protos_containers_v1_containers_proto_msgTypes,
  1130. }.Build()
  1131. File_protos_containers_v1_containers_proto = out.File
  1132. file_protos_containers_v1_containers_proto_rawDesc = nil
  1133. file_protos_containers_v1_containers_proto_goTypes = nil
  1134. file_protos_containers_v1_containers_proto_depIdxs = nil
  1135. }
  1136. // Reference imports to suppress errors if they are not otherwise used.
  1137. var _ context.Context
  1138. var _ grpc.ClientConnInterface
  1139. // This is a compile-time assertion to ensure that this generated file
  1140. // is compatible with the grpc package it is being compiled against.
  1141. const _ = grpc.SupportPackageIsVersion6
  1142. // ContainersClient is the client API for Containers service.
  1143. //
  1144. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1145. type ContainersClient interface {
  1146. List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
  1147. Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
  1148. Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error)
  1149. Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error)
  1150. Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (Containers_LogsClient, error)
  1151. Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
  1152. }
  1153. type containersClient struct {
  1154. cc grpc.ClientConnInterface
  1155. }
  1156. func NewContainersClient(cc grpc.ClientConnInterface) ContainersClient {
  1157. return &containersClient{cc}
  1158. }
  1159. func (c *containersClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
  1160. out := new(ListResponse)
  1161. err := c.cc.Invoke(ctx, "/com.docker.api.protos.containers.v1.Containers/List", in, out, opts...)
  1162. if err != nil {
  1163. return nil, err
  1164. }
  1165. return out, nil
  1166. }
  1167. func (c *containersClient) Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) {
  1168. out := new(StopResponse)
  1169. err := c.cc.Invoke(ctx, "/com.docker.api.protos.containers.v1.Containers/Stop", in, out, opts...)
  1170. if err != nil {
  1171. return nil, err
  1172. }
  1173. return out, nil
  1174. }
  1175. func (c *containersClient) Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error) {
  1176. out := new(RunResponse)
  1177. err := c.cc.Invoke(ctx, "/com.docker.api.protos.containers.v1.Containers/Run", in, out, opts...)
  1178. if err != nil {
  1179. return nil, err
  1180. }
  1181. return out, nil
  1182. }
  1183. func (c *containersClient) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) {
  1184. out := new(ExecResponse)
  1185. err := c.cc.Invoke(ctx, "/com.docker.api.protos.containers.v1.Containers/Exec", in, out, opts...)
  1186. if err != nil {
  1187. return nil, err
  1188. }
  1189. return out, nil
  1190. }
  1191. func (c *containersClient) Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (Containers_LogsClient, error) {
  1192. stream, err := c.cc.NewStream(ctx, &_Containers_serviceDesc.Streams[0], "/com.docker.api.protos.containers.v1.Containers/Logs", opts...)
  1193. if err != nil {
  1194. return nil, err
  1195. }
  1196. x := &containersLogsClient{stream}
  1197. if err := x.ClientStream.SendMsg(in); err != nil {
  1198. return nil, err
  1199. }
  1200. if err := x.ClientStream.CloseSend(); err != nil {
  1201. return nil, err
  1202. }
  1203. return x, nil
  1204. }
  1205. type Containers_LogsClient interface {
  1206. Recv() (*LogsResponse, error)
  1207. grpc.ClientStream
  1208. }
  1209. type containersLogsClient struct {
  1210. grpc.ClientStream
  1211. }
  1212. func (x *containersLogsClient) Recv() (*LogsResponse, error) {
  1213. m := new(LogsResponse)
  1214. if err := x.ClientStream.RecvMsg(m); err != nil {
  1215. return nil, err
  1216. }
  1217. return m, nil
  1218. }
  1219. func (c *containersClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
  1220. out := new(DeleteResponse)
  1221. err := c.cc.Invoke(ctx, "/com.docker.api.protos.containers.v1.Containers/Delete", in, out, opts...)
  1222. if err != nil {
  1223. return nil, err
  1224. }
  1225. return out, nil
  1226. }
  1227. // ContainersServer is the server API for Containers service.
  1228. type ContainersServer interface {
  1229. List(context.Context, *ListRequest) (*ListResponse, error)
  1230. Stop(context.Context, *StopRequest) (*StopResponse, error)
  1231. Run(context.Context, *RunRequest) (*RunResponse, error)
  1232. Exec(context.Context, *ExecRequest) (*ExecResponse, error)
  1233. Logs(*LogsRequest, Containers_LogsServer) error
  1234. Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
  1235. }
  1236. // UnimplementedContainersServer can be embedded to have forward compatible implementations.
  1237. type UnimplementedContainersServer struct {
  1238. }
  1239. func (*UnimplementedContainersServer) List(context.Context, *ListRequest) (*ListResponse, error) {
  1240. return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
  1241. }
  1242. func (*UnimplementedContainersServer) Stop(context.Context, *StopRequest) (*StopResponse, error) {
  1243. return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented")
  1244. }
  1245. func (*UnimplementedContainersServer) Run(context.Context, *RunRequest) (*RunResponse, error) {
  1246. return nil, status.Errorf(codes.Unimplemented, "method Run not implemented")
  1247. }
  1248. func (*UnimplementedContainersServer) Exec(context.Context, *ExecRequest) (*ExecResponse, error) {
  1249. return nil, status.Errorf(codes.Unimplemented, "method Exec not implemented")
  1250. }
  1251. func (*UnimplementedContainersServer) Logs(*LogsRequest, Containers_LogsServer) error {
  1252. return status.Errorf(codes.Unimplemented, "method Logs not implemented")
  1253. }
  1254. func (*UnimplementedContainersServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) {
  1255. return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
  1256. }
  1257. func RegisterContainersServer(s *grpc.Server, srv ContainersServer) {
  1258. s.RegisterService(&_Containers_serviceDesc, srv)
  1259. }
  1260. func _Containers_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1261. in := new(ListRequest)
  1262. if err := dec(in); err != nil {
  1263. return nil, err
  1264. }
  1265. if interceptor == nil {
  1266. return srv.(ContainersServer).List(ctx, in)
  1267. }
  1268. info := &grpc.UnaryServerInfo{
  1269. Server: srv,
  1270. FullMethod: "/com.docker.api.protos.containers.v1.Containers/List",
  1271. }
  1272. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1273. return srv.(ContainersServer).List(ctx, req.(*ListRequest))
  1274. }
  1275. return interceptor(ctx, in, info, handler)
  1276. }
  1277. func _Containers_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1278. in := new(StopRequest)
  1279. if err := dec(in); err != nil {
  1280. return nil, err
  1281. }
  1282. if interceptor == nil {
  1283. return srv.(ContainersServer).Stop(ctx, in)
  1284. }
  1285. info := &grpc.UnaryServerInfo{
  1286. Server: srv,
  1287. FullMethod: "/com.docker.api.protos.containers.v1.Containers/Stop",
  1288. }
  1289. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1290. return srv.(ContainersServer).Stop(ctx, req.(*StopRequest))
  1291. }
  1292. return interceptor(ctx, in, info, handler)
  1293. }
  1294. func _Containers_Run_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1295. in := new(RunRequest)
  1296. if err := dec(in); err != nil {
  1297. return nil, err
  1298. }
  1299. if interceptor == nil {
  1300. return srv.(ContainersServer).Run(ctx, in)
  1301. }
  1302. info := &grpc.UnaryServerInfo{
  1303. Server: srv,
  1304. FullMethod: "/com.docker.api.protos.containers.v1.Containers/Run",
  1305. }
  1306. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1307. return srv.(ContainersServer).Run(ctx, req.(*RunRequest))
  1308. }
  1309. return interceptor(ctx, in, info, handler)
  1310. }
  1311. func _Containers_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1312. in := new(ExecRequest)
  1313. if err := dec(in); err != nil {
  1314. return nil, err
  1315. }
  1316. if interceptor == nil {
  1317. return srv.(ContainersServer).Exec(ctx, in)
  1318. }
  1319. info := &grpc.UnaryServerInfo{
  1320. Server: srv,
  1321. FullMethod: "/com.docker.api.protos.containers.v1.Containers/Exec",
  1322. }
  1323. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1324. return srv.(ContainersServer).Exec(ctx, req.(*ExecRequest))
  1325. }
  1326. return interceptor(ctx, in, info, handler)
  1327. }
  1328. func _Containers_Logs_Handler(srv interface{}, stream grpc.ServerStream) error {
  1329. m := new(LogsRequest)
  1330. if err := stream.RecvMsg(m); err != nil {
  1331. return err
  1332. }
  1333. return srv.(ContainersServer).Logs(m, &containersLogsServer{stream})
  1334. }
  1335. type Containers_LogsServer interface {
  1336. Send(*LogsResponse) error
  1337. grpc.ServerStream
  1338. }
  1339. type containersLogsServer struct {
  1340. grpc.ServerStream
  1341. }
  1342. func (x *containersLogsServer) Send(m *LogsResponse) error {
  1343. return x.ServerStream.SendMsg(m)
  1344. }
  1345. func _Containers_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1346. in := new(DeleteRequest)
  1347. if err := dec(in); err != nil {
  1348. return nil, err
  1349. }
  1350. if interceptor == nil {
  1351. return srv.(ContainersServer).Delete(ctx, in)
  1352. }
  1353. info := &grpc.UnaryServerInfo{
  1354. Server: srv,
  1355. FullMethod: "/com.docker.api.protos.containers.v1.Containers/Delete",
  1356. }
  1357. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1358. return srv.(ContainersServer).Delete(ctx, req.(*DeleteRequest))
  1359. }
  1360. return interceptor(ctx, in, info, handler)
  1361. }
  1362. var _Containers_serviceDesc = grpc.ServiceDesc{
  1363. ServiceName: "com.docker.api.protos.containers.v1.Containers",
  1364. HandlerType: (*ContainersServer)(nil),
  1365. Methods: []grpc.MethodDesc{
  1366. {
  1367. MethodName: "List",
  1368. Handler: _Containers_List_Handler,
  1369. },
  1370. {
  1371. MethodName: "Stop",
  1372. Handler: _Containers_Stop_Handler,
  1373. },
  1374. {
  1375. MethodName: "Run",
  1376. Handler: _Containers_Run_Handler,
  1377. },
  1378. {
  1379. MethodName: "Exec",
  1380. Handler: _Containers_Exec_Handler,
  1381. },
  1382. {
  1383. MethodName: "Delete",
  1384. Handler: _Containers_Delete_Handler,
  1385. },
  1386. },
  1387. Streams: []grpc.StreamDesc{
  1388. {
  1389. StreamName: "Logs",
  1390. Handler: _Containers_Logs_Handler,
  1391. ServerStreams: true,
  1392. },
  1393. },
  1394. Metadata: "protos/containers/v1/containers.proto",
  1395. }