Repository navigation
Expand file tree
/
Copy pathopenshell_pb2_grpc.py
More file actions
4179 lines (3953 loc) · 168 KB
/
Copy pathopenshell_pb2_grpc.py
File metadata and controls
4179 lines (3953 loc) · 168 KB
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
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import warnings
from . import openshell_pb2 as openshell__pb2
from . import sandbox_pb2 as sandbox__pb2
GRPC_GENERATED_VERSION = '1.78.2'
GRPC_VERSION = grpc.__version__
_version_not_supported = False
try:
from grpc._utilities import first_version_is_lower
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
_version_not_supported = True
if _version_not_supported:
raise RuntimeError(
f'The grpc package installed is at version {GRPC_VERSION},'
+ ' but the generated code in openshell_pb2_grpc.py depends on'
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
)
class OpenShellStub(object):
"""OpenShell service provides sandbox, provider, and runtime management capabilities.
Conventions:
- This file owns the public API resource model exposed to OpenShell clients.
- `Sandbox`, `SandboxSpec`, `SandboxStatus`, and `SandboxPhase` are gateway-owned
public types. Internal compute drivers must not import or return them directly.
- The gateway translates internal compute-driver observations into these public
resource messages before persisting or returning them to clients.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Health = channel.unary_unary(
'/openshell.v1.OpenShell/Health',
request_serializer=openshell__pb2.HealthRequest.SerializeToString,
response_deserializer=openshell__pb2.HealthResponse.FromString,
_registered_method=True)
self.GetCurrentUser = channel.unary_unary(
'/openshell.v1.OpenShell/GetCurrentUser',
request_serializer=openshell__pb2.GetCurrentUserRequest.SerializeToString,
response_deserializer=openshell__pb2.GetCurrentUserResponse.FromString,
_registered_method=True)
self.GetGatewayInfo = channel.unary_unary(
'/openshell.v1.OpenShell/GetGatewayInfo',
request_serializer=openshell__pb2.GetGatewayInfoRequest.SerializeToString,
response_deserializer=openshell__pb2.GetGatewayInfoResponse.FromString,
_registered_method=True)
self.CreateSandbox = channel.unary_unary(
'/openshell.v1.OpenShell/CreateSandbox',
request_serializer=openshell__pb2.CreateSandboxRequest.SerializeToString,
response_deserializer=openshell__pb2.SandboxResponse.FromString,
_registered_method=True)
self.BeginRootfsTarStaging = channel.unary_unary(
'/openshell.v1.OpenShell/BeginRootfsTarStaging',
request_serializer=openshell__pb2.BeginRootfsTarStagingRequest.SerializeToString,
response_deserializer=openshell__pb2.BeginRootfsTarStagingResponse.FromString,
_registered_method=True)
self.GetSandbox = channel.unary_unary(
'/openshell.v1.OpenShell/GetSandbox',
request_serializer=openshell__pb2.GetSandboxRequest.SerializeToString,
response_deserializer=openshell__pb2.SandboxResponse.FromString,
_registered_method=True)
self.ListSandboxes = channel.unary_unary(
'/openshell.v1.OpenShell/ListSandboxes',
request_serializer=openshell__pb2.ListSandboxesRequest.SerializeToString,
response_deserializer=openshell__pb2.ListSandboxesResponse.FromString,
_registered_method=True)
self.CreateSandboxTemplate = channel.unary_unary(
'/openshell.v1.OpenShell/CreateSandboxTemplate',
request_serializer=openshell__pb2.CreateSandboxTemplateRequest.SerializeToString,
response_deserializer=openshell__pb2.SandboxTemplateResponse.FromString,
_registered_method=True)
self.GetSandboxTemplate = channel.unary_unary(
'/openshell.v1.OpenShell/GetSandboxTemplate',
request_serializer=openshell__pb2.GetSandboxTemplateRequest.SerializeToString,
response_deserializer=openshell__pb2.SandboxTemplateResponse.FromString,
_registered_method=True)
self.ListSandboxTemplates = channel.unary_unary(
'/openshell.v1.OpenShell/ListSandboxTemplates',
request_serializer=openshell__pb2.ListSandboxTemplatesRequest.SerializeToString,
response_deserializer=openshell__pb2.ListSandboxTemplatesResponse.FromString,
_registered_method=True)
self.DeleteSandboxTemplate = channel.unary_unary(
'/openshell.v1.OpenShell/DeleteSandboxTemplate',
request_serializer=openshell__pb2.DeleteSandboxTemplateRequest.SerializeToString,
response_deserializer=openshell__pb2.DeleteSandboxTemplateResponse.FromString,
_registered_method=True)
self.ListSandboxProviders = channel.unary_unary(
'/openshell.v1.OpenShell/ListSandboxProviders',
request_serializer=openshell__pb2.ListSandboxProvidersRequest.SerializeToString,
response_deserializer=openshell__pb2.ListSandboxProvidersResponse.FromString,
_registered_method=True)
self.AttachSandboxProvider = channel.unary_unary(
'/openshell.v1.OpenShell/AttachSandboxProvider',
request_serializer=openshell__pb2.AttachSandboxProviderRequest.SerializeToString,
response_deserializer=openshell__pb2.AttachSandboxProviderResponse.FromString,
_registered_method=True)
self.DetachSandboxProvider = channel.unary_unary(
'/openshell.v1.OpenShell/DetachSandboxProvider',
request_serializer=openshell__pb2.DetachSandboxProviderRequest.SerializeToString,
response_deserializer=openshell__pb2.DetachSandboxProviderResponse.FromString,
_registered_method=True)
self.GetSandboxProviderStatus = channel.unary_unary(
'/openshell.v1.OpenShell/GetSandboxProviderStatus',
request_serializer=openshell__pb2.GetSandboxProviderStatusRequest.SerializeToString,
response_deserializer=openshell__pb2.GetSandboxProviderStatusResponse.FromString,
_registered_method=True)
self.DeleteSandbox = channel.unary_unary(
'/openshell.v1.OpenShell/DeleteSandbox',
request_serializer=openshell__pb2.DeleteSandboxRequest.SerializeToString,
response_deserializer=openshell__pb2.DeleteSandboxResponse.FromString,
_registered_method=True)
self.StopSandbox = channel.unary_unary(
'/openshell.v1.OpenShell/StopSandbox',
request_serializer=openshell__pb2.StopSandboxRequest.SerializeToString,
response_deserializer=openshell__pb2.SandboxResponse.FromString,
_registered_method=True)
self.StartSandbox = channel.unary_unary(
'/openshell.v1.OpenShell/StartSandbox',
request_serializer=openshell__pb2.StartSandboxRequest.SerializeToString,
response_deserializer=openshell__pb2.SandboxResponse.FromString,
_registered_method=True)
self.SuspendSandbox = channel.unary_unary(
'/openshell.v1.OpenShell/SuspendSandbox',
request_serializer=openshell__pb2.SuspendSandboxRequest.SerializeToString,
response_deserializer=openshell__pb2.SandboxResponse.FromString,
_registered_method=True)
self.ResumeSandbox = channel.unary_unary(
'/openshell.v1.OpenShell/ResumeSandbox',
request_serializer=openshell__pb2.ResumeSandboxRequest.SerializeToString,
response_deserializer=openshell__pb2.SandboxResponse.FromString,
_registered_method=True)
self.CreateSshSession = channel.unary_unary(
'/openshell.v1.OpenShell/CreateSshSession',
request_serializer=openshell__pb2.CreateSshSessionRequest.SerializeToString,
response_deserializer=openshell__pb2.CreateSshSessionResponse.FromString,
_registered_method=True)
self.ExposeService = channel.unary_unary(
'/openshell.v1.OpenShell/ExposeService',
request_serializer=openshell__pb2.ExposeServiceRequest.SerializeToString,
response_deserializer=openshell__pb2.ServiceEndpointResponse.FromString,
_registered_method=True)
self.GetService = channel.unary_unary(
'/openshell.v1.OpenShell/GetService',
request_serializer=openshell__pb2.GetServiceRequest.SerializeToString,
response_deserializer=openshell__pb2.ServiceEndpointResponse.FromString,
_registered_method=True)
self.ListServices = channel.unary_unary(
'/openshell.v1.OpenShell/ListServices',
request_serializer=openshell__pb2.ListServicesRequest.SerializeToString,
response_deserializer=openshell__pb2.ListServicesResponse.FromString,
_registered_method=True)
self.DeleteService = channel.unary_unary(
'/openshell.v1.OpenShell/DeleteService',
request_serializer=openshell__pb2.DeleteServiceRequest.SerializeToString,
response_deserializer=openshell__pb2.DeleteServiceResponse.FromString,
_registered_method=True)
self.RevokeSshSession = channel.unary_unary(
'/openshell.v1.OpenShell/RevokeSshSession',
request_serializer=openshell__pb2.RevokeSshSessionRequest.SerializeToString,
response_deserializer=openshell__pb2.RevokeSshSessionResponse.FromString,
_registered_method=True)
self.ExecSandbox = channel.unary_stream(
'/openshell.v1.OpenShell/ExecSandbox',
request_serializer=openshell__pb2.ExecSandboxRequest.SerializeToString,
response_deserializer=openshell__pb2.ExecSandboxEvent.FromString,
_registered_method=True)
self.ForwardTcp = channel.stream_stream(
'/openshell.v1.OpenShell/ForwardTcp',
request_serializer=openshell__pb2.TcpForwardFrame.SerializeToString,
response_deserializer=openshell__pb2.TcpForwardFrame.FromString,
_registered_method=True)
self.ExecSandboxInteractive = channel.stream_stream(
'/openshell.v1.OpenShell/ExecSandboxInteractive',
request_serializer=openshell__pb2.ExecSandboxInput.SerializeToString,
response_deserializer=openshell__pb2.ExecSandboxEvent.FromString,
_registered_method=True)
self.CreateProvider = channel.unary_unary(
'/openshell.v1.OpenShell/CreateProvider',
request_serializer=openshell__pb2.CreateProviderRequest.SerializeToString,
response_deserializer=openshell__pb2.ProviderResponse.FromString,
_registered_method=True)
self.GetProvider = channel.unary_unary(
'/openshell.v1.OpenShell/GetProvider',
request_serializer=openshell__pb2.GetProviderRequest.SerializeToString,
response_deserializer=openshell__pb2.ProviderResponse.FromString,
_registered_method=True)
self.GetProviderCredentials = channel.unary_unary(
'/openshell.v1.OpenShell/GetProviderCredentials',
request_serializer=openshell__pb2.GetProviderCredentialsRequest.SerializeToString,
response_deserializer=openshell__pb2.GetProviderCredentialsResponse.FromString,
_registered_method=True)
self.ListProviders = channel.unary_unary(
'/openshell.v1.OpenShell/ListProviders',
request_serializer=openshell__pb2.ListProvidersRequest.SerializeToString,
response_deserializer=openshell__pb2.ListProvidersResponse.FromString,
_registered_method=True)
self.ListProviderProfiles = channel.unary_unary(
'/openshell.v1.OpenShell/ListProviderProfiles',
request_serializer=openshell__pb2.ListProviderProfilesRequest.SerializeToString,
response_deserializer=openshell__pb2.ListProviderProfilesResponse.FromString,
_registered_method=True)
self.GetProviderProfile = channel.unary_unary(
'/openshell.v1.OpenShell/GetProviderProfile',
request_serializer=openshell__pb2.GetProviderProfileRequest.SerializeToString,
response_deserializer=openshell__pb2.ProviderProfileResponse.FromString,
_registered_method=True)
self.ImportProviderProfiles = channel.unary_unary(
'/openshell.v1.OpenShell/ImportProviderProfiles',
request_serializer=openshell__pb2.ImportProviderProfilesRequest.SerializeToString,
response_deserializer=openshell__pb2.ImportProviderProfilesResponse.FromString,
_registered_method=True)
self.UpdateProviderProfiles = channel.unary_unary(
'/openshell.v1.OpenShell/UpdateProviderProfiles',
request_serializer=openshell__pb2.UpdateProviderProfilesRequest.SerializeToString,
response_deserializer=openshell__pb2.UpdateProviderProfilesResponse.FromString,
_registered_method=True)
self.LintProviderProfiles = channel.unary_unary(
'/openshell.v1.OpenShell/LintProviderProfiles',
request_serializer=openshell__pb2.LintProviderProfilesRequest.SerializeToString,
response_deserializer=openshell__pb2.LintProviderProfilesResponse.FromString,
_registered_method=True)
self.UpdateProvider = channel.unary_unary(
'/openshell.v1.OpenShell/UpdateProvider',
request_serializer=openshell__pb2.UpdateProviderRequest.SerializeToString,
response_deserializer=openshell__pb2.ProviderResponse.FromString,
_registered_method=True)
self.GetProviderRefreshStatus = channel.unary_unary(
'/openshell.v1.OpenShell/GetProviderRefreshStatus',
request_serializer=openshell__pb2.GetProviderRefreshStatusRequest.SerializeToString,
response_deserializer=openshell__pb2.GetProviderRefreshStatusResponse.FromString,
_registered_method=True)
self.ConfigureProviderRefresh = channel.unary_unary(
'/openshell.v1.OpenShell/ConfigureProviderRefresh',
request_serializer=openshell__pb2.ConfigureProviderRefreshRequest.SerializeToString,
response_deserializer=openshell__pb2.ConfigureProviderRefreshResponse.FromString,
_registered_method=True)
self.RotateProviderCredential = channel.unary_unary(
'/openshell.v1.OpenShell/RotateProviderCredential',
request_serializer=openshell__pb2.RotateProviderCredentialRequest.SerializeToString,
response_deserializer=openshell__pb2.RotateProviderCredentialResponse.FromString,
_registered_method=True)
self.DeleteProviderRefresh = channel.unary_unary(
'/openshell.v1.OpenShell/DeleteProviderRefresh',
request_serializer=openshell__pb2.DeleteProviderRefreshRequest.SerializeToString,
response_deserializer=openshell__pb2.DeleteProviderRefreshResponse.FromString,
_registered_method=True)
self.DeleteProvider = channel.unary_unary(
'/openshell.v1.OpenShell/DeleteProvider',
request_serializer=openshell__pb2.DeleteProviderRequest.SerializeToString,
response_deserializer=openshell__pb2.DeleteProviderResponse.FromString,
_registered_method=True)
self.DeleteProviderProfile = channel.unary_unary(
'/openshell.v1.OpenShell/DeleteProviderProfile',
request_serializer=openshell__pb2.DeleteProviderProfileRequest.SerializeToString,
response_deserializer=openshell__pb2.DeleteProviderProfileResponse.FromString,
_registered_method=True)
self.GetSandboxConfig = channel.unary_unary(
'/openshell.v1.OpenShell/GetSandboxConfig',
request_serializer=sandbox__pb2.GetSandboxConfigRequest.SerializeToString,
response_deserializer=sandbox__pb2.GetSandboxConfigResponse.FromString,
_registered_method=True)
self.GetGatewayConfig = channel.unary_unary(
'/openshell.v1.OpenShell/GetGatewayConfig',
request_serializer=sandbox__pb2.GetGatewayConfigRequest.SerializeToString,
response_deserializer=sandbox__pb2.GetGatewayConfigResponse.FromString,
_registered_method=True)
self.UpdateConfig = channel.unary_unary(
'/openshell.v1.OpenShell/UpdateConfig',
request_serializer=openshell__pb2.UpdateConfigRequest.SerializeToString,
response_deserializer=openshell__pb2.UpdateConfigResponse.FromString,
_registered_method=True)
self.GetSandboxPolicyStatus = channel.unary_unary(
'/openshell.v1.OpenShell/GetSandboxPolicyStatus',
request_serializer=openshell__pb2.GetSandboxPolicyStatusRequest.SerializeToString,
response_deserializer=openshell__pb2.GetSandboxPolicyStatusResponse.FromString,
_registered_method=True)
self.ListSandboxPolicies = channel.unary_unary(
'/openshell.v1.OpenShell/ListSandboxPolicies',
request_serializer=openshell__pb2.ListSandboxPoliciesRequest.SerializeToString,
response_deserializer=openshell__pb2.ListSandboxPoliciesResponse.FromString,
_registered_method=True)
self.ReportPolicyStatus = channel.unary_unary(
'/openshell.v1.OpenShell/ReportPolicyStatus',
request_serializer=openshell__pb2.ReportPolicyStatusRequest.SerializeToString,
response_deserializer=openshell__pb2.ReportPolicyStatusResponse.FromString,
_registered_method=True)
self.ReportEndpointStatus = channel.unary_unary(
'/openshell.v1.OpenShell/ReportEndpointStatus',
request_serializer=openshell__pb2.ReportEndpointStatusRequest.SerializeToString,
response_deserializer=openshell__pb2.ReportEndpointStatusResponse.FromString,
_registered_method=True)
self.ReportProviderReadiness = channel.unary_unary(
'/openshell.v1.OpenShell/ReportProviderReadiness',
request_serializer=openshell__pb2.ReportProviderReadinessRequest.SerializeToString,
response_deserializer=openshell__pb2.ReportProviderReadinessResponse.FromString,
_registered_method=True)
self.ReportSandboxConfiguration = channel.unary_unary(
'/openshell.v1.OpenShell/ReportSandboxConfiguration',
request_serializer=openshell__pb2.ReportSandboxConfigurationRequest.SerializeToString,
response_deserializer=openshell__pb2.ReportSandboxConfigurationResponse.FromString,
_registered_method=True)
self.GetSandboxProviderEnvironment = channel.unary_unary(
'/openshell.v1.OpenShell/GetSandboxProviderEnvironment',
request_serializer=openshell__pb2.GetSandboxProviderEnvironmentRequest.SerializeToString,
response_deserializer=openshell__pb2.GetSandboxProviderEnvironmentResponse.FromString,
_registered_method=True)
self.ExchangeProviderSubjectToken = channel.unary_unary(
'/openshell.v1.OpenShell/ExchangeProviderSubjectToken',
request_serializer=openshell__pb2.ExchangeProviderSubjectTokenRequest.SerializeToString,
response_deserializer=openshell__pb2.ExchangeProviderSubjectTokenResponse.FromString,
_registered_method=True)
self.GetSandboxProviderAccessToken = channel.unary_unary(
'/openshell.v1.OpenShell/GetSandboxProviderAccessToken',
request_serializer=openshell__pb2.GetSandboxProviderAccessTokenRequest.SerializeToString,
response_deserializer=openshell__pb2.GetSandboxProviderAccessTokenResponse.FromString,
_registered_method=True)
self.GetSandboxLogs = channel.unary_unary(
'/openshell.v1.OpenShell/GetSandboxLogs',
request_serializer=openshell__pb2.GetSandboxLogsRequest.SerializeToString,
response_deserializer=openshell__pb2.GetSandboxLogsResponse.FromString,
_registered_method=True)
self.PushSandboxLogs = channel.stream_unary(
'/openshell.v1.OpenShell/PushSandboxLogs',
request_serializer=openshell__pb2.PushSandboxLogsRequest.SerializeToString,
response_deserializer=openshell__pb2.PushSandboxLogsResponse.FromString,
_registered_method=True)
self.ConnectSupervisor = channel.stream_stream(
'/openshell.v1.OpenShell/ConnectSupervisor',
request_serializer=openshell__pb2.SupervisorMessage.SerializeToString,
response_deserializer=openshell__pb2.GatewayMessage.FromString,
_registered_method=True)
self.ReportMainProcessExit = channel.unary_unary(
'/openshell.v1.OpenShell/ReportMainProcessExit',
request_serializer=openshell__pb2.ReportMainProcessExitRequest.SerializeToString,
response_deserializer=openshell__pb2.ReportMainProcessExitResponse.FromString,
_registered_method=True)
self.FinalizeMainProcessExit = channel.unary_unary(
'/openshell.v1.OpenShell/FinalizeMainProcessExit',
request_serializer=openshell__pb2.FinalizeMainProcessExitRequest.SerializeToString,
response_deserializer=openshell__pb2.FinalizeMainProcessExitResponse.FromString,
_registered_method=True)
self.RelayStream = channel.stream_stream(
'/openshell.v1.OpenShell/RelayStream',
request_serializer=openshell__pb2.RelayFrame.SerializeToString,
response_deserializer=openshell__pb2.RelayFrame.FromString,
_registered_method=True)
self.PeerRelay = channel.stream_stream(
'/openshell.v1.OpenShell/PeerRelay',
request_serializer=openshell__pb2.PeerRelayFrame.SerializeToString,
response_deserializer=openshell__pb2.PeerRelayFrame.FromString,
_registered_method=True)
self.PeerReportProviderReadiness = channel.unary_unary(
'/openshell.v1.OpenShell/PeerReportProviderReadiness',
request_serializer=openshell__pb2.ReportProviderReadinessRequest.SerializeToString,
response_deserializer=openshell__pb2.ReportProviderReadinessResponse.FromString,
_registered_method=True)
self.PeerReportEndpointStatus = channel.unary_unary(
'/openshell.v1.OpenShell/PeerReportEndpointStatus',
request_serializer=openshell__pb2.ReportEndpointStatusRequest.SerializeToString,
response_deserializer=openshell__pb2.ReportEndpointStatusResponse.FromString,
_registered_method=True)
self.PeerGetSandboxProviderStatus = channel.unary_unary(
'/openshell.v1.OpenShell/PeerGetSandboxProviderStatus',
request_serializer=openshell__pb2.GetSandboxProviderStatusRequest.SerializeToString,
response_deserializer=openshell__pb2.GetSandboxProviderStatusResponse.FromString,
_registered_method=True)
self.PeerNotifyConfigUpdate = channel.unary_unary(
'/openshell.v1.OpenShell/PeerNotifyConfigUpdate',
request_serializer=openshell__pb2.PeerNotifyConfigUpdateRequest.SerializeToString,
response_deserializer=openshell__pb2.PeerNotifyConfigUpdateResponse.FromString,
_registered_method=True)
self.WatchSandbox = channel.unary_stream(
'/openshell.v1.OpenShell/WatchSandbox',
request_serializer=openshell__pb2.WatchSandboxRequest.SerializeToString,
response_deserializer=openshell__pb2.SandboxStreamEvent.FromString,
_registered_method=True)
self.SubmitPolicyAnalysis = channel.unary_unary(
'/openshell.v1.OpenShell/SubmitPolicyAnalysis',
request_serializer=openshell__pb2.SubmitPolicyAnalysisRequest.SerializeToString,
response_deserializer=openshell__pb2.SubmitPolicyAnalysisResponse.FromString,
_registered_method=True)
self.GetDraftPolicy = channel.unary_unary(
'/openshell.v1.OpenShell/GetDraftPolicy',
request_serializer=openshell__pb2.GetDraftPolicyRequest.SerializeToString,
response_deserializer=openshell__pb2.GetDraftPolicyResponse.FromString,
_registered_method=True)
self.ApproveDraftChunk = channel.unary_unary(
'/openshell.v1.OpenShell/ApproveDraftChunk',
request_serializer=openshell__pb2.ApproveDraftChunkRequest.SerializeToString,
response_deserializer=openshell__pb2.ApproveDraftChunkResponse.FromString,
_registered_method=True)
self.RejectDraftChunk = channel.unary_unary(
'/openshell.v1.OpenShell/RejectDraftChunk',
request_serializer=openshell__pb2.RejectDraftChunkRequest.SerializeToString,
response_deserializer=openshell__pb2.RejectDraftChunkResponse.FromString,
_registered_method=True)
self.ApproveAllDraftChunks = channel.unary_unary(
'/openshell.v1.OpenShell/ApproveAllDraftChunks',
request_serializer=openshell__pb2.ApproveAllDraftChunksRequest.SerializeToString,
response_deserializer=openshell__pb2.ApproveAllDraftChunksResponse.FromString,
_registered_method=True)
self.EditDraftChunk = channel.unary_unary(
'/openshell.v1.OpenShell/EditDraftChunk',
request_serializer=openshell__pb2.EditDraftChunkRequest.SerializeToString,
response_deserializer=openshell__pb2.EditDraftChunkResponse.FromString,
_registered_method=True)
self.UndoDraftChunk = channel.unary_unary(
'/openshell.v1.OpenShell/UndoDraftChunk',
request_serializer=openshell__pb2.UndoDraftChunkRequest.SerializeToString,
response_deserializer=openshell__pb2.UndoDraftChunkResponse.FromString,
_registered_method=True)
self.ClearDraftChunks = channel.unary_unary(
'/openshell.v1.OpenShell/ClearDraftChunks',
request_serializer=openshell__pb2.ClearDraftChunksRequest.SerializeToString,
response_deserializer=openshell__pb2.ClearDraftChunksResponse.FromString,
_registered_method=True)
self.GetDraftHistory = channel.unary_unary(
'/openshell.v1.OpenShell/GetDraftHistory',
request_serializer=openshell__pb2.GetDraftHistoryRequest.SerializeToString,
response_deserializer=openshell__pb2.GetDraftHistoryResponse.FromString,
_registered_method=True)
self.IssueSandboxToken = channel.unary_unary(
'/openshell.v1.OpenShell/IssueSandboxToken',
request_serializer=openshell__pb2.IssueSandboxTokenRequest.SerializeToString,
response_deserializer=openshell__pb2.IssueSandboxTokenResponse.FromString,
_registered_method=True)
self.RefreshSandboxToken = channel.unary_unary(
'/openshell.v1.OpenShell/RefreshSandboxToken',
request_serializer=openshell__pb2.RefreshSandboxTokenRequest.SerializeToString,
response_deserializer=openshell__pb2.RefreshSandboxTokenResponse.FromString,
_registered_method=True)
self.CreateWorkspace = channel.unary_unary(
'/openshell.v1.OpenShell/CreateWorkspace',
request_serializer=openshell__pb2.CreateWorkspaceRequest.SerializeToString,
response_deserializer=openshell__pb2.CreateWorkspaceResponse.FromString,
_registered_method=True)
self.GetWorkspace = channel.unary_unary(
'/openshell.v1.OpenShell/GetWorkspace',
request_serializer=openshell__pb2.GetWorkspaceRequest.SerializeToString,
response_deserializer=openshell__pb2.GetWorkspaceResponse.FromString,
_registered_method=True)
self.ListWorkspaces = channel.unary_unary(
'/openshell.v1.OpenShell/ListWorkspaces',
request_serializer=openshell__pb2.ListWorkspacesRequest.SerializeToString,
response_deserializer=openshell__pb2.ListWorkspacesResponse.FromString,
_registered_method=True)
self.DeleteWorkspace = channel.unary_unary(
'/openshell.v1.OpenShell/DeleteWorkspace',
request_serializer=openshell__pb2.DeleteWorkspaceRequest.SerializeToString,
response_deserializer=openshell__pb2.DeleteWorkspaceResponse.FromString,
_registered_method=True)
self.AddWorkspaceMember = channel.unary_unary(
'/openshell.v1.OpenShell/AddWorkspaceMember',
request_serializer=openshell__pb2.AddWorkspaceMemberRequest.SerializeToString,
response_deserializer=openshell__pb2.AddWorkspaceMemberResponse.FromString,
_registered_method=True)
self.RemoveWorkspaceMember = channel.unary_unary(
'/openshell.v1.OpenShell/RemoveWorkspaceMember',
request_serializer=openshell__pb2.RemoveWorkspaceMemberRequest.SerializeToString,
response_deserializer=openshell__pb2.RemoveWorkspaceMemberResponse.FromString,
_registered_method=True)
self.ListWorkspaceMembers = channel.unary_unary(
'/openshell.v1.OpenShell/ListWorkspaceMembers',
request_serializer=openshell__pb2.ListWorkspaceMembersRequest.SerializeToString,
response_deserializer=openshell__pb2.ListWorkspaceMembersResponse.FromString,
_registered_method=True)
class OpenShellServicer(object):
"""OpenShell service provides sandbox, provider, and runtime management capabilities.
Conventions:
- This file owns the public API resource model exposed to OpenShell clients.
- `Sandbox`, `SandboxSpec`, `SandboxStatus`, and `SandboxPhase` are gateway-owned
public types. Internal compute drivers must not import or return them directly.
- The gateway translates internal compute-driver observations into these public
resource messages before persisting or returning them to clients.
"""
def Health(self, request, context):
"""Check the health of the service.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetCurrentUser(self, request, context):
"""Return the authenticated caller identity established by the gateway.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetGatewayInfo(self, request, context):
"""Fetch elevated live gateway runtime metadata.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateSandbox(self, request, context):
"""Create a new sandbox.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def BeginRootfsTarStaging(self, request, context):
"""Allocate a gateway-owned staging slot for a local rootfs tar archive.
The gateway creates a request-scoped directory inside the compute driver's
staging root and returns an opaque single-use token plus the absolute path
the client must write the archive to. The token is then passed as
`template.driver_config.<driver>.rootfs_tar_staging_token` on
CreateSandbox; callers never name a filesystem path themselves. Only a
client sharing the gateway's filesystem can complete the upload.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetSandbox(self, request, context):
"""Fetch a sandbox by name.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListSandboxes(self, request, context):
"""List sandboxes.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateSandboxTemplate(self, request, context):
"""Create a reusable sandbox workload template.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetSandboxTemplate(self, request, context):
"""Fetch a reusable sandbox workload template by name.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListSandboxTemplates(self, request, context):
"""List reusable sandbox workload templates.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteSandboxTemplate(self, request, context):
"""Delete a reusable sandbox workload template by name.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListSandboxProviders(self, request, context):
"""List provider records attached to a sandbox.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def AttachSandboxProvider(self, request, context):
"""Attach a provider record to an existing sandbox.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DetachSandboxProvider(self, request, context):
"""Detach a provider record from an existing sandbox.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetSandboxProviderStatus(self, request, context):
"""Inspect the installed authority for one sandbox provider mutation.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteSandbox(self, request, context):
"""Delete a sandbox by name.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def StopSandbox(self, request, context):
"""Stop a sandbox while retaining its persistent state.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def StartSandbox(self, request, context):
"""Start a previously stopped sandbox.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SuspendSandbox(self, request, context):
"""Freeze a ready sandbox and retain its memory state for a later resume.
Requires a compute driver and isolation backend that support state
retention.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ResumeSandbox(self, request, context):
"""Restore a suspended sandbox in a new runtime generation.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateSshSession(self, request, context):
"""Create a short-lived SSH session for a sandbox.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ExposeService(self, request, context):
"""Create or update a sandbox HTTP service endpoint for local routing.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetService(self, request, context):
"""Fetch one sandbox HTTP service endpoint.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListServices(self, request, context):
"""List sandbox HTTP service endpoints.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteService(self, request, context):
"""Delete one sandbox HTTP service endpoint.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def RevokeSshSession(self, request, context):
"""Revoke a previously issued SSH session.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ExecSandbox(self, request, context):
"""Execute a command in a ready sandbox and stream output.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ForwardTcp(self, request_iterator, context):
"""Forward one CLI-side TCP connection to a loopback TCP target in a sandbox.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ExecSandboxInteractive(self, request_iterator, context):
"""Execute an interactive command with bidirectional stdin/stdout streaming.
The first client message MUST carry an ExecSandboxInput with the start
variant. Subsequent messages carry stdin bytes or window resize events.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateProvider(self, request, context):
"""Create a provider.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetProvider(self, request, context):
"""Fetch a provider by name.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetProviderCredentials(self, request, context):
"""Export selected usable runtime credentials. Only directly authenticated
mTLS operators may call this method; refresh material is never returned.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListProviders(self, request, context):
"""List providers.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListProviderProfiles(self, request, context):
"""List available provider type profiles.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetProviderProfile(self, request, context):
"""Fetch one provider type profile by id.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ImportProviderProfiles(self, request, context):
"""Import custom provider type profiles.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def UpdateProviderProfiles(self, request, context):
"""Update an existing custom provider type profile.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def LintProviderProfiles(self, request, context):
"""Validate provider type profiles without registering them.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def UpdateProvider(self, request, context):
"""Update an existing provider by name.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetProviderRefreshStatus(self, request, context):
"""Fetch refresh status for one provider or provider credential.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ConfigureProviderRefresh(self, request, context):
"""Configure gateway-owned refresh material for one provider credential.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def RotateProviderCredential(self, request, context):
"""Record a gateway-owned refresh request for one provider credential.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteProviderRefresh(self, request, context):
"""Delete gateway-owned refresh configuration for one provider credential.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteProvider(self, request, context):
"""Delete a provider by name.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteProviderProfile(self, request, context):
"""Delete a custom provider type profile by id.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetSandboxConfig(self, request, context):
"""Get sandbox settings by id (called by users, and by supervisors at startup
and in their poll loop). A supervisor whose session pushes configuration
receives later updates over ConnectSupervisor and stops polling.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetGatewayConfig(self, request, context):
"""Get gateway-global settings (read-only runtime configuration; any
authenticated user may read these without requiring Platform Admin).
Scope-only (no role): scopes are granted by the IdP at token issuance,
orthogonal to workspace membership. Deployments that enable scope
enforcement configure the IdP to grant config:read (or openshell:all)
to all sandbox users, so this does not block least-privilege flows.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def UpdateConfig(self, request, context):
"""Update settings or policy at sandbox or global scope.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetSandboxPolicyStatus(self, request, context):
"""Get the load status of a specific policy version.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListSandboxPolicies(self, request, context):
"""List policy history for a sandbox.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ReportPolicyStatus(self, request, context):
"""Report policy load result (called by sandbox after reload attempt).
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ReportEndpointStatus(self, request, context):
"""Replace the gateway's observed tool server endpoint status for one sandbox.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ReportProviderReadiness(self, request, context):
"""Report installed provider state for the current ConnectSupervisor session.
Replacing or losing that session invalidates its observations.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ReportSandboxConfiguration(self, request, context):
"""Register startup and acknowledge an exact validated runtime configuration.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetSandboxProviderEnvironment(self, request, context):
"""Get provider environment for a sandbox (called by the sandbox supervisor at
startup and by its poll loop). Polling projection of the provider
environment delivered over ConnectSupervisor; removed with the polling RPCs.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ExchangeProviderSubjectToken(self, request, context):
"""Exchange a stored provider subject token for an intermediate token scoped
to the calling supervisor's SPIFFE identity.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetSandboxProviderAccessToken(self, request, context):
"""Obtain the final provider token for the authenticated sandbox session.
SPIFFE assertions and intermediate credentials remain in the gateway.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetSandboxLogs(self, request, context):
"""Fetch recent sandbox logs (one-shot).
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def PushSandboxLogs(self, request_iterator, context):
"""Push sandbox supervisor logs to the server (client-streaming).
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ConnectSupervisor(self, request_iterator, context):
"""Persistent supervisor-to-gateway session (bidirectional streaming).
The supervisor opens this stream at startup and keeps it alive for the
sandbox lifetime. The gateway uses it to coordinate relay channels for
SSH connect, ExecSandbox, targetable sandbox services, and configuration
delivery. Supervisors advertise optional stream features in
SupervisorHello, and the gateway sends only payloads the supervisor
advertises. Raw service bytes flow over RelayStream calls (separate HTTP/2
streams on the same connection), not over this stream.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ReportMainProcessExit(self, request, context):
"""Persist the canonical main process result before the supervisor exits.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def FinalizeMainProcessExit(self, request, context):
"""Confirm that foreground terminal delivery completed naturally.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def RelayStream(self, request_iterator, context):
"""Raw byte relay between supervisor and gateway.
The supervisor initiates this call after receiving a RelayOpen message
on its ConnectSupervisor stream. The first RelayFrame carries a
RelayInit with the channel_id to associate the new HTTP/2 stream with
the pending relay slot on the gateway. Subsequent frames carry raw bytes in either
direction between the gateway-side waiter (ForwardTcp / exec handler)
and the supervisor-side target bridge.
This rides the same TCP+TLS+HTTP/2 connection as ConnectSupervisor —
no new TLS handshake, no reverse HTTP CONNECT.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def PeerRelay(self, request_iterator, context):
"""Internal gateway-to-gateway relay forwarding.
A gateway replica that receives a user request for a sandbox whose
supervisor session is owned by a different replica opens this stream to the
owner. The first frame carries PeerRelayInit; subsequent frames carry raw
bytes in either direction. This RPC is authenticated as a gateway peer, not
as a user or sandbox supervisor.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def PeerReportProviderReadiness(self, request, context):
"""Internal gateway-to-owner forwarding for supervisor-bound state.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def PeerReportEndpointStatus(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)