@norskvideo/norsk-api 1.0.345 → 1.0.346
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/manager_grpc_pb.d.ts +97 -62
- package/lib/manager_grpc_pb.js +103 -58
- package/lib/manager_pb.d.ts +749 -482
- package/lib/manager_pb.js +829 -514
- package/lib/manager_pb.js.map +1 -1
- package/lib/manager_pb.ts +1170 -733
- package/lib/media_grpc_pb.d.ts +1 -0
- package/lib/media_grpc_pb.js +1 -0
- package/lib/media_pb.d.ts +134 -613
- package/lib/media_pb.js +141 -698
- package/lib/media_pb.js.map +1 -1
- package/lib/media_pb.ts +134 -820
- package/lib/shared/common_pb.d.ts +872 -1
- package/lib/shared/common_pb.js +1338 -69
- package/lib/shared/common_pb.js.map +1 -1
- package/lib/shared/common_pb.ts +1698 -57
- package/lib/shared/error_grpc_pb.js +1 -0
- package/lib/shared/error_pb.d.ts +413 -0
- package/lib/shared/error_pb.js +442 -0
- package/lib/shared/error_pb.js.map +1 -0
- package/lib/shared/error_pb.ts +546 -0
- package/lib/worker_grpc_pb.d.ts +3 -2
- package/lib/worker_grpc_pb.js +12 -11
- package/lib/worker_pb.d.ts +194 -102
- package/lib/worker_pb.js +221 -111
- package/lib/worker_pb.js.map +1 -1
- package/lib/worker_pb.ts +315 -152
- package/package.json +1 -1
package/lib/worker_pb.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
// @generated by protoc-gen-es v0.3.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file worker.proto (package norsk.api.
|
|
2
|
+
// @generated from file worker.proto (package norsk.api.worker, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
import { ActiveJobKey, JobId, JobInfoMessage, NodeMetadata, OptionalString, ResolvedPortMappings, Service, ServiceParameters } from "./shared/common_pb.js";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* TODO - see capacity comment in jobs.proto...
|
|
11
12
|
*
|
|
12
|
-
* @generated from message norsk.api.
|
|
13
|
+
* @generated from message norsk.api.worker.Capacity
|
|
13
14
|
*/
|
|
14
15
|
export class Capacity extends Message<Capacity> {
|
|
15
16
|
/**
|
|
@@ -43,7 +44,7 @@ export class Capacity extends Message<Capacity> {
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
static readonly runtime = proto3;
|
|
46
|
-
static readonly typeName = "norsk.api.
|
|
47
|
+
static readonly typeName = "norsk.api.worker.Capacity";
|
|
47
48
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
48
49
|
{ no: 1, name: "vCpus", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
49
50
|
{ no: 2, name: "memory", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
@@ -70,336 +71,489 @@ export class Capacity extends Message<Capacity> {
|
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
/**
|
|
73
|
-
* @generated from message norsk.api.
|
|
74
|
+
* @generated from message norsk.api.worker.Health
|
|
74
75
|
*/
|
|
75
|
-
export class
|
|
76
|
+
export class Health extends Message<Health> {
|
|
76
77
|
/**
|
|
77
|
-
* @generated from field:
|
|
78
|
+
* @generated from field: norsk.api.worker.Capacity measured_load = 1;
|
|
78
79
|
*/
|
|
79
|
-
|
|
80
|
+
measuredLoad?: Capacity;
|
|
81
|
+
|
|
82
|
+
constructor(data?: PartialMessage<Health>) {
|
|
83
|
+
super();
|
|
84
|
+
proto3.util.initPartial(data, this);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
static readonly runtime = proto3;
|
|
88
|
+
static readonly typeName = "norsk.api.worker.Health";
|
|
89
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
90
|
+
{ no: 1, name: "measured_load", kind: "message", T: Capacity },
|
|
91
|
+
]);
|
|
92
|
+
|
|
93
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Health {
|
|
94
|
+
return new Health().fromBinary(bytes, options);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Health {
|
|
98
|
+
return new Health().fromJson(jsonValue, options);
|
|
99
|
+
}
|
|
80
100
|
|
|
101
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Health {
|
|
102
|
+
return new Health().fromJsonString(jsonString, options);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static equals(a: Health | PlainMessage<Health> | undefined, b: Health | PlainMessage<Health> | undefined): boolean {
|
|
106
|
+
return proto3.util.equals(Health, a, b);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @generated from message norsk.api.worker.WorkerJob
|
|
112
|
+
*/
|
|
113
|
+
export class WorkerJob extends Message<WorkerJob> {
|
|
81
114
|
/**
|
|
82
|
-
* @generated from field:
|
|
115
|
+
* @generated from field: norsk.api.common.JobId job_id = 1;
|
|
116
|
+
*/
|
|
117
|
+
jobId?: JobId;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: string description = 2;
|
|
121
|
+
*/
|
|
122
|
+
description = "";
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: map<string, string> tags = 3;
|
|
83
126
|
*/
|
|
84
127
|
tags: { [key: string]: string } = {};
|
|
85
128
|
|
|
86
129
|
/**
|
|
87
|
-
* @generated from field:
|
|
130
|
+
* @generated from field: google.protobuf.Timestamp start_date_time = 4;
|
|
131
|
+
*/
|
|
132
|
+
startDateTime?: Timestamp;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: repeated norsk.api.common.Service services = 5;
|
|
136
|
+
*/
|
|
137
|
+
services: Service[] = [];
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @generated from field: string role = 6;
|
|
88
141
|
*/
|
|
89
|
-
|
|
142
|
+
role = "";
|
|
90
143
|
|
|
91
144
|
/**
|
|
92
|
-
* @generated from field:
|
|
145
|
+
* @generated from field: string norsk_media_version = 8;
|
|
93
146
|
*/
|
|
94
|
-
|
|
147
|
+
norskMediaVersion = "";
|
|
95
148
|
|
|
96
149
|
/**
|
|
97
|
-
* @generated from field:
|
|
150
|
+
* @generated from field: repeated string volumes = 9;
|
|
98
151
|
*/
|
|
99
|
-
|
|
152
|
+
volumes: string[] = [];
|
|
100
153
|
|
|
101
154
|
/**
|
|
102
|
-
* @generated from field:
|
|
155
|
+
* @generated from field: norsk.api.common.ServiceParameters norsk_service_parameters = 10;
|
|
103
156
|
*/
|
|
104
|
-
|
|
157
|
+
norskServiceParameters?: ServiceParameters;
|
|
105
158
|
|
|
106
|
-
constructor(data?: PartialMessage<
|
|
159
|
+
constructor(data?: PartialMessage<WorkerJob>) {
|
|
107
160
|
super();
|
|
108
161
|
proto3.util.initPartial(data, this);
|
|
109
162
|
}
|
|
110
163
|
|
|
111
164
|
static readonly runtime = proto3;
|
|
112
|
-
static readonly typeName = "norsk.api.
|
|
165
|
+
static readonly typeName = "norsk.api.worker.WorkerJob";
|
|
113
166
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
114
|
-
{ no: 1, name: "
|
|
115
|
-
{ no: 2, name: "
|
|
116
|
-
{ no: 3, name: "
|
|
117
|
-
{ no: 4, name: "
|
|
118
|
-
{ no: 5, name: "
|
|
119
|
-
{ no: 6, name: "
|
|
167
|
+
{ no: 1, name: "job_id", kind: "message", T: JobId },
|
|
168
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
169
|
+
{ no: 3, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
170
|
+
{ no: 4, name: "start_date_time", kind: "message", T: Timestamp },
|
|
171
|
+
{ no: 5, name: "services", kind: "message", T: Service, repeated: true },
|
|
172
|
+
{ no: 6, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
173
|
+
{ no: 8, name: "norsk_media_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
174
|
+
{ no: 9, name: "volumes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
175
|
+
{ no: 10, name: "norsk_service_parameters", kind: "message", T: ServiceParameters },
|
|
120
176
|
]);
|
|
121
177
|
|
|
122
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
123
|
-
return new
|
|
178
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerJob {
|
|
179
|
+
return new WorkerJob().fromBinary(bytes, options);
|
|
124
180
|
}
|
|
125
181
|
|
|
126
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
127
|
-
return new
|
|
182
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerJob {
|
|
183
|
+
return new WorkerJob().fromJson(jsonValue, options);
|
|
128
184
|
}
|
|
129
185
|
|
|
130
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
131
|
-
return new
|
|
186
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerJob {
|
|
187
|
+
return new WorkerJob().fromJsonString(jsonString, options);
|
|
132
188
|
}
|
|
133
189
|
|
|
134
|
-
static equals(a:
|
|
135
|
-
return proto3.util.equals(
|
|
190
|
+
static equals(a: WorkerJob | PlainMessage<WorkerJob> | undefined, b: WorkerJob | PlainMessage<WorkerJob> | undefined): boolean {
|
|
191
|
+
return proto3.util.equals(WorkerJob, a, b);
|
|
136
192
|
}
|
|
137
193
|
}
|
|
138
194
|
|
|
139
195
|
/**
|
|
140
|
-
* @generated from message norsk.api.
|
|
196
|
+
* @generated from message norsk.api.worker.UpdateJobConfig
|
|
141
197
|
*/
|
|
142
|
-
export class
|
|
198
|
+
export class UpdateJobConfig extends Message<UpdateJobConfig> {
|
|
143
199
|
/**
|
|
144
|
-
* @generated from field: norsk.api.
|
|
200
|
+
* @generated from field: norsk.api.common.JobId job_id = 1;
|
|
145
201
|
*/
|
|
146
|
-
|
|
202
|
+
jobId?: JobId;
|
|
147
203
|
|
|
148
|
-
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: string media_configuration = 2;
|
|
206
|
+
*/
|
|
207
|
+
mediaConfiguration = "";
|
|
208
|
+
|
|
209
|
+
constructor(data?: PartialMessage<UpdateJobConfig>) {
|
|
149
210
|
super();
|
|
150
211
|
proto3.util.initPartial(data, this);
|
|
151
212
|
}
|
|
152
213
|
|
|
153
214
|
static readonly runtime = proto3;
|
|
154
|
-
static readonly typeName = "norsk.api.
|
|
215
|
+
static readonly typeName = "norsk.api.worker.UpdateJobConfig";
|
|
155
216
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
156
|
-
{ no: 1, name: "
|
|
217
|
+
{ no: 1, name: "job_id", kind: "message", T: JobId },
|
|
218
|
+
{ no: 2, name: "media_configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
157
219
|
]);
|
|
158
220
|
|
|
159
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
160
|
-
return new
|
|
221
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateJobConfig {
|
|
222
|
+
return new UpdateJobConfig().fromBinary(bytes, options);
|
|
161
223
|
}
|
|
162
224
|
|
|
163
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
164
|
-
return new
|
|
225
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateJobConfig {
|
|
226
|
+
return new UpdateJobConfig().fromJson(jsonValue, options);
|
|
165
227
|
}
|
|
166
228
|
|
|
167
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
168
|
-
return new
|
|
229
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateJobConfig {
|
|
230
|
+
return new UpdateJobConfig().fromJsonString(jsonString, options);
|
|
169
231
|
}
|
|
170
232
|
|
|
171
|
-
static equals(a:
|
|
172
|
-
return proto3.util.equals(
|
|
233
|
+
static equals(a: UpdateJobConfig | PlainMessage<UpdateJobConfig> | undefined, b: UpdateJobConfig | PlainMessage<UpdateJobConfig> | undefined): boolean {
|
|
234
|
+
return proto3.util.equals(UpdateJobConfig, a, b);
|
|
173
235
|
}
|
|
174
236
|
}
|
|
175
237
|
|
|
176
238
|
/**
|
|
177
|
-
* @generated from message norsk.api.
|
|
239
|
+
* @generated from message norsk.api.worker.WorkerRunningJob
|
|
178
240
|
*/
|
|
179
|
-
export class
|
|
241
|
+
export class WorkerRunningJob extends Message<WorkerRunningJob> {
|
|
180
242
|
/**
|
|
181
|
-
* @generated from field:
|
|
243
|
+
* @generated from field: norsk.api.worker.WorkerJob job = 1;
|
|
182
244
|
*/
|
|
183
|
-
|
|
245
|
+
job?: WorkerJob;
|
|
184
246
|
|
|
185
|
-
|
|
247
|
+
/**
|
|
248
|
+
* @generated from field: map<string, norsk.api.common.ResolvedPortMappings> service_port_mappings = 2;
|
|
249
|
+
*/
|
|
250
|
+
servicePortMappings: { [key: string]: ResolvedPortMappings } = {};
|
|
251
|
+
|
|
252
|
+
constructor(data?: PartialMessage<WorkerRunningJob>) {
|
|
186
253
|
super();
|
|
187
254
|
proto3.util.initPartial(data, this);
|
|
188
255
|
}
|
|
189
256
|
|
|
190
257
|
static readonly runtime = proto3;
|
|
191
|
-
static readonly typeName = "norsk.api.
|
|
258
|
+
static readonly typeName = "norsk.api.worker.WorkerRunningJob";
|
|
192
259
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
193
|
-
{ no: 1, name: "
|
|
260
|
+
{ no: 1, name: "job", kind: "message", T: WorkerJob },
|
|
261
|
+
{ no: 2, name: "service_port_mappings", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ResolvedPortMappings} },
|
|
194
262
|
]);
|
|
195
263
|
|
|
196
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
197
|
-
return new
|
|
264
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerRunningJob {
|
|
265
|
+
return new WorkerRunningJob().fromBinary(bytes, options);
|
|
198
266
|
}
|
|
199
267
|
|
|
200
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
201
|
-
return new
|
|
268
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerRunningJob {
|
|
269
|
+
return new WorkerRunningJob().fromJson(jsonValue, options);
|
|
202
270
|
}
|
|
203
271
|
|
|
204
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
205
|
-
return new
|
|
272
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerRunningJob {
|
|
273
|
+
return new WorkerRunningJob().fromJsonString(jsonString, options);
|
|
206
274
|
}
|
|
207
275
|
|
|
208
|
-
static equals(a:
|
|
209
|
-
return proto3.util.equals(
|
|
276
|
+
static equals(a: WorkerRunningJob | PlainMessage<WorkerRunningJob> | undefined, b: WorkerRunningJob | PlainMessage<WorkerRunningJob> | undefined): boolean {
|
|
277
|
+
return proto3.util.equals(WorkerRunningJob, a, b);
|
|
210
278
|
}
|
|
211
279
|
}
|
|
212
280
|
|
|
213
281
|
/**
|
|
214
|
-
* @generated from message norsk.api.
|
|
282
|
+
* @generated from message norsk.api.worker.WorkerAuthenticationToken
|
|
215
283
|
*/
|
|
216
|
-
export class
|
|
284
|
+
export class WorkerAuthenticationToken extends Message<WorkerAuthenticationToken> {
|
|
217
285
|
/**
|
|
218
|
-
* @generated from field:
|
|
286
|
+
* @generated from field: string instance_id = 1;
|
|
219
287
|
*/
|
|
220
|
-
|
|
288
|
+
instanceId = "";
|
|
221
289
|
|
|
222
290
|
/**
|
|
223
|
-
* @generated from field: string
|
|
291
|
+
* @generated from field: string cookie = 2;
|
|
224
292
|
*/
|
|
225
|
-
|
|
293
|
+
cookie = "";
|
|
226
294
|
|
|
227
295
|
/**
|
|
228
|
-
* @generated from field:
|
|
296
|
+
* @generated from field: norsk.api.common.OptionalString signature = 3;
|
|
229
297
|
*/
|
|
230
|
-
|
|
298
|
+
signature?: OptionalString;
|
|
299
|
+
|
|
300
|
+
constructor(data?: PartialMessage<WorkerAuthenticationToken>) {
|
|
301
|
+
super();
|
|
302
|
+
proto3.util.initPartial(data, this);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
static readonly runtime = proto3;
|
|
306
|
+
static readonly typeName = "norsk.api.worker.WorkerAuthenticationToken";
|
|
307
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
308
|
+
{ no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
309
|
+
{ no: 2, name: "cookie", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
310
|
+
{ no: 3, name: "signature", kind: "message", T: OptionalString },
|
|
311
|
+
]);
|
|
312
|
+
|
|
313
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerAuthenticationToken {
|
|
314
|
+
return new WorkerAuthenticationToken().fromBinary(bytes, options);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerAuthenticationToken {
|
|
318
|
+
return new WorkerAuthenticationToken().fromJson(jsonValue, options);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerAuthenticationToken {
|
|
322
|
+
return new WorkerAuthenticationToken().fromJsonString(jsonString, options);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
static equals(a: WorkerAuthenticationToken | PlainMessage<WorkerAuthenticationToken> | undefined, b: WorkerAuthenticationToken | PlainMessage<WorkerAuthenticationToken> | undefined): boolean {
|
|
326
|
+
return proto3.util.equals(WorkerAuthenticationToken, a, b);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @generated from message norsk.api.worker.WorkerHello
|
|
332
|
+
*/
|
|
333
|
+
export class WorkerHello extends Message<WorkerHello> {
|
|
334
|
+
/**
|
|
335
|
+
* @generated from field: norsk.api.common.NodeMetadata node_metadata = 1;
|
|
336
|
+
*/
|
|
337
|
+
nodeMetadata?: NodeMetadata;
|
|
231
338
|
|
|
232
339
|
/**
|
|
233
|
-
* @generated from field:
|
|
340
|
+
* @generated from field: norsk.api.worker.Capacity measured_load = 2;
|
|
234
341
|
*/
|
|
235
|
-
|
|
342
|
+
measuredLoad?: Capacity;
|
|
236
343
|
|
|
237
344
|
/**
|
|
238
|
-
* @generated from field:
|
|
345
|
+
* @generated from field: string shared_secret = 3;
|
|
239
346
|
*/
|
|
240
|
-
|
|
347
|
+
sharedSecret = "";
|
|
241
348
|
|
|
242
349
|
/**
|
|
243
|
-
* @generated from field:
|
|
350
|
+
* @generated from field: repeated norsk.api.worker.WorkerRunningJob running_jobs = 4;
|
|
244
351
|
*/
|
|
245
|
-
|
|
352
|
+
runningJobs: WorkerRunningJob[] = [];
|
|
246
353
|
|
|
247
|
-
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: norsk.api.worker.WorkerAuthenticationToken token = 5;
|
|
356
|
+
*/
|
|
357
|
+
token?: WorkerAuthenticationToken;
|
|
358
|
+
|
|
359
|
+
constructor(data?: PartialMessage<WorkerHello>) {
|
|
248
360
|
super();
|
|
249
361
|
proto3.util.initPartial(data, this);
|
|
250
362
|
}
|
|
251
363
|
|
|
252
364
|
static readonly runtime = proto3;
|
|
253
|
-
static readonly typeName = "norsk.api.
|
|
365
|
+
static readonly typeName = "norsk.api.worker.WorkerHello";
|
|
254
366
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
255
|
-
{ no: 1, name: "
|
|
256
|
-
{ no: 2, name: "
|
|
257
|
-
{ no: 3, name: "
|
|
258
|
-
{ no: 4, name: "
|
|
259
|
-
{ no: 5, name: "
|
|
260
|
-
{ no: 6, name: "media_configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
367
|
+
{ no: 1, name: "node_metadata", kind: "message", T: NodeMetadata },
|
|
368
|
+
{ no: 2, name: "measured_load", kind: "message", T: Capacity },
|
|
369
|
+
{ no: 3, name: "shared_secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
370
|
+
{ no: 4, name: "running_jobs", kind: "message", T: WorkerRunningJob, repeated: true },
|
|
371
|
+
{ no: 5, name: "token", kind: "message", T: WorkerAuthenticationToken },
|
|
261
372
|
]);
|
|
262
373
|
|
|
263
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
264
|
-
return new
|
|
374
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerHello {
|
|
375
|
+
return new WorkerHello().fromBinary(bytes, options);
|
|
265
376
|
}
|
|
266
377
|
|
|
267
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
268
|
-
return new
|
|
378
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerHello {
|
|
379
|
+
return new WorkerHello().fromJson(jsonValue, options);
|
|
269
380
|
}
|
|
270
381
|
|
|
271
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
272
|
-
return new
|
|
382
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerHello {
|
|
383
|
+
return new WorkerHello().fromJsonString(jsonString, options);
|
|
273
384
|
}
|
|
274
385
|
|
|
275
|
-
static equals(a:
|
|
276
|
-
return proto3.util.equals(
|
|
386
|
+
static equals(a: WorkerHello | PlainMessage<WorkerHello> | undefined, b: WorkerHello | PlainMessage<WorkerHello> | undefined): boolean {
|
|
387
|
+
return proto3.util.equals(WorkerHello, a, b);
|
|
277
388
|
}
|
|
278
389
|
}
|
|
279
390
|
|
|
280
391
|
/**
|
|
281
|
-
* @generated from message norsk.api.
|
|
392
|
+
* @generated from message norsk.api.worker.WorkerJobStarted
|
|
282
393
|
*/
|
|
283
|
-
export class
|
|
394
|
+
export class WorkerJobStarted extends Message<WorkerJobStarted> {
|
|
284
395
|
/**
|
|
285
|
-
* @generated from field: norsk.api.
|
|
396
|
+
* @generated from field: norsk.api.common.ActiveJobKey job_key = 1;
|
|
286
397
|
*/
|
|
287
|
-
|
|
398
|
+
jobKey?: ActiveJobKey;
|
|
288
399
|
|
|
289
400
|
/**
|
|
290
|
-
* @generated from field: string
|
|
401
|
+
* @generated from field: map<string, norsk.api.common.ResolvedPortMappings> service_port_mappings = 2;
|
|
291
402
|
*/
|
|
292
|
-
|
|
403
|
+
servicePortMappings: { [key: string]: ResolvedPortMappings } = {};
|
|
293
404
|
|
|
294
|
-
constructor(data?: PartialMessage<
|
|
405
|
+
constructor(data?: PartialMessage<WorkerJobStarted>) {
|
|
295
406
|
super();
|
|
296
407
|
proto3.util.initPartial(data, this);
|
|
297
408
|
}
|
|
298
409
|
|
|
299
410
|
static readonly runtime = proto3;
|
|
300
|
-
static readonly typeName = "norsk.api.
|
|
411
|
+
static readonly typeName = "norsk.api.worker.WorkerJobStarted";
|
|
301
412
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
302
|
-
{ no: 1, name: "
|
|
303
|
-
{ no: 2, name: "
|
|
413
|
+
{ no: 1, name: "job_key", kind: "message", T: ActiveJobKey },
|
|
414
|
+
{ no: 2, name: "service_port_mappings", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ResolvedPortMappings} },
|
|
304
415
|
]);
|
|
305
416
|
|
|
306
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
307
|
-
return new
|
|
417
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerJobStarted {
|
|
418
|
+
return new WorkerJobStarted().fromBinary(bytes, options);
|
|
308
419
|
}
|
|
309
420
|
|
|
310
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
311
|
-
return new
|
|
421
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerJobStarted {
|
|
422
|
+
return new WorkerJobStarted().fromJson(jsonValue, options);
|
|
312
423
|
}
|
|
313
424
|
|
|
314
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
315
|
-
return new
|
|
425
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerJobStarted {
|
|
426
|
+
return new WorkerJobStarted().fromJsonString(jsonString, options);
|
|
316
427
|
}
|
|
317
428
|
|
|
318
|
-
static equals(a:
|
|
319
|
-
return proto3.util.equals(
|
|
429
|
+
static equals(a: WorkerJobStarted | PlainMessage<WorkerJobStarted> | undefined, b: WorkerJobStarted | PlainMessage<WorkerJobStarted> | undefined): boolean {
|
|
430
|
+
return proto3.util.equals(WorkerJobStarted, a, b);
|
|
320
431
|
}
|
|
321
432
|
}
|
|
322
433
|
|
|
323
434
|
/**
|
|
324
|
-
* @generated from message norsk.api.
|
|
435
|
+
* @generated from message norsk.api.worker.WorkerJobFailed
|
|
325
436
|
*/
|
|
326
|
-
export class
|
|
437
|
+
export class WorkerJobFailed extends Message<WorkerJobFailed> {
|
|
327
438
|
/**
|
|
328
|
-
* @generated from field: norsk.api.
|
|
439
|
+
* @generated from field: norsk.api.common.ActiveJobKey job_key = 1;
|
|
329
440
|
*/
|
|
330
|
-
|
|
441
|
+
jobKey?: ActiveJobKey;
|
|
331
442
|
|
|
332
443
|
/**
|
|
333
|
-
* @generated from field:
|
|
444
|
+
* @generated from field: string reason = 2;
|
|
334
445
|
*/
|
|
335
|
-
|
|
446
|
+
reason = "";
|
|
336
447
|
|
|
448
|
+
constructor(data?: PartialMessage<WorkerJobFailed>) {
|
|
449
|
+
super();
|
|
450
|
+
proto3.util.initPartial(data, this);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
static readonly runtime = proto3;
|
|
454
|
+
static readonly typeName = "norsk.api.worker.WorkerJobFailed";
|
|
455
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
456
|
+
{ no: 1, name: "job_key", kind: "message", T: ActiveJobKey },
|
|
457
|
+
{ no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
458
|
+
]);
|
|
459
|
+
|
|
460
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerJobFailed {
|
|
461
|
+
return new WorkerJobFailed().fromBinary(bytes, options);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerJobFailed {
|
|
465
|
+
return new WorkerJobFailed().fromJson(jsonValue, options);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerJobFailed {
|
|
469
|
+
return new WorkerJobFailed().fromJsonString(jsonString, options);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
static equals(a: WorkerJobFailed | PlainMessage<WorkerJobFailed> | undefined, b: WorkerJobFailed | PlainMessage<WorkerJobFailed> | undefined): boolean {
|
|
473
|
+
return proto3.util.equals(WorkerJobFailed, a, b);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* @generated from message norsk.api.worker.WorkerHelloResponse
|
|
479
|
+
*/
|
|
480
|
+
export class WorkerHelloResponse extends Message<WorkerHelloResponse> {
|
|
337
481
|
/**
|
|
338
|
-
* @generated from field:
|
|
482
|
+
* @generated from field: string license = 1;
|
|
339
483
|
*/
|
|
340
|
-
|
|
484
|
+
license = "";
|
|
341
485
|
|
|
342
|
-
constructor(data?: PartialMessage<
|
|
486
|
+
constructor(data?: PartialMessage<WorkerHelloResponse>) {
|
|
343
487
|
super();
|
|
344
488
|
proto3.util.initPartial(data, this);
|
|
345
489
|
}
|
|
346
490
|
|
|
347
491
|
static readonly runtime = proto3;
|
|
348
|
-
static readonly typeName = "norsk.api.
|
|
492
|
+
static readonly typeName = "norsk.api.worker.WorkerHelloResponse";
|
|
349
493
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
350
|
-
{ no: 1, name: "
|
|
351
|
-
{ no: 2, name: "measured_load", kind: "message", T: Capacity },
|
|
352
|
-
{ no: 3, name: "running_jobs", kind: "message", T: WorkerJob, repeated: true },
|
|
494
|
+
{ no: 1, name: "license", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
353
495
|
]);
|
|
354
496
|
|
|
355
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
356
|
-
return new
|
|
497
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerHelloResponse {
|
|
498
|
+
return new WorkerHelloResponse().fromBinary(bytes, options);
|
|
357
499
|
}
|
|
358
500
|
|
|
359
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
360
|
-
return new
|
|
501
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerHelloResponse {
|
|
502
|
+
return new WorkerHelloResponse().fromJson(jsonValue, options);
|
|
361
503
|
}
|
|
362
504
|
|
|
363
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
364
|
-
return new
|
|
505
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerHelloResponse {
|
|
506
|
+
return new WorkerHelloResponse().fromJsonString(jsonString, options);
|
|
365
507
|
}
|
|
366
508
|
|
|
367
|
-
static equals(a:
|
|
368
|
-
return proto3.util.equals(
|
|
509
|
+
static equals(a: WorkerHelloResponse | PlainMessage<WorkerHelloResponse> | undefined, b: WorkerHelloResponse | PlainMessage<WorkerHelloResponse> | undefined): boolean {
|
|
510
|
+
return proto3.util.equals(WorkerHelloResponse, a, b);
|
|
369
511
|
}
|
|
370
512
|
}
|
|
371
513
|
|
|
372
514
|
/**
|
|
373
|
-
* @generated from message norsk.api.
|
|
515
|
+
* @generated from message norsk.api.worker.WorkerMessage
|
|
374
516
|
*/
|
|
375
517
|
export class WorkerMessage extends Message<WorkerMessage> {
|
|
376
518
|
/**
|
|
377
|
-
* @generated from oneof norsk.api.
|
|
519
|
+
* @generated from oneof norsk.api.worker.WorkerMessage.message
|
|
378
520
|
*/
|
|
379
521
|
message: {
|
|
380
522
|
/**
|
|
381
|
-
* @generated from field: norsk.api.
|
|
523
|
+
* @generated from field: norsk.api.worker.WorkerHello hello = 1;
|
|
382
524
|
*/
|
|
383
525
|
value: WorkerHello;
|
|
384
526
|
case: "hello";
|
|
385
527
|
} | {
|
|
386
528
|
/**
|
|
387
|
-
* @generated from field: norsk.api.
|
|
529
|
+
* @generated from field: norsk.api.worker.Health health = 2;
|
|
388
530
|
*/
|
|
389
531
|
value: Health;
|
|
390
532
|
case: "health";
|
|
391
533
|
} | {
|
|
392
534
|
/**
|
|
393
|
-
* @generated from field: norsk.api.
|
|
535
|
+
* @generated from field: norsk.api.worker.WorkerJobStarted job_started = 3;
|
|
394
536
|
*/
|
|
395
|
-
value:
|
|
537
|
+
value: WorkerJobStarted;
|
|
396
538
|
case: "jobStarted";
|
|
397
539
|
} | {
|
|
398
540
|
/**
|
|
399
|
-
* @generated from field: norsk.api.
|
|
541
|
+
* @generated from field: norsk.api.common.ActiveJobKey job_stopped = 4;
|
|
400
542
|
*/
|
|
401
|
-
value:
|
|
543
|
+
value: ActiveJobKey;
|
|
402
544
|
case: "jobStopped";
|
|
545
|
+
} | {
|
|
546
|
+
/**
|
|
547
|
+
* @generated from field: norsk.api.worker.WorkerJobFailed job_failed = 5;
|
|
548
|
+
*/
|
|
549
|
+
value: WorkerJobFailed;
|
|
550
|
+
case: "jobFailed";
|
|
551
|
+
} | {
|
|
552
|
+
/**
|
|
553
|
+
* @generated from field: norsk.api.common.JobInfoMessage job_info = 6;
|
|
554
|
+
*/
|
|
555
|
+
value: JobInfoMessage;
|
|
556
|
+
case: "jobInfo";
|
|
403
557
|
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
404
558
|
|
|
405
559
|
constructor(data?: PartialMessage<WorkerMessage>) {
|
|
@@ -408,12 +562,14 @@ export class WorkerMessage extends Message<WorkerMessage> {
|
|
|
408
562
|
}
|
|
409
563
|
|
|
410
564
|
static readonly runtime = proto3;
|
|
411
|
-
static readonly typeName = "norsk.api.
|
|
565
|
+
static readonly typeName = "norsk.api.worker.WorkerMessage";
|
|
412
566
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
413
567
|
{ no: 1, name: "hello", kind: "message", T: WorkerHello, oneof: "message" },
|
|
414
568
|
{ no: 2, name: "health", kind: "message", T: Health, oneof: "message" },
|
|
415
|
-
{ no: 3, name: "
|
|
416
|
-
{ no: 4, name: "
|
|
569
|
+
{ no: 3, name: "job_started", kind: "message", T: WorkerJobStarted, oneof: "message" },
|
|
570
|
+
{ no: 4, name: "job_stopped", kind: "message", T: ActiveJobKey, oneof: "message" },
|
|
571
|
+
{ no: 5, name: "job_failed", kind: "message", T: WorkerJobFailed, oneof: "message" },
|
|
572
|
+
{ no: 6, name: "job_info", kind: "message", T: JobInfoMessage, oneof: "message" },
|
|
417
573
|
]);
|
|
418
574
|
|
|
419
575
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerMessage {
|
|
@@ -434,27 +590,33 @@ export class WorkerMessage extends Message<WorkerMessage> {
|
|
|
434
590
|
}
|
|
435
591
|
|
|
436
592
|
/**
|
|
437
|
-
* @generated from message norsk.api.
|
|
593
|
+
* @generated from message norsk.api.worker.NodeControllerMessage
|
|
438
594
|
*/
|
|
439
595
|
export class NodeControllerMessage extends Message<NodeControllerMessage> {
|
|
440
596
|
/**
|
|
441
|
-
* @generated from oneof norsk.api.
|
|
597
|
+
* @generated from oneof norsk.api.worker.NodeControllerMessage.message
|
|
442
598
|
*/
|
|
443
599
|
message: {
|
|
444
600
|
/**
|
|
445
|
-
* @generated from field: norsk.api.
|
|
601
|
+
* @generated from field: norsk.api.worker.WorkerHelloResponse hello_response = 1;
|
|
602
|
+
*/
|
|
603
|
+
value: WorkerHelloResponse;
|
|
604
|
+
case: "helloResponse";
|
|
605
|
+
} | {
|
|
606
|
+
/**
|
|
607
|
+
* @generated from field: norsk.api.worker.WorkerJob provision_job = 2;
|
|
446
608
|
*/
|
|
447
609
|
value: WorkerJob;
|
|
448
610
|
case: "provisionJob";
|
|
449
611
|
} | {
|
|
450
612
|
/**
|
|
451
|
-
* @generated from field: norsk.api.
|
|
613
|
+
* @generated from field: norsk.api.common.ActiveJobKey stop_job = 3;
|
|
452
614
|
*/
|
|
453
|
-
value:
|
|
615
|
+
value: ActiveJobKey;
|
|
454
616
|
case: "stopJob";
|
|
455
617
|
} | {
|
|
456
618
|
/**
|
|
457
|
-
* @generated from field: norsk.api.
|
|
619
|
+
* @generated from field: norsk.api.worker.WorkerJob update_job = 4;
|
|
458
620
|
*/
|
|
459
621
|
value: WorkerJob;
|
|
460
622
|
case: "updateJob";
|
|
@@ -466,11 +628,12 @@ export class NodeControllerMessage extends Message<NodeControllerMessage> {
|
|
|
466
628
|
}
|
|
467
629
|
|
|
468
630
|
static readonly runtime = proto3;
|
|
469
|
-
static readonly typeName = "norsk.api.
|
|
631
|
+
static readonly typeName = "norsk.api.worker.NodeControllerMessage";
|
|
470
632
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
471
|
-
{ no: 1, name: "
|
|
472
|
-
{ no: 2, name: "
|
|
473
|
-
{ no: 3, name: "
|
|
633
|
+
{ no: 1, name: "hello_response", kind: "message", T: WorkerHelloResponse, oneof: "message" },
|
|
634
|
+
{ no: 2, name: "provision_job", kind: "message", T: WorkerJob, oneof: "message" },
|
|
635
|
+
{ no: 3, name: "stop_job", kind: "message", T: ActiveJobKey, oneof: "message" },
|
|
636
|
+
{ no: 4, name: "update_job", kind: "message", T: WorkerJob, oneof: "message" },
|
|
474
637
|
]);
|
|
475
638
|
|
|
476
639
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeControllerMessage {
|