@gitpod/supervisor-api-grpc 0.1.5-test3 → 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_grpc_pb.d.ts +17 -1
- package/lib/control_grpc_pb.js +34 -0
- package/lib/control_pb.d.ts +37 -3
- package/lib/control_pb.js +284 -33
- package/lib/info_grpc_pb.d.ts +0 -1
- package/lib/info_pb.d.ts +12 -0
- package/lib/info_pb.js +128 -2
- package/lib/notification_grpc_pb.d.ts +0 -1
- package/lib/notification_pb.js +7 -1
- 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 +1 -1
- package/lib/status_grpc_pb.js +1 -0
- package/lib/status_pb.d.ts +87 -3
- package/lib/status_pb.js +671 -34
- package/lib/terminal_grpc_pb.d.ts +34 -1
- package/lib/terminal_grpc_pb.js +68 -0
- package/lib/terminal_pb.d.ts +98 -0
- package/lib/terminal_pb.js +747 -3
- package/lib/token_grpc_pb.d.ts +0 -1
- package/lib/token_pb.js +7 -1
- package/package.json +10 -8
- package/pkg-yarn.lock +3 -3
- package/provenance-bundle.jsonl +4 -0
package/lib/control_grpc_pb.d.ts
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
|
-
import {handleClientStreamingCall} from "@grpc/grpc-js/build/src/server-call";
|
|
9
8
|
import * as control_pb from "./control_pb";
|
|
10
9
|
|
|
11
10
|
interface IControlServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
12
11
|
exposePort: IControlServiceService_IExposePort;
|
|
12
|
+
createSSHKeyPair: IControlServiceService_ICreateSSHKeyPair;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
interface IControlServiceService_IExposePort extends grpc.MethodDefinition<control_pb.ExposePortRequest, control_pb.ExposePortResponse> {
|
|
@@ -21,17 +21,30 @@ interface IControlServiceService_IExposePort extends grpc.MethodDefinition<contr
|
|
|
21
21
|
responseSerialize: grpc.serialize<control_pb.ExposePortResponse>;
|
|
22
22
|
responseDeserialize: grpc.deserialize<control_pb.ExposePortResponse>;
|
|
23
23
|
}
|
|
24
|
+
interface IControlServiceService_ICreateSSHKeyPair extends grpc.MethodDefinition<control_pb.CreateSSHKeyPairRequest, control_pb.CreateSSHKeyPairResponse> {
|
|
25
|
+
path: "/supervisor.ControlService/CreateSSHKeyPair";
|
|
26
|
+
requestStream: false;
|
|
27
|
+
responseStream: false;
|
|
28
|
+
requestSerialize: grpc.serialize<control_pb.CreateSSHKeyPairRequest>;
|
|
29
|
+
requestDeserialize: grpc.deserialize<control_pb.CreateSSHKeyPairRequest>;
|
|
30
|
+
responseSerialize: grpc.serialize<control_pb.CreateSSHKeyPairResponse>;
|
|
31
|
+
responseDeserialize: grpc.deserialize<control_pb.CreateSSHKeyPairResponse>;
|
|
32
|
+
}
|
|
24
33
|
|
|
25
34
|
export const ControlServiceService: IControlServiceService;
|
|
26
35
|
|
|
27
36
|
export interface IControlServiceServer extends grpc.UntypedServiceImplementation {
|
|
28
37
|
exposePort: grpc.handleUnaryCall<control_pb.ExposePortRequest, control_pb.ExposePortResponse>;
|
|
38
|
+
createSSHKeyPair: grpc.handleUnaryCall<control_pb.CreateSSHKeyPairRequest, control_pb.CreateSSHKeyPairResponse>;
|
|
29
39
|
}
|
|
30
40
|
|
|
31
41
|
export interface IControlServiceClient {
|
|
32
42
|
exposePort(request: control_pb.ExposePortRequest, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
33
43
|
exposePort(request: control_pb.ExposePortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
34
44
|
exposePort(request: control_pb.ExposePortRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
45
|
+
createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
46
|
+
createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
47
|
+
createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
35
48
|
}
|
|
36
49
|
|
|
37
50
|
export class ControlServiceClient extends grpc.Client implements IControlServiceClient {
|
|
@@ -39,4 +52,7 @@ export class ControlServiceClient extends grpc.Client implements IControlService
|
|
|
39
52
|
public exposePort(request: control_pb.ExposePortRequest, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
40
53
|
public exposePort(request: control_pb.ExposePortRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
41
54
|
public exposePort(request: control_pb.ExposePortRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.ExposePortResponse) => void): grpc.ClientUnaryCall;
|
|
55
|
+
public createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
56
|
+
public createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
57
|
+
public createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
42
58
|
}
|
package/lib/control_grpc_pb.js
CHANGED
|
@@ -9,6 +9,28 @@
|
|
|
9
9
|
var grpc = require('@grpc/grpc-js');
|
|
10
10
|
var control_pb = require('./control_pb.js');
|
|
11
11
|
|
|
12
|
+
function serialize_supervisor_CreateSSHKeyPairRequest(arg) {
|
|
13
|
+
if (!(arg instanceof control_pb.CreateSSHKeyPairRequest)) {
|
|
14
|
+
throw new Error('Expected argument of type supervisor.CreateSSHKeyPairRequest');
|
|
15
|
+
}
|
|
16
|
+
return Buffer.from(arg.serializeBinary());
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function deserialize_supervisor_CreateSSHKeyPairRequest(buffer_arg) {
|
|
20
|
+
return control_pb.CreateSSHKeyPairRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function serialize_supervisor_CreateSSHKeyPairResponse(arg) {
|
|
24
|
+
if (!(arg instanceof control_pb.CreateSSHKeyPairResponse)) {
|
|
25
|
+
throw new Error('Expected argument of type supervisor.CreateSSHKeyPairResponse');
|
|
26
|
+
}
|
|
27
|
+
return Buffer.from(arg.serializeBinary());
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function deserialize_supervisor_CreateSSHKeyPairResponse(buffer_arg) {
|
|
31
|
+
return control_pb.CreateSSHKeyPairResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
32
|
+
}
|
|
33
|
+
|
|
12
34
|
function serialize_supervisor_ExposePortRequest(arg) {
|
|
13
35
|
if (!(arg instanceof control_pb.ExposePortRequest)) {
|
|
14
36
|
throw new Error('Expected argument of type supervisor.ExposePortRequest');
|
|
@@ -46,6 +68,18 @@ exposePort: {
|
|
|
46
68
|
responseSerialize: serialize_supervisor_ExposePortResponse,
|
|
47
69
|
responseDeserialize: deserialize_supervisor_ExposePortResponse,
|
|
48
70
|
},
|
|
71
|
+
// CreateSSHKeyPair Create a pair of SSH Keys and put them in ~/.ssh/authorized_keys, this will only be generated once in the entire workspace lifecycle
|
|
72
|
+
createSSHKeyPair: {
|
|
73
|
+
path: '/supervisor.ControlService/CreateSSHKeyPair',
|
|
74
|
+
requestStream: false,
|
|
75
|
+
responseStream: false,
|
|
76
|
+
requestType: control_pb.CreateSSHKeyPairRequest,
|
|
77
|
+
responseType: control_pb.CreateSSHKeyPairResponse,
|
|
78
|
+
requestSerialize: serialize_supervisor_CreateSSHKeyPairRequest,
|
|
79
|
+
requestDeserialize: deserialize_supervisor_CreateSSHKeyPairRequest,
|
|
80
|
+
responseSerialize: serialize_supervisor_CreateSSHKeyPairResponse,
|
|
81
|
+
responseDeserialize: deserialize_supervisor_CreateSSHKeyPairResponse,
|
|
82
|
+
},
|
|
49
83
|
};
|
|
50
84
|
|
|
51
85
|
exports.ControlServiceClient = grpc.makeGenericClientConstructor(ControlServiceService);
|
package/lib/control_pb.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ import * as jspb from "google-protobuf";
|
|
|
9
9
|
export class ExposePortRequest extends jspb.Message {
|
|
10
10
|
getPort(): number;
|
|
11
11
|
setPort(value: number): ExposePortRequest;
|
|
12
|
-
getTargetPort(): number;
|
|
13
|
-
setTargetPort(value: number): ExposePortRequest;
|
|
14
12
|
|
|
15
13
|
serializeBinary(): Uint8Array;
|
|
16
14
|
toObject(includeInstance?: boolean): ExposePortRequest.AsObject;
|
|
@@ -25,7 +23,6 @@ export class ExposePortRequest extends jspb.Message {
|
|
|
25
23
|
export namespace ExposePortRequest {
|
|
26
24
|
export type AsObject = {
|
|
27
25
|
port: number,
|
|
28
|
-
targetPort: number,
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
28
|
|
|
@@ -45,3 +42,40 @@ export namespace ExposePortResponse {
|
|
|
45
42
|
export type AsObject = {
|
|
46
43
|
}
|
|
47
44
|
}
|
|
45
|
+
|
|
46
|
+
export class CreateSSHKeyPairRequest extends jspb.Message {
|
|
47
|
+
|
|
48
|
+
serializeBinary(): Uint8Array;
|
|
49
|
+
toObject(includeInstance?: boolean): CreateSSHKeyPairRequest.AsObject;
|
|
50
|
+
static toObject(includeInstance: boolean, msg: CreateSSHKeyPairRequest): CreateSSHKeyPairRequest.AsObject;
|
|
51
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
52
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
53
|
+
static serializeBinaryToWriter(message: CreateSSHKeyPairRequest, writer: jspb.BinaryWriter): void;
|
|
54
|
+
static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairRequest;
|
|
55
|
+
static deserializeBinaryFromReader(message: CreateSSHKeyPairRequest, reader: jspb.BinaryReader): CreateSSHKeyPairRequest;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export namespace CreateSSHKeyPairRequest {
|
|
59
|
+
export type AsObject = {
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export class CreateSSHKeyPairResponse extends jspb.Message {
|
|
64
|
+
getPrivateKey(): string;
|
|
65
|
+
setPrivateKey(value: string): CreateSSHKeyPairResponse;
|
|
66
|
+
|
|
67
|
+
serializeBinary(): Uint8Array;
|
|
68
|
+
toObject(includeInstance?: boolean): CreateSSHKeyPairResponse.AsObject;
|
|
69
|
+
static toObject(includeInstance: boolean, msg: CreateSSHKeyPairResponse): CreateSSHKeyPairResponse.AsObject;
|
|
70
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
71
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
72
|
+
static serializeBinaryToWriter(message: CreateSSHKeyPairResponse, writer: jspb.BinaryWriter): void;
|
|
73
|
+
static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairResponse;
|
|
74
|
+
static deserializeBinaryFromReader(message: CreateSSHKeyPairResponse, reader: jspb.BinaryReader): CreateSSHKeyPairResponse;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export namespace CreateSSHKeyPairResponse {
|
|
78
|
+
export type AsObject = {
|
|
79
|
+
privateKey: string,
|
|
80
|
+
}
|
|
81
|
+
}
|
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);
|
package/lib/info_grpc_pb.d.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
|
-
import {handleClientStreamingCall} from "@grpc/grpc-js/build/src/server-call";
|
|
9
8
|
import * as info_pb from "./info_pb";
|
|
10
9
|
|
|
11
10
|
interface IInfoServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
package/lib/info_pb.d.ts
CHANGED
|
@@ -56,6 +56,14 @@ export class WorkspaceInfoResponse extends jspb.Message {
|
|
|
56
56
|
clearRepository(): void;
|
|
57
57
|
getRepository(): WorkspaceInfoResponse.Repository | undefined;
|
|
58
58
|
setRepository(value?: WorkspaceInfoResponse.Repository): WorkspaceInfoResponse;
|
|
59
|
+
getWorkspaceClusterHost(): string;
|
|
60
|
+
setWorkspaceClusterHost(value: string): WorkspaceInfoResponse;
|
|
61
|
+
getWorkspaceUrl(): string;
|
|
62
|
+
setWorkspaceUrl(value: string): WorkspaceInfoResponse;
|
|
63
|
+
getIdeAlias(): string;
|
|
64
|
+
setIdeAlias(value: string): WorkspaceInfoResponse;
|
|
65
|
+
getIdePort(): number;
|
|
66
|
+
setIdePort(value: number): WorkspaceInfoResponse;
|
|
59
67
|
|
|
60
68
|
getWorkspaceLocationCase(): WorkspaceInfoResponse.WorkspaceLocationCase;
|
|
61
69
|
|
|
@@ -81,6 +89,10 @@ export namespace WorkspaceInfoResponse {
|
|
|
81
89
|
gitpodHost: string,
|
|
82
90
|
workspaceContextUrl: string,
|
|
83
91
|
repository?: WorkspaceInfoResponse.Repository.AsObject,
|
|
92
|
+
workspaceClusterHost: string,
|
|
93
|
+
workspaceUrl: string,
|
|
94
|
+
ideAlias: string,
|
|
95
|
+
idePort: number,
|
|
84
96
|
}
|
|
85
97
|
|
|
86
98
|
|