@rise-maritime/keelson-js 0.6.0-alpha.282.dev.2 → 0.6.0-alpha.307.dev.1
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/dist/index.d.ts +31 -31
- package/dist/interfaces/ContainerControl.d.ts +7 -0
- package/dist/interfaces/ContainerControl.js +18 -1
- package/dist/interfaces/ContainerHost.d.ts +45 -0
- package/dist/interfaces/ContainerHost.js +332 -1
- package/dist/interfaces/NavigationRiskControl.d.ts +161 -0
- package/dist/interfaces/NavigationRiskControl.js +1007 -0
- package/dist/interfaces/ReplayControl.d.ts +49 -1
- package/dist/interfaces/ReplayControl.js +274 -1
- package/dist/interfaces/Route.d.ts +3 -0
- package/dist/interfaces/serviceRegistry.d.ts +33 -33
- package/dist/interfaces/serviceRegistry.js +2 -2
- package/dist/interfaces.json +1 -1
- package/dist/payloads/AdviceDisposition.d.ts +20 -5
- package/dist/payloads/AdviceDisposition.js +7 -0
- package/dist/payloads/ContainerHost.d.ts +48 -0
- package/dist/payloads/ContainerHost.js +341 -1
- package/dist/payloads/NavigationAdvice.d.ts +24 -0
- package/dist/payloads/NavigationAdvice.js +91 -1
- package/dist/payloads/NavigationRisk.d.ts +341 -0
- package/dist/payloads/NavigationRisk.js +2530 -0
- package/dist/payloads/NavigationState.d.ts +0 -46
- package/dist/payloads/NavigationState.js +1 -252
- package/dist/payloads/Route.d.ts +3 -0
- package/dist/payloads/index.keelson.d.ts +1 -0
- package/dist/payloads/index.keelson.js +1 -0
- package/dist/subjects.json +1 -0
- package/package.json +1 -1
- package/dist/interfaces/NavigationControl.d.ts +0 -169
- package/dist/interfaces/NavigationControl.js +0 -806
- package/dist/interfaces/NavigationState.d.ts +0 -132
- package/dist/interfaces/NavigationState.js +0 -615
- package/dist/interfaces/OperationalAuthority.d.ts +0 -217
- package/dist/interfaces/OperationalAuthority.js +0 -807
- package/dist/interfaces/VesselType.d.ts +0 -133
- package/dist/interfaces/VesselType.js +0 -726
- package/dist/interfaces/Voyage.d.ts +0 -151
- package/dist/interfaces/Voyage.js +0 -855
package/dist/index.d.ts
CHANGED
|
@@ -132,51 +132,43 @@ export declare function getInterfaceDefinition(interfaceAndVersion: string): {
|
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
134
|
} | {
|
|
135
|
-
readonly name: "
|
|
136
|
-
readonly fullName: "keelson.interfaces.
|
|
135
|
+
readonly name: "NetworkPingPong";
|
|
136
|
+
readonly fullName: "keelson.interfaces.network_ping_pong.NetworkPingPong";
|
|
137
137
|
readonly methods: {
|
|
138
|
-
readonly
|
|
139
|
-
readonly name: "
|
|
140
|
-
readonly requestType: import("./interfaces/
|
|
141
|
-
readonly requestStream: false;
|
|
142
|
-
readonly responseType: import("./interfaces/NavigationControl").MessageFns<import("./interfaces/NavigationControl").LoadRouteResponse>;
|
|
143
|
-
readonly responseStream: false;
|
|
144
|
-
readonly options: {};
|
|
145
|
-
};
|
|
146
|
-
readonly set_guidance_order: {
|
|
147
|
-
readonly name: "set_guidance_order";
|
|
148
|
-
readonly requestType: import("./interfaces/NavigationControl").MessageFns<import("./interfaces/NavigationControl").SetGuidanceOrderRequest>;
|
|
138
|
+
readonly ping_network: {
|
|
139
|
+
readonly name: "ping_network";
|
|
140
|
+
readonly requestType: import("./interfaces/NetworkPingPong").MessageFns<import("./interfaces/NetworkPingPong").NetworkPing>;
|
|
149
141
|
readonly requestStream: false;
|
|
150
|
-
readonly responseType: import("./interfaces/
|
|
142
|
+
readonly responseType: import("./interfaces/NetworkPingPong").MessageFns<import("./interfaces/NetworkPingPong").NetworkPong>;
|
|
151
143
|
readonly responseStream: false;
|
|
152
144
|
readonly options: {};
|
|
153
145
|
};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
146
|
+
};
|
|
147
|
+
} | {
|
|
148
|
+
readonly name: "NavigationRiskControl";
|
|
149
|
+
readonly fullName: "keelson.interfaces.navigation_risk_control.NavigationRiskControl";
|
|
150
|
+
readonly methods: {
|
|
151
|
+
readonly list_assessments: {
|
|
152
|
+
readonly name: "list_assessments";
|
|
153
|
+
readonly requestType: import("./interfaces/NavigationRiskControl").MessageFns<import("./interfaces/NavigationRiskControl").ListAssessmentsRequest>;
|
|
157
154
|
readonly requestStream: false;
|
|
158
|
-
readonly responseType: import("./interfaces/
|
|
155
|
+
readonly responseType: import("./interfaces/NavigationRiskControl").MessageFns<import("./interfaces/NavigationRiskControl").ListAssessmentsResponse>;
|
|
159
156
|
readonly responseStream: false;
|
|
160
157
|
readonly options: {};
|
|
161
158
|
};
|
|
162
|
-
readonly
|
|
163
|
-
readonly name: "
|
|
164
|
-
readonly requestType: import("./interfaces/
|
|
159
|
+
readonly start_assessment: {
|
|
160
|
+
readonly name: "start_assessment";
|
|
161
|
+
readonly requestType: import("./interfaces/NavigationRiskControl").MessageFns<import("./interfaces/NavigationRiskControl").StartAssessmentRequest>;
|
|
165
162
|
readonly requestStream: false;
|
|
166
|
-
readonly responseType: import("./interfaces/
|
|
163
|
+
readonly responseType: import("./interfaces/NavigationRiskControl").MessageFns<import("./interfaces/NavigationRiskControl").StartAssessmentResponse>;
|
|
167
164
|
readonly responseStream: false;
|
|
168
165
|
readonly options: {};
|
|
169
166
|
};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
readonly fullName: "keelson.interfaces.network_ping_pong.NetworkPingPong";
|
|
174
|
-
readonly methods: {
|
|
175
|
-
readonly ping_network: {
|
|
176
|
-
readonly name: "ping_network";
|
|
177
|
-
readonly requestType: import("./interfaces/NetworkPingPong").MessageFns<import("./interfaces/NetworkPingPong").NetworkPing>;
|
|
167
|
+
readonly stop_assessment: {
|
|
168
|
+
readonly name: "stop_assessment";
|
|
169
|
+
readonly requestType: import("./interfaces/NavigationRiskControl").MessageFns<import("./interfaces/NavigationRiskControl").StopAssessmentRequest>;
|
|
178
170
|
readonly requestStream: false;
|
|
179
|
-
readonly responseType: import("./interfaces/
|
|
171
|
+
readonly responseType: import("./interfaces/NavigationRiskControl").MessageFns<import("./interfaces/NavigationRiskControl").StopAssessmentResponse>;
|
|
180
172
|
readonly responseStream: false;
|
|
181
173
|
readonly options: {};
|
|
182
174
|
};
|
|
@@ -193,6 +185,14 @@ export declare function getInterfaceDefinition(interfaceAndVersion: string): {
|
|
|
193
185
|
readonly responseStream: false;
|
|
194
186
|
readonly options: {};
|
|
195
187
|
};
|
|
188
|
+
readonly describe_file: {
|
|
189
|
+
readonly name: "describe_file";
|
|
190
|
+
readonly requestType: import("./interfaces/ReplayControl").MessageFns<import("./interfaces/ReplayControl").DescribeFileRequest>;
|
|
191
|
+
readonly requestStream: false;
|
|
192
|
+
readonly responseType: import("./interfaces/ReplayControl").MessageFns<import("./interfaces/ReplayControl").DescribeFileResponse>;
|
|
193
|
+
readonly responseStream: false;
|
|
194
|
+
readonly options: {};
|
|
195
|
+
};
|
|
196
196
|
readonly load_file: {
|
|
197
197
|
readonly name: "load_file";
|
|
198
198
|
readonly requestType: import("./interfaces/ReplayControl").MessageFns<import("./interfaces/ReplayControl").LoadFileRequest>;
|
|
@@ -36,6 +36,13 @@ export interface ListContainersRequest {
|
|
|
36
36
|
runningOnly: boolean;
|
|
37
37
|
/** Optional shell-style glob against ContainerInfo.name. Empty matches all. */
|
|
38
38
|
nameGlob: string;
|
|
39
|
+
/**
|
|
40
|
+
* Fill ContainerInfo.ports / networks / mounts. Off by default so a routine
|
|
41
|
+
* poll stays lean; a client sets it when the operator opens a detail view.
|
|
42
|
+
* This reply is the ONLY place those fields are populated -- never on the
|
|
43
|
+
* recorded container_status subject.
|
|
44
|
+
*/
|
|
45
|
+
includeDeploymentDetail: boolean;
|
|
39
46
|
}
|
|
40
47
|
export interface ListContainersResponse {
|
|
41
48
|
containers: ContainerInfo[];
|
|
@@ -106,7 +106,7 @@ function logStreamSelectorToJSON(object) {
|
|
|
106
106
|
}
|
|
107
107
|
exports.logStreamSelectorToJSON = logStreamSelectorToJSON;
|
|
108
108
|
function createBaseListContainersRequest() {
|
|
109
|
-
return { runningOnly: false, nameGlob: "" };
|
|
109
|
+
return { runningOnly: false, nameGlob: "", includeDeploymentDetail: false };
|
|
110
110
|
}
|
|
111
111
|
exports.ListContainersRequest = {
|
|
112
112
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -116,6 +116,9 @@ exports.ListContainersRequest = {
|
|
|
116
116
|
if (message.nameGlob !== "") {
|
|
117
117
|
writer.uint32(18).string(message.nameGlob);
|
|
118
118
|
}
|
|
119
|
+
if (message.includeDeploymentDetail !== false) {
|
|
120
|
+
writer.uint32(24).bool(message.includeDeploymentDetail);
|
|
121
|
+
}
|
|
119
122
|
return writer;
|
|
120
123
|
},
|
|
121
124
|
decode(input, length) {
|
|
@@ -139,6 +142,13 @@ exports.ListContainersRequest = {
|
|
|
139
142
|
message.nameGlob = reader.string();
|
|
140
143
|
continue;
|
|
141
144
|
}
|
|
145
|
+
case 3: {
|
|
146
|
+
if (tag !== 24) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
message.includeDeploymentDetail = reader.bool();
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
142
152
|
}
|
|
143
153
|
if ((tag & 7) === 4 || tag === 0) {
|
|
144
154
|
break;
|
|
@@ -151,6 +161,9 @@ exports.ListContainersRequest = {
|
|
|
151
161
|
return {
|
|
152
162
|
runningOnly: isSet(object.runningOnly) ? globalThis.Boolean(object.runningOnly) : false,
|
|
153
163
|
nameGlob: isSet(object.nameGlob) ? globalThis.String(object.nameGlob) : "",
|
|
164
|
+
includeDeploymentDetail: isSet(object.includeDeploymentDetail)
|
|
165
|
+
? globalThis.Boolean(object.includeDeploymentDetail)
|
|
166
|
+
: false,
|
|
154
167
|
};
|
|
155
168
|
},
|
|
156
169
|
toJSON(message) {
|
|
@@ -161,6 +174,9 @@ exports.ListContainersRequest = {
|
|
|
161
174
|
if (message.nameGlob !== "") {
|
|
162
175
|
obj.nameGlob = message.nameGlob;
|
|
163
176
|
}
|
|
177
|
+
if (message.includeDeploymentDetail !== false) {
|
|
178
|
+
obj.includeDeploymentDetail = message.includeDeploymentDetail;
|
|
179
|
+
}
|
|
164
180
|
return obj;
|
|
165
181
|
},
|
|
166
182
|
create(base) {
|
|
@@ -170,6 +186,7 @@ exports.ListContainersRequest = {
|
|
|
170
186
|
const message = createBaseListContainersRequest();
|
|
171
187
|
message.runningOnly = object.runningOnly ?? false;
|
|
172
188
|
message.nameGlob = object.nameGlob ?? "";
|
|
189
|
+
message.includeDeploymentDetail = object.includeDeploymentDetail ?? false;
|
|
173
190
|
return message;
|
|
174
191
|
},
|
|
175
192
|
};
|
|
@@ -63,6 +63,45 @@ export declare enum ContainerStatusTrigger {
|
|
|
63
63
|
}
|
|
64
64
|
export declare function containerStatusTriggerFromJSON(object: any): ContainerStatusTrigger;
|
|
65
65
|
export declare function containerStatusTriggerToJSON(object: ContainerStatusTrigger): string;
|
|
66
|
+
/**
|
|
67
|
+
* A published port. Both halves are present because they answer different
|
|
68
|
+
* questions: container_port is what the process inside bound, host_port is what
|
|
69
|
+
* anything outside can reach.
|
|
70
|
+
*/
|
|
71
|
+
export interface ContainerPortBinding {
|
|
72
|
+
containerPort: number;
|
|
73
|
+
/** "tcp" or "udp" as the runtime spells it. */
|
|
74
|
+
protocol: string;
|
|
75
|
+
/**
|
|
76
|
+
* The host interface the binding is on, as the runtime reports it (Docker
|
|
77
|
+
* says "0.0.0.0" or "::" for every interface).
|
|
78
|
+
*/
|
|
79
|
+
hostIp: string;
|
|
80
|
+
/** 0 for a port exposed but not published. */
|
|
81
|
+
hostPort: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* One network the container is attached to.
|
|
85
|
+
*
|
|
86
|
+
* A container on the HOST network is attached to no named network at all, which
|
|
87
|
+
* is why an empty list is a meaningful answer rather than a missing one -- the
|
|
88
|
+
* same fact ContainerResourceUsage expresses by omitting its network counters.
|
|
89
|
+
*/
|
|
90
|
+
export interface ContainerNetworkAttachment {
|
|
91
|
+
name: string;
|
|
92
|
+
/** Empty when the runtime assigned none (host networking, or not yet started). */
|
|
93
|
+
ipAddress: string;
|
|
94
|
+
aliases: string[];
|
|
95
|
+
}
|
|
96
|
+
/** One mount into the container's filesystem. */
|
|
97
|
+
export interface ContainerMount {
|
|
98
|
+
/** "bind", "volume" or "tmpfs" as the runtime spells it. */
|
|
99
|
+
type: string;
|
|
100
|
+
/** The host path, or the volume name for a named volume. */
|
|
101
|
+
source: string;
|
|
102
|
+
destination: string;
|
|
103
|
+
readOnly: boolean;
|
|
104
|
+
}
|
|
66
105
|
export interface ContainerInfo {
|
|
67
106
|
/**
|
|
68
107
|
* The operator-meaningful handle. Unique per host; the value every other
|
|
@@ -122,6 +161,9 @@ export interface ContainerInfo {
|
|
|
122
161
|
* not explicitly ask otherwise gets.
|
|
123
162
|
*/
|
|
124
163
|
removable: boolean;
|
|
164
|
+
ports: ContainerPortBinding[];
|
|
165
|
+
networks: ContainerNetworkAttachment[];
|
|
166
|
+
mounts: ContainerMount[];
|
|
125
167
|
}
|
|
126
168
|
/**
|
|
127
169
|
* What `list` answers, published continuously instead of on request.
|
|
@@ -378,6 +420,9 @@ export interface ContainerHostStats {
|
|
|
378
420
|
*/
|
|
379
421
|
sequence: number;
|
|
380
422
|
}
|
|
423
|
+
export declare const ContainerPortBinding: MessageFns<ContainerPortBinding>;
|
|
424
|
+
export declare const ContainerNetworkAttachment: MessageFns<ContainerNetworkAttachment>;
|
|
425
|
+
export declare const ContainerMount: MessageFns<ContainerMount>;
|
|
381
426
|
export declare const ContainerInfo: MessageFns<ContainerInfo>;
|
|
382
427
|
export declare const ContainerHostStatus: MessageFns<ContainerHostStatus>;
|
|
383
428
|
export declare const ContainerResourceUsage: MessageFns<ContainerResourceUsage>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.30.2
|
|
6
6
|
// source: ContainerHost.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ContainerHostStats = exports.ContainerResourceUsage = exports.ContainerHostStatus = exports.ContainerInfo = exports.containerStatusTriggerToJSON = exports.containerStatusTriggerFromJSON = exports.ContainerStatusTrigger = exports.containerHealthStatusToJSON = exports.containerHealthStatusFromJSON = exports.ContainerHealthStatus = exports.containerRestartPolicyToJSON = exports.containerRestartPolicyFromJSON = exports.ContainerRestartPolicy = exports.containerStateToJSON = exports.containerStateFromJSON = exports.ContainerState = exports.protobufPackage = void 0;
|
|
8
|
+
exports.ContainerHostStats = exports.ContainerResourceUsage = exports.ContainerHostStatus = exports.ContainerInfo = exports.ContainerMount = exports.ContainerNetworkAttachment = exports.ContainerPortBinding = exports.containerStatusTriggerToJSON = exports.containerStatusTriggerFromJSON = exports.ContainerStatusTrigger = exports.containerHealthStatusToJSON = exports.containerHealthStatusFromJSON = exports.ContainerHealthStatus = exports.containerRestartPolicyToJSON = exports.containerRestartPolicyFromJSON = exports.ContainerRestartPolicy = exports.containerStateToJSON = exports.containerStateFromJSON = exports.ContainerState = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
@@ -242,6 +242,285 @@ function containerStatusTriggerToJSON(object) {
|
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
exports.containerStatusTriggerToJSON = containerStatusTriggerToJSON;
|
|
245
|
+
function createBaseContainerPortBinding() {
|
|
246
|
+
return { containerPort: 0, protocol: "", hostIp: "", hostPort: 0 };
|
|
247
|
+
}
|
|
248
|
+
exports.ContainerPortBinding = {
|
|
249
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
250
|
+
if (message.containerPort !== 0) {
|
|
251
|
+
writer.uint32(8).uint32(message.containerPort);
|
|
252
|
+
}
|
|
253
|
+
if (message.protocol !== "") {
|
|
254
|
+
writer.uint32(18).string(message.protocol);
|
|
255
|
+
}
|
|
256
|
+
if (message.hostIp !== "") {
|
|
257
|
+
writer.uint32(26).string(message.hostIp);
|
|
258
|
+
}
|
|
259
|
+
if (message.hostPort !== 0) {
|
|
260
|
+
writer.uint32(32).uint32(message.hostPort);
|
|
261
|
+
}
|
|
262
|
+
return writer;
|
|
263
|
+
},
|
|
264
|
+
decode(input, length) {
|
|
265
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
266
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
267
|
+
const message = createBaseContainerPortBinding();
|
|
268
|
+
while (reader.pos < end) {
|
|
269
|
+
const tag = reader.uint32();
|
|
270
|
+
switch (tag >>> 3) {
|
|
271
|
+
case 1: {
|
|
272
|
+
if (tag !== 8) {
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
message.containerPort = reader.uint32();
|
|
276
|
+
continue;
|
|
277
|
+
}
|
|
278
|
+
case 2: {
|
|
279
|
+
if (tag !== 18) {
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
message.protocol = reader.string();
|
|
283
|
+
continue;
|
|
284
|
+
}
|
|
285
|
+
case 3: {
|
|
286
|
+
if (tag !== 26) {
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
message.hostIp = reader.string();
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
case 4: {
|
|
293
|
+
if (tag !== 32) {
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
message.hostPort = reader.uint32();
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
reader.skip(tag & 7);
|
|
304
|
+
}
|
|
305
|
+
return message;
|
|
306
|
+
},
|
|
307
|
+
fromJSON(object) {
|
|
308
|
+
return {
|
|
309
|
+
containerPort: isSet(object.containerPort) ? globalThis.Number(object.containerPort) : 0,
|
|
310
|
+
protocol: isSet(object.protocol) ? globalThis.String(object.protocol) : "",
|
|
311
|
+
hostIp: isSet(object.hostIp) ? globalThis.String(object.hostIp) : "",
|
|
312
|
+
hostPort: isSet(object.hostPort) ? globalThis.Number(object.hostPort) : 0,
|
|
313
|
+
};
|
|
314
|
+
},
|
|
315
|
+
toJSON(message) {
|
|
316
|
+
const obj = {};
|
|
317
|
+
if (message.containerPort !== 0) {
|
|
318
|
+
obj.containerPort = Math.round(message.containerPort);
|
|
319
|
+
}
|
|
320
|
+
if (message.protocol !== "") {
|
|
321
|
+
obj.protocol = message.protocol;
|
|
322
|
+
}
|
|
323
|
+
if (message.hostIp !== "") {
|
|
324
|
+
obj.hostIp = message.hostIp;
|
|
325
|
+
}
|
|
326
|
+
if (message.hostPort !== 0) {
|
|
327
|
+
obj.hostPort = Math.round(message.hostPort);
|
|
328
|
+
}
|
|
329
|
+
return obj;
|
|
330
|
+
},
|
|
331
|
+
create(base) {
|
|
332
|
+
return exports.ContainerPortBinding.fromPartial(base ?? {});
|
|
333
|
+
},
|
|
334
|
+
fromPartial(object) {
|
|
335
|
+
const message = createBaseContainerPortBinding();
|
|
336
|
+
message.containerPort = object.containerPort ?? 0;
|
|
337
|
+
message.protocol = object.protocol ?? "";
|
|
338
|
+
message.hostIp = object.hostIp ?? "";
|
|
339
|
+
message.hostPort = object.hostPort ?? 0;
|
|
340
|
+
return message;
|
|
341
|
+
},
|
|
342
|
+
};
|
|
343
|
+
function createBaseContainerNetworkAttachment() {
|
|
344
|
+
return { name: "", ipAddress: "", aliases: [] };
|
|
345
|
+
}
|
|
346
|
+
exports.ContainerNetworkAttachment = {
|
|
347
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
348
|
+
if (message.name !== "") {
|
|
349
|
+
writer.uint32(10).string(message.name);
|
|
350
|
+
}
|
|
351
|
+
if (message.ipAddress !== "") {
|
|
352
|
+
writer.uint32(18).string(message.ipAddress);
|
|
353
|
+
}
|
|
354
|
+
for (const v of message.aliases) {
|
|
355
|
+
writer.uint32(26).string(v);
|
|
356
|
+
}
|
|
357
|
+
return writer;
|
|
358
|
+
},
|
|
359
|
+
decode(input, length) {
|
|
360
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
361
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
362
|
+
const message = createBaseContainerNetworkAttachment();
|
|
363
|
+
while (reader.pos < end) {
|
|
364
|
+
const tag = reader.uint32();
|
|
365
|
+
switch (tag >>> 3) {
|
|
366
|
+
case 1: {
|
|
367
|
+
if (tag !== 10) {
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
message.name = reader.string();
|
|
371
|
+
continue;
|
|
372
|
+
}
|
|
373
|
+
case 2: {
|
|
374
|
+
if (tag !== 18) {
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
message.ipAddress = reader.string();
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
case 3: {
|
|
381
|
+
if (tag !== 26) {
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
message.aliases.push(reader.string());
|
|
385
|
+
continue;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
389
|
+
break;
|
|
390
|
+
}
|
|
391
|
+
reader.skip(tag & 7);
|
|
392
|
+
}
|
|
393
|
+
return message;
|
|
394
|
+
},
|
|
395
|
+
fromJSON(object) {
|
|
396
|
+
return {
|
|
397
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
398
|
+
ipAddress: isSet(object.ipAddress) ? globalThis.String(object.ipAddress) : "",
|
|
399
|
+
aliases: globalThis.Array.isArray(object?.aliases) ? object.aliases.map((e) => globalThis.String(e)) : [],
|
|
400
|
+
};
|
|
401
|
+
},
|
|
402
|
+
toJSON(message) {
|
|
403
|
+
const obj = {};
|
|
404
|
+
if (message.name !== "") {
|
|
405
|
+
obj.name = message.name;
|
|
406
|
+
}
|
|
407
|
+
if (message.ipAddress !== "") {
|
|
408
|
+
obj.ipAddress = message.ipAddress;
|
|
409
|
+
}
|
|
410
|
+
if (message.aliases?.length) {
|
|
411
|
+
obj.aliases = message.aliases;
|
|
412
|
+
}
|
|
413
|
+
return obj;
|
|
414
|
+
},
|
|
415
|
+
create(base) {
|
|
416
|
+
return exports.ContainerNetworkAttachment.fromPartial(base ?? {});
|
|
417
|
+
},
|
|
418
|
+
fromPartial(object) {
|
|
419
|
+
const message = createBaseContainerNetworkAttachment();
|
|
420
|
+
message.name = object.name ?? "";
|
|
421
|
+
message.ipAddress = object.ipAddress ?? "";
|
|
422
|
+
message.aliases = object.aliases?.map((e) => e) || [];
|
|
423
|
+
return message;
|
|
424
|
+
},
|
|
425
|
+
};
|
|
426
|
+
function createBaseContainerMount() {
|
|
427
|
+
return { type: "", source: "", destination: "", readOnly: false };
|
|
428
|
+
}
|
|
429
|
+
exports.ContainerMount = {
|
|
430
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
431
|
+
if (message.type !== "") {
|
|
432
|
+
writer.uint32(10).string(message.type);
|
|
433
|
+
}
|
|
434
|
+
if (message.source !== "") {
|
|
435
|
+
writer.uint32(18).string(message.source);
|
|
436
|
+
}
|
|
437
|
+
if (message.destination !== "") {
|
|
438
|
+
writer.uint32(26).string(message.destination);
|
|
439
|
+
}
|
|
440
|
+
if (message.readOnly !== false) {
|
|
441
|
+
writer.uint32(32).bool(message.readOnly);
|
|
442
|
+
}
|
|
443
|
+
return writer;
|
|
444
|
+
},
|
|
445
|
+
decode(input, length) {
|
|
446
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
447
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
448
|
+
const message = createBaseContainerMount();
|
|
449
|
+
while (reader.pos < end) {
|
|
450
|
+
const tag = reader.uint32();
|
|
451
|
+
switch (tag >>> 3) {
|
|
452
|
+
case 1: {
|
|
453
|
+
if (tag !== 10) {
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
message.type = reader.string();
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
case 2: {
|
|
460
|
+
if (tag !== 18) {
|
|
461
|
+
break;
|
|
462
|
+
}
|
|
463
|
+
message.source = reader.string();
|
|
464
|
+
continue;
|
|
465
|
+
}
|
|
466
|
+
case 3: {
|
|
467
|
+
if (tag !== 26) {
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
message.destination = reader.string();
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
case 4: {
|
|
474
|
+
if (tag !== 32) {
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
message.readOnly = reader.bool();
|
|
478
|
+
continue;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
reader.skip(tag & 7);
|
|
485
|
+
}
|
|
486
|
+
return message;
|
|
487
|
+
},
|
|
488
|
+
fromJSON(object) {
|
|
489
|
+
return {
|
|
490
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
491
|
+
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
492
|
+
destination: isSet(object.destination) ? globalThis.String(object.destination) : "",
|
|
493
|
+
readOnly: isSet(object.readOnly) ? globalThis.Boolean(object.readOnly) : false,
|
|
494
|
+
};
|
|
495
|
+
},
|
|
496
|
+
toJSON(message) {
|
|
497
|
+
const obj = {};
|
|
498
|
+
if (message.type !== "") {
|
|
499
|
+
obj.type = message.type;
|
|
500
|
+
}
|
|
501
|
+
if (message.source !== "") {
|
|
502
|
+
obj.source = message.source;
|
|
503
|
+
}
|
|
504
|
+
if (message.destination !== "") {
|
|
505
|
+
obj.destination = message.destination;
|
|
506
|
+
}
|
|
507
|
+
if (message.readOnly !== false) {
|
|
508
|
+
obj.readOnly = message.readOnly;
|
|
509
|
+
}
|
|
510
|
+
return obj;
|
|
511
|
+
},
|
|
512
|
+
create(base) {
|
|
513
|
+
return exports.ContainerMount.fromPartial(base ?? {});
|
|
514
|
+
},
|
|
515
|
+
fromPartial(object) {
|
|
516
|
+
const message = createBaseContainerMount();
|
|
517
|
+
message.type = object.type ?? "";
|
|
518
|
+
message.source = object.source ?? "";
|
|
519
|
+
message.destination = object.destination ?? "";
|
|
520
|
+
message.readOnly = object.readOnly ?? false;
|
|
521
|
+
return message;
|
|
522
|
+
},
|
|
523
|
+
};
|
|
245
524
|
function createBaseContainerInfo() {
|
|
246
525
|
return {
|
|
247
526
|
name: "",
|
|
@@ -261,6 +540,9 @@ function createBaseContainerInfo() {
|
|
|
261
540
|
composeProject: "",
|
|
262
541
|
composeService: "",
|
|
263
542
|
removable: false,
|
|
543
|
+
ports: [],
|
|
544
|
+
networks: [],
|
|
545
|
+
mounts: [],
|
|
264
546
|
};
|
|
265
547
|
}
|
|
266
548
|
exports.ContainerInfo = {
|
|
@@ -316,6 +598,15 @@ exports.ContainerInfo = {
|
|
|
316
598
|
if (message.removable !== false) {
|
|
317
599
|
writer.uint32(136).bool(message.removable);
|
|
318
600
|
}
|
|
601
|
+
for (const v of message.ports) {
|
|
602
|
+
exports.ContainerPortBinding.encode(v, writer.uint32(146).fork()).join();
|
|
603
|
+
}
|
|
604
|
+
for (const v of message.networks) {
|
|
605
|
+
exports.ContainerNetworkAttachment.encode(v, writer.uint32(154).fork()).join();
|
|
606
|
+
}
|
|
607
|
+
for (const v of message.mounts) {
|
|
608
|
+
exports.ContainerMount.encode(v, writer.uint32(162).fork()).join();
|
|
609
|
+
}
|
|
319
610
|
return writer;
|
|
320
611
|
},
|
|
321
612
|
decode(input, length) {
|
|
@@ -444,6 +735,27 @@ exports.ContainerInfo = {
|
|
|
444
735
|
message.removable = reader.bool();
|
|
445
736
|
continue;
|
|
446
737
|
}
|
|
738
|
+
case 18: {
|
|
739
|
+
if (tag !== 146) {
|
|
740
|
+
break;
|
|
741
|
+
}
|
|
742
|
+
message.ports.push(exports.ContainerPortBinding.decode(reader, reader.uint32()));
|
|
743
|
+
continue;
|
|
744
|
+
}
|
|
745
|
+
case 19: {
|
|
746
|
+
if (tag !== 154) {
|
|
747
|
+
break;
|
|
748
|
+
}
|
|
749
|
+
message.networks.push(exports.ContainerNetworkAttachment.decode(reader, reader.uint32()));
|
|
750
|
+
continue;
|
|
751
|
+
}
|
|
752
|
+
case 20: {
|
|
753
|
+
if (tag !== 162) {
|
|
754
|
+
break;
|
|
755
|
+
}
|
|
756
|
+
message.mounts.push(exports.ContainerMount.decode(reader, reader.uint32()));
|
|
757
|
+
continue;
|
|
758
|
+
}
|
|
447
759
|
}
|
|
448
760
|
if ((tag & 7) === 4 || tag === 0) {
|
|
449
761
|
break;
|
|
@@ -473,6 +785,13 @@ exports.ContainerInfo = {
|
|
|
473
785
|
composeProject: isSet(object.composeProject) ? globalThis.String(object.composeProject) : "",
|
|
474
786
|
composeService: isSet(object.composeService) ? globalThis.String(object.composeService) : "",
|
|
475
787
|
removable: isSet(object.removable) ? globalThis.Boolean(object.removable) : false,
|
|
788
|
+
ports: globalThis.Array.isArray(object?.ports)
|
|
789
|
+
? object.ports.map((e) => exports.ContainerPortBinding.fromJSON(e))
|
|
790
|
+
: [],
|
|
791
|
+
networks: globalThis.Array.isArray(object?.networks)
|
|
792
|
+
? object.networks.map((e) => exports.ContainerNetworkAttachment.fromJSON(e))
|
|
793
|
+
: [],
|
|
794
|
+
mounts: globalThis.Array.isArray(object?.mounts) ? object.mounts.map((e) => exports.ContainerMount.fromJSON(e)) : [],
|
|
476
795
|
};
|
|
477
796
|
},
|
|
478
797
|
toJSON(message) {
|
|
@@ -528,6 +847,15 @@ exports.ContainerInfo = {
|
|
|
528
847
|
if (message.removable !== false) {
|
|
529
848
|
obj.removable = message.removable;
|
|
530
849
|
}
|
|
850
|
+
if (message.ports?.length) {
|
|
851
|
+
obj.ports = message.ports.map((e) => exports.ContainerPortBinding.toJSON(e));
|
|
852
|
+
}
|
|
853
|
+
if (message.networks?.length) {
|
|
854
|
+
obj.networks = message.networks.map((e) => exports.ContainerNetworkAttachment.toJSON(e));
|
|
855
|
+
}
|
|
856
|
+
if (message.mounts?.length) {
|
|
857
|
+
obj.mounts = message.mounts.map((e) => exports.ContainerMount.toJSON(e));
|
|
858
|
+
}
|
|
531
859
|
return obj;
|
|
532
860
|
},
|
|
533
861
|
create(base) {
|
|
@@ -552,6 +880,9 @@ exports.ContainerInfo = {
|
|
|
552
880
|
message.composeProject = object.composeProject ?? "";
|
|
553
881
|
message.composeService = object.composeService ?? "";
|
|
554
882
|
message.removable = object.removable ?? false;
|
|
883
|
+
message.ports = object.ports?.map((e) => exports.ContainerPortBinding.fromPartial(e)) || [];
|
|
884
|
+
message.networks = object.networks?.map((e) => exports.ContainerNetworkAttachment.fromPartial(e)) || [];
|
|
885
|
+
message.mounts = object.mounts?.map((e) => exports.ContainerMount.fromPartial(e)) || [];
|
|
555
886
|
return message;
|
|
556
887
|
},
|
|
557
888
|
};
|