executor.pb.go 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: executor.proto
  3. package apis
  4. import (
  5. context "context"
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. grpc "google.golang.org/grpc"
  9. codes "google.golang.org/grpc/codes"
  10. status "google.golang.org/grpc/status"
  11. math "math"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  22. type Command struct {
  23. Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
  24. Args [][]byte `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
  25. Env [][]byte `protobuf:"bytes,3,rep,name=env,proto3" json:"env,omitempty"`
  26. Dir []byte `protobuf:"bytes,4,opt,name=dir,proto3" json:"dir,omitempty"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *Command) Reset() { *m = Command{} }
  32. func (m *Command) String() string { return proto.CompactTextString(m) }
  33. func (*Command) ProtoMessage() {}
  34. func (*Command) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_12d1cdcda51e000f, []int{0}
  36. }
  37. func (m *Command) XXX_Unmarshal(b []byte) error {
  38. return xxx_messageInfo_Command.Unmarshal(m, b)
  39. }
  40. func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. return xxx_messageInfo_Command.Marshal(b, m, deterministic)
  42. }
  43. func (m *Command) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_Command.Merge(m, src)
  45. }
  46. func (m *Command) XXX_Size() int {
  47. return xxx_messageInfo_Command.Size(m)
  48. }
  49. func (m *Command) XXX_DiscardUnknown() {
  50. xxx_messageInfo_Command.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_Command proto.InternalMessageInfo
  53. func (m *Command) GetPath() []byte {
  54. if m != nil {
  55. return m.Path
  56. }
  57. return nil
  58. }
  59. func (m *Command) GetArgs() [][]byte {
  60. if m != nil {
  61. return m.Args
  62. }
  63. return nil
  64. }
  65. func (m *Command) GetEnv() [][]byte {
  66. if m != nil {
  67. return m.Env
  68. }
  69. return nil
  70. }
  71. func (m *Command) GetDir() []byte {
  72. if m != nil {
  73. return m.Dir
  74. }
  75. return nil
  76. }
  77. type Input struct {
  78. Sn uint32 `protobuf:"varint,1,opt,name=sn,proto3" json:"sn,omitempty"`
  79. Input []byte `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
  80. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  81. XXX_unrecognized []byte `json:"-"`
  82. XXX_sizecache int32 `json:"-"`
  83. }
  84. func (m *Input) Reset() { *m = Input{} }
  85. func (m *Input) String() string { return proto.CompactTextString(m) }
  86. func (*Input) ProtoMessage() {}
  87. func (*Input) Descriptor() ([]byte, []int) {
  88. return fileDescriptor_12d1cdcda51e000f, []int{1}
  89. }
  90. func (m *Input) XXX_Unmarshal(b []byte) error {
  91. return xxx_messageInfo_Input.Unmarshal(m, b)
  92. }
  93. func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  94. return xxx_messageInfo_Input.Marshal(b, m, deterministic)
  95. }
  96. func (m *Input) XXX_Merge(src proto.Message) {
  97. xxx_messageInfo_Input.Merge(m, src)
  98. }
  99. func (m *Input) XXX_Size() int {
  100. return xxx_messageInfo_Input.Size(m)
  101. }
  102. func (m *Input) XXX_DiscardUnknown() {
  103. xxx_messageInfo_Input.DiscardUnknown(m)
  104. }
  105. var xxx_messageInfo_Input proto.InternalMessageInfo
  106. func (m *Input) GetSn() uint32 {
  107. if m != nil {
  108. return m.Sn
  109. }
  110. return 0
  111. }
  112. func (m *Input) GetInput() []byte {
  113. if m != nil {
  114. return m.Input
  115. }
  116. return nil
  117. }
  118. type Stdout struct {
  119. Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"`
  120. Closed bool `protobuf:"varint,2,opt,name=closed,proto3" json:"closed,omitempty"`
  121. RuntimeError []byte `protobuf:"bytes,3,opt,name=runtime_error,json=runtimeError,proto3" json:"runtime_error,omitempty"`
  122. Start bool `protobuf:"varint,4,opt,name=start,proto3" json:"start,omitempty"`
  123. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  124. XXX_unrecognized []byte `json:"-"`
  125. XXX_sizecache int32 `json:"-"`
  126. }
  127. func (m *Stdout) Reset() { *m = Stdout{} }
  128. func (m *Stdout) String() string { return proto.CompactTextString(m) }
  129. func (*Stdout) ProtoMessage() {}
  130. func (*Stdout) Descriptor() ([]byte, []int) {
  131. return fileDescriptor_12d1cdcda51e000f, []int{2}
  132. }
  133. func (m *Stdout) XXX_Unmarshal(b []byte) error {
  134. return xxx_messageInfo_Stdout.Unmarshal(m, b)
  135. }
  136. func (m *Stdout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  137. return xxx_messageInfo_Stdout.Marshal(b, m, deterministic)
  138. }
  139. func (m *Stdout) XXX_Merge(src proto.Message) {
  140. xxx_messageInfo_Stdout.Merge(m, src)
  141. }
  142. func (m *Stdout) XXX_Size() int {
  143. return xxx_messageInfo_Stdout.Size(m)
  144. }
  145. func (m *Stdout) XXX_DiscardUnknown() {
  146. xxx_messageInfo_Stdout.DiscardUnknown(m)
  147. }
  148. var xxx_messageInfo_Stdout proto.InternalMessageInfo
  149. func (m *Stdout) GetStdout() []byte {
  150. if m != nil {
  151. return m.Stdout
  152. }
  153. return nil
  154. }
  155. func (m *Stdout) GetClosed() bool {
  156. if m != nil {
  157. return m.Closed
  158. }
  159. return false
  160. }
  161. func (m *Stdout) GetRuntimeError() []byte {
  162. if m != nil {
  163. return m.RuntimeError
  164. }
  165. return nil
  166. }
  167. func (m *Stdout) GetStart() bool {
  168. if m != nil {
  169. return m.Start
  170. }
  171. return false
  172. }
  173. type Stderr struct {
  174. Stderr []byte `protobuf:"bytes,1,opt,name=stderr,proto3" json:"stderr,omitempty"`
  175. Closed bool `protobuf:"varint,2,opt,name=closed,proto3" json:"closed,omitempty"`
  176. RuntimeError []byte `protobuf:"bytes,3,opt,name=runtime_error,json=runtimeError,proto3" json:"runtime_error,omitempty"`
  177. Start bool `protobuf:"varint,4,opt,name=start,proto3" json:"start,omitempty"`
  178. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  179. XXX_unrecognized []byte `json:"-"`
  180. XXX_sizecache int32 `json:"-"`
  181. }
  182. func (m *Stderr) Reset() { *m = Stderr{} }
  183. func (m *Stderr) String() string { return proto.CompactTextString(m) }
  184. func (*Stderr) ProtoMessage() {}
  185. func (*Stderr) Descriptor() ([]byte, []int) {
  186. return fileDescriptor_12d1cdcda51e000f, []int{3}
  187. }
  188. func (m *Stderr) XXX_Unmarshal(b []byte) error {
  189. return xxx_messageInfo_Stderr.Unmarshal(m, b)
  190. }
  191. func (m *Stderr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  192. return xxx_messageInfo_Stderr.Marshal(b, m, deterministic)
  193. }
  194. func (m *Stderr) XXX_Merge(src proto.Message) {
  195. xxx_messageInfo_Stderr.Merge(m, src)
  196. }
  197. func (m *Stderr) XXX_Size() int {
  198. return xxx_messageInfo_Stderr.Size(m)
  199. }
  200. func (m *Stderr) XXX_DiscardUnknown() {
  201. xxx_messageInfo_Stderr.DiscardUnknown(m)
  202. }
  203. var xxx_messageInfo_Stderr proto.InternalMessageInfo
  204. func (m *Stderr) GetStderr() []byte {
  205. if m != nil {
  206. return m.Stderr
  207. }
  208. return nil
  209. }
  210. func (m *Stderr) GetClosed() bool {
  211. if m != nil {
  212. return m.Closed
  213. }
  214. return false
  215. }
  216. func (m *Stderr) GetRuntimeError() []byte {
  217. if m != nil {
  218. return m.RuntimeError
  219. }
  220. return nil
  221. }
  222. func (m *Stderr) GetStart() bool {
  223. if m != nil {
  224. return m.Start
  225. }
  226. return false
  227. }
  228. type StartResponse struct {
  229. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
  230. Error []byte `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
  231. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  232. XXX_unrecognized []byte `json:"-"`
  233. XXX_sizecache int32 `json:"-"`
  234. }
  235. func (m *StartResponse) Reset() { *m = StartResponse{} }
  236. func (m *StartResponse) String() string { return proto.CompactTextString(m) }
  237. func (*StartResponse) ProtoMessage() {}
  238. func (*StartResponse) Descriptor() ([]byte, []int) {
  239. return fileDescriptor_12d1cdcda51e000f, []int{4}
  240. }
  241. func (m *StartResponse) XXX_Unmarshal(b []byte) error {
  242. return xxx_messageInfo_StartResponse.Unmarshal(m, b)
  243. }
  244. func (m *StartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  245. return xxx_messageInfo_StartResponse.Marshal(b, m, deterministic)
  246. }
  247. func (m *StartResponse) XXX_Merge(src proto.Message) {
  248. xxx_messageInfo_StartResponse.Merge(m, src)
  249. }
  250. func (m *StartResponse) XXX_Size() int {
  251. return xxx_messageInfo_StartResponse.Size(m)
  252. }
  253. func (m *StartResponse) XXX_DiscardUnknown() {
  254. xxx_messageInfo_StartResponse.DiscardUnknown(m)
  255. }
  256. var xxx_messageInfo_StartResponse proto.InternalMessageInfo
  257. func (m *StartResponse) GetSuccess() bool {
  258. if m != nil {
  259. return m.Success
  260. }
  261. return false
  262. }
  263. func (m *StartResponse) GetError() []byte {
  264. if m != nil {
  265. return m.Error
  266. }
  267. return nil
  268. }
  269. type WaitCommand struct {
  270. Sn uint32 `protobuf:"varint,1,opt,name=sn,proto3" json:"sn,omitempty"`
  271. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  272. XXX_unrecognized []byte `json:"-"`
  273. XXX_sizecache int32 `json:"-"`
  274. }
  275. func (m *WaitCommand) Reset() { *m = WaitCommand{} }
  276. func (m *WaitCommand) String() string { return proto.CompactTextString(m) }
  277. func (*WaitCommand) ProtoMessage() {}
  278. func (*WaitCommand) Descriptor() ([]byte, []int) {
  279. return fileDescriptor_12d1cdcda51e000f, []int{5}
  280. }
  281. func (m *WaitCommand) XXX_Unmarshal(b []byte) error {
  282. return xxx_messageInfo_WaitCommand.Unmarshal(m, b)
  283. }
  284. func (m *WaitCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  285. return xxx_messageInfo_WaitCommand.Marshal(b, m, deterministic)
  286. }
  287. func (m *WaitCommand) XXX_Merge(src proto.Message) {
  288. xxx_messageInfo_WaitCommand.Merge(m, src)
  289. }
  290. func (m *WaitCommand) XXX_Size() int {
  291. return xxx_messageInfo_WaitCommand.Size(m)
  292. }
  293. func (m *WaitCommand) XXX_DiscardUnknown() {
  294. xxx_messageInfo_WaitCommand.DiscardUnknown(m)
  295. }
  296. var xxx_messageInfo_WaitCommand proto.InternalMessageInfo
  297. func (m *WaitCommand) GetSn() uint32 {
  298. if m != nil {
  299. return m.Sn
  300. }
  301. return 0
  302. }
  303. type WaitResponse struct {
  304. ExitStatus uint32 `protobuf:"varint,1,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
  305. ErrContent []byte `protobuf:"bytes,2,opt,name=err_content,json=errContent,proto3" json:"err_content,omitempty"`
  306. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  307. XXX_unrecognized []byte `json:"-"`
  308. XXX_sizecache int32 `json:"-"`
  309. }
  310. func (m *WaitResponse) Reset() { *m = WaitResponse{} }
  311. func (m *WaitResponse) String() string { return proto.CompactTextString(m) }
  312. func (*WaitResponse) ProtoMessage() {}
  313. func (*WaitResponse) Descriptor() ([]byte, []int) {
  314. return fileDescriptor_12d1cdcda51e000f, []int{6}
  315. }
  316. func (m *WaitResponse) XXX_Unmarshal(b []byte) error {
  317. return xxx_messageInfo_WaitResponse.Unmarshal(m, b)
  318. }
  319. func (m *WaitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  320. return xxx_messageInfo_WaitResponse.Marshal(b, m, deterministic)
  321. }
  322. func (m *WaitResponse) XXX_Merge(src proto.Message) {
  323. xxx_messageInfo_WaitResponse.Merge(m, src)
  324. }
  325. func (m *WaitResponse) XXX_Size() int {
  326. return xxx_messageInfo_WaitResponse.Size(m)
  327. }
  328. func (m *WaitResponse) XXX_DiscardUnknown() {
  329. xxx_messageInfo_WaitResponse.DiscardUnknown(m)
  330. }
  331. var xxx_messageInfo_WaitResponse proto.InternalMessageInfo
  332. func (m *WaitResponse) GetExitStatus() uint32 {
  333. if m != nil {
  334. return m.ExitStatus
  335. }
  336. return 0
  337. }
  338. func (m *WaitResponse) GetErrContent() []byte {
  339. if m != nil {
  340. return m.ErrContent
  341. }
  342. return nil
  343. }
  344. type Sn struct {
  345. Sn uint32 `protobuf:"varint,1,opt,name=sn,proto3" json:"sn,omitempty"`
  346. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  347. XXX_unrecognized []byte `json:"-"`
  348. XXX_sizecache int32 `json:"-"`
  349. }
  350. func (m *Sn) Reset() { *m = Sn{} }
  351. func (m *Sn) String() string { return proto.CompactTextString(m) }
  352. func (*Sn) ProtoMessage() {}
  353. func (*Sn) Descriptor() ([]byte, []int) {
  354. return fileDescriptor_12d1cdcda51e000f, []int{7}
  355. }
  356. func (m *Sn) XXX_Unmarshal(b []byte) error {
  357. return xxx_messageInfo_Sn.Unmarshal(m, b)
  358. }
  359. func (m *Sn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  360. return xxx_messageInfo_Sn.Marshal(b, m, deterministic)
  361. }
  362. func (m *Sn) XXX_Merge(src proto.Message) {
  363. xxx_messageInfo_Sn.Merge(m, src)
  364. }
  365. func (m *Sn) XXX_Size() int {
  366. return xxx_messageInfo_Sn.Size(m)
  367. }
  368. func (m *Sn) XXX_DiscardUnknown() {
  369. xxx_messageInfo_Sn.DiscardUnknown(m)
  370. }
  371. var xxx_messageInfo_Sn proto.InternalMessageInfo
  372. func (m *Sn) GetSn() uint32 {
  373. if m != nil {
  374. return m.Sn
  375. }
  376. return 0
  377. }
  378. type StartInput struct {
  379. Sn uint32 `protobuf:"varint,1,opt,name=sn,proto3" json:"sn,omitempty"`
  380. HasStdin bool `protobuf:"varint,2,opt,name=has_stdin,json=hasStdin,proto3" json:"has_stdin,omitempty"`
  381. HasStdout bool `protobuf:"varint,3,opt,name=has_stdout,json=hasStdout,proto3" json:"has_stdout,omitempty"`
  382. HasStderr bool `protobuf:"varint,4,opt,name=has_stderr,json=hasStderr,proto3" json:"has_stderr,omitempty"`
  383. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  384. XXX_unrecognized []byte `json:"-"`
  385. XXX_sizecache int32 `json:"-"`
  386. }
  387. func (m *StartInput) Reset() { *m = StartInput{} }
  388. func (m *StartInput) String() string { return proto.CompactTextString(m) }
  389. func (*StartInput) ProtoMessage() {}
  390. func (*StartInput) Descriptor() ([]byte, []int) {
  391. return fileDescriptor_12d1cdcda51e000f, []int{8}
  392. }
  393. func (m *StartInput) XXX_Unmarshal(b []byte) error {
  394. return xxx_messageInfo_StartInput.Unmarshal(m, b)
  395. }
  396. func (m *StartInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  397. return xxx_messageInfo_StartInput.Marshal(b, m, deterministic)
  398. }
  399. func (m *StartInput) XXX_Merge(src proto.Message) {
  400. xxx_messageInfo_StartInput.Merge(m, src)
  401. }
  402. func (m *StartInput) XXX_Size() int {
  403. return xxx_messageInfo_StartInput.Size(m)
  404. }
  405. func (m *StartInput) XXX_DiscardUnknown() {
  406. xxx_messageInfo_StartInput.DiscardUnknown(m)
  407. }
  408. var xxx_messageInfo_StartInput proto.InternalMessageInfo
  409. func (m *StartInput) GetSn() uint32 {
  410. if m != nil {
  411. return m.Sn
  412. }
  413. return 0
  414. }
  415. func (m *StartInput) GetHasStdin() bool {
  416. if m != nil {
  417. return m.HasStdin
  418. }
  419. return false
  420. }
  421. func (m *StartInput) GetHasStdout() bool {
  422. if m != nil {
  423. return m.HasStdout
  424. }
  425. return false
  426. }
  427. func (m *StartInput) GetHasStderr() bool {
  428. if m != nil {
  429. return m.HasStderr
  430. }
  431. return false
  432. }
  433. type Error struct {
  434. Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  435. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  436. XXX_unrecognized []byte `json:"-"`
  437. XXX_sizecache int32 `json:"-"`
  438. }
  439. func (m *Error) Reset() { *m = Error{} }
  440. func (m *Error) String() string { return proto.CompactTextString(m) }
  441. func (*Error) ProtoMessage() {}
  442. func (*Error) Descriptor() ([]byte, []int) {
  443. return fileDescriptor_12d1cdcda51e000f, []int{9}
  444. }
  445. func (m *Error) XXX_Unmarshal(b []byte) error {
  446. return xxx_messageInfo_Error.Unmarshal(m, b)
  447. }
  448. func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  449. return xxx_messageInfo_Error.Marshal(b, m, deterministic)
  450. }
  451. func (m *Error) XXX_Merge(src proto.Message) {
  452. xxx_messageInfo_Error.Merge(m, src)
  453. }
  454. func (m *Error) XXX_Size() int {
  455. return xxx_messageInfo_Error.Size(m)
  456. }
  457. func (m *Error) XXX_DiscardUnknown() {
  458. xxx_messageInfo_Error.DiscardUnknown(m)
  459. }
  460. var xxx_messageInfo_Error proto.InternalMessageInfo
  461. func (m *Error) GetError() []byte {
  462. if m != nil {
  463. return m.Error
  464. }
  465. return nil
  466. }
  467. func init() {
  468. proto.RegisterType((*Command)(nil), "apis.Command")
  469. proto.RegisterType((*Input)(nil), "apis.Input")
  470. proto.RegisterType((*Stdout)(nil), "apis.Stdout")
  471. proto.RegisterType((*Stderr)(nil), "apis.Stderr")
  472. proto.RegisterType((*StartResponse)(nil), "apis.StartResponse")
  473. proto.RegisterType((*WaitCommand)(nil), "apis.WaitCommand")
  474. proto.RegisterType((*WaitResponse)(nil), "apis.WaitResponse")
  475. proto.RegisterType((*Sn)(nil), "apis.Sn")
  476. proto.RegisterType((*StartInput)(nil), "apis.StartInput")
  477. proto.RegisterType((*Error)(nil), "apis.Error")
  478. }
  479. func init() { proto.RegisterFile("executor.proto", fileDescriptor_12d1cdcda51e000f) }
  480. var fileDescriptor_12d1cdcda51e000f = []byte{
  481. // 485 bytes of a gzipped FileDescriptorProto
  482. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4f, 0x6b, 0xdb, 0x4e,
  483. 0x10, 0x45, 0x7f, 0xec, 0xc8, 0x23, 0x3b, 0x84, 0xfd, 0x85, 0x1f, 0xc2, 0xc5, 0x34, 0xa8, 0xa5,
  484. 0xc9, 0xa5, 0x26, 0xb4, 0x1f, 0xa0, 0x87, 0x90, 0x42, 0xe9, 0xa5, 0x48, 0x94, 0x1e, 0x8d, 0x2a,
  485. 0x2d, 0xb5, 0xc0, 0x5e, 0x89, 0x99, 0x55, 0x9b, 0xcf, 0xd3, 0x4f, 0x5a, 0x66, 0x76, 0xe5, 0x2a,
  486. 0x6d, 0x8e, 0xbd, 0xcd, 0x7b, 0x6f, 0x76, 0x66, 0xf7, 0x3d, 0x21, 0x38, 0xd7, 0x0f, 0xba, 0x1e,
  487. 0x6c, 0x87, 0xdb, 0x1e, 0x3b, 0xdb, 0xa9, 0xb8, 0xea, 0x5b, 0xca, 0x3f, 0xc3, 0xd9, 0x5d, 0x77,
  488. 0x3c, 0x56, 0xa6, 0x51, 0x0a, 0xe2, 0xbe, 0xb2, 0xfb, 0x2c, 0xb8, 0x0a, 0x6e, 0x96, 0x85, 0xd4,
  489. 0xcc, 0x55, 0xf8, 0x8d, 0xb2, 0xf0, 0x2a, 0x62, 0x8e, 0x6b, 0x75, 0x01, 0x91, 0x36, 0xdf, 0xb3,
  490. 0x48, 0x28, 0x2e, 0x99, 0x69, 0x5a, 0xcc, 0x62, 0x39, 0xc8, 0x65, 0xfe, 0x1a, 0x66, 0x1f, 0x4c,
  491. 0x3f, 0x58, 0x75, 0x0e, 0x21, 0x19, 0x19, 0xb9, 0x2a, 0x42, 0x32, 0xea, 0x12, 0x66, 0x2d, 0x0b,
  492. 0x59, 0x28, 0xcd, 0x0e, 0xe4, 0x04, 0xf3, 0xd2, 0x36, 0xdd, 0x60, 0xd5, 0xff, 0x30, 0x27, 0xa9,
  493. 0xfc, 0x35, 0x3c, 0x62, 0xbe, 0x3e, 0x74, 0xa4, 0x1b, 0x39, 0x98, 0x14, 0x1e, 0xa9, 0x17, 0xb0,
  494. 0xc2, 0xc1, 0xd8, 0xf6, 0xa8, 0x77, 0x1a, 0xb1, 0xc3, 0x2c, 0x92, 0x63, 0x4b, 0x4f, 0xde, 0x33,
  495. 0xc7, 0x4b, 0xc9, 0x56, 0x68, 0xe5, 0x86, 0x49, 0xe1, 0x80, 0x5f, 0xaa, 0x11, 0xfd, 0x52, 0x8d,
  496. 0x38, 0x59, 0xea, 0xf9, 0x7f, 0xbd, 0xf4, 0x1d, 0xac, 0x4a, 0x2e, 0x0a, 0x4d, 0x7d, 0x67, 0x48,
  497. 0xab, 0x0c, 0xce, 0x68, 0xa8, 0x6b, 0x4d, 0x24, 0xcb, 0x93, 0x62, 0x84, 0x3c, 0xc0, 0x4d, 0xf7,
  498. 0x56, 0x09, 0xc8, 0x37, 0x90, 0x7e, 0xa9, 0x5a, 0x3b, 0x86, 0xf6, 0x87, 0xbf, 0xf9, 0x27, 0x58,
  499. 0xb2, 0x7c, 0x1a, 0xff, 0x1c, 0x52, 0xfd, 0xd0, 0xda, 0x1d, 0xd9, 0xca, 0x0e, 0xe4, 0x1b, 0x81,
  500. 0xa9, 0x52, 0x18, 0x69, 0x40, 0xdc, 0xd5, 0x9d, 0xb1, 0xda, 0x8c, 0xb1, 0x80, 0x46, 0xbc, 0x73,
  501. 0x4c, 0x7e, 0x09, 0x61, 0x69, 0xfe, 0xda, 0xf3, 0x03, 0x40, 0xde, 0xf1, 0x74, 0xca, 0xcf, 0x60,
  502. 0xb1, 0xaf, 0x68, 0x47, 0xb6, 0x69, 0x8d, 0xf7, 0x2e, 0xd9, 0x57, 0x54, 0x32, 0x56, 0x1b, 0x00,
  503. 0x2f, 0x72, 0xcc, 0x91, 0xa8, 0x0b, 0xa7, 0x72, 0xd2, 0xbf, 0x65, 0x0e, 0x24, 0x9e, 0xca, 0x1a,
  504. 0xf9, 0xfd, 0xb3, 0x93, 0xbf, 0xce, 0x9e, 0x60, 0x62, 0xcf, 0x9b, 0x9f, 0x21, 0x24, 0xf7, 0xfe,
  505. 0x43, 0x57, 0xd7, 0xb0, 0x28, 0xb5, 0x69, 0xdc, 0x1d, 0xd3, 0x2d, 0x7f, 0xf0, 0x5b, 0x01, 0x6b,
  506. 0x0f, 0x64, 0xd2, 0x4d, 0xa0, 0xae, 0x21, 0x7d, 0xaf, 0x6d, 0xbd, 0xf7, 0x57, 0x48, 0x9c, 0x5a,
  507. 0x9a, 0xf5, 0xd2, 0x57, 0xc2, 0xdf, 0x3e, 0x6a, 0xe4, 0x0f, 0xe4, 0xa9, 0x46, 0x8d, 0x78, 0x1b,
  508. 0xa8, 0x2d, 0xcc, 0xc4, 0x1f, 0x75, 0x31, 0x0a, 0xa3, 0x59, 0xeb, 0xff, 0x26, 0xcc, 0x29, 0xa7,
  509. 0x97, 0x10, 0x73, 0x6e, 0x93, 0x89, 0xca, 0x55, 0x8f, 0xd2, 0x7c, 0x05, 0x29, 0x3f, 0x6e, 0x0c,
  510. 0x7f, 0xe5, 0x5a, 0x3c, 0x5c, 0x9f, 0xce, 0xaa, 0x0d, 0xc4, 0x1f, 0xdb, 0xc3, 0x61, 0x32, 0x6d,
  511. 0xfa, 0xe0, 0xaf, 0x73, 0xf9, 0x03, 0xbc, 0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0x60, 0x42, 0x00,
  512. 0x66, 0x13, 0x04, 0x00, 0x00,
  513. }
  514. // Reference imports to suppress errors if they are not otherwise used.
  515. var _ context.Context
  516. var _ grpc.ClientConn
  517. // This is a compile-time assertion to ensure that this generated file
  518. // is compatible with the grpc package it is being compiled against.
  519. const _ = grpc.SupportPackageIsVersion4
  520. // ExecutorClient is the client API for Executor service.
  521. //
  522. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  523. type ExecutorClient interface {
  524. SendInput(ctx context.Context, opts ...grpc.CallOption) (Executor_SendInputClient, error)
  525. FetchStdout(ctx context.Context, in *Sn, opts ...grpc.CallOption) (Executor_FetchStdoutClient, error)
  526. FetchStderr(ctx context.Context, in *Sn, opts ...grpc.CallOption) (Executor_FetchStderrClient, error)
  527. Start(ctx context.Context, in *StartInput, opts ...grpc.CallOption) (*StartResponse, error)
  528. Wait(ctx context.Context, in *Sn, opts ...grpc.CallOption) (*WaitResponse, error)
  529. ExecCommand(ctx context.Context, in *Command, opts ...grpc.CallOption) (*Sn, error)
  530. Kill(ctx context.Context, in *Sn, opts ...grpc.CallOption) (*Error, error)
  531. }
  532. type executorClient struct {
  533. cc *grpc.ClientConn
  534. }
  535. func NewExecutorClient(cc *grpc.ClientConn) ExecutorClient {
  536. return &executorClient{cc}
  537. }
  538. func (c *executorClient) SendInput(ctx context.Context, opts ...grpc.CallOption) (Executor_SendInputClient, error) {
  539. stream, err := c.cc.NewStream(ctx, &_Executor_serviceDesc.Streams[0], "/apis.Executor/SendInput", opts...)
  540. if err != nil {
  541. return nil, err
  542. }
  543. x := &executorSendInputClient{stream}
  544. return x, nil
  545. }
  546. type Executor_SendInputClient interface {
  547. Send(*Input) error
  548. CloseAndRecv() (*Error, error)
  549. grpc.ClientStream
  550. }
  551. type executorSendInputClient struct {
  552. grpc.ClientStream
  553. }
  554. func (x *executorSendInputClient) Send(m *Input) error {
  555. return x.ClientStream.SendMsg(m)
  556. }
  557. func (x *executorSendInputClient) CloseAndRecv() (*Error, error) {
  558. if err := x.ClientStream.CloseSend(); err != nil {
  559. return nil, err
  560. }
  561. m := new(Error)
  562. if err := x.ClientStream.RecvMsg(m); err != nil {
  563. return nil, err
  564. }
  565. return m, nil
  566. }
  567. func (c *executorClient) FetchStdout(ctx context.Context, in *Sn, opts ...grpc.CallOption) (Executor_FetchStdoutClient, error) {
  568. stream, err := c.cc.NewStream(ctx, &_Executor_serviceDesc.Streams[1], "/apis.Executor/FetchStdout", opts...)
  569. if err != nil {
  570. return nil, err
  571. }
  572. x := &executorFetchStdoutClient{stream}
  573. if err := x.ClientStream.SendMsg(in); err != nil {
  574. return nil, err
  575. }
  576. if err := x.ClientStream.CloseSend(); err != nil {
  577. return nil, err
  578. }
  579. return x, nil
  580. }
  581. type Executor_FetchStdoutClient interface {
  582. Recv() (*Stdout, error)
  583. grpc.ClientStream
  584. }
  585. type executorFetchStdoutClient struct {
  586. grpc.ClientStream
  587. }
  588. func (x *executorFetchStdoutClient) Recv() (*Stdout, error) {
  589. m := new(Stdout)
  590. if err := x.ClientStream.RecvMsg(m); err != nil {
  591. return nil, err
  592. }
  593. return m, nil
  594. }
  595. func (c *executorClient) FetchStderr(ctx context.Context, in *Sn, opts ...grpc.CallOption) (Executor_FetchStderrClient, error) {
  596. stream, err := c.cc.NewStream(ctx, &_Executor_serviceDesc.Streams[2], "/apis.Executor/FetchStderr", opts...)
  597. if err != nil {
  598. return nil, err
  599. }
  600. x := &executorFetchStderrClient{stream}
  601. if err := x.ClientStream.SendMsg(in); err != nil {
  602. return nil, err
  603. }
  604. if err := x.ClientStream.CloseSend(); err != nil {
  605. return nil, err
  606. }
  607. return x, nil
  608. }
  609. type Executor_FetchStderrClient interface {
  610. Recv() (*Stderr, error)
  611. grpc.ClientStream
  612. }
  613. type executorFetchStderrClient struct {
  614. grpc.ClientStream
  615. }
  616. func (x *executorFetchStderrClient) Recv() (*Stderr, error) {
  617. m := new(Stderr)
  618. if err := x.ClientStream.RecvMsg(m); err != nil {
  619. return nil, err
  620. }
  621. return m, nil
  622. }
  623. func (c *executorClient) Start(ctx context.Context, in *StartInput, opts ...grpc.CallOption) (*StartResponse, error) {
  624. out := new(StartResponse)
  625. err := c.cc.Invoke(ctx, "/apis.Executor/Start", in, out, opts...)
  626. if err != nil {
  627. return nil, err
  628. }
  629. return out, nil
  630. }
  631. func (c *executorClient) Wait(ctx context.Context, in *Sn, opts ...grpc.CallOption) (*WaitResponse, error) {
  632. out := new(WaitResponse)
  633. err := c.cc.Invoke(ctx, "/apis.Executor/Wait", in, out, opts...)
  634. if err != nil {
  635. return nil, err
  636. }
  637. return out, nil
  638. }
  639. func (c *executorClient) ExecCommand(ctx context.Context, in *Command, opts ...grpc.CallOption) (*Sn, error) {
  640. out := new(Sn)
  641. err := c.cc.Invoke(ctx, "/apis.Executor/ExecCommand", in, out, opts...)
  642. if err != nil {
  643. return nil, err
  644. }
  645. return out, nil
  646. }
  647. func (c *executorClient) Kill(ctx context.Context, in *Sn, opts ...grpc.CallOption) (*Error, error) {
  648. out := new(Error)
  649. err := c.cc.Invoke(ctx, "/apis.Executor/Kill", in, out, opts...)
  650. if err != nil {
  651. return nil, err
  652. }
  653. return out, nil
  654. }
  655. // ExecutorServer is the server API for Executor service.
  656. type ExecutorServer interface {
  657. SendInput(Executor_SendInputServer) error
  658. FetchStdout(*Sn, Executor_FetchStdoutServer) error
  659. FetchStderr(*Sn, Executor_FetchStderrServer) error
  660. Start(context.Context, *StartInput) (*StartResponse, error)
  661. Wait(context.Context, *Sn) (*WaitResponse, error)
  662. ExecCommand(context.Context, *Command) (*Sn, error)
  663. Kill(context.Context, *Sn) (*Error, error)
  664. }
  665. // UnimplementedExecutorServer can be embedded to have forward compatible implementations.
  666. type UnimplementedExecutorServer struct {
  667. }
  668. func (*UnimplementedExecutorServer) SendInput(srv Executor_SendInputServer) error {
  669. return status.Errorf(codes.Unimplemented, "method SendInput not implemented")
  670. }
  671. func (*UnimplementedExecutorServer) FetchStdout(req *Sn, srv Executor_FetchStdoutServer) error {
  672. return status.Errorf(codes.Unimplemented, "method FetchStdout not implemented")
  673. }
  674. func (*UnimplementedExecutorServer) FetchStderr(req *Sn, srv Executor_FetchStderrServer) error {
  675. return status.Errorf(codes.Unimplemented, "method FetchStderr not implemented")
  676. }
  677. func (*UnimplementedExecutorServer) Start(ctx context.Context, req *StartInput) (*StartResponse, error) {
  678. return nil, status.Errorf(codes.Unimplemented, "method Start not implemented")
  679. }
  680. func (*UnimplementedExecutorServer) Wait(ctx context.Context, req *Sn) (*WaitResponse, error) {
  681. return nil, status.Errorf(codes.Unimplemented, "method Wait not implemented")
  682. }
  683. func (*UnimplementedExecutorServer) ExecCommand(ctx context.Context, req *Command) (*Sn, error) {
  684. return nil, status.Errorf(codes.Unimplemented, "method ExecCommand not implemented")
  685. }
  686. func (*UnimplementedExecutorServer) Kill(ctx context.Context, req *Sn) (*Error, error) {
  687. return nil, status.Errorf(codes.Unimplemented, "method Kill not implemented")
  688. }
  689. func RegisterExecutorServer(s *grpc.Server, srv ExecutorServer) {
  690. s.RegisterService(&_Executor_serviceDesc, srv)
  691. }
  692. func _Executor_SendInput_Handler(srv interface{}, stream grpc.ServerStream) error {
  693. return srv.(ExecutorServer).SendInput(&executorSendInputServer{stream})
  694. }
  695. type Executor_SendInputServer interface {
  696. SendAndClose(*Error) error
  697. Recv() (*Input, error)
  698. grpc.ServerStream
  699. }
  700. type executorSendInputServer struct {
  701. grpc.ServerStream
  702. }
  703. func (x *executorSendInputServer) SendAndClose(m *Error) error {
  704. return x.ServerStream.SendMsg(m)
  705. }
  706. func (x *executorSendInputServer) Recv() (*Input, error) {
  707. m := new(Input)
  708. if err := x.ServerStream.RecvMsg(m); err != nil {
  709. return nil, err
  710. }
  711. return m, nil
  712. }
  713. func _Executor_FetchStdout_Handler(srv interface{}, stream grpc.ServerStream) error {
  714. m := new(Sn)
  715. if err := stream.RecvMsg(m); err != nil {
  716. return err
  717. }
  718. return srv.(ExecutorServer).FetchStdout(m, &executorFetchStdoutServer{stream})
  719. }
  720. type Executor_FetchStdoutServer interface {
  721. Send(*Stdout) error
  722. grpc.ServerStream
  723. }
  724. type executorFetchStdoutServer struct {
  725. grpc.ServerStream
  726. }
  727. func (x *executorFetchStdoutServer) Send(m *Stdout) error {
  728. return x.ServerStream.SendMsg(m)
  729. }
  730. func _Executor_FetchStderr_Handler(srv interface{}, stream grpc.ServerStream) error {
  731. m := new(Sn)
  732. if err := stream.RecvMsg(m); err != nil {
  733. return err
  734. }
  735. return srv.(ExecutorServer).FetchStderr(m, &executorFetchStderrServer{stream})
  736. }
  737. type Executor_FetchStderrServer interface {
  738. Send(*Stderr) error
  739. grpc.ServerStream
  740. }
  741. type executorFetchStderrServer struct {
  742. grpc.ServerStream
  743. }
  744. func (x *executorFetchStderrServer) Send(m *Stderr) error {
  745. return x.ServerStream.SendMsg(m)
  746. }
  747. func _Executor_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  748. in := new(StartInput)
  749. if err := dec(in); err != nil {
  750. return nil, err
  751. }
  752. if interceptor == nil {
  753. return srv.(ExecutorServer).Start(ctx, in)
  754. }
  755. info := &grpc.UnaryServerInfo{
  756. Server: srv,
  757. FullMethod: "/apis.Executor/Start",
  758. }
  759. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  760. return srv.(ExecutorServer).Start(ctx, req.(*StartInput))
  761. }
  762. return interceptor(ctx, in, info, handler)
  763. }
  764. func _Executor_Wait_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  765. in := new(Sn)
  766. if err := dec(in); err != nil {
  767. return nil, err
  768. }
  769. if interceptor == nil {
  770. return srv.(ExecutorServer).Wait(ctx, in)
  771. }
  772. info := &grpc.UnaryServerInfo{
  773. Server: srv,
  774. FullMethod: "/apis.Executor/Wait",
  775. }
  776. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  777. return srv.(ExecutorServer).Wait(ctx, req.(*Sn))
  778. }
  779. return interceptor(ctx, in, info, handler)
  780. }
  781. func _Executor_ExecCommand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  782. in := new(Command)
  783. if err := dec(in); err != nil {
  784. return nil, err
  785. }
  786. if interceptor == nil {
  787. return srv.(ExecutorServer).ExecCommand(ctx, in)
  788. }
  789. info := &grpc.UnaryServerInfo{
  790. Server: srv,
  791. FullMethod: "/apis.Executor/ExecCommand",
  792. }
  793. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  794. return srv.(ExecutorServer).ExecCommand(ctx, req.(*Command))
  795. }
  796. return interceptor(ctx, in, info, handler)
  797. }
  798. func _Executor_Kill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  799. in := new(Sn)
  800. if err := dec(in); err != nil {
  801. return nil, err
  802. }
  803. if interceptor == nil {
  804. return srv.(ExecutorServer).Kill(ctx, in)
  805. }
  806. info := &grpc.UnaryServerInfo{
  807. Server: srv,
  808. FullMethod: "/apis.Executor/Kill",
  809. }
  810. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  811. return srv.(ExecutorServer).Kill(ctx, req.(*Sn))
  812. }
  813. return interceptor(ctx, in, info, handler)
  814. }
  815. var _Executor_serviceDesc = grpc.ServiceDesc{
  816. ServiceName: "apis.Executor",
  817. HandlerType: (*ExecutorServer)(nil),
  818. Methods: []grpc.MethodDesc{
  819. {
  820. MethodName: "Start",
  821. Handler: _Executor_Start_Handler,
  822. },
  823. {
  824. MethodName: "Wait",
  825. Handler: _Executor_Wait_Handler,
  826. },
  827. {
  828. MethodName: "ExecCommand",
  829. Handler: _Executor_ExecCommand_Handler,
  830. },
  831. {
  832. MethodName: "Kill",
  833. Handler: _Executor_Kill_Handler,
  834. },
  835. },
  836. Streams: []grpc.StreamDesc{
  837. {
  838. StreamName: "SendInput",
  839. Handler: _Executor_SendInput_Handler,
  840. ClientStreams: true,
  841. },
  842. {
  843. StreamName: "FetchStdout",
  844. Handler: _Executor_FetchStdout_Handler,
  845. ServerStreams: true,
  846. },
  847. {
  848. StreamName: "FetchStderr",
  849. Handler: _Executor_FetchStderr_Handler,
  850. ServerStreams: true,
  851. },
  852. },
  853. Metadata: "executor.proto",
  854. }