@gitpod/supervisor-api-grpc 0.1.5-se-workspace-id.35 → 0.1.5-se-init.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/control_grpc_pb.d.ts +7 -6
- package/lib/control_pb.d.ts +2 -6
- package/lib/control_pb.js +32 -42
- package/lib/info_grpc_pb.d.ts +7 -6
- package/lib/info_pb.d.ts +61 -29
- package/lib/info_pb.js +476 -43
- package/lib/notification_grpc_pb.d.ts +73 -0
- package/lib/notification_grpc_pb.js +121 -0
- package/lib/notification_pb.d.ts +148 -0
- package/lib/notification_pb.js +1076 -0
- package/lib/port_grpc_pb.d.ts +108 -0
- package/lib/port_grpc_pb.js +187 -0
- package/lib/port_pb.d.ts +232 -0
- package/lib/port_pb.js +1672 -0
- package/lib/status_grpc_pb.d.ts +23 -21
- package/lib/status_grpc_pb.js +1 -0
- package/lib/status_pb.d.ts +105 -51
- package/lib/status_pb.js +887 -213
- package/lib/terminal_grpc_pb.d.ts +86 -34
- package/lib/terminal_grpc_pb.js +127 -25
- package/lib/terminal_pb.d.ts +263 -134
- package/lib/terminal_pb.js +2257 -893
- package/lib/token_grpc_pb.d.ts +16 -15
- package/lib/token_pb.d.ts +31 -50
- package/lib/token_pb.js +262 -111
- package/package.json +8 -7
- package/pkg-yarn.lock +3 -3
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// package: supervisor
|
|
2
|
+
// file: port.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as port_pb from "./port_pb";
|
|
9
|
+
|
|
10
|
+
interface IPortServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
|
+
tunnel: IPortServiceService_ITunnel;
|
|
12
|
+
closeTunnel: IPortServiceService_ICloseTunnel;
|
|
13
|
+
establishTunnel: IPortServiceService_IEstablishTunnel;
|
|
14
|
+
autoTunnel: IPortServiceService_IAutoTunnel;
|
|
15
|
+
retryAutoExpose: IPortServiceService_IRetryAutoExpose;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface IPortServiceService_ITunnel extends grpc.MethodDefinition<port_pb.TunnelPortRequest, port_pb.TunnelPortResponse> {
|
|
19
|
+
path: "/supervisor.PortService/Tunnel";
|
|
20
|
+
requestStream: false;
|
|
21
|
+
responseStream: false;
|
|
22
|
+
requestSerialize: grpc.serialize<port_pb.TunnelPortRequest>;
|
|
23
|
+
requestDeserialize: grpc.deserialize<port_pb.TunnelPortRequest>;
|
|
24
|
+
responseSerialize: grpc.serialize<port_pb.TunnelPortResponse>;
|
|
25
|
+
responseDeserialize: grpc.deserialize<port_pb.TunnelPortResponse>;
|
|
26
|
+
}
|
|
27
|
+
interface IPortServiceService_ICloseTunnel extends grpc.MethodDefinition<port_pb.CloseTunnelRequest, port_pb.CloseTunnelResponse> {
|
|
28
|
+
path: "/supervisor.PortService/CloseTunnel";
|
|
29
|
+
requestStream: false;
|
|
30
|
+
responseStream: false;
|
|
31
|
+
requestSerialize: grpc.serialize<port_pb.CloseTunnelRequest>;
|
|
32
|
+
requestDeserialize: grpc.deserialize<port_pb.CloseTunnelRequest>;
|
|
33
|
+
responseSerialize: grpc.serialize<port_pb.CloseTunnelResponse>;
|
|
34
|
+
responseDeserialize: grpc.deserialize<port_pb.CloseTunnelResponse>;
|
|
35
|
+
}
|
|
36
|
+
interface IPortServiceService_IEstablishTunnel extends grpc.MethodDefinition<port_pb.EstablishTunnelRequest, port_pb.EstablishTunnelResponse> {
|
|
37
|
+
path: "/supervisor.PortService/EstablishTunnel";
|
|
38
|
+
requestStream: true;
|
|
39
|
+
responseStream: true;
|
|
40
|
+
requestSerialize: grpc.serialize<port_pb.EstablishTunnelRequest>;
|
|
41
|
+
requestDeserialize: grpc.deserialize<port_pb.EstablishTunnelRequest>;
|
|
42
|
+
responseSerialize: grpc.serialize<port_pb.EstablishTunnelResponse>;
|
|
43
|
+
responseDeserialize: grpc.deserialize<port_pb.EstablishTunnelResponse>;
|
|
44
|
+
}
|
|
45
|
+
interface IPortServiceService_IAutoTunnel extends grpc.MethodDefinition<port_pb.AutoTunnelRequest, port_pb.AutoTunnelResponse> {
|
|
46
|
+
path: "/supervisor.PortService/AutoTunnel";
|
|
47
|
+
requestStream: false;
|
|
48
|
+
responseStream: false;
|
|
49
|
+
requestSerialize: grpc.serialize<port_pb.AutoTunnelRequest>;
|
|
50
|
+
requestDeserialize: grpc.deserialize<port_pb.AutoTunnelRequest>;
|
|
51
|
+
responseSerialize: grpc.serialize<port_pb.AutoTunnelResponse>;
|
|
52
|
+
responseDeserialize: grpc.deserialize<port_pb.AutoTunnelResponse>;
|
|
53
|
+
}
|
|
54
|
+
interface IPortServiceService_IRetryAutoExpose extends grpc.MethodDefinition<port_pb.RetryAutoExposeRequest, port_pb.RetryAutoExposeResponse> {
|
|
55
|
+
path: "/supervisor.PortService/RetryAutoExpose";
|
|
56
|
+
requestStream: false;
|
|
57
|
+
responseStream: false;
|
|
58
|
+
requestSerialize: grpc.serialize<port_pb.RetryAutoExposeRequest>;
|
|
59
|
+
requestDeserialize: grpc.deserialize<port_pb.RetryAutoExposeRequest>;
|
|
60
|
+
responseSerialize: grpc.serialize<port_pb.RetryAutoExposeResponse>;
|
|
61
|
+
responseDeserialize: grpc.deserialize<port_pb.RetryAutoExposeResponse>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const PortServiceService: IPortServiceService;
|
|
65
|
+
|
|
66
|
+
export interface IPortServiceServer extends grpc.UntypedServiceImplementation {
|
|
67
|
+
tunnel: grpc.handleUnaryCall<port_pb.TunnelPortRequest, port_pb.TunnelPortResponse>;
|
|
68
|
+
closeTunnel: grpc.handleUnaryCall<port_pb.CloseTunnelRequest, port_pb.CloseTunnelResponse>;
|
|
69
|
+
establishTunnel: grpc.handleBidiStreamingCall<port_pb.EstablishTunnelRequest, port_pb.EstablishTunnelResponse>;
|
|
70
|
+
autoTunnel: grpc.handleUnaryCall<port_pb.AutoTunnelRequest, port_pb.AutoTunnelResponse>;
|
|
71
|
+
retryAutoExpose: grpc.handleUnaryCall<port_pb.RetryAutoExposeRequest, port_pb.RetryAutoExposeResponse>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface IPortServiceClient {
|
|
75
|
+
tunnel(request: port_pb.TunnelPortRequest, callback: (error: grpc.ServiceError | null, response: port_pb.TunnelPortResponse) => void): grpc.ClientUnaryCall;
|
|
76
|
+
tunnel(request: port_pb.TunnelPortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: port_pb.TunnelPortResponse) => void): grpc.ClientUnaryCall;
|
|
77
|
+
tunnel(request: port_pb.TunnelPortRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: port_pb.TunnelPortResponse) => void): grpc.ClientUnaryCall;
|
|
78
|
+
closeTunnel(request: port_pb.CloseTunnelRequest, callback: (error: grpc.ServiceError | null, response: port_pb.CloseTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
79
|
+
closeTunnel(request: port_pb.CloseTunnelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: port_pb.CloseTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
80
|
+
closeTunnel(request: port_pb.CloseTunnelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: port_pb.CloseTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
81
|
+
establishTunnel(): grpc.ClientDuplexStream<port_pb.EstablishTunnelRequest, port_pb.EstablishTunnelResponse>;
|
|
82
|
+
establishTunnel(options: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<port_pb.EstablishTunnelRequest, port_pb.EstablishTunnelResponse>;
|
|
83
|
+
establishTunnel(metadata: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<port_pb.EstablishTunnelRequest, port_pb.EstablishTunnelResponse>;
|
|
84
|
+
autoTunnel(request: port_pb.AutoTunnelRequest, callback: (error: grpc.ServiceError | null, response: port_pb.AutoTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
85
|
+
autoTunnel(request: port_pb.AutoTunnelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: port_pb.AutoTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
86
|
+
autoTunnel(request: port_pb.AutoTunnelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: port_pb.AutoTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
87
|
+
retryAutoExpose(request: port_pb.RetryAutoExposeRequest, callback: (error: grpc.ServiceError | null, response: port_pb.RetryAutoExposeResponse) => void): grpc.ClientUnaryCall;
|
|
88
|
+
retryAutoExpose(request: port_pb.RetryAutoExposeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: port_pb.RetryAutoExposeResponse) => void): grpc.ClientUnaryCall;
|
|
89
|
+
retryAutoExpose(request: port_pb.RetryAutoExposeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: port_pb.RetryAutoExposeResponse) => void): grpc.ClientUnaryCall;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export class PortServiceClient extends grpc.Client implements IPortServiceClient {
|
|
93
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
94
|
+
public tunnel(request: port_pb.TunnelPortRequest, callback: (error: grpc.ServiceError | null, response: port_pb.TunnelPortResponse) => void): grpc.ClientUnaryCall;
|
|
95
|
+
public tunnel(request: port_pb.TunnelPortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: port_pb.TunnelPortResponse) => void): grpc.ClientUnaryCall;
|
|
96
|
+
public tunnel(request: port_pb.TunnelPortRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: port_pb.TunnelPortResponse) => void): grpc.ClientUnaryCall;
|
|
97
|
+
public closeTunnel(request: port_pb.CloseTunnelRequest, callback: (error: grpc.ServiceError | null, response: port_pb.CloseTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
98
|
+
public closeTunnel(request: port_pb.CloseTunnelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: port_pb.CloseTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
99
|
+
public closeTunnel(request: port_pb.CloseTunnelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: port_pb.CloseTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
100
|
+
public establishTunnel(options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<port_pb.EstablishTunnelRequest, port_pb.EstablishTunnelResponse>;
|
|
101
|
+
public establishTunnel(metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<port_pb.EstablishTunnelRequest, port_pb.EstablishTunnelResponse>;
|
|
102
|
+
public autoTunnel(request: port_pb.AutoTunnelRequest, callback: (error: grpc.ServiceError | null, response: port_pb.AutoTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
103
|
+
public autoTunnel(request: port_pb.AutoTunnelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: port_pb.AutoTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
104
|
+
public autoTunnel(request: port_pb.AutoTunnelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: port_pb.AutoTunnelResponse) => void): grpc.ClientUnaryCall;
|
|
105
|
+
public retryAutoExpose(request: port_pb.RetryAutoExposeRequest, callback: (error: grpc.ServiceError | null, response: port_pb.RetryAutoExposeResponse) => void): grpc.ClientUnaryCall;
|
|
106
|
+
public retryAutoExpose(request: port_pb.RetryAutoExposeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: port_pb.RetryAutoExposeResponse) => void): grpc.ClientUnaryCall;
|
|
107
|
+
public retryAutoExpose(request: port_pb.RetryAutoExposeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: port_pb.RetryAutoExposeResponse) => void): grpc.ClientUnaryCall;
|
|
108
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
// Original file comments:
|
|
4
|
+
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
|
|
5
|
+
// Licensed under the GNU Affero General Public License (AGPL).
|
|
6
|
+
// See License-AGPL.txt in the project root for license information.
|
|
7
|
+
//
|
|
8
|
+
'use strict';
|
|
9
|
+
var grpc = require('@grpc/grpc-js');
|
|
10
|
+
var port_pb = require('./port_pb.js');
|
|
11
|
+
|
|
12
|
+
function serialize_supervisor_AutoTunnelRequest(arg) {
|
|
13
|
+
if (!(arg instanceof port_pb.AutoTunnelRequest)) {
|
|
14
|
+
throw new Error('Expected argument of type supervisor.AutoTunnelRequest');
|
|
15
|
+
}
|
|
16
|
+
return Buffer.from(arg.serializeBinary());
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function deserialize_supervisor_AutoTunnelRequest(buffer_arg) {
|
|
20
|
+
return port_pb.AutoTunnelRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function serialize_supervisor_AutoTunnelResponse(arg) {
|
|
24
|
+
if (!(arg instanceof port_pb.AutoTunnelResponse)) {
|
|
25
|
+
throw new Error('Expected argument of type supervisor.AutoTunnelResponse');
|
|
26
|
+
}
|
|
27
|
+
return Buffer.from(arg.serializeBinary());
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function deserialize_supervisor_AutoTunnelResponse(buffer_arg) {
|
|
31
|
+
return port_pb.AutoTunnelResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function serialize_supervisor_CloseTunnelRequest(arg) {
|
|
35
|
+
if (!(arg instanceof port_pb.CloseTunnelRequest)) {
|
|
36
|
+
throw new Error('Expected argument of type supervisor.CloseTunnelRequest');
|
|
37
|
+
}
|
|
38
|
+
return Buffer.from(arg.serializeBinary());
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function deserialize_supervisor_CloseTunnelRequest(buffer_arg) {
|
|
42
|
+
return port_pb.CloseTunnelRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function serialize_supervisor_CloseTunnelResponse(arg) {
|
|
46
|
+
if (!(arg instanceof port_pb.CloseTunnelResponse)) {
|
|
47
|
+
throw new Error('Expected argument of type supervisor.CloseTunnelResponse');
|
|
48
|
+
}
|
|
49
|
+
return Buffer.from(arg.serializeBinary());
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function deserialize_supervisor_CloseTunnelResponse(buffer_arg) {
|
|
53
|
+
return port_pb.CloseTunnelResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function serialize_supervisor_EstablishTunnelRequest(arg) {
|
|
57
|
+
if (!(arg instanceof port_pb.EstablishTunnelRequest)) {
|
|
58
|
+
throw new Error('Expected argument of type supervisor.EstablishTunnelRequest');
|
|
59
|
+
}
|
|
60
|
+
return Buffer.from(arg.serializeBinary());
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function deserialize_supervisor_EstablishTunnelRequest(buffer_arg) {
|
|
64
|
+
return port_pb.EstablishTunnelRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function serialize_supervisor_EstablishTunnelResponse(arg) {
|
|
68
|
+
if (!(arg instanceof port_pb.EstablishTunnelResponse)) {
|
|
69
|
+
throw new Error('Expected argument of type supervisor.EstablishTunnelResponse');
|
|
70
|
+
}
|
|
71
|
+
return Buffer.from(arg.serializeBinary());
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function deserialize_supervisor_EstablishTunnelResponse(buffer_arg) {
|
|
75
|
+
return port_pb.EstablishTunnelResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function serialize_supervisor_RetryAutoExposeRequest(arg) {
|
|
79
|
+
if (!(arg instanceof port_pb.RetryAutoExposeRequest)) {
|
|
80
|
+
throw new Error('Expected argument of type supervisor.RetryAutoExposeRequest');
|
|
81
|
+
}
|
|
82
|
+
return Buffer.from(arg.serializeBinary());
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function deserialize_supervisor_RetryAutoExposeRequest(buffer_arg) {
|
|
86
|
+
return port_pb.RetryAutoExposeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function serialize_supervisor_RetryAutoExposeResponse(arg) {
|
|
90
|
+
if (!(arg instanceof port_pb.RetryAutoExposeResponse)) {
|
|
91
|
+
throw new Error('Expected argument of type supervisor.RetryAutoExposeResponse');
|
|
92
|
+
}
|
|
93
|
+
return Buffer.from(arg.serializeBinary());
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function deserialize_supervisor_RetryAutoExposeResponse(buffer_arg) {
|
|
97
|
+
return port_pb.RetryAutoExposeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function serialize_supervisor_TunnelPortRequest(arg) {
|
|
101
|
+
if (!(arg instanceof port_pb.TunnelPortRequest)) {
|
|
102
|
+
throw new Error('Expected argument of type supervisor.TunnelPortRequest');
|
|
103
|
+
}
|
|
104
|
+
return Buffer.from(arg.serializeBinary());
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function deserialize_supervisor_TunnelPortRequest(buffer_arg) {
|
|
108
|
+
return port_pb.TunnelPortRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function serialize_supervisor_TunnelPortResponse(arg) {
|
|
112
|
+
if (!(arg instanceof port_pb.TunnelPortResponse)) {
|
|
113
|
+
throw new Error('Expected argument of type supervisor.TunnelPortResponse');
|
|
114
|
+
}
|
|
115
|
+
return Buffer.from(arg.serializeBinary());
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function deserialize_supervisor_TunnelPortResponse(buffer_arg) {
|
|
119
|
+
return port_pb.TunnelPortResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
var PortServiceService = exports.PortServiceService = {
|
|
124
|
+
// Tunnel notifies clients to install listeners on remote machines.
|
|
125
|
+
// After that such clients should call EstablishTunnel to forward incoming connections.
|
|
126
|
+
tunnel: {
|
|
127
|
+
path: '/supervisor.PortService/Tunnel',
|
|
128
|
+
requestStream: false,
|
|
129
|
+
responseStream: false,
|
|
130
|
+
requestType: port_pb.TunnelPortRequest,
|
|
131
|
+
responseType: port_pb.TunnelPortResponse,
|
|
132
|
+
requestSerialize: serialize_supervisor_TunnelPortRequest,
|
|
133
|
+
requestDeserialize: deserialize_supervisor_TunnelPortRequest,
|
|
134
|
+
responseSerialize: serialize_supervisor_TunnelPortResponse,
|
|
135
|
+
responseDeserialize: deserialize_supervisor_TunnelPortResponse,
|
|
136
|
+
},
|
|
137
|
+
// CloseTunnel notifies clients to remove listeners on remote machines.
|
|
138
|
+
closeTunnel: {
|
|
139
|
+
path: '/supervisor.PortService/CloseTunnel',
|
|
140
|
+
requestStream: false,
|
|
141
|
+
responseStream: false,
|
|
142
|
+
requestType: port_pb.CloseTunnelRequest,
|
|
143
|
+
responseType: port_pb.CloseTunnelResponse,
|
|
144
|
+
requestSerialize: serialize_supervisor_CloseTunnelRequest,
|
|
145
|
+
requestDeserialize: deserialize_supervisor_CloseTunnelRequest,
|
|
146
|
+
responseSerialize: serialize_supervisor_CloseTunnelResponse,
|
|
147
|
+
responseDeserialize: deserialize_supervisor_CloseTunnelResponse,
|
|
148
|
+
},
|
|
149
|
+
// EstablishTunnel actually establishes the tunnel for an incoming connection on a remote machine.
|
|
150
|
+
establishTunnel: {
|
|
151
|
+
path: '/supervisor.PortService/EstablishTunnel',
|
|
152
|
+
requestStream: true,
|
|
153
|
+
responseStream: true,
|
|
154
|
+
requestType: port_pb.EstablishTunnelRequest,
|
|
155
|
+
responseType: port_pb.EstablishTunnelResponse,
|
|
156
|
+
requestSerialize: serialize_supervisor_EstablishTunnelRequest,
|
|
157
|
+
requestDeserialize: deserialize_supervisor_EstablishTunnelRequest,
|
|
158
|
+
responseSerialize: serialize_supervisor_EstablishTunnelResponse,
|
|
159
|
+
responseDeserialize: deserialize_supervisor_EstablishTunnelResponse,
|
|
160
|
+
},
|
|
161
|
+
// AutoTunnel controls enablement of auto tunneling
|
|
162
|
+
autoTunnel: {
|
|
163
|
+
path: '/supervisor.PortService/AutoTunnel',
|
|
164
|
+
requestStream: false,
|
|
165
|
+
responseStream: false,
|
|
166
|
+
requestType: port_pb.AutoTunnelRequest,
|
|
167
|
+
responseType: port_pb.AutoTunnelResponse,
|
|
168
|
+
requestSerialize: serialize_supervisor_AutoTunnelRequest,
|
|
169
|
+
requestDeserialize: deserialize_supervisor_AutoTunnelRequest,
|
|
170
|
+
responseSerialize: serialize_supervisor_AutoTunnelResponse,
|
|
171
|
+
responseDeserialize: deserialize_supervisor_AutoTunnelResponse,
|
|
172
|
+
},
|
|
173
|
+
// RetryAutoExpose retries auto exposing the give port
|
|
174
|
+
retryAutoExpose: {
|
|
175
|
+
path: '/supervisor.PortService/RetryAutoExpose',
|
|
176
|
+
requestStream: false,
|
|
177
|
+
responseStream: false,
|
|
178
|
+
requestType: port_pb.RetryAutoExposeRequest,
|
|
179
|
+
responseType: port_pb.RetryAutoExposeResponse,
|
|
180
|
+
requestSerialize: serialize_supervisor_RetryAutoExposeRequest,
|
|
181
|
+
requestDeserialize: deserialize_supervisor_RetryAutoExposeRequest,
|
|
182
|
+
responseSerialize: serialize_supervisor_RetryAutoExposeResponse,
|
|
183
|
+
responseDeserialize: deserialize_supervisor_RetryAutoExposeResponse,
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
exports.PortServiceClient = grpc.makeGenericClientConstructor(PortServiceService);
|
package/lib/port_pb.d.ts
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
// package: supervisor
|
|
2
|
+
// file: port.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
|
|
9
|
+
export class TunnelPortRequest extends jspb.Message {
|
|
10
|
+
getPort(): number;
|
|
11
|
+
setPort(value: number): TunnelPortRequest;
|
|
12
|
+
getTargetPort(): number;
|
|
13
|
+
setTargetPort(value: number): TunnelPortRequest;
|
|
14
|
+
getVisibility(): TunnelVisiblity;
|
|
15
|
+
setVisibility(value: TunnelVisiblity): TunnelPortRequest;
|
|
16
|
+
getClientId(): string;
|
|
17
|
+
setClientId(value: string): TunnelPortRequest;
|
|
18
|
+
|
|
19
|
+
serializeBinary(): Uint8Array;
|
|
20
|
+
toObject(includeInstance?: boolean): TunnelPortRequest.AsObject;
|
|
21
|
+
static toObject(includeInstance: boolean, msg: TunnelPortRequest): TunnelPortRequest.AsObject;
|
|
22
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
23
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
24
|
+
static serializeBinaryToWriter(message: TunnelPortRequest, writer: jspb.BinaryWriter): void;
|
|
25
|
+
static deserializeBinary(bytes: Uint8Array): TunnelPortRequest;
|
|
26
|
+
static deserializeBinaryFromReader(message: TunnelPortRequest, reader: jspb.BinaryReader): TunnelPortRequest;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export namespace TunnelPortRequest {
|
|
30
|
+
export type AsObject = {
|
|
31
|
+
port: number,
|
|
32
|
+
targetPort: number,
|
|
33
|
+
visibility: TunnelVisiblity,
|
|
34
|
+
clientId: string,
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class TunnelPortResponse extends jspb.Message {
|
|
39
|
+
|
|
40
|
+
serializeBinary(): Uint8Array;
|
|
41
|
+
toObject(includeInstance?: boolean): TunnelPortResponse.AsObject;
|
|
42
|
+
static toObject(includeInstance: boolean, msg: TunnelPortResponse): TunnelPortResponse.AsObject;
|
|
43
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
44
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
45
|
+
static serializeBinaryToWriter(message: TunnelPortResponse, writer: jspb.BinaryWriter): void;
|
|
46
|
+
static deserializeBinary(bytes: Uint8Array): TunnelPortResponse;
|
|
47
|
+
static deserializeBinaryFromReader(message: TunnelPortResponse, reader: jspb.BinaryReader): TunnelPortResponse;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export namespace TunnelPortResponse {
|
|
51
|
+
export type AsObject = {
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class CloseTunnelRequest extends jspb.Message {
|
|
56
|
+
getPort(): number;
|
|
57
|
+
setPort(value: number): CloseTunnelRequest;
|
|
58
|
+
|
|
59
|
+
serializeBinary(): Uint8Array;
|
|
60
|
+
toObject(includeInstance?: boolean): CloseTunnelRequest.AsObject;
|
|
61
|
+
static toObject(includeInstance: boolean, msg: CloseTunnelRequest): CloseTunnelRequest.AsObject;
|
|
62
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
63
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
64
|
+
static serializeBinaryToWriter(message: CloseTunnelRequest, writer: jspb.BinaryWriter): void;
|
|
65
|
+
static deserializeBinary(bytes: Uint8Array): CloseTunnelRequest;
|
|
66
|
+
static deserializeBinaryFromReader(message: CloseTunnelRequest, reader: jspb.BinaryReader): CloseTunnelRequest;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export namespace CloseTunnelRequest {
|
|
70
|
+
export type AsObject = {
|
|
71
|
+
port: number,
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export class CloseTunnelResponse extends jspb.Message {
|
|
76
|
+
|
|
77
|
+
serializeBinary(): Uint8Array;
|
|
78
|
+
toObject(includeInstance?: boolean): CloseTunnelResponse.AsObject;
|
|
79
|
+
static toObject(includeInstance: boolean, msg: CloseTunnelResponse): CloseTunnelResponse.AsObject;
|
|
80
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
81
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
82
|
+
static serializeBinaryToWriter(message: CloseTunnelResponse, writer: jspb.BinaryWriter): void;
|
|
83
|
+
static deserializeBinary(bytes: Uint8Array): CloseTunnelResponse;
|
|
84
|
+
static deserializeBinaryFromReader(message: CloseTunnelResponse, reader: jspb.BinaryReader): CloseTunnelResponse;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export namespace CloseTunnelResponse {
|
|
88
|
+
export type AsObject = {
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export class EstablishTunnelRequest extends jspb.Message {
|
|
93
|
+
|
|
94
|
+
hasDesc(): boolean;
|
|
95
|
+
clearDesc(): void;
|
|
96
|
+
getDesc(): TunnelPortRequest | undefined;
|
|
97
|
+
setDesc(value?: TunnelPortRequest): EstablishTunnelRequest;
|
|
98
|
+
|
|
99
|
+
hasData(): boolean;
|
|
100
|
+
clearData(): void;
|
|
101
|
+
getData(): Uint8Array | string;
|
|
102
|
+
getData_asU8(): Uint8Array;
|
|
103
|
+
getData_asB64(): string;
|
|
104
|
+
setData(value: Uint8Array | string): EstablishTunnelRequest;
|
|
105
|
+
|
|
106
|
+
getOutputCase(): EstablishTunnelRequest.OutputCase;
|
|
107
|
+
|
|
108
|
+
serializeBinary(): Uint8Array;
|
|
109
|
+
toObject(includeInstance?: boolean): EstablishTunnelRequest.AsObject;
|
|
110
|
+
static toObject(includeInstance: boolean, msg: EstablishTunnelRequest): EstablishTunnelRequest.AsObject;
|
|
111
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
112
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
113
|
+
static serializeBinaryToWriter(message: EstablishTunnelRequest, writer: jspb.BinaryWriter): void;
|
|
114
|
+
static deserializeBinary(bytes: Uint8Array): EstablishTunnelRequest;
|
|
115
|
+
static deserializeBinaryFromReader(message: EstablishTunnelRequest, reader: jspb.BinaryReader): EstablishTunnelRequest;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export namespace EstablishTunnelRequest {
|
|
119
|
+
export type AsObject = {
|
|
120
|
+
desc?: TunnelPortRequest.AsObject,
|
|
121
|
+
data: Uint8Array | string,
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export enum OutputCase {
|
|
125
|
+
OUTPUT_NOT_SET = 0,
|
|
126
|
+
DESC = 1,
|
|
127
|
+
DATA = 2,
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export class EstablishTunnelResponse extends jspb.Message {
|
|
133
|
+
getData(): Uint8Array | string;
|
|
134
|
+
getData_asU8(): Uint8Array;
|
|
135
|
+
getData_asB64(): string;
|
|
136
|
+
setData(value: Uint8Array | string): EstablishTunnelResponse;
|
|
137
|
+
|
|
138
|
+
serializeBinary(): Uint8Array;
|
|
139
|
+
toObject(includeInstance?: boolean): EstablishTunnelResponse.AsObject;
|
|
140
|
+
static toObject(includeInstance: boolean, msg: EstablishTunnelResponse): EstablishTunnelResponse.AsObject;
|
|
141
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
142
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
143
|
+
static serializeBinaryToWriter(message: EstablishTunnelResponse, writer: jspb.BinaryWriter): void;
|
|
144
|
+
static deserializeBinary(bytes: Uint8Array): EstablishTunnelResponse;
|
|
145
|
+
static deserializeBinaryFromReader(message: EstablishTunnelResponse, reader: jspb.BinaryReader): EstablishTunnelResponse;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export namespace EstablishTunnelResponse {
|
|
149
|
+
export type AsObject = {
|
|
150
|
+
data: Uint8Array | string,
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export class AutoTunnelRequest extends jspb.Message {
|
|
155
|
+
getEnabled(): boolean;
|
|
156
|
+
setEnabled(value: boolean): AutoTunnelRequest;
|
|
157
|
+
|
|
158
|
+
serializeBinary(): Uint8Array;
|
|
159
|
+
toObject(includeInstance?: boolean): AutoTunnelRequest.AsObject;
|
|
160
|
+
static toObject(includeInstance: boolean, msg: AutoTunnelRequest): AutoTunnelRequest.AsObject;
|
|
161
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
162
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
163
|
+
static serializeBinaryToWriter(message: AutoTunnelRequest, writer: jspb.BinaryWriter): void;
|
|
164
|
+
static deserializeBinary(bytes: Uint8Array): AutoTunnelRequest;
|
|
165
|
+
static deserializeBinaryFromReader(message: AutoTunnelRequest, reader: jspb.BinaryReader): AutoTunnelRequest;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export namespace AutoTunnelRequest {
|
|
169
|
+
export type AsObject = {
|
|
170
|
+
enabled: boolean,
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export class AutoTunnelResponse extends jspb.Message {
|
|
175
|
+
|
|
176
|
+
serializeBinary(): Uint8Array;
|
|
177
|
+
toObject(includeInstance?: boolean): AutoTunnelResponse.AsObject;
|
|
178
|
+
static toObject(includeInstance: boolean, msg: AutoTunnelResponse): AutoTunnelResponse.AsObject;
|
|
179
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
180
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
181
|
+
static serializeBinaryToWriter(message: AutoTunnelResponse, writer: jspb.BinaryWriter): void;
|
|
182
|
+
static deserializeBinary(bytes: Uint8Array): AutoTunnelResponse;
|
|
183
|
+
static deserializeBinaryFromReader(message: AutoTunnelResponse, reader: jspb.BinaryReader): AutoTunnelResponse;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export namespace AutoTunnelResponse {
|
|
187
|
+
export type AsObject = {
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export class RetryAutoExposeRequest extends jspb.Message {
|
|
192
|
+
getPort(): number;
|
|
193
|
+
setPort(value: number): RetryAutoExposeRequest;
|
|
194
|
+
|
|
195
|
+
serializeBinary(): Uint8Array;
|
|
196
|
+
toObject(includeInstance?: boolean): RetryAutoExposeRequest.AsObject;
|
|
197
|
+
static toObject(includeInstance: boolean, msg: RetryAutoExposeRequest): RetryAutoExposeRequest.AsObject;
|
|
198
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
199
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
200
|
+
static serializeBinaryToWriter(message: RetryAutoExposeRequest, writer: jspb.BinaryWriter): void;
|
|
201
|
+
static deserializeBinary(bytes: Uint8Array): RetryAutoExposeRequest;
|
|
202
|
+
static deserializeBinaryFromReader(message: RetryAutoExposeRequest, reader: jspb.BinaryReader): RetryAutoExposeRequest;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export namespace RetryAutoExposeRequest {
|
|
206
|
+
export type AsObject = {
|
|
207
|
+
port: number,
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export class RetryAutoExposeResponse extends jspb.Message {
|
|
212
|
+
|
|
213
|
+
serializeBinary(): Uint8Array;
|
|
214
|
+
toObject(includeInstance?: boolean): RetryAutoExposeResponse.AsObject;
|
|
215
|
+
static toObject(includeInstance: boolean, msg: RetryAutoExposeResponse): RetryAutoExposeResponse.AsObject;
|
|
216
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
217
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
218
|
+
static serializeBinaryToWriter(message: RetryAutoExposeResponse, writer: jspb.BinaryWriter): void;
|
|
219
|
+
static deserializeBinary(bytes: Uint8Array): RetryAutoExposeResponse;
|
|
220
|
+
static deserializeBinaryFromReader(message: RetryAutoExposeResponse, reader: jspb.BinaryReader): RetryAutoExposeResponse;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export namespace RetryAutoExposeResponse {
|
|
224
|
+
export type AsObject = {
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export enum TunnelVisiblity {
|
|
229
|
+
NONE = 0,
|
|
230
|
+
HOST = 1,
|
|
231
|
+
NETWORK = 2,
|
|
232
|
+
}
|