@gitpod/supervisor-api-grpcweb 0.1.5-pd-update-to-node-14-fork.2 → 0.1.5-pd-ssh-gateway-test.5
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_pb.d.ts +0 -4
- package/lib/control_pb.js +8 -32
- package/lib/info_pb.js +7 -1
- package/lib/notification_pb.js +7 -1
- package/lib/port_pb.js +7 -1
- package/lib/sshkey_pb.d.ts +41 -0
- package/lib/sshkey_pb.js +299 -0
- package/lib/sshkey_pb_service.d.ts +63 -0
- package/lib/sshkey_pb_service.js +61 -0
- package/lib/status_pb.d.ts +38 -4
- package/lib/status_pb.js +302 -33
- package/lib/terminal_pb.js +7 -1
- package/lib/token_pb.js +7 -1
- package/package.json +3 -2
- package/pkg-yarn.lock +1 -1
package/lib/control_pb.d.ts
CHANGED
|
@@ -7,9 +7,6 @@ export class ExposePortRequest extends jspb.Message {
|
|
|
7
7
|
getPort(): number;
|
|
8
8
|
setPort(value: number): void;
|
|
9
9
|
|
|
10
|
-
getTargetPort(): number;
|
|
11
|
-
setTargetPort(value: number): void;
|
|
12
|
-
|
|
13
10
|
serializeBinary(): Uint8Array;
|
|
14
11
|
toObject(includeInstance?: boolean): ExposePortRequest.AsObject;
|
|
15
12
|
static toObject(includeInstance: boolean, msg: ExposePortRequest): ExposePortRequest.AsObject;
|
|
@@ -23,7 +20,6 @@ export class ExposePortRequest extends jspb.Message {
|
|
|
23
20
|
export namespace ExposePortRequest {
|
|
24
21
|
export type AsObject = {
|
|
25
22
|
port: number,
|
|
26
|
-
targetPort: number,
|
|
27
23
|
}
|
|
28
24
|
}
|
|
29
25
|
|
package/lib/control_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.ExposePortRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.ExposePortResponse', null, global);
|
|
@@ -91,8 +97,7 @@ proto.supervisor.ExposePortRequest.prototype.toObject = function(opt_includeInst
|
|
|
91
97
|
*/
|
|
92
98
|
proto.supervisor.ExposePortRequest.toObject = function(includeInstance, msg) {
|
|
93
99
|
var f, obj = {
|
|
94
|
-
port: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
95
|
-
targetPort: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
100
|
+
port: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
96
101
|
};
|
|
97
102
|
|
|
98
103
|
if (includeInstance) {
|
|
@@ -133,10 +138,6 @@ proto.supervisor.ExposePortRequest.deserializeBinaryFromReader = function(msg, r
|
|
|
133
138
|
var value = /** @type {number} */ (reader.readUint32());
|
|
134
139
|
msg.setPort(value);
|
|
135
140
|
break;
|
|
136
|
-
case 2:
|
|
137
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
138
|
-
msg.setTargetPort(value);
|
|
139
|
-
break;
|
|
140
141
|
default:
|
|
141
142
|
reader.skipField();
|
|
142
143
|
break;
|
|
@@ -173,13 +174,6 @@ proto.supervisor.ExposePortRequest.serializeBinaryToWriter = function(message, w
|
|
|
173
174
|
f
|
|
174
175
|
);
|
|
175
176
|
}
|
|
176
|
-
f = message.getTargetPort();
|
|
177
|
-
if (f !== 0) {
|
|
178
|
-
writer.writeUint32(
|
|
179
|
-
2,
|
|
180
|
-
f
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
177
|
};
|
|
184
178
|
|
|
185
179
|
|
|
@@ -201,24 +195,6 @@ proto.supervisor.ExposePortRequest.prototype.setPort = function(value) {
|
|
|
201
195
|
};
|
|
202
196
|
|
|
203
197
|
|
|
204
|
-
/**
|
|
205
|
-
* optional uint32 target_port = 2;
|
|
206
|
-
* @return {number}
|
|
207
|
-
*/
|
|
208
|
-
proto.supervisor.ExposePortRequest.prototype.getTargetPort = function() {
|
|
209
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* @param {number} value
|
|
215
|
-
* @return {!proto.supervisor.ExposePortRequest} returns this
|
|
216
|
-
*/
|
|
217
|
-
proto.supervisor.ExposePortRequest.prototype.setTargetPort = function(value) {
|
|
218
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
|
|
222
198
|
|
|
223
199
|
|
|
224
200
|
|
package/lib/info_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.WorkspaceInfoRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.WorkspaceInfoResponse', null, global);
|
package/lib/notification_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.NotifyRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.NotifyRequest.Level', null, global);
|
package/lib/port_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.AutoTunnelRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.AutoTunnelResponse', null, global);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// package: supervisor
|
|
2
|
+
// file: sshkey.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
|
|
6
|
+
export class CreateSSHKeyPairRequest extends jspb.Message {
|
|
7
|
+
serializeBinary(): Uint8Array;
|
|
8
|
+
toObject(includeInstance?: boolean): CreateSSHKeyPairRequest.AsObject;
|
|
9
|
+
static toObject(includeInstance: boolean, msg: CreateSSHKeyPairRequest): CreateSSHKeyPairRequest.AsObject;
|
|
10
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
11
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
12
|
+
static serializeBinaryToWriter(message: CreateSSHKeyPairRequest, writer: jspb.BinaryWriter): void;
|
|
13
|
+
static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairRequest;
|
|
14
|
+
static deserializeBinaryFromReader(message: CreateSSHKeyPairRequest, reader: jspb.BinaryReader): CreateSSHKeyPairRequest;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export namespace CreateSSHKeyPairRequest {
|
|
18
|
+
export type AsObject = {
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class CreateSSHKeyPairResponse extends jspb.Message {
|
|
23
|
+
getPrivateKey(): string;
|
|
24
|
+
setPrivateKey(value: string): void;
|
|
25
|
+
|
|
26
|
+
serializeBinary(): Uint8Array;
|
|
27
|
+
toObject(includeInstance?: boolean): CreateSSHKeyPairResponse.AsObject;
|
|
28
|
+
static toObject(includeInstance: boolean, msg: CreateSSHKeyPairResponse): CreateSSHKeyPairResponse.AsObject;
|
|
29
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
30
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
31
|
+
static serializeBinaryToWriter(message: CreateSSHKeyPairResponse, writer: jspb.BinaryWriter): void;
|
|
32
|
+
static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairResponse;
|
|
33
|
+
static deserializeBinaryFromReader(message: CreateSSHKeyPairResponse, reader: jspb.BinaryReader): CreateSSHKeyPairResponse;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace CreateSSHKeyPairResponse {
|
|
37
|
+
export type AsObject = {
|
|
38
|
+
privateKey: string,
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
package/lib/sshkey_pb.js
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
// source: sshkey.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
goog.exportSymbol('proto.supervisor.CreateSSHKeyPairRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.supervisor.CreateSSHKeyPairResponse', null, global);
|
|
26
|
+
/**
|
|
27
|
+
* Generated by JsPbCodeGenerator.
|
|
28
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
29
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
30
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
31
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
32
|
+
* valid.
|
|
33
|
+
* @extends {jspb.Message}
|
|
34
|
+
* @constructor
|
|
35
|
+
*/
|
|
36
|
+
proto.supervisor.CreateSSHKeyPairRequest = function(opt_data) {
|
|
37
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
38
|
+
};
|
|
39
|
+
goog.inherits(proto.supervisor.CreateSSHKeyPairRequest, jspb.Message);
|
|
40
|
+
if (goog.DEBUG && !COMPILED) {
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
* @override
|
|
44
|
+
*/
|
|
45
|
+
proto.supervisor.CreateSSHKeyPairRequest.displayName = 'proto.supervisor.CreateSSHKeyPairRequest';
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Generated by JsPbCodeGenerator.
|
|
49
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
50
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
51
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
52
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
53
|
+
* valid.
|
|
54
|
+
* @extends {jspb.Message}
|
|
55
|
+
* @constructor
|
|
56
|
+
*/
|
|
57
|
+
proto.supervisor.CreateSSHKeyPairResponse = function(opt_data) {
|
|
58
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
59
|
+
};
|
|
60
|
+
goog.inherits(proto.supervisor.CreateSSHKeyPairResponse, jspb.Message);
|
|
61
|
+
if (goog.DEBUG && !COMPILED) {
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
* @override
|
|
65
|
+
*/
|
|
66
|
+
proto.supervisor.CreateSSHKeyPairResponse.displayName = 'proto.supervisor.CreateSSHKeyPairResponse';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
72
|
+
/**
|
|
73
|
+
* Creates an object representation of this proto.
|
|
74
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
75
|
+
* Optional fields that are not set will be set to undefined.
|
|
76
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
77
|
+
* For the list of reserved names please see:
|
|
78
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
79
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
80
|
+
* JSPB instance for transitional soy proto support:
|
|
81
|
+
* http://goto/soy-param-migration
|
|
82
|
+
* @return {!Object}
|
|
83
|
+
*/
|
|
84
|
+
proto.supervisor.CreateSSHKeyPairRequest.prototype.toObject = function(opt_includeInstance) {
|
|
85
|
+
return proto.supervisor.CreateSSHKeyPairRequest.toObject(opt_includeInstance, this);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Static version of the {@see toObject} method.
|
|
91
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
92
|
+
* the JSPB instance for transitional soy proto support:
|
|
93
|
+
* http://goto/soy-param-migration
|
|
94
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} msg The msg instance to transform.
|
|
95
|
+
* @return {!Object}
|
|
96
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
97
|
+
*/
|
|
98
|
+
proto.supervisor.CreateSSHKeyPairRequest.toObject = function(includeInstance, msg) {
|
|
99
|
+
var f, obj = {
|
|
100
|
+
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
if (includeInstance) {
|
|
104
|
+
obj.$jspbMessageInstance = msg;
|
|
105
|
+
}
|
|
106
|
+
return obj;
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Deserializes binary data (in protobuf wire format).
|
|
113
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
114
|
+
* @return {!proto.supervisor.CreateSSHKeyPairRequest}
|
|
115
|
+
*/
|
|
116
|
+
proto.supervisor.CreateSSHKeyPairRequest.deserializeBinary = function(bytes) {
|
|
117
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
118
|
+
var msg = new proto.supervisor.CreateSSHKeyPairRequest;
|
|
119
|
+
return proto.supervisor.CreateSSHKeyPairRequest.deserializeBinaryFromReader(msg, reader);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
125
|
+
* given reader into the given message object.
|
|
126
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} msg The message object to deserialize into.
|
|
127
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
128
|
+
* @return {!proto.supervisor.CreateSSHKeyPairRequest}
|
|
129
|
+
*/
|
|
130
|
+
proto.supervisor.CreateSSHKeyPairRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
131
|
+
while (reader.nextField()) {
|
|
132
|
+
if (reader.isEndGroup()) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
var field = reader.getFieldNumber();
|
|
136
|
+
switch (field) {
|
|
137
|
+
default:
|
|
138
|
+
reader.skipField();
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return msg;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
148
|
+
* @return {!Uint8Array}
|
|
149
|
+
*/
|
|
150
|
+
proto.supervisor.CreateSSHKeyPairRequest.prototype.serializeBinary = function() {
|
|
151
|
+
var writer = new jspb.BinaryWriter();
|
|
152
|
+
proto.supervisor.CreateSSHKeyPairRequest.serializeBinaryToWriter(this, writer);
|
|
153
|
+
return writer.getResultBuffer();
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
159
|
+
* format), writing to the given BinaryWriter.
|
|
160
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} message
|
|
161
|
+
* @param {!jspb.BinaryWriter} writer
|
|
162
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
163
|
+
*/
|
|
164
|
+
proto.supervisor.CreateSSHKeyPairRequest.serializeBinaryToWriter = function(message, writer) {
|
|
165
|
+
var f = undefined;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
173
|
+
/**
|
|
174
|
+
* Creates an object representation of this proto.
|
|
175
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
176
|
+
* Optional fields that are not set will be set to undefined.
|
|
177
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
178
|
+
* For the list of reserved names please see:
|
|
179
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
180
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
181
|
+
* JSPB instance for transitional soy proto support:
|
|
182
|
+
* http://goto/soy-param-migration
|
|
183
|
+
* @return {!Object}
|
|
184
|
+
*/
|
|
185
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.toObject = function(opt_includeInstance) {
|
|
186
|
+
return proto.supervisor.CreateSSHKeyPairResponse.toObject(opt_includeInstance, this);
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Static version of the {@see toObject} method.
|
|
192
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
193
|
+
* the JSPB instance for transitional soy proto support:
|
|
194
|
+
* http://goto/soy-param-migration
|
|
195
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} msg The msg instance to transform.
|
|
196
|
+
* @return {!Object}
|
|
197
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
198
|
+
*/
|
|
199
|
+
proto.supervisor.CreateSSHKeyPairResponse.toObject = function(includeInstance, msg) {
|
|
200
|
+
var f, obj = {
|
|
201
|
+
privateKey: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
if (includeInstance) {
|
|
205
|
+
obj.$jspbMessageInstance = msg;
|
|
206
|
+
}
|
|
207
|
+
return obj;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Deserializes binary data (in protobuf wire format).
|
|
214
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
215
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse}
|
|
216
|
+
*/
|
|
217
|
+
proto.supervisor.CreateSSHKeyPairResponse.deserializeBinary = function(bytes) {
|
|
218
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
219
|
+
var msg = new proto.supervisor.CreateSSHKeyPairResponse;
|
|
220
|
+
return proto.supervisor.CreateSSHKeyPairResponse.deserializeBinaryFromReader(msg, reader);
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
226
|
+
* given reader into the given message object.
|
|
227
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} msg The message object to deserialize into.
|
|
228
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
229
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse}
|
|
230
|
+
*/
|
|
231
|
+
proto.supervisor.CreateSSHKeyPairResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
232
|
+
while (reader.nextField()) {
|
|
233
|
+
if (reader.isEndGroup()) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
var field = reader.getFieldNumber();
|
|
237
|
+
switch (field) {
|
|
238
|
+
case 1:
|
|
239
|
+
var value = /** @type {string} */ (reader.readString());
|
|
240
|
+
msg.setPrivateKey(value);
|
|
241
|
+
break;
|
|
242
|
+
default:
|
|
243
|
+
reader.skipField();
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return msg;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
253
|
+
* @return {!Uint8Array}
|
|
254
|
+
*/
|
|
255
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.serializeBinary = function() {
|
|
256
|
+
var writer = new jspb.BinaryWriter();
|
|
257
|
+
proto.supervisor.CreateSSHKeyPairResponse.serializeBinaryToWriter(this, writer);
|
|
258
|
+
return writer.getResultBuffer();
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
264
|
+
* format), writing to the given BinaryWriter.
|
|
265
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} message
|
|
266
|
+
* @param {!jspb.BinaryWriter} writer
|
|
267
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
268
|
+
*/
|
|
269
|
+
proto.supervisor.CreateSSHKeyPairResponse.serializeBinaryToWriter = function(message, writer) {
|
|
270
|
+
var f = undefined;
|
|
271
|
+
f = message.getPrivateKey();
|
|
272
|
+
if (f.length > 0) {
|
|
273
|
+
writer.writeString(
|
|
274
|
+
1,
|
|
275
|
+
f
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* optional string private_key = 1;
|
|
283
|
+
* @return {string}
|
|
284
|
+
*/
|
|
285
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.getPrivateKey = function() {
|
|
286
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @param {string} value
|
|
292
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse} returns this
|
|
293
|
+
*/
|
|
294
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.setPrivateKey = function(value) {
|
|
295
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
goog.object.extend(exports, proto.supervisor);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// package: supervisor
|
|
2
|
+
// file: sshkey.proto
|
|
3
|
+
|
|
4
|
+
import * as sshkey_pb from "./sshkey_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type SSHKeyServiceCreateSSHKeyPair = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof SSHKeyService;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof sshkey_pb.CreateSSHKeyPairRequest;
|
|
13
|
+
readonly responseType: typeof sshkey_pb.CreateSSHKeyPairResponse;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export class SSHKeyService {
|
|
17
|
+
static readonly serviceName: string;
|
|
18
|
+
static readonly CreateSSHKeyPair: SSHKeyServiceCreateSSHKeyPair;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
22
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
23
|
+
|
|
24
|
+
interface UnaryResponse {
|
|
25
|
+
cancel(): void;
|
|
26
|
+
}
|
|
27
|
+
interface ResponseStream<T> {
|
|
28
|
+
cancel(): void;
|
|
29
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
30
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
31
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
32
|
+
}
|
|
33
|
+
interface RequestStream<T> {
|
|
34
|
+
write(message: T): RequestStream<T>;
|
|
35
|
+
end(): void;
|
|
36
|
+
cancel(): void;
|
|
37
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
38
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
39
|
+
}
|
|
40
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
41
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
42
|
+
end(): void;
|
|
43
|
+
cancel(): void;
|
|
44
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
45
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
46
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class SSHKeyServiceClient {
|
|
50
|
+
readonly serviceHost: string;
|
|
51
|
+
|
|
52
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
53
|
+
createSSHKeyPair(
|
|
54
|
+
requestMessage: sshkey_pb.CreateSSHKeyPairRequest,
|
|
55
|
+
metadata: grpc.Metadata,
|
|
56
|
+
callback: (error: ServiceError|null, responseMessage: sshkey_pb.CreateSSHKeyPairResponse|null) => void
|
|
57
|
+
): UnaryResponse;
|
|
58
|
+
createSSHKeyPair(
|
|
59
|
+
requestMessage: sshkey_pb.CreateSSHKeyPairRequest,
|
|
60
|
+
callback: (error: ServiceError|null, responseMessage: sshkey_pb.CreateSSHKeyPairResponse|null) => void
|
|
61
|
+
): UnaryResponse;
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// package: supervisor
|
|
2
|
+
// file: sshkey.proto
|
|
3
|
+
|
|
4
|
+
var sshkey_pb = require("./sshkey_pb");
|
|
5
|
+
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
6
|
+
|
|
7
|
+
var SSHKeyService = (function () {
|
|
8
|
+
function SSHKeyService() {}
|
|
9
|
+
SSHKeyService.serviceName = "supervisor.SSHKeyService";
|
|
10
|
+
return SSHKeyService;
|
|
11
|
+
}());
|
|
12
|
+
|
|
13
|
+
SSHKeyService.CreateSSHKeyPair = {
|
|
14
|
+
methodName: "CreateSSHKeyPair",
|
|
15
|
+
service: SSHKeyService,
|
|
16
|
+
requestStream: false,
|
|
17
|
+
responseStream: false,
|
|
18
|
+
requestType: sshkey_pb.CreateSSHKeyPairRequest,
|
|
19
|
+
responseType: sshkey_pb.CreateSSHKeyPairResponse
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.SSHKeyService = SSHKeyService;
|
|
23
|
+
|
|
24
|
+
function SSHKeyServiceClient(serviceHost, options) {
|
|
25
|
+
this.serviceHost = serviceHost;
|
|
26
|
+
this.options = options || {};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
SSHKeyServiceClient.prototype.createSSHKeyPair = function createSSHKeyPair(requestMessage, metadata, callback) {
|
|
30
|
+
if (arguments.length === 2) {
|
|
31
|
+
callback = arguments[1];
|
|
32
|
+
}
|
|
33
|
+
var client = grpc.unary(SSHKeyService.CreateSSHKeyPair, {
|
|
34
|
+
request: requestMessage,
|
|
35
|
+
host: this.serviceHost,
|
|
36
|
+
metadata: metadata,
|
|
37
|
+
transport: this.options.transport,
|
|
38
|
+
debug: this.options.debug,
|
|
39
|
+
onEnd: function (response) {
|
|
40
|
+
if (callback) {
|
|
41
|
+
if (response.status !== grpc.Code.OK) {
|
|
42
|
+
var err = new Error(response.statusMessage);
|
|
43
|
+
err.code = response.status;
|
|
44
|
+
err.metadata = response.trailers;
|
|
45
|
+
callback(err, null);
|
|
46
|
+
} else {
|
|
47
|
+
callback(null, response.message);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return {
|
|
53
|
+
cancel: function () {
|
|
54
|
+
callback = null;
|
|
55
|
+
client.close();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
exports.SSHKeyServiceClient = SSHKeyServiceClient;
|
|
61
|
+
|
package/lib/status_pb.d.ts
CHANGED
|
@@ -64,6 +64,11 @@ export class IDEStatusResponse extends jspb.Message {
|
|
|
64
64
|
getOk(): boolean;
|
|
65
65
|
setOk(value: boolean): void;
|
|
66
66
|
|
|
67
|
+
hasDesktop(): boolean;
|
|
68
|
+
clearDesktop(): void;
|
|
69
|
+
getDesktop(): IDEStatusResponse.DesktopStatus | undefined;
|
|
70
|
+
setDesktop(value?: IDEStatusResponse.DesktopStatus): void;
|
|
71
|
+
|
|
67
72
|
serializeBinary(): Uint8Array;
|
|
68
73
|
toObject(includeInstance?: boolean): IDEStatusResponse.AsObject;
|
|
69
74
|
static toObject(includeInstance: boolean, msg: IDEStatusResponse): IDEStatusResponse.AsObject;
|
|
@@ -77,6 +82,31 @@ export class IDEStatusResponse extends jspb.Message {
|
|
|
77
82
|
export namespace IDEStatusResponse {
|
|
78
83
|
export type AsObject = {
|
|
79
84
|
ok: boolean,
|
|
85
|
+
desktop?: IDEStatusResponse.DesktopStatus.AsObject,
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class DesktopStatus extends jspb.Message {
|
|
89
|
+
getLink(): string;
|
|
90
|
+
setLink(value: string): void;
|
|
91
|
+
|
|
92
|
+
getLabel(): string;
|
|
93
|
+
setLabel(value: string): void;
|
|
94
|
+
|
|
95
|
+
serializeBinary(): Uint8Array;
|
|
96
|
+
toObject(includeInstance?: boolean): DesktopStatus.AsObject;
|
|
97
|
+
static toObject(includeInstance: boolean, msg: DesktopStatus): DesktopStatus.AsObject;
|
|
98
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
99
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
100
|
+
static serializeBinaryToWriter(message: DesktopStatus, writer: jspb.BinaryWriter): void;
|
|
101
|
+
static deserializeBinary(bytes: Uint8Array): DesktopStatus;
|
|
102
|
+
static deserializeBinaryFromReader(message: DesktopStatus, reader: jspb.BinaryReader): DesktopStatus;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export namespace DesktopStatus {
|
|
106
|
+
export type AsObject = {
|
|
107
|
+
link: string,
|
|
108
|
+
label: string,
|
|
109
|
+
}
|
|
80
110
|
}
|
|
81
111
|
}
|
|
82
112
|
|
|
@@ -261,9 +291,6 @@ export class PortsStatus extends jspb.Message {
|
|
|
261
291
|
getLocalPort(): number;
|
|
262
292
|
setLocalPort(value: number): void;
|
|
263
293
|
|
|
264
|
-
getGlobalPort(): number;
|
|
265
|
-
setGlobalPort(value: number): void;
|
|
266
|
-
|
|
267
294
|
getServed(): boolean;
|
|
268
295
|
setServed(value: boolean): void;
|
|
269
296
|
|
|
@@ -280,6 +307,12 @@ export class PortsStatus extends jspb.Message {
|
|
|
280
307
|
getTunneled(): TunneledPortInfo | undefined;
|
|
281
308
|
setTunneled(value?: TunneledPortInfo): void;
|
|
282
309
|
|
|
310
|
+
getDescription(): string;
|
|
311
|
+
setDescription(value: string): void;
|
|
312
|
+
|
|
313
|
+
getName(): string;
|
|
314
|
+
setName(value: string): void;
|
|
315
|
+
|
|
283
316
|
serializeBinary(): Uint8Array;
|
|
284
317
|
toObject(includeInstance?: boolean): PortsStatus.AsObject;
|
|
285
318
|
static toObject(includeInstance: boolean, msg: PortsStatus): PortsStatus.AsObject;
|
|
@@ -293,11 +326,12 @@ export class PortsStatus extends jspb.Message {
|
|
|
293
326
|
export namespace PortsStatus {
|
|
294
327
|
export type AsObject = {
|
|
295
328
|
localPort: number,
|
|
296
|
-
globalPort: number,
|
|
297
329
|
served: boolean,
|
|
298
330
|
exposed?: ExposedPortInfo.AsObject,
|
|
299
331
|
autoExposure: PortAutoExposureMap[keyof PortAutoExposureMap],
|
|
300
332
|
tunneled?: TunneledPortInfo.AsObject,
|
|
333
|
+
description: string,
|
|
334
|
+
name: string,
|
|
301
335
|
}
|
|
302
336
|
}
|
|
303
337
|
|
package/lib/status_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var port_pb = require('./port_pb.js');
|
|
19
25
|
goog.object.extend(proto, port_pb);
|
|
@@ -25,6 +31,7 @@ goog.exportSymbol('proto.supervisor.ContentStatusResponse', null, global);
|
|
|
25
31
|
goog.exportSymbol('proto.supervisor.ExposedPortInfo', null, global);
|
|
26
32
|
goog.exportSymbol('proto.supervisor.IDEStatusRequest', null, global);
|
|
27
33
|
goog.exportSymbol('proto.supervisor.IDEStatusResponse', null, global);
|
|
34
|
+
goog.exportSymbol('proto.supervisor.IDEStatusResponse.DesktopStatus', null, global);
|
|
28
35
|
goog.exportSymbol('proto.supervisor.OnPortExposedAction', null, global);
|
|
29
36
|
goog.exportSymbol('proto.supervisor.PortAutoExposure', null, global);
|
|
30
37
|
goog.exportSymbol('proto.supervisor.PortVisibility', null, global);
|
|
@@ -123,6 +130,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
123
130
|
*/
|
|
124
131
|
proto.supervisor.IDEStatusResponse.displayName = 'proto.supervisor.IDEStatusResponse';
|
|
125
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Generated by JsPbCodeGenerator.
|
|
135
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
136
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
137
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
138
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
139
|
+
* valid.
|
|
140
|
+
* @extends {jspb.Message}
|
|
141
|
+
* @constructor
|
|
142
|
+
*/
|
|
143
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus = function(opt_data) {
|
|
144
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
145
|
+
};
|
|
146
|
+
goog.inherits(proto.supervisor.IDEStatusResponse.DesktopStatus, jspb.Message);
|
|
147
|
+
if (goog.DEBUG && !COMPILED) {
|
|
148
|
+
/**
|
|
149
|
+
* @public
|
|
150
|
+
* @override
|
|
151
|
+
*/
|
|
152
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.displayName = 'proto.supervisor.IDEStatusResponse.DesktopStatus';
|
|
153
|
+
}
|
|
126
154
|
/**
|
|
127
155
|
* Generated by JsPbCodeGenerator.
|
|
128
156
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -789,7 +817,8 @@ proto.supervisor.IDEStatusResponse.prototype.toObject = function(opt_includeInst
|
|
|
789
817
|
*/
|
|
790
818
|
proto.supervisor.IDEStatusResponse.toObject = function(includeInstance, msg) {
|
|
791
819
|
var f, obj = {
|
|
792
|
-
ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
820
|
+
ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
821
|
+
desktop: (f = msg.getDesktop()) && proto.supervisor.IDEStatusResponse.DesktopStatus.toObject(includeInstance, f)
|
|
793
822
|
};
|
|
794
823
|
|
|
795
824
|
if (includeInstance) {
|
|
@@ -830,6 +859,11 @@ proto.supervisor.IDEStatusResponse.deserializeBinaryFromReader = function(msg, r
|
|
|
830
859
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
831
860
|
msg.setOk(value);
|
|
832
861
|
break;
|
|
862
|
+
case 2:
|
|
863
|
+
var value = new proto.supervisor.IDEStatusResponse.DesktopStatus;
|
|
864
|
+
reader.readMessage(value,proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader);
|
|
865
|
+
msg.setDesktop(value);
|
|
866
|
+
break;
|
|
833
867
|
default:
|
|
834
868
|
reader.skipField();
|
|
835
869
|
break;
|
|
@@ -866,6 +900,174 @@ proto.supervisor.IDEStatusResponse.serializeBinaryToWriter = function(message, w
|
|
|
866
900
|
f
|
|
867
901
|
);
|
|
868
902
|
}
|
|
903
|
+
f = message.getDesktop();
|
|
904
|
+
if (f != null) {
|
|
905
|
+
writer.writeMessage(
|
|
906
|
+
2,
|
|
907
|
+
f,
|
|
908
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter
|
|
909
|
+
);
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
918
|
+
/**
|
|
919
|
+
* Creates an object representation of this proto.
|
|
920
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
921
|
+
* Optional fields that are not set will be set to undefined.
|
|
922
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
923
|
+
* For the list of reserved names please see:
|
|
924
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
925
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
926
|
+
* JSPB instance for transitional soy proto support:
|
|
927
|
+
* http://goto/soy-param-migration
|
|
928
|
+
* @return {!Object}
|
|
929
|
+
*/
|
|
930
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.toObject = function(opt_includeInstance) {
|
|
931
|
+
return proto.supervisor.IDEStatusResponse.DesktopStatus.toObject(opt_includeInstance, this);
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Static version of the {@see toObject} method.
|
|
937
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
938
|
+
* the JSPB instance for transitional soy proto support:
|
|
939
|
+
* http://goto/soy-param-migration
|
|
940
|
+
* @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} msg The msg instance to transform.
|
|
941
|
+
* @return {!Object}
|
|
942
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
943
|
+
*/
|
|
944
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.toObject = function(includeInstance, msg) {
|
|
945
|
+
var f, obj = {
|
|
946
|
+
link: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
947
|
+
label: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
if (includeInstance) {
|
|
951
|
+
obj.$jspbMessageInstance = msg;
|
|
952
|
+
}
|
|
953
|
+
return obj;
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Deserializes binary data (in protobuf wire format).
|
|
960
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
961
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus}
|
|
962
|
+
*/
|
|
963
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinary = function(bytes) {
|
|
964
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
965
|
+
var msg = new proto.supervisor.IDEStatusResponse.DesktopStatus;
|
|
966
|
+
return proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader(msg, reader);
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
972
|
+
* given reader into the given message object.
|
|
973
|
+
* @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} msg The message object to deserialize into.
|
|
974
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
975
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus}
|
|
976
|
+
*/
|
|
977
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
978
|
+
while (reader.nextField()) {
|
|
979
|
+
if (reader.isEndGroup()) {
|
|
980
|
+
break;
|
|
981
|
+
}
|
|
982
|
+
var field = reader.getFieldNumber();
|
|
983
|
+
switch (field) {
|
|
984
|
+
case 1:
|
|
985
|
+
var value = /** @type {string} */ (reader.readString());
|
|
986
|
+
msg.setLink(value);
|
|
987
|
+
break;
|
|
988
|
+
case 2:
|
|
989
|
+
var value = /** @type {string} */ (reader.readString());
|
|
990
|
+
msg.setLabel(value);
|
|
991
|
+
break;
|
|
992
|
+
default:
|
|
993
|
+
reader.skipField();
|
|
994
|
+
break;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
return msg;
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1003
|
+
* @return {!Uint8Array}
|
|
1004
|
+
*/
|
|
1005
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.serializeBinary = function() {
|
|
1006
|
+
var writer = new jspb.BinaryWriter();
|
|
1007
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter(this, writer);
|
|
1008
|
+
return writer.getResultBuffer();
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1014
|
+
* format), writing to the given BinaryWriter.
|
|
1015
|
+
* @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} message
|
|
1016
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1017
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1018
|
+
*/
|
|
1019
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter = function(message, writer) {
|
|
1020
|
+
var f = undefined;
|
|
1021
|
+
f = message.getLink();
|
|
1022
|
+
if (f.length > 0) {
|
|
1023
|
+
writer.writeString(
|
|
1024
|
+
1,
|
|
1025
|
+
f
|
|
1026
|
+
);
|
|
1027
|
+
}
|
|
1028
|
+
f = message.getLabel();
|
|
1029
|
+
if (f.length > 0) {
|
|
1030
|
+
writer.writeString(
|
|
1031
|
+
2,
|
|
1032
|
+
f
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* optional string link = 1;
|
|
1040
|
+
* @return {string}
|
|
1041
|
+
*/
|
|
1042
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getLink = function() {
|
|
1043
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* @param {string} value
|
|
1049
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
|
|
1050
|
+
*/
|
|
1051
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLink = function(value) {
|
|
1052
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* optional string label = 2;
|
|
1058
|
+
* @return {string}
|
|
1059
|
+
*/
|
|
1060
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getLabel = function() {
|
|
1061
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* @param {string} value
|
|
1067
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
|
|
1068
|
+
*/
|
|
1069
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLabel = function(value) {
|
|
1070
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
869
1071
|
};
|
|
870
1072
|
|
|
871
1073
|
|
|
@@ -887,6 +1089,43 @@ proto.supervisor.IDEStatusResponse.prototype.setOk = function(value) {
|
|
|
887
1089
|
};
|
|
888
1090
|
|
|
889
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* optional DesktopStatus desktop = 2;
|
|
1094
|
+
* @return {?proto.supervisor.IDEStatusResponse.DesktopStatus}
|
|
1095
|
+
*/
|
|
1096
|
+
proto.supervisor.IDEStatusResponse.prototype.getDesktop = function() {
|
|
1097
|
+
return /** @type{?proto.supervisor.IDEStatusResponse.DesktopStatus} */ (
|
|
1098
|
+
jspb.Message.getWrapperField(this, proto.supervisor.IDEStatusResponse.DesktopStatus, 2));
|
|
1099
|
+
};
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* @param {?proto.supervisor.IDEStatusResponse.DesktopStatus|undefined} value
|
|
1104
|
+
* @return {!proto.supervisor.IDEStatusResponse} returns this
|
|
1105
|
+
*/
|
|
1106
|
+
proto.supervisor.IDEStatusResponse.prototype.setDesktop = function(value) {
|
|
1107
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Clears the message field making it undefined.
|
|
1113
|
+
* @return {!proto.supervisor.IDEStatusResponse} returns this
|
|
1114
|
+
*/
|
|
1115
|
+
proto.supervisor.IDEStatusResponse.prototype.clearDesktop = function() {
|
|
1116
|
+
return this.setDesktop(undefined);
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Returns whether this field is set.
|
|
1122
|
+
* @return {boolean}
|
|
1123
|
+
*/
|
|
1124
|
+
proto.supervisor.IDEStatusResponse.prototype.hasDesktop = function() {
|
|
1125
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
|
|
890
1129
|
|
|
891
1130
|
|
|
892
1131
|
|
|
@@ -2114,11 +2353,12 @@ proto.supervisor.PortsStatus.prototype.toObject = function(opt_includeInstance)
|
|
|
2114
2353
|
proto.supervisor.PortsStatus.toObject = function(includeInstance, msg) {
|
|
2115
2354
|
var f, obj = {
|
|
2116
2355
|
localPort: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2117
|
-
globalPort: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2118
2356
|
served: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
2119
2357
|
exposed: (f = msg.getExposed()) && proto.supervisor.ExposedPortInfo.toObject(includeInstance, f),
|
|
2120
2358
|
autoExposure: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
2121
|
-
tunneled: (f = msg.getTunneled()) && proto.supervisor.TunneledPortInfo.toObject(includeInstance, f)
|
|
2359
|
+
tunneled: (f = msg.getTunneled()) && proto.supervisor.TunneledPortInfo.toObject(includeInstance, f),
|
|
2360
|
+
description: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
2361
|
+
name: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
2122
2362
|
};
|
|
2123
2363
|
|
|
2124
2364
|
if (includeInstance) {
|
|
@@ -2159,10 +2399,6 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
|
|
|
2159
2399
|
var value = /** @type {number} */ (reader.readUint32());
|
|
2160
2400
|
msg.setLocalPort(value);
|
|
2161
2401
|
break;
|
|
2162
|
-
case 2:
|
|
2163
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
2164
|
-
msg.setGlobalPort(value);
|
|
2165
|
-
break;
|
|
2166
2402
|
case 4:
|
|
2167
2403
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
2168
2404
|
msg.setServed(value);
|
|
@@ -2181,6 +2417,14 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
|
|
|
2181
2417
|
reader.readMessage(value,proto.supervisor.TunneledPortInfo.deserializeBinaryFromReader);
|
|
2182
2418
|
msg.setTunneled(value);
|
|
2183
2419
|
break;
|
|
2420
|
+
case 8:
|
|
2421
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2422
|
+
msg.setDescription(value);
|
|
2423
|
+
break;
|
|
2424
|
+
case 9:
|
|
2425
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2426
|
+
msg.setName(value);
|
|
2427
|
+
break;
|
|
2184
2428
|
default:
|
|
2185
2429
|
reader.skipField();
|
|
2186
2430
|
break;
|
|
@@ -2217,13 +2461,6 @@ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer)
|
|
|
2217
2461
|
f
|
|
2218
2462
|
);
|
|
2219
2463
|
}
|
|
2220
|
-
f = message.getGlobalPort();
|
|
2221
|
-
if (f !== 0) {
|
|
2222
|
-
writer.writeUint32(
|
|
2223
|
-
2,
|
|
2224
|
-
f
|
|
2225
|
-
);
|
|
2226
|
-
}
|
|
2227
2464
|
f = message.getServed();
|
|
2228
2465
|
if (f) {
|
|
2229
2466
|
writer.writeBool(
|
|
@@ -2254,6 +2491,20 @@ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer)
|
|
|
2254
2491
|
proto.supervisor.TunneledPortInfo.serializeBinaryToWriter
|
|
2255
2492
|
);
|
|
2256
2493
|
}
|
|
2494
|
+
f = message.getDescription();
|
|
2495
|
+
if (f.length > 0) {
|
|
2496
|
+
writer.writeString(
|
|
2497
|
+
8,
|
|
2498
|
+
f
|
|
2499
|
+
);
|
|
2500
|
+
}
|
|
2501
|
+
f = message.getName();
|
|
2502
|
+
if (f.length > 0) {
|
|
2503
|
+
writer.writeString(
|
|
2504
|
+
9,
|
|
2505
|
+
f
|
|
2506
|
+
);
|
|
2507
|
+
}
|
|
2257
2508
|
};
|
|
2258
2509
|
|
|
2259
2510
|
|
|
@@ -2275,24 +2526,6 @@ proto.supervisor.PortsStatus.prototype.setLocalPort = function(value) {
|
|
|
2275
2526
|
};
|
|
2276
2527
|
|
|
2277
2528
|
|
|
2278
|
-
/**
|
|
2279
|
-
* optional uint32 global_port = 2;
|
|
2280
|
-
* @return {number}
|
|
2281
|
-
*/
|
|
2282
|
-
proto.supervisor.PortsStatus.prototype.getGlobalPort = function() {
|
|
2283
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2284
|
-
};
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
/**
|
|
2288
|
-
* @param {number} value
|
|
2289
|
-
* @return {!proto.supervisor.PortsStatus} returns this
|
|
2290
|
-
*/
|
|
2291
|
-
proto.supervisor.PortsStatus.prototype.setGlobalPort = function(value) {
|
|
2292
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
2293
|
-
};
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
2529
|
/**
|
|
2297
2530
|
* optional bool served = 4;
|
|
2298
2531
|
* @return {boolean}
|
|
@@ -2403,6 +2636,42 @@ proto.supervisor.PortsStatus.prototype.hasTunneled = function() {
|
|
|
2403
2636
|
};
|
|
2404
2637
|
|
|
2405
2638
|
|
|
2639
|
+
/**
|
|
2640
|
+
* optional string description = 8;
|
|
2641
|
+
* @return {string}
|
|
2642
|
+
*/
|
|
2643
|
+
proto.supervisor.PortsStatus.prototype.getDescription = function() {
|
|
2644
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
2645
|
+
};
|
|
2646
|
+
|
|
2647
|
+
|
|
2648
|
+
/**
|
|
2649
|
+
* @param {string} value
|
|
2650
|
+
* @return {!proto.supervisor.PortsStatus} returns this
|
|
2651
|
+
*/
|
|
2652
|
+
proto.supervisor.PortsStatus.prototype.setDescription = function(value) {
|
|
2653
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* optional string name = 9;
|
|
2659
|
+
* @return {string}
|
|
2660
|
+
*/
|
|
2661
|
+
proto.supervisor.PortsStatus.prototype.getName = function() {
|
|
2662
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
2663
|
+
};
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* @param {string} value
|
|
2668
|
+
* @return {!proto.supervisor.PortsStatus} returns this
|
|
2669
|
+
*/
|
|
2670
|
+
proto.supervisor.PortsStatus.prototype.setName = function(value) {
|
|
2671
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
2672
|
+
};
|
|
2673
|
+
|
|
2674
|
+
|
|
2406
2675
|
|
|
2407
2676
|
|
|
2408
2677
|
|
package/lib/terminal_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.GetTerminalRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.ListTerminalsRequest', null, global);
|
package/lib/token_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
25
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
package/package.json
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
"@improbable-eng/grpc-web": "^0.14.0"
|
|
4
4
|
},
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"ts-protoc-gen": "^0.13.0"
|
|
6
|
+
"ts-protoc-gen": "^0.13.0",
|
|
7
|
+
"typescript": "~4.4.2"
|
|
7
8
|
},
|
|
8
9
|
"files": [
|
|
9
10
|
"lib",
|
|
@@ -14,5 +15,5 @@
|
|
|
14
15
|
"scripts": {
|
|
15
16
|
"build": "sh build.sh"
|
|
16
17
|
},
|
|
17
|
-
"version": "0.1.5-pd-
|
|
18
|
+
"version": "0.1.5-pd-ssh-gateway-test.5"
|
|
18
19
|
}
|
package/pkg-yarn.lock
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
"@gitpod/supervisor-api-grpcweb@0.1.5":
|
|
6
6
|
version "0.1.5"
|
|
7
|
-
resolved "file:///tmp/cache/
|
|
7
|
+
resolved "file:///tmp/cache/1d0c3eae22db826757ffa36625b41a56cfccda98.tar.gz"
|
|
8
8
|
dependencies:
|
|
9
9
|
"@improbable-eng/grpc-web" "^0.14.0"
|
|
10
10
|
|