@otterscale/api 0.1.0
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/package.json +40 -0
- package/src/feature_pb.d.ts +34 -0
- package/src/feature_pb.js +26 -0
- package/src/link/v1/link_pb.d.ts +255 -0
- package/src/link/v1/link_pb.js +71 -0
- package/src/resource/v1/resource_pb.d.ts +886 -0
- package/src/resource/v1/resource_pb.js +142 -0
- package/src/runtime/v1/runtime_pb.d.ts +622 -0
- package/src/runtime/v1/runtime_pb.js +108 -0
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file runtime/v1/runtime.proto (package otterscale.runtime.v1, edition 2023)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file runtime/v1/runtime.proto.
|
|
11
|
+
*/
|
|
12
|
+
export declare const file_runtime_v1_runtime: GenFile;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* PodLogRequest defines the parameters for streaming container logs.
|
|
16
|
+
* Fields align with corev1.PodLogOptions.
|
|
17
|
+
*
|
|
18
|
+
* @generated from message otterscale.runtime.v1.PodLogRequest
|
|
19
|
+
*/
|
|
20
|
+
export declare type PodLogRequest = Message<"otterscale.runtime.v1.PodLogRequest"> & {
|
|
21
|
+
/**
|
|
22
|
+
* The target Kubernetes cluster identifier.
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: string cluster = 1;
|
|
25
|
+
*/
|
|
26
|
+
cluster: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The namespace of the pod.
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: string namespace = 2;
|
|
32
|
+
*/
|
|
33
|
+
namespace: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The name of the pod.
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: string name = 3;
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The container name. If omitted, the first container in the pod is used.
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: string container = 4;
|
|
46
|
+
*/
|
|
47
|
+
container: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* If true, stream logs as they are produced (like `kubectl logs -f`).
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: bool follow = 5;
|
|
53
|
+
*/
|
|
54
|
+
follow: boolean;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Number of lines from the end of the logs to show. If not set, all logs are shown.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: int64 tail_lines = 6;
|
|
60
|
+
*/
|
|
61
|
+
tailLines: bigint;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A relative time in seconds before the current time from which to show logs.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: int64 since_seconds = 7;
|
|
67
|
+
*/
|
|
68
|
+
sinceSeconds: bigint;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* An absolute time from which to show logs. Mutually exclusive with since_seconds.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: google.protobuf.Timestamp since_time = 8;
|
|
74
|
+
*/
|
|
75
|
+
sinceTime?: Timestamp;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* If true, return the logs for the previous terminated container instance.
|
|
79
|
+
*
|
|
80
|
+
* @generated from field: bool previous = 9;
|
|
81
|
+
*/
|
|
82
|
+
previous: boolean;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* If true, add an RFC3339 timestamp at the beginning of every line of log output.
|
|
86
|
+
*
|
|
87
|
+
* @generated from field: bool timestamps = 10;
|
|
88
|
+
*/
|
|
89
|
+
timestamps: boolean;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Limit the number of bytes returned from the server.
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: int64 limit_bytes = 11;
|
|
95
|
+
*/
|
|
96
|
+
limitBytes: bigint;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Describes the message otterscale.runtime.v1.PodLogRequest.
|
|
101
|
+
* Use `create(PodLogRequestSchema)` to create a new message.
|
|
102
|
+
*/
|
|
103
|
+
export declare const PodLogRequestSchema: GenMessage<PodLogRequest>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* PodLogResponse contains a chunk of log data.
|
|
107
|
+
*
|
|
108
|
+
* @generated from message otterscale.runtime.v1.PodLogResponse
|
|
109
|
+
*/
|
|
110
|
+
export declare type PodLogResponse = Message<"otterscale.runtime.v1.PodLogResponse"> & {
|
|
111
|
+
/**
|
|
112
|
+
* Raw log data bytes.
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: bytes data = 1;
|
|
115
|
+
*/
|
|
116
|
+
data: Uint8Array;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Describes the message otterscale.runtime.v1.PodLogResponse.
|
|
121
|
+
* Use `create(PodLogResponseSchema)` to create a new message.
|
|
122
|
+
*/
|
|
123
|
+
export declare const PodLogResponseSchema: GenMessage<PodLogResponse>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* ExecuteTTYRequest defines the parameters for starting an interactive
|
|
127
|
+
* exec session in a container. Fields align with corev1.PodExecOptions.
|
|
128
|
+
*
|
|
129
|
+
* @generated from message otterscale.runtime.v1.ExecuteTTYRequest
|
|
130
|
+
*/
|
|
131
|
+
export declare type ExecuteTTYRequest = Message<"otterscale.runtime.v1.ExecuteTTYRequest"> & {
|
|
132
|
+
/**
|
|
133
|
+
* The target Kubernetes cluster identifier.
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: string cluster = 1;
|
|
136
|
+
*/
|
|
137
|
+
cluster: string;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The namespace of the pod.
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: string namespace = 2;
|
|
143
|
+
*/
|
|
144
|
+
namespace: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The name of the pod.
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: string name = 3;
|
|
150
|
+
*/
|
|
151
|
+
name: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The container to exec into. If omitted, the first container is used.
|
|
155
|
+
*
|
|
156
|
+
* @generated from field: string container = 4;
|
|
157
|
+
*/
|
|
158
|
+
container: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The command to execute (e.g. ["/bin/sh"]).
|
|
162
|
+
*
|
|
163
|
+
* @generated from field: repeated string command = 5;
|
|
164
|
+
*/
|
|
165
|
+
command: string[];
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* If true, allocate a TTY for the exec session.
|
|
169
|
+
*
|
|
170
|
+
* @generated from field: bool tty = 6;
|
|
171
|
+
*/
|
|
172
|
+
tty: boolean;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Initial terminal height in rows.
|
|
176
|
+
*
|
|
177
|
+
* @generated from field: uint32 rows = 7;
|
|
178
|
+
*/
|
|
179
|
+
rows: number;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Initial terminal width in columns.
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: uint32 cols = 8;
|
|
185
|
+
*/
|
|
186
|
+
cols: number;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Describes the message otterscale.runtime.v1.ExecuteTTYRequest.
|
|
191
|
+
* Use `create(ExecuteTTYRequestSchema)` to create a new message.
|
|
192
|
+
*/
|
|
193
|
+
export declare const ExecuteTTYRequestSchema: GenMessage<ExecuteTTYRequest>;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* ExecuteTTYResponse streams output from the exec session.
|
|
197
|
+
*
|
|
198
|
+
* @generated from message otterscale.runtime.v1.ExecuteTTYResponse
|
|
199
|
+
*/
|
|
200
|
+
export declare type ExecuteTTYResponse = Message<"otterscale.runtime.v1.ExecuteTTYResponse"> & {
|
|
201
|
+
/**
|
|
202
|
+
* The session identifier, set only in the first response message.
|
|
203
|
+
* Subsequent WriteTTY / ResizeTTY calls must reference this ID.
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: string session_id = 1;
|
|
206
|
+
*/
|
|
207
|
+
sessionId: string;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Stdout data from the exec session.
|
|
211
|
+
*
|
|
212
|
+
* @generated from field: bytes stdout = 2;
|
|
213
|
+
*/
|
|
214
|
+
stdout: Uint8Array;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Stderr data from the exec session (only when tty is false).
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: bytes stderr = 3;
|
|
220
|
+
*/
|
|
221
|
+
stderr: Uint8Array;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Describes the message otterscale.runtime.v1.ExecuteTTYResponse.
|
|
226
|
+
* Use `create(ExecuteTTYResponseSchema)` to create a new message.
|
|
227
|
+
*/
|
|
228
|
+
export declare const ExecuteTTYResponseSchema: GenMessage<ExecuteTTYResponse>;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* WriteTTYRequest sends stdin data to an active exec session.
|
|
232
|
+
*
|
|
233
|
+
* @generated from message otterscale.runtime.v1.WriteTTYRequest
|
|
234
|
+
*/
|
|
235
|
+
export declare type WriteTTYRequest = Message<"otterscale.runtime.v1.WriteTTYRequest"> & {
|
|
236
|
+
/**
|
|
237
|
+
* The session identifier returned in the first ExecuteTTYResponse.
|
|
238
|
+
*
|
|
239
|
+
* @generated from field: string session_id = 1;
|
|
240
|
+
*/
|
|
241
|
+
sessionId: string;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Stdin data to write.
|
|
245
|
+
*
|
|
246
|
+
* @generated from field: bytes stdin = 2;
|
|
247
|
+
*/
|
|
248
|
+
stdin: Uint8Array;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Describes the message otterscale.runtime.v1.WriteTTYRequest.
|
|
253
|
+
* Use `create(WriteTTYRequestSchema)` to create a new message.
|
|
254
|
+
*/
|
|
255
|
+
export declare const WriteTTYRequestSchema: GenMessage<WriteTTYRequest>;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* ResizeTTYRequest updates the terminal dimensions of an exec session.
|
|
259
|
+
*
|
|
260
|
+
* @generated from message otterscale.runtime.v1.ResizeTTYRequest
|
|
261
|
+
*/
|
|
262
|
+
export declare type ResizeTTYRequest = Message<"otterscale.runtime.v1.ResizeTTYRequest"> & {
|
|
263
|
+
/**
|
|
264
|
+
* The session identifier returned in the first ExecuteTTYResponse.
|
|
265
|
+
*
|
|
266
|
+
* @generated from field: string session_id = 1;
|
|
267
|
+
*/
|
|
268
|
+
sessionId: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* New terminal height in rows.
|
|
272
|
+
*
|
|
273
|
+
* @generated from field: uint32 rows = 2;
|
|
274
|
+
*/
|
|
275
|
+
rows: number;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* New terminal width in columns.
|
|
279
|
+
*
|
|
280
|
+
* @generated from field: uint32 cols = 3;
|
|
281
|
+
*/
|
|
282
|
+
cols: number;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Describes the message otterscale.runtime.v1.ResizeTTYRequest.
|
|
287
|
+
* Use `create(ResizeTTYRequestSchema)` to create a new message.
|
|
288
|
+
*/
|
|
289
|
+
export declare const ResizeTTYRequestSchema: GenMessage<ResizeTTYRequest>;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* PortForwardRequest defines the parameters for starting a port-forward session.
|
|
293
|
+
*
|
|
294
|
+
* @generated from message otterscale.runtime.v1.PortForwardRequest
|
|
295
|
+
*/
|
|
296
|
+
export declare type PortForwardRequest = Message<"otterscale.runtime.v1.PortForwardRequest"> & {
|
|
297
|
+
/**
|
|
298
|
+
* The target Kubernetes cluster identifier.
|
|
299
|
+
*
|
|
300
|
+
* @generated from field: string cluster = 1;
|
|
301
|
+
*/
|
|
302
|
+
cluster: string;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* The namespace of the pod.
|
|
306
|
+
*
|
|
307
|
+
* @generated from field: string namespace = 2;
|
|
308
|
+
*/
|
|
309
|
+
namespace: string;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* The name of the pod.
|
|
313
|
+
*
|
|
314
|
+
* @generated from field: string name = 3;
|
|
315
|
+
*/
|
|
316
|
+
name: string;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The container port to forward to.
|
|
320
|
+
*
|
|
321
|
+
* @generated from field: int32 port = 4;
|
|
322
|
+
*/
|
|
323
|
+
port: number;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Describes the message otterscale.runtime.v1.PortForwardRequest.
|
|
328
|
+
* Use `create(PortForwardRequestSchema)` to create a new message.
|
|
329
|
+
*/
|
|
330
|
+
export declare const PortForwardRequestSchema: GenMessage<PortForwardRequest>;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* PortForwardResponse streams data received from the forwarded port.
|
|
334
|
+
*
|
|
335
|
+
* @generated from message otterscale.runtime.v1.PortForwardResponse
|
|
336
|
+
*/
|
|
337
|
+
export declare type PortForwardResponse = Message<"otterscale.runtime.v1.PortForwardResponse"> & {
|
|
338
|
+
/**
|
|
339
|
+
* The session identifier, set only in the first response message.
|
|
340
|
+
* Subsequent WritePortForward calls must reference this ID.
|
|
341
|
+
*
|
|
342
|
+
* @generated from field: string session_id = 1;
|
|
343
|
+
*/
|
|
344
|
+
sessionId: string;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Data received from the forwarded port on the pod.
|
|
348
|
+
*
|
|
349
|
+
* @generated from field: bytes data = 2;
|
|
350
|
+
*/
|
|
351
|
+
data: Uint8Array;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Describes the message otterscale.runtime.v1.PortForwardResponse.
|
|
356
|
+
* Use `create(PortForwardResponseSchema)` to create a new message.
|
|
357
|
+
*/
|
|
358
|
+
export declare const PortForwardResponseSchema: GenMessage<PortForwardResponse>;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* WritePortForwardRequest sends data to an active port-forward session.
|
|
362
|
+
*
|
|
363
|
+
* @generated from message otterscale.runtime.v1.WritePortForwardRequest
|
|
364
|
+
*/
|
|
365
|
+
export declare type WritePortForwardRequest = Message<"otterscale.runtime.v1.WritePortForwardRequest"> & {
|
|
366
|
+
/**
|
|
367
|
+
* The session identifier returned in the first PortForwardResponse.
|
|
368
|
+
*
|
|
369
|
+
* @generated from field: string session_id = 1;
|
|
370
|
+
*/
|
|
371
|
+
sessionId: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Data to send to the forwarded port on the pod.
|
|
375
|
+
*
|
|
376
|
+
* @generated from field: bytes data = 2;
|
|
377
|
+
*/
|
|
378
|
+
data: Uint8Array;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Describes the message otterscale.runtime.v1.WritePortForwardRequest.
|
|
383
|
+
* Use `create(WritePortForwardRequestSchema)` to create a new message.
|
|
384
|
+
*/
|
|
385
|
+
export declare const WritePortForwardRequestSchema: GenMessage<WritePortForwardRequest>;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* ScaleRequest defines the parameters for scaling a workload.
|
|
389
|
+
* Uses the Kubernetes /scale subresource for correctness.
|
|
390
|
+
*
|
|
391
|
+
* @generated from message otterscale.runtime.v1.ScaleRequest
|
|
392
|
+
*/
|
|
393
|
+
export declare type ScaleRequest = Message<"otterscale.runtime.v1.ScaleRequest"> & {
|
|
394
|
+
/**
|
|
395
|
+
* The target Kubernetes cluster identifier.
|
|
396
|
+
*
|
|
397
|
+
* @generated from field: string cluster = 1;
|
|
398
|
+
*/
|
|
399
|
+
cluster: string;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Kubernetes API Group (e.g., "apps").
|
|
403
|
+
*
|
|
404
|
+
* @generated from field: string group = 2;
|
|
405
|
+
*/
|
|
406
|
+
group: string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Kubernetes API Version (e.g., "v1").
|
|
410
|
+
*
|
|
411
|
+
* @generated from field: string version = 3;
|
|
412
|
+
*/
|
|
413
|
+
version: string;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Kubernetes API Resource name in plural (e.g., "deployments").
|
|
417
|
+
*
|
|
418
|
+
* @generated from field: string resource = 4;
|
|
419
|
+
*/
|
|
420
|
+
resource: string;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* The namespace of the workload.
|
|
424
|
+
*
|
|
425
|
+
* @generated from field: string namespace = 5;
|
|
426
|
+
*/
|
|
427
|
+
namespace: string;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* The name of the workload.
|
|
431
|
+
*
|
|
432
|
+
* @generated from field: string name = 6;
|
|
433
|
+
*/
|
|
434
|
+
name: string;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* The desired number of replicas.
|
|
438
|
+
*
|
|
439
|
+
* @generated from field: int32 replicas = 7;
|
|
440
|
+
*/
|
|
441
|
+
replicas: number;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Describes the message otterscale.runtime.v1.ScaleRequest.
|
|
446
|
+
* Use `create(ScaleRequestSchema)` to create a new message.
|
|
447
|
+
*/
|
|
448
|
+
export declare const ScaleRequestSchema: GenMessage<ScaleRequest>;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* ScaleResponse contains the updated replica count after scaling.
|
|
452
|
+
*
|
|
453
|
+
* @generated from message otterscale.runtime.v1.ScaleResponse
|
|
454
|
+
*/
|
|
455
|
+
export declare type ScaleResponse = Message<"otterscale.runtime.v1.ScaleResponse"> & {
|
|
456
|
+
/**
|
|
457
|
+
* The current number of replicas after the scale operation.
|
|
458
|
+
*
|
|
459
|
+
* @generated from field: int32 replicas = 1;
|
|
460
|
+
*/
|
|
461
|
+
replicas: number;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Describes the message otterscale.runtime.v1.ScaleResponse.
|
|
466
|
+
* Use `create(ScaleResponseSchema)` to create a new message.
|
|
467
|
+
*/
|
|
468
|
+
export declare const ScaleResponseSchema: GenMessage<ScaleResponse>;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* RestartRequest defines the parameters for triggering a rolling restart.
|
|
472
|
+
* This patches the pod template annotation with kubectl.kubernetes.io/restartedAt,
|
|
473
|
+
* equivalent to `kubectl rollout restart`.
|
|
474
|
+
*
|
|
475
|
+
* @generated from message otterscale.runtime.v1.RestartRequest
|
|
476
|
+
*/
|
|
477
|
+
export declare type RestartRequest = Message<"otterscale.runtime.v1.RestartRequest"> & {
|
|
478
|
+
/**
|
|
479
|
+
* The target Kubernetes cluster identifier.
|
|
480
|
+
*
|
|
481
|
+
* @generated from field: string cluster = 1;
|
|
482
|
+
*/
|
|
483
|
+
cluster: string;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Kubernetes API Group (e.g., "apps").
|
|
487
|
+
*
|
|
488
|
+
* @generated from field: string group = 2;
|
|
489
|
+
*/
|
|
490
|
+
group: string;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Kubernetes API Version (e.g., "v1").
|
|
494
|
+
*
|
|
495
|
+
* @generated from field: string version = 3;
|
|
496
|
+
*/
|
|
497
|
+
version: string;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Kubernetes API Resource name in plural (e.g., "deployments").
|
|
501
|
+
*
|
|
502
|
+
* @generated from field: string resource = 4;
|
|
503
|
+
*/
|
|
504
|
+
resource: string;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* The namespace of the workload.
|
|
508
|
+
*
|
|
509
|
+
* @generated from field: string namespace = 5;
|
|
510
|
+
*/
|
|
511
|
+
namespace: string;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* The name of the workload.
|
|
515
|
+
*
|
|
516
|
+
* @generated from field: string name = 6;
|
|
517
|
+
*/
|
|
518
|
+
name: string;
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Describes the message otterscale.runtime.v1.RestartRequest.
|
|
523
|
+
* Use `create(RestartRequestSchema)` to create a new message.
|
|
524
|
+
*/
|
|
525
|
+
export declare const RestartRequestSchema: GenMessage<RestartRequest>;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* RuntimeService provides runtime operations for Kubernetes workloads,
|
|
529
|
+
* including log streaming, interactive exec, port forwarding, scaling,
|
|
530
|
+
* and rolling restarts.
|
|
531
|
+
*
|
|
532
|
+
* @generated from service otterscale.runtime.v1.RuntimeService
|
|
533
|
+
*/
|
|
534
|
+
export declare const RuntimeService: GenService<{
|
|
535
|
+
/**
|
|
536
|
+
* PodLog streams log output from a container, similar to `kubectl logs -f`.
|
|
537
|
+
*
|
|
538
|
+
* @generated from rpc otterscale.runtime.v1.RuntimeService.PodLog
|
|
539
|
+
*/
|
|
540
|
+
podLog: {
|
|
541
|
+
methodKind: "server_streaming";
|
|
542
|
+
input: typeof PodLogRequestSchema;
|
|
543
|
+
output: typeof PodLogResponseSchema;
|
|
544
|
+
},
|
|
545
|
+
/**
|
|
546
|
+
* ExecuteTTY starts an interactive exec session in a container and streams
|
|
547
|
+
* stdout/stderr back. Due to browser limitations, bidirectional streaming
|
|
548
|
+
* cannot be used; stdin is sent via the separate WriteTTY RPC.
|
|
549
|
+
*
|
|
550
|
+
* @generated from rpc otterscale.runtime.v1.RuntimeService.ExecuteTTY
|
|
551
|
+
*/
|
|
552
|
+
executeTTY: {
|
|
553
|
+
methodKind: "server_streaming";
|
|
554
|
+
input: typeof ExecuteTTYRequestSchema;
|
|
555
|
+
output: typeof ExecuteTTYResponseSchema;
|
|
556
|
+
},
|
|
557
|
+
/**
|
|
558
|
+
* WriteTTY sends stdin data to an active exec session identified by session_id.
|
|
559
|
+
*
|
|
560
|
+
* @generated from rpc otterscale.runtime.v1.RuntimeService.WriteTTY
|
|
561
|
+
*/
|
|
562
|
+
writeTTY: {
|
|
563
|
+
methodKind: "unary";
|
|
564
|
+
input: typeof WriteTTYRequestSchema;
|
|
565
|
+
output: typeof EmptySchema;
|
|
566
|
+
},
|
|
567
|
+
/**
|
|
568
|
+
* ResizeTTY updates the terminal dimensions of an active exec session.
|
|
569
|
+
*
|
|
570
|
+
* @generated from rpc otterscale.runtime.v1.RuntimeService.ResizeTTY
|
|
571
|
+
*/
|
|
572
|
+
resizeTTY: {
|
|
573
|
+
methodKind: "unary";
|
|
574
|
+
input: typeof ResizeTTYRequestSchema;
|
|
575
|
+
output: typeof EmptySchema;
|
|
576
|
+
},
|
|
577
|
+
/**
|
|
578
|
+
* PortForward opens a port-forward session to a pod and streams data back.
|
|
579
|
+
* Due to browser limitations, bidirectional streaming cannot be used;
|
|
580
|
+
* data to the pod is sent via the separate WritePortForward RPC.
|
|
581
|
+
*
|
|
582
|
+
* @generated from rpc otterscale.runtime.v1.RuntimeService.PortForward
|
|
583
|
+
*/
|
|
584
|
+
portForward: {
|
|
585
|
+
methodKind: "server_streaming";
|
|
586
|
+
input: typeof PortForwardRequestSchema;
|
|
587
|
+
output: typeof PortForwardResponseSchema;
|
|
588
|
+
},
|
|
589
|
+
/**
|
|
590
|
+
* WritePortForward sends data to an active port-forward session.
|
|
591
|
+
*
|
|
592
|
+
* @generated from rpc otterscale.runtime.v1.RuntimeService.WritePortForward
|
|
593
|
+
*/
|
|
594
|
+
writePortForward: {
|
|
595
|
+
methodKind: "unary";
|
|
596
|
+
input: typeof WritePortForwardRequestSchema;
|
|
597
|
+
output: typeof EmptySchema;
|
|
598
|
+
},
|
|
599
|
+
/**
|
|
600
|
+
* Scale updates the replica count of a scalable workload
|
|
601
|
+
* (Deployment, StatefulSet, ReplicaSet) via the /scale subresource.
|
|
602
|
+
*
|
|
603
|
+
* @generated from rpc otterscale.runtime.v1.RuntimeService.Scale
|
|
604
|
+
*/
|
|
605
|
+
scale: {
|
|
606
|
+
methodKind: "unary";
|
|
607
|
+
input: typeof ScaleRequestSchema;
|
|
608
|
+
output: typeof ScaleResponseSchema;
|
|
609
|
+
},
|
|
610
|
+
/**
|
|
611
|
+
* Restart triggers a rolling restart of a workload by patching the
|
|
612
|
+
* pod template annotation, equivalent to `kubectl rollout restart`.
|
|
613
|
+
*
|
|
614
|
+
* @generated from rpc otterscale.runtime.v1.RuntimeService.Restart
|
|
615
|
+
*/
|
|
616
|
+
restart: {
|
|
617
|
+
methodKind: "unary";
|
|
618
|
+
input: typeof RestartRequestSchema;
|
|
619
|
+
output: typeof EmptySchema;
|
|
620
|
+
},
|
|
621
|
+
}>;
|
|
622
|
+
|