@gitpod/supervisor-api-grpcweb 0.1.5-test2 → 0.1.5-to-new-image.2
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 +36 -4
- package/lib/control_pb.js +284 -33
- package/lib/control_pb_service.d.ts +19 -0
- package/lib/control_pb_service.js +40 -0
- package/lib/info_pb.d.ts +16 -0
- package/lib/info_pb.js +128 -2
- package/lib/notification_pb.js +7 -1
- package/lib/port_pb.d.ts +36 -0
- package/lib/port_pb.js +282 -1
- package/lib/port_pb_service.d.ts +19 -0
- package/lib/port_pb_service.js +40 -0
- package/lib/status_pb.d.ts +58 -4
- package/lib/status_pb.js +402 -33
- package/lib/terminal_pb.d.ts +100 -0
- package/lib/terminal_pb.js +747 -3
- package/lib/terminal_pb_service.d.ts +38 -0
- package/lib/terminal_pb_service.js +80 -0
- package/lib/token_pb.js +7 -1
- package/package.json +8 -4
- package/pkg-yarn.lock +3 -1
- package/provenance-bundle.jsonl +4 -0
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
|
|
|
@@ -43,3 +39,39 @@ export namespace ExposePortResponse {
|
|
|
43
39
|
}
|
|
44
40
|
}
|
|
45
41
|
|
|
42
|
+
export class CreateSSHKeyPairRequest extends jspb.Message {
|
|
43
|
+
serializeBinary(): Uint8Array;
|
|
44
|
+
toObject(includeInstance?: boolean): CreateSSHKeyPairRequest.AsObject;
|
|
45
|
+
static toObject(includeInstance: boolean, msg: CreateSSHKeyPairRequest): CreateSSHKeyPairRequest.AsObject;
|
|
46
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
47
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
48
|
+
static serializeBinaryToWriter(message: CreateSSHKeyPairRequest, writer: jspb.BinaryWriter): void;
|
|
49
|
+
static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairRequest;
|
|
50
|
+
static deserializeBinaryFromReader(message: CreateSSHKeyPairRequest, reader: jspb.BinaryReader): CreateSSHKeyPairRequest;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace CreateSSHKeyPairRequest {
|
|
54
|
+
export type AsObject = {
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class CreateSSHKeyPairResponse extends jspb.Message {
|
|
59
|
+
getPrivateKey(): string;
|
|
60
|
+
setPrivateKey(value: string): void;
|
|
61
|
+
|
|
62
|
+
serializeBinary(): Uint8Array;
|
|
63
|
+
toObject(includeInstance?: boolean): CreateSSHKeyPairResponse.AsObject;
|
|
64
|
+
static toObject(includeInstance: boolean, msg: CreateSSHKeyPairResponse): CreateSSHKeyPairResponse.AsObject;
|
|
65
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
66
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
67
|
+
static serializeBinaryToWriter(message: CreateSSHKeyPairResponse, writer: jspb.BinaryWriter): void;
|
|
68
|
+
static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairResponse;
|
|
69
|
+
static deserializeBinaryFromReader(message: CreateSSHKeyPairResponse, reader: jspb.BinaryReader): CreateSSHKeyPairResponse;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export namespace CreateSSHKeyPairResponse {
|
|
73
|
+
export type AsObject = {
|
|
74
|
+
privateKey: string,
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
package/lib/control_pb.js
CHANGED
|
@@ -13,8 +13,16 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
17
|
-
|
|
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);
|
|
18
26
|
goog.exportSymbol('proto.supervisor.ExposePortRequest', null, global);
|
|
19
27
|
goog.exportSymbol('proto.supervisor.ExposePortResponse', null, global);
|
|
20
28
|
/**
|
|
@@ -59,6 +67,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
59
67
|
*/
|
|
60
68
|
proto.supervisor.ExposePortResponse.displayName = 'proto.supervisor.ExposePortResponse';
|
|
61
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Generated by JsPbCodeGenerator.
|
|
72
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
73
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
74
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
75
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
76
|
+
* valid.
|
|
77
|
+
* @extends {jspb.Message}
|
|
78
|
+
* @constructor
|
|
79
|
+
*/
|
|
80
|
+
proto.supervisor.CreateSSHKeyPairRequest = function(opt_data) {
|
|
81
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
82
|
+
};
|
|
83
|
+
goog.inherits(proto.supervisor.CreateSSHKeyPairRequest, jspb.Message);
|
|
84
|
+
if (goog.DEBUG && !COMPILED) {
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
* @override
|
|
88
|
+
*/
|
|
89
|
+
proto.supervisor.CreateSSHKeyPairRequest.displayName = 'proto.supervisor.CreateSSHKeyPairRequest';
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Generated by JsPbCodeGenerator.
|
|
93
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
94
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
95
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
96
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
97
|
+
* valid.
|
|
98
|
+
* @extends {jspb.Message}
|
|
99
|
+
* @constructor
|
|
100
|
+
*/
|
|
101
|
+
proto.supervisor.CreateSSHKeyPairResponse = function(opt_data) {
|
|
102
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
103
|
+
};
|
|
104
|
+
goog.inherits(proto.supervisor.CreateSSHKeyPairResponse, jspb.Message);
|
|
105
|
+
if (goog.DEBUG && !COMPILED) {
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
* @override
|
|
109
|
+
*/
|
|
110
|
+
proto.supervisor.CreateSSHKeyPairResponse.displayName = 'proto.supervisor.CreateSSHKeyPairResponse';
|
|
111
|
+
}
|
|
62
112
|
|
|
63
113
|
|
|
64
114
|
|
|
@@ -91,8 +141,7 @@ proto.supervisor.ExposePortRequest.prototype.toObject = function(opt_includeInst
|
|
|
91
141
|
*/
|
|
92
142
|
proto.supervisor.ExposePortRequest.toObject = function(includeInstance, msg) {
|
|
93
143
|
var f, obj = {
|
|
94
|
-
port: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
95
|
-
targetPort: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
144
|
+
port: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
96
145
|
};
|
|
97
146
|
|
|
98
147
|
if (includeInstance) {
|
|
@@ -133,10 +182,6 @@ proto.supervisor.ExposePortRequest.deserializeBinaryFromReader = function(msg, r
|
|
|
133
182
|
var value = /** @type {number} */ (reader.readUint32());
|
|
134
183
|
msg.setPort(value);
|
|
135
184
|
break;
|
|
136
|
-
case 2:
|
|
137
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
138
|
-
msg.setTargetPort(value);
|
|
139
|
-
break;
|
|
140
185
|
default:
|
|
141
186
|
reader.skipField();
|
|
142
187
|
break;
|
|
@@ -173,13 +218,6 @@ proto.supervisor.ExposePortRequest.serializeBinaryToWriter = function(message, w
|
|
|
173
218
|
f
|
|
174
219
|
);
|
|
175
220
|
}
|
|
176
|
-
f = message.getTargetPort();
|
|
177
|
-
if (f !== 0) {
|
|
178
|
-
writer.writeUint32(
|
|
179
|
-
2,
|
|
180
|
-
f
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
221
|
};
|
|
184
222
|
|
|
185
223
|
|
|
@@ -201,24 +239,6 @@ proto.supervisor.ExposePortRequest.prototype.setPort = function(value) {
|
|
|
201
239
|
};
|
|
202
240
|
|
|
203
241
|
|
|
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
242
|
|
|
223
243
|
|
|
224
244
|
|
|
@@ -320,4 +340,235 @@ proto.supervisor.ExposePortResponse.serializeBinaryToWriter = function(message,
|
|
|
320
340
|
};
|
|
321
341
|
|
|
322
342
|
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
347
|
+
/**
|
|
348
|
+
* Creates an object representation of this proto.
|
|
349
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
350
|
+
* Optional fields that are not set will be set to undefined.
|
|
351
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
352
|
+
* For the list of reserved names please see:
|
|
353
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
354
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
355
|
+
* JSPB instance for transitional soy proto support:
|
|
356
|
+
* http://goto/soy-param-migration
|
|
357
|
+
* @return {!Object}
|
|
358
|
+
*/
|
|
359
|
+
proto.supervisor.CreateSSHKeyPairRequest.prototype.toObject = function(opt_includeInstance) {
|
|
360
|
+
return proto.supervisor.CreateSSHKeyPairRequest.toObject(opt_includeInstance, this);
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Static version of the {@see toObject} method.
|
|
366
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
367
|
+
* the JSPB instance for transitional soy proto support:
|
|
368
|
+
* http://goto/soy-param-migration
|
|
369
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} msg The msg instance to transform.
|
|
370
|
+
* @return {!Object}
|
|
371
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
372
|
+
*/
|
|
373
|
+
proto.supervisor.CreateSSHKeyPairRequest.toObject = function(includeInstance, msg) {
|
|
374
|
+
var f, obj = {
|
|
375
|
+
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
if (includeInstance) {
|
|
379
|
+
obj.$jspbMessageInstance = msg;
|
|
380
|
+
}
|
|
381
|
+
return obj;
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Deserializes binary data (in protobuf wire format).
|
|
388
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
389
|
+
* @return {!proto.supervisor.CreateSSHKeyPairRequest}
|
|
390
|
+
*/
|
|
391
|
+
proto.supervisor.CreateSSHKeyPairRequest.deserializeBinary = function(bytes) {
|
|
392
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
393
|
+
var msg = new proto.supervisor.CreateSSHKeyPairRequest;
|
|
394
|
+
return proto.supervisor.CreateSSHKeyPairRequest.deserializeBinaryFromReader(msg, reader);
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
400
|
+
* given reader into the given message object.
|
|
401
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} msg The message object to deserialize into.
|
|
402
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
403
|
+
* @return {!proto.supervisor.CreateSSHKeyPairRequest}
|
|
404
|
+
*/
|
|
405
|
+
proto.supervisor.CreateSSHKeyPairRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
406
|
+
while (reader.nextField()) {
|
|
407
|
+
if (reader.isEndGroup()) {
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
var field = reader.getFieldNumber();
|
|
411
|
+
switch (field) {
|
|
412
|
+
default:
|
|
413
|
+
reader.skipField();
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return msg;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
423
|
+
* @return {!Uint8Array}
|
|
424
|
+
*/
|
|
425
|
+
proto.supervisor.CreateSSHKeyPairRequest.prototype.serializeBinary = function() {
|
|
426
|
+
var writer = new jspb.BinaryWriter();
|
|
427
|
+
proto.supervisor.CreateSSHKeyPairRequest.serializeBinaryToWriter(this, writer);
|
|
428
|
+
return writer.getResultBuffer();
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
434
|
+
* format), writing to the given BinaryWriter.
|
|
435
|
+
* @param {!proto.supervisor.CreateSSHKeyPairRequest} message
|
|
436
|
+
* @param {!jspb.BinaryWriter} writer
|
|
437
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
438
|
+
*/
|
|
439
|
+
proto.supervisor.CreateSSHKeyPairRequest.serializeBinaryToWriter = function(message, writer) {
|
|
440
|
+
var f = undefined;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
448
|
+
/**
|
|
449
|
+
* Creates an object representation of this proto.
|
|
450
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
451
|
+
* Optional fields that are not set will be set to undefined.
|
|
452
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
453
|
+
* For the list of reserved names please see:
|
|
454
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
455
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
456
|
+
* JSPB instance for transitional soy proto support:
|
|
457
|
+
* http://goto/soy-param-migration
|
|
458
|
+
* @return {!Object}
|
|
459
|
+
*/
|
|
460
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.toObject = function(opt_includeInstance) {
|
|
461
|
+
return proto.supervisor.CreateSSHKeyPairResponse.toObject(opt_includeInstance, this);
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Static version of the {@see toObject} method.
|
|
467
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
468
|
+
* the JSPB instance for transitional soy proto support:
|
|
469
|
+
* http://goto/soy-param-migration
|
|
470
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} msg The msg instance to transform.
|
|
471
|
+
* @return {!Object}
|
|
472
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
473
|
+
*/
|
|
474
|
+
proto.supervisor.CreateSSHKeyPairResponse.toObject = function(includeInstance, msg) {
|
|
475
|
+
var f, obj = {
|
|
476
|
+
privateKey: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
if (includeInstance) {
|
|
480
|
+
obj.$jspbMessageInstance = msg;
|
|
481
|
+
}
|
|
482
|
+
return obj;
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Deserializes binary data (in protobuf wire format).
|
|
489
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
490
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse}
|
|
491
|
+
*/
|
|
492
|
+
proto.supervisor.CreateSSHKeyPairResponse.deserializeBinary = function(bytes) {
|
|
493
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
494
|
+
var msg = new proto.supervisor.CreateSSHKeyPairResponse;
|
|
495
|
+
return proto.supervisor.CreateSSHKeyPairResponse.deserializeBinaryFromReader(msg, reader);
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
501
|
+
* given reader into the given message object.
|
|
502
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} msg The message object to deserialize into.
|
|
503
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
504
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse}
|
|
505
|
+
*/
|
|
506
|
+
proto.supervisor.CreateSSHKeyPairResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
507
|
+
while (reader.nextField()) {
|
|
508
|
+
if (reader.isEndGroup()) {
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
var field = reader.getFieldNumber();
|
|
512
|
+
switch (field) {
|
|
513
|
+
case 1:
|
|
514
|
+
var value = /** @type {string} */ (reader.readString());
|
|
515
|
+
msg.setPrivateKey(value);
|
|
516
|
+
break;
|
|
517
|
+
default:
|
|
518
|
+
reader.skipField();
|
|
519
|
+
break;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return msg;
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
528
|
+
* @return {!Uint8Array}
|
|
529
|
+
*/
|
|
530
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.serializeBinary = function() {
|
|
531
|
+
var writer = new jspb.BinaryWriter();
|
|
532
|
+
proto.supervisor.CreateSSHKeyPairResponse.serializeBinaryToWriter(this, writer);
|
|
533
|
+
return writer.getResultBuffer();
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
539
|
+
* format), writing to the given BinaryWriter.
|
|
540
|
+
* @param {!proto.supervisor.CreateSSHKeyPairResponse} message
|
|
541
|
+
* @param {!jspb.BinaryWriter} writer
|
|
542
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
543
|
+
*/
|
|
544
|
+
proto.supervisor.CreateSSHKeyPairResponse.serializeBinaryToWriter = function(message, writer) {
|
|
545
|
+
var f = undefined;
|
|
546
|
+
f = message.getPrivateKey();
|
|
547
|
+
if (f.length > 0) {
|
|
548
|
+
writer.writeString(
|
|
549
|
+
1,
|
|
550
|
+
f
|
|
551
|
+
);
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* optional string private_key = 1;
|
|
558
|
+
* @return {string}
|
|
559
|
+
*/
|
|
560
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.getPrivateKey = function() {
|
|
561
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @param {string} value
|
|
567
|
+
* @return {!proto.supervisor.CreateSSHKeyPairResponse} returns this
|
|
568
|
+
*/
|
|
569
|
+
proto.supervisor.CreateSSHKeyPairResponse.prototype.setPrivateKey = function(value) {
|
|
570
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
571
|
+
};
|
|
572
|
+
|
|
573
|
+
|
|
323
574
|
goog.object.extend(exports, proto.supervisor);
|
|
@@ -13,9 +13,19 @@ type ControlServiceExposePort = {
|
|
|
13
13
|
readonly responseType: typeof control_pb.ExposePortResponse;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
+
type ControlServiceCreateSSHKeyPair = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof ControlService;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof control_pb.CreateSSHKeyPairRequest;
|
|
22
|
+
readonly responseType: typeof control_pb.CreateSSHKeyPairResponse;
|
|
23
|
+
};
|
|
24
|
+
|
|
16
25
|
export class ControlService {
|
|
17
26
|
static readonly serviceName: string;
|
|
18
27
|
static readonly ExposePort: ControlServiceExposePort;
|
|
28
|
+
static readonly CreateSSHKeyPair: ControlServiceCreateSSHKeyPair;
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -59,5 +69,14 @@ export class ControlServiceClient {
|
|
|
59
69
|
requestMessage: control_pb.ExposePortRequest,
|
|
60
70
|
callback: (error: ServiceError|null, responseMessage: control_pb.ExposePortResponse|null) => void
|
|
61
71
|
): UnaryResponse;
|
|
72
|
+
createSSHKeyPair(
|
|
73
|
+
requestMessage: control_pb.CreateSSHKeyPairRequest,
|
|
74
|
+
metadata: grpc.Metadata,
|
|
75
|
+
callback: (error: ServiceError|null, responseMessage: control_pb.CreateSSHKeyPairResponse|null) => void
|
|
76
|
+
): UnaryResponse;
|
|
77
|
+
createSSHKeyPair(
|
|
78
|
+
requestMessage: control_pb.CreateSSHKeyPairRequest,
|
|
79
|
+
callback: (error: ServiceError|null, responseMessage: control_pb.CreateSSHKeyPairResponse|null) => void
|
|
80
|
+
): UnaryResponse;
|
|
62
81
|
}
|
|
63
82
|
|
|
@@ -19,6 +19,15 @@ ControlService.ExposePort = {
|
|
|
19
19
|
responseType: control_pb.ExposePortResponse
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
ControlService.CreateSSHKeyPair = {
|
|
23
|
+
methodName: "CreateSSHKeyPair",
|
|
24
|
+
service: ControlService,
|
|
25
|
+
requestStream: false,
|
|
26
|
+
responseStream: false,
|
|
27
|
+
requestType: control_pb.CreateSSHKeyPairRequest,
|
|
28
|
+
responseType: control_pb.CreateSSHKeyPairResponse
|
|
29
|
+
};
|
|
30
|
+
|
|
22
31
|
exports.ControlService = ControlService;
|
|
23
32
|
|
|
24
33
|
function ControlServiceClient(serviceHost, options) {
|
|
@@ -57,5 +66,36 @@ ControlServiceClient.prototype.exposePort = function exposePort(requestMessage,
|
|
|
57
66
|
};
|
|
58
67
|
};
|
|
59
68
|
|
|
69
|
+
ControlServiceClient.prototype.createSSHKeyPair = function createSSHKeyPair(requestMessage, metadata, callback) {
|
|
70
|
+
if (arguments.length === 2) {
|
|
71
|
+
callback = arguments[1];
|
|
72
|
+
}
|
|
73
|
+
var client = grpc.unary(ControlService.CreateSSHKeyPair, {
|
|
74
|
+
request: requestMessage,
|
|
75
|
+
host: this.serviceHost,
|
|
76
|
+
metadata: metadata,
|
|
77
|
+
transport: this.options.transport,
|
|
78
|
+
debug: this.options.debug,
|
|
79
|
+
onEnd: function (response) {
|
|
80
|
+
if (callback) {
|
|
81
|
+
if (response.status !== grpc.Code.OK) {
|
|
82
|
+
var err = new Error(response.statusMessage);
|
|
83
|
+
err.code = response.status;
|
|
84
|
+
err.metadata = response.trailers;
|
|
85
|
+
callback(err, null);
|
|
86
|
+
} else {
|
|
87
|
+
callback(null, response.message);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
return {
|
|
93
|
+
cancel: function () {
|
|
94
|
+
callback = null;
|
|
95
|
+
client.close();
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
|
|
60
100
|
exports.ControlServiceClient = ControlServiceClient;
|
|
61
101
|
|
package/lib/info_pb.d.ts
CHANGED
|
@@ -58,6 +58,18 @@ export class WorkspaceInfoResponse extends jspb.Message {
|
|
|
58
58
|
getRepository(): WorkspaceInfoResponse.Repository | undefined;
|
|
59
59
|
setRepository(value?: WorkspaceInfoResponse.Repository): void;
|
|
60
60
|
|
|
61
|
+
getWorkspaceClusterHost(): string;
|
|
62
|
+
setWorkspaceClusterHost(value: string): void;
|
|
63
|
+
|
|
64
|
+
getWorkspaceUrl(): string;
|
|
65
|
+
setWorkspaceUrl(value: string): void;
|
|
66
|
+
|
|
67
|
+
getIdeAlias(): string;
|
|
68
|
+
setIdeAlias(value: string): void;
|
|
69
|
+
|
|
70
|
+
getIdePort(): number;
|
|
71
|
+
setIdePort(value: number): void;
|
|
72
|
+
|
|
61
73
|
getWorkspaceLocationCase(): WorkspaceInfoResponse.WorkspaceLocationCase;
|
|
62
74
|
serializeBinary(): Uint8Array;
|
|
63
75
|
toObject(includeInstance?: boolean): WorkspaceInfoResponse.AsObject;
|
|
@@ -81,6 +93,10 @@ export namespace WorkspaceInfoResponse {
|
|
|
81
93
|
gitpodHost: string,
|
|
82
94
|
workspaceContextUrl: string,
|
|
83
95
|
repository?: WorkspaceInfoResponse.Repository.AsObject,
|
|
96
|
+
workspaceClusterHost: string,
|
|
97
|
+
workspaceUrl: string,
|
|
98
|
+
ideAlias: string,
|
|
99
|
+
idePort: number,
|
|
84
100
|
}
|
|
85
101
|
|
|
86
102
|
export class GitpodAPI extends jspb.Message {
|
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);
|
|
@@ -272,7 +278,11 @@ proto.supervisor.WorkspaceInfoResponse.toObject = function(includeInstance, msg)
|
|
|
272
278
|
gitpodApi: (f = msg.getGitpodApi()) && proto.supervisor.WorkspaceInfoResponse.GitpodAPI.toObject(includeInstance, f),
|
|
273
279
|
gitpodHost: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
274
280
|
workspaceContextUrl: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
275
|
-
repository: (f = msg.getRepository()) && proto.supervisor.WorkspaceInfoResponse.Repository.toObject(includeInstance, f)
|
|
281
|
+
repository: (f = msg.getRepository()) && proto.supervisor.WorkspaceInfoResponse.Repository.toObject(includeInstance, f),
|
|
282
|
+
workspaceClusterHost: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
283
|
+
workspaceUrl: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
284
|
+
ideAlias: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
285
|
+
idePort: jspb.Message.getFieldWithDefault(msg, 14, 0)
|
|
276
286
|
};
|
|
277
287
|
|
|
278
288
|
if (includeInstance) {
|
|
@@ -351,6 +361,22 @@ proto.supervisor.WorkspaceInfoResponse.deserializeBinaryFromReader = function(ms
|
|
|
351
361
|
reader.readMessage(value,proto.supervisor.WorkspaceInfoResponse.Repository.deserializeBinaryFromReader);
|
|
352
362
|
msg.setRepository(value);
|
|
353
363
|
break;
|
|
364
|
+
case 11:
|
|
365
|
+
var value = /** @type {string} */ (reader.readString());
|
|
366
|
+
msg.setWorkspaceClusterHost(value);
|
|
367
|
+
break;
|
|
368
|
+
case 12:
|
|
369
|
+
var value = /** @type {string} */ (reader.readString());
|
|
370
|
+
msg.setWorkspaceUrl(value);
|
|
371
|
+
break;
|
|
372
|
+
case 13:
|
|
373
|
+
var value = /** @type {string} */ (reader.readString());
|
|
374
|
+
msg.setIdeAlias(value);
|
|
375
|
+
break;
|
|
376
|
+
case 14:
|
|
377
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
378
|
+
msg.setIdePort(value);
|
|
379
|
+
break;
|
|
354
380
|
default:
|
|
355
381
|
reader.skipField();
|
|
356
382
|
break;
|
|
@@ -452,6 +478,34 @@ proto.supervisor.WorkspaceInfoResponse.serializeBinaryToWriter = function(messag
|
|
|
452
478
|
proto.supervisor.WorkspaceInfoResponse.Repository.serializeBinaryToWriter
|
|
453
479
|
);
|
|
454
480
|
}
|
|
481
|
+
f = message.getWorkspaceClusterHost();
|
|
482
|
+
if (f.length > 0) {
|
|
483
|
+
writer.writeString(
|
|
484
|
+
11,
|
|
485
|
+
f
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
f = message.getWorkspaceUrl();
|
|
489
|
+
if (f.length > 0) {
|
|
490
|
+
writer.writeString(
|
|
491
|
+
12,
|
|
492
|
+
f
|
|
493
|
+
);
|
|
494
|
+
}
|
|
495
|
+
f = message.getIdeAlias();
|
|
496
|
+
if (f.length > 0) {
|
|
497
|
+
writer.writeString(
|
|
498
|
+
13,
|
|
499
|
+
f
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
f = message.getIdePort();
|
|
503
|
+
if (f !== 0) {
|
|
504
|
+
writer.writeUint32(
|
|
505
|
+
14,
|
|
506
|
+
f
|
|
507
|
+
);
|
|
508
|
+
}
|
|
455
509
|
};
|
|
456
510
|
|
|
457
511
|
|
|
@@ -1029,4 +1083,76 @@ proto.supervisor.WorkspaceInfoResponse.prototype.hasRepository = function() {
|
|
|
1029
1083
|
};
|
|
1030
1084
|
|
|
1031
1085
|
|
|
1086
|
+
/**
|
|
1087
|
+
* optional string workspace_cluster_host = 11;
|
|
1088
|
+
* @return {string}
|
|
1089
|
+
*/
|
|
1090
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.getWorkspaceClusterHost = function() {
|
|
1091
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* @param {string} value
|
|
1097
|
+
* @return {!proto.supervisor.WorkspaceInfoResponse} returns this
|
|
1098
|
+
*/
|
|
1099
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.setWorkspaceClusterHost = function(value) {
|
|
1100
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* optional string workspace_url = 12;
|
|
1106
|
+
* @return {string}
|
|
1107
|
+
*/
|
|
1108
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.getWorkspaceUrl = function() {
|
|
1109
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
1110
|
+
};
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* @param {string} value
|
|
1115
|
+
* @return {!proto.supervisor.WorkspaceInfoResponse} returns this
|
|
1116
|
+
*/
|
|
1117
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.setWorkspaceUrl = function(value) {
|
|
1118
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* optional string ide_alias = 13;
|
|
1124
|
+
* @return {string}
|
|
1125
|
+
*/
|
|
1126
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.getIdeAlias = function() {
|
|
1127
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* @param {string} value
|
|
1133
|
+
* @return {!proto.supervisor.WorkspaceInfoResponse} returns this
|
|
1134
|
+
*/
|
|
1135
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.setIdeAlias = function(value) {
|
|
1136
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
1137
|
+
};
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* optional uint32 ide_port = 14;
|
|
1142
|
+
* @return {number}
|
|
1143
|
+
*/
|
|
1144
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.getIdePort = function() {
|
|
1145
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* @param {number} value
|
|
1151
|
+
* @return {!proto.supervisor.WorkspaceInfoResponse} returns this
|
|
1152
|
+
*/
|
|
1153
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.setIdePort = function(value) {
|
|
1154
|
+
return jspb.Message.setProto3IntField(this, 14, value);
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
|
|
1032
1158
|
goog.object.extend(exports, proto.supervisor);
|