contexts.pb.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873
  1. //
  2. // Copyright 2020 Docker Compose CLI authors
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. // Unless required by applicable law or agreed to in writing, software
  8. // distributed under the License is distributed on an "AS IS" BASIS,
  9. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. // See the License for the specific language governing permissions and
  11. // limitations under the License.
  12. // Code generated by protoc-gen-go. DO NOT EDIT.
  13. // versions:
  14. // protoc-gen-go v1.25.0
  15. // protoc v3.12.2
  16. // source: cli/server/protos/contexts/v1/contexts.proto
  17. package v1
  18. import (
  19. context "context"
  20. proto "github.com/golang/protobuf/proto"
  21. grpc "google.golang.org/grpc"
  22. codes "google.golang.org/grpc/codes"
  23. status "google.golang.org/grpc/status"
  24. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  25. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  26. reflect "reflect"
  27. sync "sync"
  28. )
  29. const (
  30. // Verify that this generated code is sufficiently up-to-date.
  31. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  32. // Verify that runtime/protoimpl is sufficiently up-to-date.
  33. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  34. )
  35. // This is a compile-time assertion that a sufficiently up-to-date version
  36. // of the legacy proto package is being used.
  37. const _ = proto.ProtoPackageIsVersion4
  38. type Context struct {
  39. state protoimpl.MessageState
  40. sizeCache protoimpl.SizeCache
  41. unknownFields protoimpl.UnknownFields
  42. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  43. ContextType string `protobuf:"bytes,2,opt,name=contextType,proto3" json:"contextType,omitempty"`
  44. Current bool `protobuf:"varint,3,opt,name=current,proto3" json:"current,omitempty"`
  45. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
  46. // Types that are assignable to Endpoint:
  47. // *Context_DockerEndpoint
  48. // *Context_AciEndpoint
  49. // *Context_EcsEndpoint
  50. Endpoint isContext_Endpoint `protobuf_oneof:"Endpoint"`
  51. }
  52. func (x *Context) Reset() {
  53. *x = Context{}
  54. if protoimpl.UnsafeEnabled {
  55. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[0]
  56. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  57. ms.StoreMessageInfo(mi)
  58. }
  59. }
  60. func (x *Context) String() string {
  61. return protoimpl.X.MessageStringOf(x)
  62. }
  63. func (*Context) ProtoMessage() {}
  64. func (x *Context) ProtoReflect() protoreflect.Message {
  65. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[0]
  66. if protoimpl.UnsafeEnabled && x != nil {
  67. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  68. if ms.LoadMessageInfo() == nil {
  69. ms.StoreMessageInfo(mi)
  70. }
  71. return ms
  72. }
  73. return mi.MessageOf(x)
  74. }
  75. // Deprecated: Use Context.ProtoReflect.Descriptor instead.
  76. func (*Context) Descriptor() ([]byte, []int) {
  77. return file_cli_server_protos_contexts_v1_contexts_proto_rawDescGZIP(), []int{0}
  78. }
  79. func (x *Context) GetName() string {
  80. if x != nil {
  81. return x.Name
  82. }
  83. return ""
  84. }
  85. func (x *Context) GetContextType() string {
  86. if x != nil {
  87. return x.ContextType
  88. }
  89. return ""
  90. }
  91. func (x *Context) GetCurrent() bool {
  92. if x != nil {
  93. return x.Current
  94. }
  95. return false
  96. }
  97. func (x *Context) GetDescription() string {
  98. if x != nil {
  99. return x.Description
  100. }
  101. return ""
  102. }
  103. func (m *Context) GetEndpoint() isContext_Endpoint {
  104. if m != nil {
  105. return m.Endpoint
  106. }
  107. return nil
  108. }
  109. func (x *Context) GetDockerEndpoint() *DockerEndpoint {
  110. if x, ok := x.GetEndpoint().(*Context_DockerEndpoint); ok {
  111. return x.DockerEndpoint
  112. }
  113. return nil
  114. }
  115. func (x *Context) GetAciEndpoint() *AciEndpoint {
  116. if x, ok := x.GetEndpoint().(*Context_AciEndpoint); ok {
  117. return x.AciEndpoint
  118. }
  119. return nil
  120. }
  121. func (x *Context) GetEcsEndpoint() *EcsEndpoint {
  122. if x, ok := x.GetEndpoint().(*Context_EcsEndpoint); ok {
  123. return x.EcsEndpoint
  124. }
  125. return nil
  126. }
  127. type isContext_Endpoint interface {
  128. isContext_Endpoint()
  129. }
  130. type Context_DockerEndpoint struct {
  131. DockerEndpoint *DockerEndpoint `protobuf:"bytes,5,opt,name=docker_endpoint,json=dockerEndpoint,proto3,oneof"`
  132. }
  133. type Context_AciEndpoint struct {
  134. AciEndpoint *AciEndpoint `protobuf:"bytes,6,opt,name=aci_endpoint,json=aciEndpoint,proto3,oneof"`
  135. }
  136. type Context_EcsEndpoint struct {
  137. EcsEndpoint *EcsEndpoint `protobuf:"bytes,7,opt,name=ecs_endpoint,json=ecsEndpoint,proto3,oneof"`
  138. }
  139. func (*Context_DockerEndpoint) isContext_Endpoint() {}
  140. func (*Context_AciEndpoint) isContext_Endpoint() {}
  141. func (*Context_EcsEndpoint) isContext_Endpoint() {}
  142. type DockerEndpoint struct {
  143. state protoimpl.MessageState
  144. sizeCache protoimpl.SizeCache
  145. unknownFields protoimpl.UnknownFields
  146. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
  147. }
  148. func (x *DockerEndpoint) Reset() {
  149. *x = DockerEndpoint{}
  150. if protoimpl.UnsafeEnabled {
  151. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[1]
  152. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  153. ms.StoreMessageInfo(mi)
  154. }
  155. }
  156. func (x *DockerEndpoint) String() string {
  157. return protoimpl.X.MessageStringOf(x)
  158. }
  159. func (*DockerEndpoint) ProtoMessage() {}
  160. func (x *DockerEndpoint) ProtoReflect() protoreflect.Message {
  161. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[1]
  162. if protoimpl.UnsafeEnabled && x != nil {
  163. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  164. if ms.LoadMessageInfo() == nil {
  165. ms.StoreMessageInfo(mi)
  166. }
  167. return ms
  168. }
  169. return mi.MessageOf(x)
  170. }
  171. // Deprecated: Use DockerEndpoint.ProtoReflect.Descriptor instead.
  172. func (*DockerEndpoint) Descriptor() ([]byte, []int) {
  173. return file_cli_server_protos_contexts_v1_contexts_proto_rawDescGZIP(), []int{1}
  174. }
  175. func (x *DockerEndpoint) GetHost() string {
  176. if x != nil {
  177. return x.Host
  178. }
  179. return ""
  180. }
  181. type AciEndpoint struct {
  182. state protoimpl.MessageState
  183. sizeCache protoimpl.SizeCache
  184. unknownFields protoimpl.UnknownFields
  185. Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
  186. ResourceGroup string `protobuf:"bytes,2,opt,name=resource_group,json=resourceGroup,proto3" json:"resource_group,omitempty"`
  187. SubscriptionId string `protobuf:"bytes,3,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
  188. }
  189. func (x *AciEndpoint) Reset() {
  190. *x = AciEndpoint{}
  191. if protoimpl.UnsafeEnabled {
  192. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[2]
  193. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  194. ms.StoreMessageInfo(mi)
  195. }
  196. }
  197. func (x *AciEndpoint) String() string {
  198. return protoimpl.X.MessageStringOf(x)
  199. }
  200. func (*AciEndpoint) ProtoMessage() {}
  201. func (x *AciEndpoint) ProtoReflect() protoreflect.Message {
  202. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[2]
  203. if protoimpl.UnsafeEnabled && x != nil {
  204. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  205. if ms.LoadMessageInfo() == nil {
  206. ms.StoreMessageInfo(mi)
  207. }
  208. return ms
  209. }
  210. return mi.MessageOf(x)
  211. }
  212. // Deprecated: Use AciEndpoint.ProtoReflect.Descriptor instead.
  213. func (*AciEndpoint) Descriptor() ([]byte, []int) {
  214. return file_cli_server_protos_contexts_v1_contexts_proto_rawDescGZIP(), []int{2}
  215. }
  216. func (x *AciEndpoint) GetRegion() string {
  217. if x != nil {
  218. return x.Region
  219. }
  220. return ""
  221. }
  222. func (x *AciEndpoint) GetResourceGroup() string {
  223. if x != nil {
  224. return x.ResourceGroup
  225. }
  226. return ""
  227. }
  228. func (x *AciEndpoint) GetSubscriptionId() string {
  229. if x != nil {
  230. return x.SubscriptionId
  231. }
  232. return ""
  233. }
  234. type EcsEndpoint struct {
  235. state protoimpl.MessageState
  236. sizeCache protoimpl.SizeCache
  237. unknownFields protoimpl.UnknownFields
  238. Profile string `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
  239. FromEnvironment bool `protobuf:"varint,2,opt,name=from_environment,json=fromEnvironment,proto3" json:"from_environment,omitempty"`
  240. }
  241. func (x *EcsEndpoint) Reset() {
  242. *x = EcsEndpoint{}
  243. if protoimpl.UnsafeEnabled {
  244. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[3]
  245. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  246. ms.StoreMessageInfo(mi)
  247. }
  248. }
  249. func (x *EcsEndpoint) String() string {
  250. return protoimpl.X.MessageStringOf(x)
  251. }
  252. func (*EcsEndpoint) ProtoMessage() {}
  253. func (x *EcsEndpoint) ProtoReflect() protoreflect.Message {
  254. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[3]
  255. if protoimpl.UnsafeEnabled && x != nil {
  256. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  257. if ms.LoadMessageInfo() == nil {
  258. ms.StoreMessageInfo(mi)
  259. }
  260. return ms
  261. }
  262. return mi.MessageOf(x)
  263. }
  264. // Deprecated: Use EcsEndpoint.ProtoReflect.Descriptor instead.
  265. func (*EcsEndpoint) Descriptor() ([]byte, []int) {
  266. return file_cli_server_protos_contexts_v1_contexts_proto_rawDescGZIP(), []int{3}
  267. }
  268. func (x *EcsEndpoint) GetProfile() string {
  269. if x != nil {
  270. return x.Profile
  271. }
  272. return ""
  273. }
  274. func (x *EcsEndpoint) GetFromEnvironment() bool {
  275. if x != nil {
  276. return x.FromEnvironment
  277. }
  278. return false
  279. }
  280. type SetCurrentRequest struct {
  281. state protoimpl.MessageState
  282. sizeCache protoimpl.SizeCache
  283. unknownFields protoimpl.UnknownFields
  284. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  285. }
  286. func (x *SetCurrentRequest) Reset() {
  287. *x = SetCurrentRequest{}
  288. if protoimpl.UnsafeEnabled {
  289. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[4]
  290. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  291. ms.StoreMessageInfo(mi)
  292. }
  293. }
  294. func (x *SetCurrentRequest) String() string {
  295. return protoimpl.X.MessageStringOf(x)
  296. }
  297. func (*SetCurrentRequest) ProtoMessage() {}
  298. func (x *SetCurrentRequest) ProtoReflect() protoreflect.Message {
  299. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[4]
  300. if protoimpl.UnsafeEnabled && x != nil {
  301. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  302. if ms.LoadMessageInfo() == nil {
  303. ms.StoreMessageInfo(mi)
  304. }
  305. return ms
  306. }
  307. return mi.MessageOf(x)
  308. }
  309. // Deprecated: Use SetCurrentRequest.ProtoReflect.Descriptor instead.
  310. func (*SetCurrentRequest) Descriptor() ([]byte, []int) {
  311. return file_cli_server_protos_contexts_v1_contexts_proto_rawDescGZIP(), []int{4}
  312. }
  313. func (x *SetCurrentRequest) GetName() string {
  314. if x != nil {
  315. return x.Name
  316. }
  317. return ""
  318. }
  319. type SetCurrentResponse struct {
  320. state protoimpl.MessageState
  321. sizeCache protoimpl.SizeCache
  322. unknownFields protoimpl.UnknownFields
  323. }
  324. func (x *SetCurrentResponse) Reset() {
  325. *x = SetCurrentResponse{}
  326. if protoimpl.UnsafeEnabled {
  327. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[5]
  328. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  329. ms.StoreMessageInfo(mi)
  330. }
  331. }
  332. func (x *SetCurrentResponse) String() string {
  333. return protoimpl.X.MessageStringOf(x)
  334. }
  335. func (*SetCurrentResponse) ProtoMessage() {}
  336. func (x *SetCurrentResponse) ProtoReflect() protoreflect.Message {
  337. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[5]
  338. if protoimpl.UnsafeEnabled && x != nil {
  339. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  340. if ms.LoadMessageInfo() == nil {
  341. ms.StoreMessageInfo(mi)
  342. }
  343. return ms
  344. }
  345. return mi.MessageOf(x)
  346. }
  347. // Deprecated: Use SetCurrentResponse.ProtoReflect.Descriptor instead.
  348. func (*SetCurrentResponse) Descriptor() ([]byte, []int) {
  349. return file_cli_server_protos_contexts_v1_contexts_proto_rawDescGZIP(), []int{5}
  350. }
  351. type ListRequest struct {
  352. state protoimpl.MessageState
  353. sizeCache protoimpl.SizeCache
  354. unknownFields protoimpl.UnknownFields
  355. }
  356. func (x *ListRequest) Reset() {
  357. *x = ListRequest{}
  358. if protoimpl.UnsafeEnabled {
  359. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[6]
  360. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  361. ms.StoreMessageInfo(mi)
  362. }
  363. }
  364. func (x *ListRequest) String() string {
  365. return protoimpl.X.MessageStringOf(x)
  366. }
  367. func (*ListRequest) ProtoMessage() {}
  368. func (x *ListRequest) ProtoReflect() protoreflect.Message {
  369. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[6]
  370. if protoimpl.UnsafeEnabled && x != nil {
  371. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  372. if ms.LoadMessageInfo() == nil {
  373. ms.StoreMessageInfo(mi)
  374. }
  375. return ms
  376. }
  377. return mi.MessageOf(x)
  378. }
  379. // Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
  380. func (*ListRequest) Descriptor() ([]byte, []int) {
  381. return file_cli_server_protos_contexts_v1_contexts_proto_rawDescGZIP(), []int{6}
  382. }
  383. type ListResponse struct {
  384. state protoimpl.MessageState
  385. sizeCache protoimpl.SizeCache
  386. unknownFields protoimpl.UnknownFields
  387. Contexts []*Context `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"`
  388. }
  389. func (x *ListResponse) Reset() {
  390. *x = ListResponse{}
  391. if protoimpl.UnsafeEnabled {
  392. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[7]
  393. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  394. ms.StoreMessageInfo(mi)
  395. }
  396. }
  397. func (x *ListResponse) String() string {
  398. return protoimpl.X.MessageStringOf(x)
  399. }
  400. func (*ListResponse) ProtoMessage() {}
  401. func (x *ListResponse) ProtoReflect() protoreflect.Message {
  402. mi := &file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[7]
  403. if protoimpl.UnsafeEnabled && x != nil {
  404. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  405. if ms.LoadMessageInfo() == nil {
  406. ms.StoreMessageInfo(mi)
  407. }
  408. return ms
  409. }
  410. return mi.MessageOf(x)
  411. }
  412. // Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
  413. func (*ListResponse) Descriptor() ([]byte, []int) {
  414. return file_cli_server_protos_contexts_v1_contexts_proto_rawDescGZIP(), []int{7}
  415. }
  416. func (x *ListResponse) GetContexts() []*Context {
  417. if x != nil {
  418. return x.Contexts
  419. }
  420. return nil
  421. }
  422. var File_cli_server_protos_contexts_v1_contexts_proto protoreflect.FileDescriptor
  423. var file_cli_server_protos_contexts_v1_contexts_proto_rawDesc = []byte{
  424. 0x0a, 0x2c, 0x63, 0x6c, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f,
  425. 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f,
  426. 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20,
  427. 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70,
  428. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x76, 0x31,
  429. 0x22, 0x8c, 0x03, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x12, 0x0a, 0x04,
  430. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
  431. 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18,
  432. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x54, 0x79,
  433. 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20,
  434. 0x01, 0x28, 0x08, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b,
  435. 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
  436. 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5b,
  437. 0x0a, 0x0f, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
  438. 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f,
  439. 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e,
  440. 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x6b, 0x65,
  441. 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x6f, 0x63,
  442. 0x6b, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x0c, 0x61,
  443. 0x63, 0x69, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
  444. 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61,
  445. 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,
  446. 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
  447. 0x48, 0x00, 0x52, 0x0b, 0x61, 0x63, 0x69, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12,
  448. 0x52, 0x0a, 0x0c, 0x65, 0x63, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18,
  449. 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b,
  450. 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f,
  451. 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x63, 0x73, 0x45, 0x6e, 0x64, 0x70,
  452. 0x6f, 0x69, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x63, 0x73, 0x45, 0x6e, 0x64, 0x70, 0x6f,
  453. 0x69, 0x6e, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22,
  454. 0x24, 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
  455. 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  456. 0x04, 0x68, 0x6f, 0x73, 0x74, 0x22, 0x75, 0x0a, 0x0b, 0x41, 0x63, 0x69, 0x45, 0x6e, 0x64, 0x70,
  457. 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x01,
  458. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e,
  459. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02,
  460. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x72,
  461. 0x6f, 0x75, 0x70, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  462. 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x75,
  463. 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x52, 0x0a, 0x0b,
  464. 0x45, 0x63, 0x73, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70,
  465. 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72,
  466. 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x65, 0x6e,
  467. 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
  468. 0x0f, 0x66, 0x72, 0x6f, 0x6d, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
  469. 0x22, 0x27, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65,
  470. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
  471. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x65, 0x74,
  472. 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  473. 0x0d, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x55,
  474. 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45,
  475. 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
  476. 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70,
  477. 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
  478. 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e,
  479. 0x74, 0x65, 0x78, 0x74, 0x73, 0x32, 0xea, 0x01, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78,
  480. 0x74, 0x73, 0x12, 0x77, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74,
  481. 0x12, 0x33, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70,
  482. 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
  483. 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65,
  484. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b,
  485. 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f,
  486. 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x75, 0x72, 0x72,
  487. 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x04, 0x4c,
  488. 0x69, 0x73, 0x74, 0x12, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72,
  489. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74,
  490. 0x65, 0x78, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
  491. 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e,
  492. 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65,
  493. 0x78, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  494. 0x73, 0x65, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  495. 0x2f, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2d,
  496. 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70,
  497. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x76, 0x31,
  498. 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  499. }
  500. var (
  501. file_cli_server_protos_contexts_v1_contexts_proto_rawDescOnce sync.Once
  502. file_cli_server_protos_contexts_v1_contexts_proto_rawDescData = file_cli_server_protos_contexts_v1_contexts_proto_rawDesc
  503. )
  504. func file_cli_server_protos_contexts_v1_contexts_proto_rawDescGZIP() []byte {
  505. file_cli_server_protos_contexts_v1_contexts_proto_rawDescOnce.Do(func() {
  506. file_cli_server_protos_contexts_v1_contexts_proto_rawDescData = protoimpl.X.CompressGZIP(file_cli_server_protos_contexts_v1_contexts_proto_rawDescData)
  507. })
  508. return file_cli_server_protos_contexts_v1_contexts_proto_rawDescData
  509. }
  510. var file_cli_server_protos_contexts_v1_contexts_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  511. var file_cli_server_protos_contexts_v1_contexts_proto_goTypes = []interface{}{
  512. (*Context)(nil), // 0: com.docker.api.protos.context.v1.Context
  513. (*DockerEndpoint)(nil), // 1: com.docker.api.protos.context.v1.DockerEndpoint
  514. (*AciEndpoint)(nil), // 2: com.docker.api.protos.context.v1.AciEndpoint
  515. (*EcsEndpoint)(nil), // 3: com.docker.api.protos.context.v1.EcsEndpoint
  516. (*SetCurrentRequest)(nil), // 4: com.docker.api.protos.context.v1.SetCurrentRequest
  517. (*SetCurrentResponse)(nil), // 5: com.docker.api.protos.context.v1.SetCurrentResponse
  518. (*ListRequest)(nil), // 6: com.docker.api.protos.context.v1.ListRequest
  519. (*ListResponse)(nil), // 7: com.docker.api.protos.context.v1.ListResponse
  520. }
  521. var file_cli_server_protos_contexts_v1_contexts_proto_depIdxs = []int32{
  522. 1, // 0: com.docker.api.protos.context.v1.Context.docker_endpoint:type_name -> com.docker.api.protos.context.v1.DockerEndpoint
  523. 2, // 1: com.docker.api.protos.context.v1.Context.aci_endpoint:type_name -> com.docker.api.protos.context.v1.AciEndpoint
  524. 3, // 2: com.docker.api.protos.context.v1.Context.ecs_endpoint:type_name -> com.docker.api.protos.context.v1.EcsEndpoint
  525. 0, // 3: com.docker.api.protos.context.v1.ListResponse.contexts:type_name -> com.docker.api.protos.context.v1.Context
  526. 4, // 4: com.docker.api.protos.context.v1.Contexts.SetCurrent:input_type -> com.docker.api.protos.context.v1.SetCurrentRequest
  527. 6, // 5: com.docker.api.protos.context.v1.Contexts.List:input_type -> com.docker.api.protos.context.v1.ListRequest
  528. 5, // 6: com.docker.api.protos.context.v1.Contexts.SetCurrent:output_type -> com.docker.api.protos.context.v1.SetCurrentResponse
  529. 7, // 7: com.docker.api.protos.context.v1.Contexts.List:output_type -> com.docker.api.protos.context.v1.ListResponse
  530. 6, // [6:8] is the sub-list for method output_type
  531. 4, // [4:6] is the sub-list for method input_type
  532. 4, // [4:4] is the sub-list for extension type_name
  533. 4, // [4:4] is the sub-list for extension extendee
  534. 0, // [0:4] is the sub-list for field type_name
  535. }
  536. func init() { file_cli_server_protos_contexts_v1_contexts_proto_init() }
  537. func file_cli_server_protos_contexts_v1_contexts_proto_init() {
  538. if File_cli_server_protos_contexts_v1_contexts_proto != nil {
  539. return
  540. }
  541. if !protoimpl.UnsafeEnabled {
  542. file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  543. switch v := v.(*Context); i {
  544. case 0:
  545. return &v.state
  546. case 1:
  547. return &v.sizeCache
  548. case 2:
  549. return &v.unknownFields
  550. default:
  551. return nil
  552. }
  553. }
  554. file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  555. switch v := v.(*DockerEndpoint); i {
  556. case 0:
  557. return &v.state
  558. case 1:
  559. return &v.sizeCache
  560. case 2:
  561. return &v.unknownFields
  562. default:
  563. return nil
  564. }
  565. }
  566. file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  567. switch v := v.(*AciEndpoint); i {
  568. case 0:
  569. return &v.state
  570. case 1:
  571. return &v.sizeCache
  572. case 2:
  573. return &v.unknownFields
  574. default:
  575. return nil
  576. }
  577. }
  578. file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  579. switch v := v.(*EcsEndpoint); i {
  580. case 0:
  581. return &v.state
  582. case 1:
  583. return &v.sizeCache
  584. case 2:
  585. return &v.unknownFields
  586. default:
  587. return nil
  588. }
  589. }
  590. file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  591. switch v := v.(*SetCurrentRequest); i {
  592. case 0:
  593. return &v.state
  594. case 1:
  595. return &v.sizeCache
  596. case 2:
  597. return &v.unknownFields
  598. default:
  599. return nil
  600. }
  601. }
  602. file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  603. switch v := v.(*SetCurrentResponse); i {
  604. case 0:
  605. return &v.state
  606. case 1:
  607. return &v.sizeCache
  608. case 2:
  609. return &v.unknownFields
  610. default:
  611. return nil
  612. }
  613. }
  614. file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  615. switch v := v.(*ListRequest); i {
  616. case 0:
  617. return &v.state
  618. case 1:
  619. return &v.sizeCache
  620. case 2:
  621. return &v.unknownFields
  622. default:
  623. return nil
  624. }
  625. }
  626. file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  627. switch v := v.(*ListResponse); i {
  628. case 0:
  629. return &v.state
  630. case 1:
  631. return &v.sizeCache
  632. case 2:
  633. return &v.unknownFields
  634. default:
  635. return nil
  636. }
  637. }
  638. }
  639. file_cli_server_protos_contexts_v1_contexts_proto_msgTypes[0].OneofWrappers = []interface{}{
  640. (*Context_DockerEndpoint)(nil),
  641. (*Context_AciEndpoint)(nil),
  642. (*Context_EcsEndpoint)(nil),
  643. }
  644. type x struct{}
  645. out := protoimpl.TypeBuilder{
  646. File: protoimpl.DescBuilder{
  647. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  648. RawDescriptor: file_cli_server_protos_contexts_v1_contexts_proto_rawDesc,
  649. NumEnums: 0,
  650. NumMessages: 8,
  651. NumExtensions: 0,
  652. NumServices: 1,
  653. },
  654. GoTypes: file_cli_server_protos_contexts_v1_contexts_proto_goTypes,
  655. DependencyIndexes: file_cli_server_protos_contexts_v1_contexts_proto_depIdxs,
  656. MessageInfos: file_cli_server_protos_contexts_v1_contexts_proto_msgTypes,
  657. }.Build()
  658. File_cli_server_protos_contexts_v1_contexts_proto = out.File
  659. file_cli_server_protos_contexts_v1_contexts_proto_rawDesc = nil
  660. file_cli_server_protos_contexts_v1_contexts_proto_goTypes = nil
  661. file_cli_server_protos_contexts_v1_contexts_proto_depIdxs = nil
  662. }
  663. // Reference imports to suppress errors if they are not otherwise used.
  664. var _ context.Context
  665. var _ grpc.ClientConnInterface
  666. // This is a compile-time assertion to ensure that this generated file
  667. // is compatible with the grpc package it is being compiled against.
  668. const _ = grpc.SupportPackageIsVersion6
  669. // ContextsClient is the client API for Contexts service.
  670. //
  671. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  672. type ContextsClient interface {
  673. // Sets the current request for all calls
  674. SetCurrent(ctx context.Context, in *SetCurrentRequest, opts ...grpc.CallOption) (*SetCurrentResponse, error)
  675. // Returns the list of existing contexts
  676. List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
  677. }
  678. type contextsClient struct {
  679. cc grpc.ClientConnInterface
  680. }
  681. func NewContextsClient(cc grpc.ClientConnInterface) ContextsClient {
  682. return &contextsClient{cc}
  683. }
  684. func (c *contextsClient) SetCurrent(ctx context.Context, in *SetCurrentRequest, opts ...grpc.CallOption) (*SetCurrentResponse, error) {
  685. out := new(SetCurrentResponse)
  686. err := c.cc.Invoke(ctx, "/com.docker.api.protos.context.v1.Contexts/SetCurrent", in, out, opts...)
  687. if err != nil {
  688. return nil, err
  689. }
  690. return out, nil
  691. }
  692. func (c *contextsClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
  693. out := new(ListResponse)
  694. err := c.cc.Invoke(ctx, "/com.docker.api.protos.context.v1.Contexts/List", in, out, opts...)
  695. if err != nil {
  696. return nil, err
  697. }
  698. return out, nil
  699. }
  700. // ContextsServer is the server API for Contexts service.
  701. type ContextsServer interface {
  702. // Sets the current request for all calls
  703. SetCurrent(context.Context, *SetCurrentRequest) (*SetCurrentResponse, error)
  704. // Returns the list of existing contexts
  705. List(context.Context, *ListRequest) (*ListResponse, error)
  706. }
  707. // UnimplementedContextsServer can be embedded to have forward compatible implementations.
  708. type UnimplementedContextsServer struct {
  709. }
  710. func (*UnimplementedContextsServer) SetCurrent(context.Context, *SetCurrentRequest) (*SetCurrentResponse, error) {
  711. return nil, status.Errorf(codes.Unimplemented, "method SetCurrent not implemented")
  712. }
  713. func (*UnimplementedContextsServer) List(context.Context, *ListRequest) (*ListResponse, error) {
  714. return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
  715. }
  716. func RegisterContextsServer(s *grpc.Server, srv ContextsServer) {
  717. s.RegisterService(&_Contexts_serviceDesc, srv)
  718. }
  719. func _Contexts_SetCurrent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  720. in := new(SetCurrentRequest)
  721. if err := dec(in); err != nil {
  722. return nil, err
  723. }
  724. if interceptor == nil {
  725. return srv.(ContextsServer).SetCurrent(ctx, in)
  726. }
  727. info := &grpc.UnaryServerInfo{
  728. Server: srv,
  729. FullMethod: "/com.docker.api.protos.context.v1.Contexts/SetCurrent",
  730. }
  731. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  732. return srv.(ContextsServer).SetCurrent(ctx, req.(*SetCurrentRequest))
  733. }
  734. return interceptor(ctx, in, info, handler)
  735. }
  736. func _Contexts_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  737. in := new(ListRequest)
  738. if err := dec(in); err != nil {
  739. return nil, err
  740. }
  741. if interceptor == nil {
  742. return srv.(ContextsServer).List(ctx, in)
  743. }
  744. info := &grpc.UnaryServerInfo{
  745. Server: srv,
  746. FullMethod: "/com.docker.api.protos.context.v1.Contexts/List",
  747. }
  748. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  749. return srv.(ContextsServer).List(ctx, req.(*ListRequest))
  750. }
  751. return interceptor(ctx, in, info, handler)
  752. }
  753. var _Contexts_serviceDesc = grpc.ServiceDesc{
  754. ServiceName: "com.docker.api.protos.context.v1.Contexts",
  755. HandlerType: (*ContextsServer)(nil),
  756. Methods: []grpc.MethodDesc{
  757. {
  758. MethodName: "SetCurrent",
  759. Handler: _Contexts_SetCurrent_Handler,
  760. },
  761. {
  762. MethodName: "List",
  763. Handler: _Contexts_List_Handler,
  764. },
  765. },
  766. Streams: []grpc.StreamDesc{},
  767. Metadata: "cli/server/protos/contexts/v1/contexts.proto",
  768. }