-
Notifications
You must be signed in to change notification settings - Fork 568
/
pps_grpc.pb.go
1590 lines (1451 loc) · 53.4 KB
/
pps_grpc.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc v4.23.4
// source: pps/pps.proto
package pps
import (
context "context"
task "github.com/pachyderm/pachyderm/v2/src/task"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
API_InspectJob_FullMethodName = "/pps_v2.API/InspectJob"
API_InspectJobSet_FullMethodName = "/pps_v2.API/InspectJobSet"
API_ListJob_FullMethodName = "/pps_v2.API/ListJob"
API_ListJobSet_FullMethodName = "/pps_v2.API/ListJobSet"
API_SubscribeJob_FullMethodName = "/pps_v2.API/SubscribeJob"
API_DeleteJob_FullMethodName = "/pps_v2.API/DeleteJob"
API_StopJob_FullMethodName = "/pps_v2.API/StopJob"
API_InspectDatum_FullMethodName = "/pps_v2.API/InspectDatum"
API_ListDatum_FullMethodName = "/pps_v2.API/ListDatum"
API_RestartDatum_FullMethodName = "/pps_v2.API/RestartDatum"
API_CreatePipeline_FullMethodName = "/pps_v2.API/CreatePipeline"
API_InspectPipeline_FullMethodName = "/pps_v2.API/InspectPipeline"
API_ListPipeline_FullMethodName = "/pps_v2.API/ListPipeline"
API_DeletePipeline_FullMethodName = "/pps_v2.API/DeletePipeline"
API_DeletePipelines_FullMethodName = "/pps_v2.API/DeletePipelines"
API_StartPipeline_FullMethodName = "/pps_v2.API/StartPipeline"
API_StopPipeline_FullMethodName = "/pps_v2.API/StopPipeline"
API_RunPipeline_FullMethodName = "/pps_v2.API/RunPipeline"
API_RunCron_FullMethodName = "/pps_v2.API/RunCron"
API_CreateSecret_FullMethodName = "/pps_v2.API/CreateSecret"
API_DeleteSecret_FullMethodName = "/pps_v2.API/DeleteSecret"
API_ListSecret_FullMethodName = "/pps_v2.API/ListSecret"
API_InspectSecret_FullMethodName = "/pps_v2.API/InspectSecret"
API_DeleteAll_FullMethodName = "/pps_v2.API/DeleteAll"
API_GetLogs_FullMethodName = "/pps_v2.API/GetLogs"
API_ActivateAuth_FullMethodName = "/pps_v2.API/ActivateAuth"
API_UpdateJobState_FullMethodName = "/pps_v2.API/UpdateJobState"
API_RunLoadTest_FullMethodName = "/pps_v2.API/RunLoadTest"
API_RunLoadTestDefault_FullMethodName = "/pps_v2.API/RunLoadTestDefault"
API_RenderTemplate_FullMethodName = "/pps_v2.API/RenderTemplate"
API_ListTask_FullMethodName = "/pps_v2.API/ListTask"
API_GetKubeEvents_FullMethodName = "/pps_v2.API/GetKubeEvents"
API_QueryLoki_FullMethodName = "/pps_v2.API/QueryLoki"
)
// APIClient is the client API for API service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type APIClient interface {
InspectJob(ctx context.Context, in *InspectJobRequest, opts ...grpc.CallOption) (*JobInfo, error)
InspectJobSet(ctx context.Context, in *InspectJobSetRequest, opts ...grpc.CallOption) (API_InspectJobSetClient, error)
// ListJob returns information about current and past Pachyderm jobs.
ListJob(ctx context.Context, in *ListJobRequest, opts ...grpc.CallOption) (API_ListJobClient, error)
ListJobSet(ctx context.Context, in *ListJobSetRequest, opts ...grpc.CallOption) (API_ListJobSetClient, error)
SubscribeJob(ctx context.Context, in *SubscribeJobRequest, opts ...grpc.CallOption) (API_SubscribeJobClient, error)
DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
StopJob(ctx context.Context, in *StopJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
InspectDatum(ctx context.Context, in *InspectDatumRequest, opts ...grpc.CallOption) (*DatumInfo, error)
// ListDatum returns information about each datum fed to a Pachyderm job
ListDatum(ctx context.Context, in *ListDatumRequest, opts ...grpc.CallOption) (API_ListDatumClient, error)
RestartDatum(ctx context.Context, in *RestartDatumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
CreatePipeline(ctx context.Context, in *CreatePipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
InspectPipeline(ctx context.Context, in *InspectPipelineRequest, opts ...grpc.CallOption) (*PipelineInfo, error)
ListPipeline(ctx context.Context, in *ListPipelineRequest, opts ...grpc.CallOption) (API_ListPipelineClient, error)
DeletePipeline(ctx context.Context, in *DeletePipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeletePipelines(ctx context.Context, in *DeletePipelinesRequest, opts ...grpc.CallOption) (*DeletePipelinesResponse, error)
StartPipeline(ctx context.Context, in *StartPipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
StopPipeline(ctx context.Context, in *StopPipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
RunPipeline(ctx context.Context, in *RunPipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
RunCron(ctx context.Context, in *RunCronRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
ListSecret(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SecretInfos, error)
InspectSecret(ctx context.Context, in *InspectSecretRequest, opts ...grpc.CallOption) (*SecretInfo, error)
// DeleteAll deletes everything
DeleteAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (API_GetLogsClient, error)
// An internal call that causes PPS to put itself into an auth-enabled state
// (all pipeline have tokens, correct permissions, etcd)
ActivateAuth(ctx context.Context, in *ActivateAuthRequest, opts ...grpc.CallOption) (*ActivateAuthResponse, error)
// An internal call used to move a job from one state to another
UpdateJobState(ctx context.Context, in *UpdateJobStateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// RunLoadTest runs a load test.
RunLoadTest(ctx context.Context, in *RunLoadTestRequest, opts ...grpc.CallOption) (*RunLoadTestResponse, error)
// RunLoadTestDefault runs the default load test.
RunLoadTestDefault(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RunLoadTestResponse, error)
// RenderTemplate renders the provided template and arguments into a list of Pipeline specicifications
RenderTemplate(ctx context.Context, in *RenderTemplateRequest, opts ...grpc.CallOption) (*RenderTemplateResponse, error)
// ListTask lists PPS tasks
ListTask(ctx context.Context, in *task.ListTaskRequest, opts ...grpc.CallOption) (API_ListTaskClient, error)
// GetKubeEvents returns a stream of kubernetes events
GetKubeEvents(ctx context.Context, in *LokiRequest, opts ...grpc.CallOption) (API_GetKubeEventsClient, error)
// QueryLoki returns a stream of loki log messages given a query string
QueryLoki(ctx context.Context, in *LokiRequest, opts ...grpc.CallOption) (API_QueryLokiClient, error)
}
type aPIClient struct {
cc grpc.ClientConnInterface
}
func NewAPIClient(cc grpc.ClientConnInterface) APIClient {
return &aPIClient{cc}
}
func (c *aPIClient) InspectJob(ctx context.Context, in *InspectJobRequest, opts ...grpc.CallOption) (*JobInfo, error) {
out := new(JobInfo)
err := c.cc.Invoke(ctx, API_InspectJob_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) InspectJobSet(ctx context.Context, in *InspectJobSetRequest, opts ...grpc.CallOption) (API_InspectJobSetClient, error) {
stream, err := c.cc.NewStream(ctx, &API_ServiceDesc.Streams[0], API_InspectJobSet_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &aPIInspectJobSetClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type API_InspectJobSetClient interface {
Recv() (*JobInfo, error)
grpc.ClientStream
}
type aPIInspectJobSetClient struct {
grpc.ClientStream
}
func (x *aPIInspectJobSetClient) Recv() (*JobInfo, error) {
m := new(JobInfo)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *aPIClient) ListJob(ctx context.Context, in *ListJobRequest, opts ...grpc.CallOption) (API_ListJobClient, error) {
stream, err := c.cc.NewStream(ctx, &API_ServiceDesc.Streams[1], API_ListJob_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &aPIListJobClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type API_ListJobClient interface {
Recv() (*JobInfo, error)
grpc.ClientStream
}
type aPIListJobClient struct {
grpc.ClientStream
}
func (x *aPIListJobClient) Recv() (*JobInfo, error) {
m := new(JobInfo)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *aPIClient) ListJobSet(ctx context.Context, in *ListJobSetRequest, opts ...grpc.CallOption) (API_ListJobSetClient, error) {
stream, err := c.cc.NewStream(ctx, &API_ServiceDesc.Streams[2], API_ListJobSet_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &aPIListJobSetClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type API_ListJobSetClient interface {
Recv() (*JobSetInfo, error)
grpc.ClientStream
}
type aPIListJobSetClient struct {
grpc.ClientStream
}
func (x *aPIListJobSetClient) Recv() (*JobSetInfo, error) {
m := new(JobSetInfo)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *aPIClient) SubscribeJob(ctx context.Context, in *SubscribeJobRequest, opts ...grpc.CallOption) (API_SubscribeJobClient, error) {
stream, err := c.cc.NewStream(ctx, &API_ServiceDesc.Streams[3], API_SubscribeJob_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &aPISubscribeJobClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type API_SubscribeJobClient interface {
Recv() (*JobInfo, error)
grpc.ClientStream
}
type aPISubscribeJobClient struct {
grpc.ClientStream
}
func (x *aPISubscribeJobClient) Recv() (*JobInfo, error) {
m := new(JobInfo)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *aPIClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_DeleteJob_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) StopJob(ctx context.Context, in *StopJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_StopJob_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) InspectDatum(ctx context.Context, in *InspectDatumRequest, opts ...grpc.CallOption) (*DatumInfo, error) {
out := new(DatumInfo)
err := c.cc.Invoke(ctx, API_InspectDatum_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) ListDatum(ctx context.Context, in *ListDatumRequest, opts ...grpc.CallOption) (API_ListDatumClient, error) {
stream, err := c.cc.NewStream(ctx, &API_ServiceDesc.Streams[4], API_ListDatum_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &aPIListDatumClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type API_ListDatumClient interface {
Recv() (*DatumInfo, error)
grpc.ClientStream
}
type aPIListDatumClient struct {
grpc.ClientStream
}
func (x *aPIListDatumClient) Recv() (*DatumInfo, error) {
m := new(DatumInfo)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *aPIClient) RestartDatum(ctx context.Context, in *RestartDatumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_RestartDatum_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) CreatePipeline(ctx context.Context, in *CreatePipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_CreatePipeline_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) InspectPipeline(ctx context.Context, in *InspectPipelineRequest, opts ...grpc.CallOption) (*PipelineInfo, error) {
out := new(PipelineInfo)
err := c.cc.Invoke(ctx, API_InspectPipeline_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) ListPipeline(ctx context.Context, in *ListPipelineRequest, opts ...grpc.CallOption) (API_ListPipelineClient, error) {
stream, err := c.cc.NewStream(ctx, &API_ServiceDesc.Streams[5], API_ListPipeline_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &aPIListPipelineClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type API_ListPipelineClient interface {
Recv() (*PipelineInfo, error)
grpc.ClientStream
}
type aPIListPipelineClient struct {
grpc.ClientStream
}
func (x *aPIListPipelineClient) Recv() (*PipelineInfo, error) {
m := new(PipelineInfo)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *aPIClient) DeletePipeline(ctx context.Context, in *DeletePipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_DeletePipeline_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) DeletePipelines(ctx context.Context, in *DeletePipelinesRequest, opts ...grpc.CallOption) (*DeletePipelinesResponse, error) {
out := new(DeletePipelinesResponse)
err := c.cc.Invoke(ctx, API_DeletePipelines_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) StartPipeline(ctx context.Context, in *StartPipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_StartPipeline_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) StopPipeline(ctx context.Context, in *StopPipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_StopPipeline_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) RunPipeline(ctx context.Context, in *RunPipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_RunPipeline_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) RunCron(ctx context.Context, in *RunCronRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_RunCron_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_CreateSecret_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_DeleteSecret_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) ListSecret(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SecretInfos, error) {
out := new(SecretInfos)
err := c.cc.Invoke(ctx, API_ListSecret_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) InspectSecret(ctx context.Context, in *InspectSecretRequest, opts ...grpc.CallOption) (*SecretInfo, error) {
out := new(SecretInfo)
err := c.cc.Invoke(ctx, API_InspectSecret_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) DeleteAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_DeleteAll_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (API_GetLogsClient, error) {
stream, err := c.cc.NewStream(ctx, &API_ServiceDesc.Streams[6], API_GetLogs_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &aPIGetLogsClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type API_GetLogsClient interface {
Recv() (*LogMessage, error)
grpc.ClientStream
}
type aPIGetLogsClient struct {
grpc.ClientStream
}
func (x *aPIGetLogsClient) Recv() (*LogMessage, error) {
m := new(LogMessage)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *aPIClient) ActivateAuth(ctx context.Context, in *ActivateAuthRequest, opts ...grpc.CallOption) (*ActivateAuthResponse, error) {
out := new(ActivateAuthResponse)
err := c.cc.Invoke(ctx, API_ActivateAuth_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) UpdateJobState(ctx context.Context, in *UpdateJobStateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, API_UpdateJobState_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) RunLoadTest(ctx context.Context, in *RunLoadTestRequest, opts ...grpc.CallOption) (*RunLoadTestResponse, error) {
out := new(RunLoadTestResponse)
err := c.cc.Invoke(ctx, API_RunLoadTest_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) RunLoadTestDefault(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RunLoadTestResponse, error) {
out := new(RunLoadTestResponse)
err := c.cc.Invoke(ctx, API_RunLoadTestDefault_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) RenderTemplate(ctx context.Context, in *RenderTemplateRequest, opts ...grpc.CallOption) (*RenderTemplateResponse, error) {
out := new(RenderTemplateResponse)
err := c.cc.Invoke(ctx, API_RenderTemplate_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aPIClient) ListTask(ctx context.Context, in *task.ListTaskRequest, opts ...grpc.CallOption) (API_ListTaskClient, error) {
stream, err := c.cc.NewStream(ctx, &API_ServiceDesc.Streams[7], API_ListTask_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &aPIListTaskClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type API_ListTaskClient interface {
Recv() (*task.TaskInfo, error)
grpc.ClientStream
}
type aPIListTaskClient struct {
grpc.ClientStream
}
func (x *aPIListTaskClient) Recv() (*task.TaskInfo, error) {
m := new(task.TaskInfo)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *aPIClient) GetKubeEvents(ctx context.Context, in *LokiRequest, opts ...grpc.CallOption) (API_GetKubeEventsClient, error) {
stream, err := c.cc.NewStream(ctx, &API_ServiceDesc.Streams[8], API_GetKubeEvents_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &aPIGetKubeEventsClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type API_GetKubeEventsClient interface {
Recv() (*LokiLogMessage, error)
grpc.ClientStream
}
type aPIGetKubeEventsClient struct {
grpc.ClientStream
}
func (x *aPIGetKubeEventsClient) Recv() (*LokiLogMessage, error) {
m := new(LokiLogMessage)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *aPIClient) QueryLoki(ctx context.Context, in *LokiRequest, opts ...grpc.CallOption) (API_QueryLokiClient, error) {
stream, err := c.cc.NewStream(ctx, &API_ServiceDesc.Streams[9], API_QueryLoki_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &aPIQueryLokiClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type API_QueryLokiClient interface {
Recv() (*LokiLogMessage, error)
grpc.ClientStream
}
type aPIQueryLokiClient struct {
grpc.ClientStream
}
func (x *aPIQueryLokiClient) Recv() (*LokiLogMessage, error) {
m := new(LokiLogMessage)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// APIServer is the server API for API service.
// All implementations must embed UnimplementedAPIServer
// for forward compatibility
type APIServer interface {
InspectJob(context.Context, *InspectJobRequest) (*JobInfo, error)
InspectJobSet(*InspectJobSetRequest, API_InspectJobSetServer) error
// ListJob returns information about current and past Pachyderm jobs.
ListJob(*ListJobRequest, API_ListJobServer) error
ListJobSet(*ListJobSetRequest, API_ListJobSetServer) error
SubscribeJob(*SubscribeJobRequest, API_SubscribeJobServer) error
DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error)
StopJob(context.Context, *StopJobRequest) (*emptypb.Empty, error)
InspectDatum(context.Context, *InspectDatumRequest) (*DatumInfo, error)
// ListDatum returns information about each datum fed to a Pachyderm job
ListDatum(*ListDatumRequest, API_ListDatumServer) error
RestartDatum(context.Context, *RestartDatumRequest) (*emptypb.Empty, error)
CreatePipeline(context.Context, *CreatePipelineRequest) (*emptypb.Empty, error)
InspectPipeline(context.Context, *InspectPipelineRequest) (*PipelineInfo, error)
ListPipeline(*ListPipelineRequest, API_ListPipelineServer) error
DeletePipeline(context.Context, *DeletePipelineRequest) (*emptypb.Empty, error)
DeletePipelines(context.Context, *DeletePipelinesRequest) (*DeletePipelinesResponse, error)
StartPipeline(context.Context, *StartPipelineRequest) (*emptypb.Empty, error)
StopPipeline(context.Context, *StopPipelineRequest) (*emptypb.Empty, error)
RunPipeline(context.Context, *RunPipelineRequest) (*emptypb.Empty, error)
RunCron(context.Context, *RunCronRequest) (*emptypb.Empty, error)
CreateSecret(context.Context, *CreateSecretRequest) (*emptypb.Empty, error)
DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error)
ListSecret(context.Context, *emptypb.Empty) (*SecretInfos, error)
InspectSecret(context.Context, *InspectSecretRequest) (*SecretInfo, error)
// DeleteAll deletes everything
DeleteAll(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
GetLogs(*GetLogsRequest, API_GetLogsServer) error
// An internal call that causes PPS to put itself into an auth-enabled state
// (all pipeline have tokens, correct permissions, etcd)
ActivateAuth(context.Context, *ActivateAuthRequest) (*ActivateAuthResponse, error)
// An internal call used to move a job from one state to another
UpdateJobState(context.Context, *UpdateJobStateRequest) (*emptypb.Empty, error)
// RunLoadTest runs a load test.
RunLoadTest(context.Context, *RunLoadTestRequest) (*RunLoadTestResponse, error)
// RunLoadTestDefault runs the default load test.
RunLoadTestDefault(context.Context, *emptypb.Empty) (*RunLoadTestResponse, error)
// RenderTemplate renders the provided template and arguments into a list of Pipeline specicifications
RenderTemplate(context.Context, *RenderTemplateRequest) (*RenderTemplateResponse, error)
// ListTask lists PPS tasks
ListTask(*task.ListTaskRequest, API_ListTaskServer) error
// GetKubeEvents returns a stream of kubernetes events
GetKubeEvents(*LokiRequest, API_GetKubeEventsServer) error
// QueryLoki returns a stream of loki log messages given a query string
QueryLoki(*LokiRequest, API_QueryLokiServer) error
mustEmbedUnimplementedAPIServer()
}
// UnimplementedAPIServer must be embedded to have forward compatible implementations.
type UnimplementedAPIServer struct {
}
func (UnimplementedAPIServer) InspectJob(context.Context, *InspectJobRequest) (*JobInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method InspectJob not implemented")
}
func (UnimplementedAPIServer) InspectJobSet(*InspectJobSetRequest, API_InspectJobSetServer) error {
return status.Errorf(codes.Unimplemented, "method InspectJobSet not implemented")
}
func (UnimplementedAPIServer) ListJob(*ListJobRequest, API_ListJobServer) error {
return status.Errorf(codes.Unimplemented, "method ListJob not implemented")
}
func (UnimplementedAPIServer) ListJobSet(*ListJobSetRequest, API_ListJobSetServer) error {
return status.Errorf(codes.Unimplemented, "method ListJobSet not implemented")
}
func (UnimplementedAPIServer) SubscribeJob(*SubscribeJobRequest, API_SubscribeJobServer) error {
return status.Errorf(codes.Unimplemented, "method SubscribeJob not implemented")
}
func (UnimplementedAPIServer) DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteJob not implemented")
}
func (UnimplementedAPIServer) StopJob(context.Context, *StopJobRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method StopJob not implemented")
}
func (UnimplementedAPIServer) InspectDatum(context.Context, *InspectDatumRequest) (*DatumInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method InspectDatum not implemented")
}
func (UnimplementedAPIServer) ListDatum(*ListDatumRequest, API_ListDatumServer) error {
return status.Errorf(codes.Unimplemented, "method ListDatum not implemented")
}
func (UnimplementedAPIServer) RestartDatum(context.Context, *RestartDatumRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method RestartDatum not implemented")
}
func (UnimplementedAPIServer) CreatePipeline(context.Context, *CreatePipelineRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreatePipeline not implemented")
}
func (UnimplementedAPIServer) InspectPipeline(context.Context, *InspectPipelineRequest) (*PipelineInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method InspectPipeline not implemented")
}
func (UnimplementedAPIServer) ListPipeline(*ListPipelineRequest, API_ListPipelineServer) error {
return status.Errorf(codes.Unimplemented, "method ListPipeline not implemented")
}
func (UnimplementedAPIServer) DeletePipeline(context.Context, *DeletePipelineRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeletePipeline not implemented")
}
func (UnimplementedAPIServer) DeletePipelines(context.Context, *DeletePipelinesRequest) (*DeletePipelinesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeletePipelines not implemented")
}
func (UnimplementedAPIServer) StartPipeline(context.Context, *StartPipelineRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method StartPipeline not implemented")
}
func (UnimplementedAPIServer) StopPipeline(context.Context, *StopPipelineRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method StopPipeline not implemented")
}
func (UnimplementedAPIServer) RunPipeline(context.Context, *RunPipelineRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method RunPipeline not implemented")
}
func (UnimplementedAPIServer) RunCron(context.Context, *RunCronRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method RunCron not implemented")
}
func (UnimplementedAPIServer) CreateSecret(context.Context, *CreateSecretRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateSecret not implemented")
}
func (UnimplementedAPIServer) DeleteSecret(context.Context, *DeleteSecretRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteSecret not implemented")
}
func (UnimplementedAPIServer) ListSecret(context.Context, *emptypb.Empty) (*SecretInfos, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListSecret not implemented")
}
func (UnimplementedAPIServer) InspectSecret(context.Context, *InspectSecretRequest) (*SecretInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method InspectSecret not implemented")
}
func (UnimplementedAPIServer) DeleteAll(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteAll not implemented")
}
func (UnimplementedAPIServer) GetLogs(*GetLogsRequest, API_GetLogsServer) error {
return status.Errorf(codes.Unimplemented, "method GetLogs not implemented")
}
func (UnimplementedAPIServer) ActivateAuth(context.Context, *ActivateAuthRequest) (*ActivateAuthResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ActivateAuth not implemented")
}
func (UnimplementedAPIServer) UpdateJobState(context.Context, *UpdateJobStateRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateJobState not implemented")
}
func (UnimplementedAPIServer) RunLoadTest(context.Context, *RunLoadTestRequest) (*RunLoadTestResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RunLoadTest not implemented")
}
func (UnimplementedAPIServer) RunLoadTestDefault(context.Context, *emptypb.Empty) (*RunLoadTestResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RunLoadTestDefault not implemented")
}
func (UnimplementedAPIServer) RenderTemplate(context.Context, *RenderTemplateRequest) (*RenderTemplateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RenderTemplate not implemented")
}
func (UnimplementedAPIServer) ListTask(*task.ListTaskRequest, API_ListTaskServer) error {
return status.Errorf(codes.Unimplemented, "method ListTask not implemented")
}
func (UnimplementedAPIServer) GetKubeEvents(*LokiRequest, API_GetKubeEventsServer) error {
return status.Errorf(codes.Unimplemented, "method GetKubeEvents not implemented")
}
func (UnimplementedAPIServer) QueryLoki(*LokiRequest, API_QueryLokiServer) error {
return status.Errorf(codes.Unimplemented, "method QueryLoki not implemented")
}
func (UnimplementedAPIServer) mustEmbedUnimplementedAPIServer() {}
// UnsafeAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to APIServer will
// result in compilation errors.
type UnsafeAPIServer interface {
mustEmbedUnimplementedAPIServer()
}
func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer) {
s.RegisterService(&API_ServiceDesc, srv)
}
func _API_InspectJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InspectJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(APIServer).InspectJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: API_InspectJob_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(APIServer).InspectJob(ctx, req.(*InspectJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _API_InspectJobSet_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(InspectJobSetRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(APIServer).InspectJobSet(m, &aPIInspectJobSetServer{stream})
}
type API_InspectJobSetServer interface {
Send(*JobInfo) error
grpc.ServerStream
}
type aPIInspectJobSetServer struct {
grpc.ServerStream
}
func (x *aPIInspectJobSetServer) Send(m *JobInfo) error {
return x.ServerStream.SendMsg(m)
}
func _API_ListJob_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ListJobRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(APIServer).ListJob(m, &aPIListJobServer{stream})
}
type API_ListJobServer interface {
Send(*JobInfo) error
grpc.ServerStream
}
type aPIListJobServer struct {
grpc.ServerStream
}
func (x *aPIListJobServer) Send(m *JobInfo) error {
return x.ServerStream.SendMsg(m)
}
func _API_ListJobSet_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ListJobSetRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(APIServer).ListJobSet(m, &aPIListJobSetServer{stream})
}
type API_ListJobSetServer interface {
Send(*JobSetInfo) error
grpc.ServerStream
}
type aPIListJobSetServer struct {
grpc.ServerStream
}
func (x *aPIListJobSetServer) Send(m *JobSetInfo) error {
return x.ServerStream.SendMsg(m)
}
func _API_SubscribeJob_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(SubscribeJobRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(APIServer).SubscribeJob(m, &aPISubscribeJobServer{stream})
}
type API_SubscribeJobServer interface {
Send(*JobInfo) error
grpc.ServerStream
}
type aPISubscribeJobServer struct {
grpc.ServerStream
}
func (x *aPISubscribeJobServer) Send(m *JobInfo) error {
return x.ServerStream.SendMsg(m)
}
func _API_DeleteJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(APIServer).DeleteJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: API_DeleteJob_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(APIServer).DeleteJob(ctx, req.(*DeleteJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _API_StopJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StopJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(APIServer).StopJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: API_StopJob_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(APIServer).StopJob(ctx, req.(*StopJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _API_InspectDatum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InspectDatumRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(APIServer).InspectDatum(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: API_InspectDatum_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(APIServer).InspectDatum(ctx, req.(*InspectDatumRequest))
}
return interceptor(ctx, in, info, handler)
}
func _API_ListDatum_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(ListDatumRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(APIServer).ListDatum(m, &aPIListDatumServer{stream})
}
type API_ListDatumServer interface {
Send(*DatumInfo) error
grpc.ServerStream
}
type aPIListDatumServer struct {
grpc.ServerStream
}
func (x *aPIListDatumServer) Send(m *DatumInfo) error {
return x.ServerStream.SendMsg(m)
}
func _API_RestartDatum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RestartDatumRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(APIServer).RestartDatum(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: API_RestartDatum_FullMethodName,