@7k-inari/api-client 0.6.0 → 0.7.0-ace8d88
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/gen/ts/proto/inari/agent/v1/agent_pb.ts +201 -286
- package/gen/ts/proto/inari/agent/v1/commands_pb.ts +271 -601
- package/gen/ts/proto/inari/agent/v1/credentials_pb.ts +87 -0
- package/gen/ts/proto/inari/agent/v1/events_pb.ts +298 -482
- package/gen/ts/proto/inari/agent/v1/registration_pb.ts +87 -114
- package/gen/ts/proto/inari/plugin/v1/plugin_pb.ts +340 -463
- package/gen/ts/proto/inari/tunnel/v1/tunnel_pb.ts +231 -0
- package/gen/ts/proto/inari/tunnel/v2/tunnel_pb.ts +252 -0
- package/gen/ts/rest/client.ts +2643 -1878
- package/gen/ts/smoke.ts +60 -30
- package/package.json +7 -7
- package/gen/ts/proto/inari/agent/v1/agent_connect.ts +0 -30
- package/gen/ts/proto/inari/agent/v1/registration_connect.ts +0 -30
- package/gen/ts/proto/inari/plugin/v1/plugin_connect.ts +0 -56
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file inari/tunnel/v1/tunnel.proto (package inari.tunnel.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file inari/tunnel/v1/tunnel.proto.
|
|
13
|
+
*/
|
|
14
|
+
export const file_inari_tunnel_v1_tunnel: GenFile = /*@__PURE__*/
|
|
15
|
+
fileDesc("ChxpbmFyaS90dW5uZWwvdjEvdHVubmVsLnByb3RvEg9pbmFyaS50dW5uZWwudjEiqgIKDVR1bm5lbE1lc3NhZ2USFQoNY29ubmVjdGlvbl9pZBgBIAEoCRIrCgRvcGVuGAIgASgLMhsuaW5hcmkudHVubmVsLnYxLlR1bm5lbE9wZW5IABI4CgtvcGVuX3Jlc3VsdBgDIAEoCzIhLmluYXJpLnR1bm5lbC52MS5UdW5uZWxPcGVuUmVzdWx0SAASLQoFZnJhbWUYBCABKAsyHC5pbmFyaS50dW5uZWwudjEuVHVubmVsRnJhbWVIABItCgVjbG9zZRgFIAEoCzIcLmluYXJpLnR1bm5lbC52MS5UdW5uZWxDbG9zZUgAEisKBHBpbmcYBiABKAsyGy5pbmFyaS50dW5uZWwudjEuVHVubmVsUGluZ0gAQgkKB3BheWxvYWRKBQhkEMgBIrYBCgpUdW5uZWxPcGVuEg4KBm1ldGhvZBgBIAEoCRIMCgRwYXRoGAIgASgJEjkKB2hlYWRlcnMYAyADKAsyKC5pbmFyaS50dW5uZWwudjEuVHVubmVsT3Blbi5IZWFkZXJzRW50cnkSGAoQdXBncmFkZV9leHBlY3RlZBgEIAEoCBouCgxIZWFkZXJzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUoFCGQQyAEiqQEKEFR1bm5lbE9wZW5SZXN1bHQSDgoGc3RhdHVzGAEgASgFEj8KB2hlYWRlcnMYAiADKAsyLi5pbmFyaS50dW5uZWwudjEuVHVubmVsT3BlblJlc3VsdC5IZWFkZXJzRW50cnkSDQoFZXJyb3IYAyABKAkaLgoMSGVhZGVyc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAFKBQhkEMgBIjYKC1R1bm5lbEZyYW1lEgwKBGRhdGEYASABKAwSEgoKaGFsZl9jbG9zZRgCIAEoCEoFCGQQyAEiJAoLVHVubmVsQ2xvc2USDgoGcmVhc29uGAEgASgJSgUIZBDIASI9CgpUdW5uZWxQaW5nEigKBHRpbWUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSgUIZBDIATJeCg1UdW5uZWxTZXJ2aWNlEk0KB0Nvbm5lY3QSHi5pbmFyaS50dW5uZWwudjEuVHVubmVsTWVzc2FnZRoeLmluYXJpLnR1bm5lbC52MS5UdW5uZWxNZXNzYWdlKAEwAUI/Wj1naXRodWIuY29tLzdLLUluYXJpL2luYXJpLWFwaS9nZW4vZ28vaW5hcmkvdHVubmVsL3YxO3R1bm5lbHYxYgZwcm90bzM", [file_google_protobuf_timestamp]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* TunnelMessage is the envelope on the bidi stream; exactly one payload set.
|
|
19
|
+
*
|
|
20
|
+
* @generated from message inari.tunnel.v1.TunnelMessage
|
|
21
|
+
*/
|
|
22
|
+
export type TunnelMessage = Message<"inari.tunnel.v1.TunnelMessage"> & {
|
|
23
|
+
/**
|
|
24
|
+
* kubeproxy-generated UUID per proxied HTTP request.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string connection_id = 1;
|
|
27
|
+
*/
|
|
28
|
+
connectionId: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated from oneof inari.tunnel.v1.TunnelMessage.payload
|
|
32
|
+
*/
|
|
33
|
+
payload: {
|
|
34
|
+
/**
|
|
35
|
+
* kubeproxy→agent: new proxied request.
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: inari.tunnel.v1.TunnelOpen open = 2;
|
|
38
|
+
*/
|
|
39
|
+
value: TunnelOpen;
|
|
40
|
+
case: "open";
|
|
41
|
+
} | {
|
|
42
|
+
/**
|
|
43
|
+
* agent→kubeproxy: apiserver response head.
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: inari.tunnel.v1.TunnelOpenResult open_result = 3;
|
|
46
|
+
*/
|
|
47
|
+
value: TunnelOpenResult;
|
|
48
|
+
case: "openResult";
|
|
49
|
+
} | {
|
|
50
|
+
/**
|
|
51
|
+
* both directions: body/upgraded bytes, ≤32 KiB.
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: inari.tunnel.v1.TunnelFrame frame = 4;
|
|
54
|
+
*/
|
|
55
|
+
value: TunnelFrame;
|
|
56
|
+
case: "frame";
|
|
57
|
+
} | {
|
|
58
|
+
/**
|
|
59
|
+
* both directions: terminal, reason.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: inari.tunnel.v1.TunnelClose close = 5;
|
|
62
|
+
*/
|
|
63
|
+
value: TunnelClose;
|
|
64
|
+
case: "close";
|
|
65
|
+
} | {
|
|
66
|
+
/**
|
|
67
|
+
* keepalive (session-level: connection_id empty).
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: inari.tunnel.v1.TunnelPing ping = 6;
|
|
70
|
+
*/
|
|
71
|
+
value: TunnelPing;
|
|
72
|
+
case: "ping";
|
|
73
|
+
} | { case: undefined; value?: undefined };
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message inari.tunnel.v1.TunnelMessage.
|
|
78
|
+
* Use `create(TunnelMessageSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export const TunnelMessageSchema: GenMessage<TunnelMessage> = /*@__PURE__*/
|
|
81
|
+
messageDesc(file_inari_tunnel_v1_tunnel, 0);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @generated from message inari.tunnel.v1.TunnelOpen
|
|
85
|
+
*/
|
|
86
|
+
export type TunnelOpen = Message<"inari.tunnel.v1.TunnelOpen"> & {
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: string method = 1;
|
|
89
|
+
*/
|
|
90
|
+
method: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* /api/v1/..., incl. query.
|
|
94
|
+
*
|
|
95
|
+
* @generated from field: string path = 2;
|
|
96
|
+
*/
|
|
97
|
+
path: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* sanitized; kubeproxy-set Impersonate-User/Group.
|
|
101
|
+
*
|
|
102
|
+
* @generated from field: map<string, string> headers = 3;
|
|
103
|
+
*/
|
|
104
|
+
headers: { [key: string]: string };
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* exec/logs -f/port-forward/watch.
|
|
108
|
+
*
|
|
109
|
+
* @generated from field: bool upgrade_expected = 4;
|
|
110
|
+
*/
|
|
111
|
+
upgradeExpected: boolean;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message inari.tunnel.v1.TunnelOpen.
|
|
116
|
+
* Use `create(TunnelOpenSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
export const TunnelOpenSchema: GenMessage<TunnelOpen> = /*@__PURE__*/
|
|
119
|
+
messageDesc(file_inari_tunnel_v1_tunnel, 1);
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @generated from message inari.tunnel.v1.TunnelOpenResult
|
|
123
|
+
*/
|
|
124
|
+
export type TunnelOpenResult = Message<"inari.tunnel.v1.TunnelOpenResult"> & {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: int32 status = 1;
|
|
127
|
+
*/
|
|
128
|
+
status: number;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: map<string, string> headers = 2;
|
|
132
|
+
*/
|
|
133
|
+
headers: { [key: string]: string };
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* dial/handshake failure (e.g. apiserver unreachable).
|
|
137
|
+
*
|
|
138
|
+
* @generated from field: string error = 3;
|
|
139
|
+
*/
|
|
140
|
+
error: string;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Describes the message inari.tunnel.v1.TunnelOpenResult.
|
|
145
|
+
* Use `create(TunnelOpenResultSchema)` to create a new message.
|
|
146
|
+
*/
|
|
147
|
+
export const TunnelOpenResultSchema: GenMessage<TunnelOpenResult> = /*@__PURE__*/
|
|
148
|
+
messageDesc(file_inari_tunnel_v1_tunnel, 2);
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @generated from message inari.tunnel.v1.TunnelFrame
|
|
152
|
+
*/
|
|
153
|
+
export type TunnelFrame = Message<"inari.tunnel.v1.TunnelFrame"> & {
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: bytes data = 1;
|
|
156
|
+
*/
|
|
157
|
+
data: Uint8Array;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* sender finished sending (EOF).
|
|
161
|
+
*
|
|
162
|
+
* @generated from field: bool half_close = 2;
|
|
163
|
+
*/
|
|
164
|
+
halfClose: boolean;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Describes the message inari.tunnel.v1.TunnelFrame.
|
|
169
|
+
* Use `create(TunnelFrameSchema)` to create a new message.
|
|
170
|
+
*/
|
|
171
|
+
export const TunnelFrameSchema: GenMessage<TunnelFrame> = /*@__PURE__*/
|
|
172
|
+
messageDesc(file_inari_tunnel_v1_tunnel, 3);
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @generated from message inari.tunnel.v1.TunnelClose
|
|
176
|
+
*/
|
|
177
|
+
export type TunnelClose = Message<"inari.tunnel.v1.TunnelClose"> & {
|
|
178
|
+
/**
|
|
179
|
+
* @generated from field: string reason = 1;
|
|
180
|
+
*/
|
|
181
|
+
reason: string;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Describes the message inari.tunnel.v1.TunnelClose.
|
|
186
|
+
* Use `create(TunnelCloseSchema)` to create a new message.
|
|
187
|
+
*/
|
|
188
|
+
export const TunnelCloseSchema: GenMessage<TunnelClose> = /*@__PURE__*/
|
|
189
|
+
messageDesc(file_inari_tunnel_v1_tunnel, 4);
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @generated from message inari.tunnel.v1.TunnelPing
|
|
193
|
+
*/
|
|
194
|
+
export type TunnelPing = Message<"inari.tunnel.v1.TunnelPing"> & {
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: google.protobuf.Timestamp time = 1;
|
|
197
|
+
*/
|
|
198
|
+
time?: Timestamp | undefined;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Describes the message inari.tunnel.v1.TunnelPing.
|
|
203
|
+
* Use `create(TunnelPingSchema)` to create a new message.
|
|
204
|
+
*/
|
|
205
|
+
export const TunnelPingSchema: GenMessage<TunnelPing> = /*@__PURE__*/
|
|
206
|
+
messageDesc(file_inari_tunnel_v1_tunnel, 5);
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @generated from service inari.tunnel.v1.TunnelService
|
|
210
|
+
*/
|
|
211
|
+
export const TunnelService: GenService<{
|
|
212
|
+
/**
|
|
213
|
+
* Tunnel agents dial OUT to kubeproxy (pull, never push). Auth: bearer JWT,
|
|
214
|
+
* client_credentials, per-cluster client `tunnel-<cluster-id>`, hardcoded
|
|
215
|
+
* cluster_id claim — same pattern as the agent EventStream.
|
|
216
|
+
* TunnelMessage is a symmetric self-describing envelope (oneof payload), so
|
|
217
|
+
* request/response wrapper messages would add no information.
|
|
218
|
+
* buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
|
|
219
|
+
* buf:lint:ignore RPC_REQUEST_STANDARD_NAME
|
|
220
|
+
* buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
|
|
221
|
+
*
|
|
222
|
+
* @generated from rpc inari.tunnel.v1.TunnelService.Connect
|
|
223
|
+
*/
|
|
224
|
+
connect: {
|
|
225
|
+
methodKind: "bidi_streaming";
|
|
226
|
+
input: typeof TunnelMessageSchema;
|
|
227
|
+
output: typeof TunnelMessageSchema;
|
|
228
|
+
},
|
|
229
|
+
}> = /*@__PURE__*/
|
|
230
|
+
serviceDesc(file_inari_tunnel_v1_tunnel, 0);
|
|
231
|
+
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file inari/tunnel/v2/tunnel.proto (package inari.tunnel.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file inari/tunnel/v2/tunnel.proto.
|
|
13
|
+
*/
|
|
14
|
+
export const file_inari_tunnel_v2_tunnel: GenFile = /*@__PURE__*/
|
|
15
|
+
fileDesc("ChxpbmFyaS90dW5uZWwvdjIvdHVubmVsLnByb3RvEg9pbmFyaS50dW5uZWwudjIiqgIKDVR1bm5lbE1lc3NhZ2USFQoNY29ubmVjdGlvbl9pZBgBIAEoCRIrCgRvcGVuGAIgASgLMhsuaW5hcmkudHVubmVsLnYyLlR1bm5lbE9wZW5IABI4CgtvcGVuX3Jlc3VsdBgDIAEoCzIhLmluYXJpLnR1bm5lbC52Mi5UdW5uZWxPcGVuUmVzdWx0SAASLQoFZnJhbWUYBCABKAsyHC5pbmFyaS50dW5uZWwudjIuVHVubmVsRnJhbWVIABItCgVjbG9zZRgFIAEoCzIcLmluYXJpLnR1bm5lbC52Mi5UdW5uZWxDbG9zZUgAEisKBHBpbmcYBiABKAsyGy5pbmFyaS50dW5uZWwudjIuVHVubmVsUGluZ0gAQgkKB3BheWxvYWRKBQhkEMgBIiMKClN0cmluZ0xpc3QSDgoGdmFsdWVzGAEgAygJSgUIZBDIASLTAQoKVHVubmVsT3BlbhIOCgZtZXRob2QYASABKAkSDAoEcGF0aBgCIAEoCRI5CgdoZWFkZXJzGAMgAygLMiguaW5hcmkudHVubmVsLnYyLlR1bm5lbE9wZW4uSGVhZGVyc0VudHJ5EhgKEHVwZ3JhZGVfZXhwZWN0ZWQYBCABKAgaSwoMSGVhZGVyc0VudHJ5EgsKA2tleRgBIAEoCRIqCgV2YWx1ZRgCIAEoCzIbLmluYXJpLnR1bm5lbC52Mi5TdHJpbmdMaXN0OgI4AUoFCGQQyAEixgEKEFR1bm5lbE9wZW5SZXN1bHQSDgoGc3RhdHVzGAEgASgFEj8KB2hlYWRlcnMYAiADKAsyLi5pbmFyaS50dW5uZWwudjIuVHVubmVsT3BlblJlc3VsdC5IZWFkZXJzRW50cnkSDQoFZXJyb3IYAyABKAkaSwoMSGVhZGVyc0VudHJ5EgsKA2tleRgBIAEoCRIqCgV2YWx1ZRgCIAEoCzIbLmluYXJpLnR1bm5lbC52Mi5TdHJpbmdMaXN0OgI4AUoFCGQQyAEiNgoLVHVubmVsRnJhbWUSDAoEZGF0YRgBIAEoDBISCgpoYWxmX2Nsb3NlGAIgASgISgUIZBDIASIkCgtUdW5uZWxDbG9zZRIOCgZyZWFzb24YASABKAlKBQhkEMgBIj0KClR1bm5lbFBpbmcSKAoEdGltZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBKBQhkEMgBMl4KDVR1bm5lbFNlcnZpY2USTQoHQ29ubmVjdBIeLmluYXJpLnR1bm5lbC52Mi5UdW5uZWxNZXNzYWdlGh4uaW5hcmkudHVubmVsLnYyLlR1bm5lbE1lc3NhZ2UoATABQj9aPWdpdGh1Yi5jb20vN0stSW5hcmkvaW5hcmktYXBpL2dlbi9nby9pbmFyaS90dW5uZWwvdjI7dHVubmVsdjJiBnByb3RvMw", [file_google_protobuf_timestamp]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* TunnelMessage is the envelope on the bidi stream; exactly one payload set.
|
|
19
|
+
*
|
|
20
|
+
* @generated from message inari.tunnel.v2.TunnelMessage
|
|
21
|
+
*/
|
|
22
|
+
export type TunnelMessage = Message<"inari.tunnel.v2.TunnelMessage"> & {
|
|
23
|
+
/**
|
|
24
|
+
* kubeproxy-generated UUID per proxied HTTP request.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string connection_id = 1;
|
|
27
|
+
*/
|
|
28
|
+
connectionId: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated from oneof inari.tunnel.v2.TunnelMessage.payload
|
|
32
|
+
*/
|
|
33
|
+
payload: {
|
|
34
|
+
/**
|
|
35
|
+
* kubeproxy→agent: new proxied request.
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: inari.tunnel.v2.TunnelOpen open = 2;
|
|
38
|
+
*/
|
|
39
|
+
value: TunnelOpen;
|
|
40
|
+
case: "open";
|
|
41
|
+
} | {
|
|
42
|
+
/**
|
|
43
|
+
* agent→kubeproxy: apiserver response head.
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: inari.tunnel.v2.TunnelOpenResult open_result = 3;
|
|
46
|
+
*/
|
|
47
|
+
value: TunnelOpenResult;
|
|
48
|
+
case: "openResult";
|
|
49
|
+
} | {
|
|
50
|
+
/**
|
|
51
|
+
* both directions: body/upgraded bytes, ≤32 KiB.
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: inari.tunnel.v2.TunnelFrame frame = 4;
|
|
54
|
+
*/
|
|
55
|
+
value: TunnelFrame;
|
|
56
|
+
case: "frame";
|
|
57
|
+
} | {
|
|
58
|
+
/**
|
|
59
|
+
* both directions: terminal, reason.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: inari.tunnel.v2.TunnelClose close = 5;
|
|
62
|
+
*/
|
|
63
|
+
value: TunnelClose;
|
|
64
|
+
case: "close";
|
|
65
|
+
} | {
|
|
66
|
+
/**
|
|
67
|
+
* keepalive (session-level: connection_id empty).
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: inari.tunnel.v2.TunnelPing ping = 6;
|
|
70
|
+
*/
|
|
71
|
+
value: TunnelPing;
|
|
72
|
+
case: "ping";
|
|
73
|
+
} | { case: undefined; value?: undefined };
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message inari.tunnel.v2.TunnelMessage.
|
|
78
|
+
* Use `create(TunnelMessageSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export const TunnelMessageSchema: GenMessage<TunnelMessage> = /*@__PURE__*/
|
|
81
|
+
messageDesc(file_inari_tunnel_v2_tunnel, 0);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* StringList carries all values of one HTTP header (order preserved).
|
|
85
|
+
*
|
|
86
|
+
* @generated from message inari.tunnel.v2.StringList
|
|
87
|
+
*/
|
|
88
|
+
export type StringList = Message<"inari.tunnel.v2.StringList"> & {
|
|
89
|
+
/**
|
|
90
|
+
* @generated from field: repeated string values = 1;
|
|
91
|
+
*/
|
|
92
|
+
values: string[];
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Describes the message inari.tunnel.v2.StringList.
|
|
97
|
+
* Use `create(StringListSchema)` to create a new message.
|
|
98
|
+
*/
|
|
99
|
+
export const StringListSchema: GenMessage<StringList> = /*@__PURE__*/
|
|
100
|
+
messageDesc(file_inari_tunnel_v2_tunnel, 1);
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @generated from message inari.tunnel.v2.TunnelOpen
|
|
104
|
+
*/
|
|
105
|
+
export type TunnelOpen = Message<"inari.tunnel.v2.TunnelOpen"> & {
|
|
106
|
+
/**
|
|
107
|
+
* @generated from field: string method = 1;
|
|
108
|
+
*/
|
|
109
|
+
method: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* /api/v1/..., incl. query.
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: string path = 2;
|
|
115
|
+
*/
|
|
116
|
+
path: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* sanitized; kubeproxy-set Impersonate-User/Group. Multi-valued.
|
|
120
|
+
*
|
|
121
|
+
* @generated from field: map<string, inari.tunnel.v2.StringList> headers = 3;
|
|
122
|
+
*/
|
|
123
|
+
headers: { [key: string]: StringList };
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* exec/logs -f/port-forward/watch.
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: bool upgrade_expected = 4;
|
|
129
|
+
*/
|
|
130
|
+
upgradeExpected: boolean;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Describes the message inari.tunnel.v2.TunnelOpen.
|
|
135
|
+
* Use `create(TunnelOpenSchema)` to create a new message.
|
|
136
|
+
*/
|
|
137
|
+
export const TunnelOpenSchema: GenMessage<TunnelOpen> = /*@__PURE__*/
|
|
138
|
+
messageDesc(file_inari_tunnel_v2_tunnel, 2);
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @generated from message inari.tunnel.v2.TunnelOpenResult
|
|
142
|
+
*/
|
|
143
|
+
export type TunnelOpenResult = Message<"inari.tunnel.v2.TunnelOpenResult"> & {
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: int32 status = 1;
|
|
146
|
+
*/
|
|
147
|
+
status: number;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* apiserver response headers. Multi-valued.
|
|
151
|
+
*
|
|
152
|
+
* @generated from field: map<string, inari.tunnel.v2.StringList> headers = 2;
|
|
153
|
+
*/
|
|
154
|
+
headers: { [key: string]: StringList };
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* dial/handshake failure (e.g. apiserver unreachable).
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string error = 3;
|
|
160
|
+
*/
|
|
161
|
+
error: string;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Describes the message inari.tunnel.v2.TunnelOpenResult.
|
|
166
|
+
* Use `create(TunnelOpenResultSchema)` to create a new message.
|
|
167
|
+
*/
|
|
168
|
+
export const TunnelOpenResultSchema: GenMessage<TunnelOpenResult> = /*@__PURE__*/
|
|
169
|
+
messageDesc(file_inari_tunnel_v2_tunnel, 3);
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @generated from message inari.tunnel.v2.TunnelFrame
|
|
173
|
+
*/
|
|
174
|
+
export type TunnelFrame = Message<"inari.tunnel.v2.TunnelFrame"> & {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: bytes data = 1;
|
|
177
|
+
*/
|
|
178
|
+
data: Uint8Array;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* sender finished sending (EOF).
|
|
182
|
+
*
|
|
183
|
+
* @generated from field: bool half_close = 2;
|
|
184
|
+
*/
|
|
185
|
+
halfClose: boolean;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Describes the message inari.tunnel.v2.TunnelFrame.
|
|
190
|
+
* Use `create(TunnelFrameSchema)` to create a new message.
|
|
191
|
+
*/
|
|
192
|
+
export const TunnelFrameSchema: GenMessage<TunnelFrame> = /*@__PURE__*/
|
|
193
|
+
messageDesc(file_inari_tunnel_v2_tunnel, 4);
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @generated from message inari.tunnel.v2.TunnelClose
|
|
197
|
+
*/
|
|
198
|
+
export type TunnelClose = Message<"inari.tunnel.v2.TunnelClose"> & {
|
|
199
|
+
/**
|
|
200
|
+
* @generated from field: string reason = 1;
|
|
201
|
+
*/
|
|
202
|
+
reason: string;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Describes the message inari.tunnel.v2.TunnelClose.
|
|
207
|
+
* Use `create(TunnelCloseSchema)` to create a new message.
|
|
208
|
+
*/
|
|
209
|
+
export const TunnelCloseSchema: GenMessage<TunnelClose> = /*@__PURE__*/
|
|
210
|
+
messageDesc(file_inari_tunnel_v2_tunnel, 5);
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @generated from message inari.tunnel.v2.TunnelPing
|
|
214
|
+
*/
|
|
215
|
+
export type TunnelPing = Message<"inari.tunnel.v2.TunnelPing"> & {
|
|
216
|
+
/**
|
|
217
|
+
* @generated from field: google.protobuf.Timestamp time = 1;
|
|
218
|
+
*/
|
|
219
|
+
time?: Timestamp | undefined;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Describes the message inari.tunnel.v2.TunnelPing.
|
|
224
|
+
* Use `create(TunnelPingSchema)` to create a new message.
|
|
225
|
+
*/
|
|
226
|
+
export const TunnelPingSchema: GenMessage<TunnelPing> = /*@__PURE__*/
|
|
227
|
+
messageDesc(file_inari_tunnel_v2_tunnel, 6);
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @generated from service inari.tunnel.v2.TunnelService
|
|
231
|
+
*/
|
|
232
|
+
export const TunnelService: GenService<{
|
|
233
|
+
/**
|
|
234
|
+
* Tunnel agents dial OUT to kubeproxy (pull, never push). Auth: bearer JWT,
|
|
235
|
+
* client_credentials, per-cluster client `tunnel-<cluster-id>`, hardcoded
|
|
236
|
+
* cluster_id claim — same pattern as the agent EventStream.
|
|
237
|
+
* TunnelMessage is a symmetric self-describing envelope (oneof payload), so
|
|
238
|
+
* request/response wrapper messages would add no information.
|
|
239
|
+
* buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
|
|
240
|
+
* buf:lint:ignore RPC_REQUEST_STANDARD_NAME
|
|
241
|
+
* buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
|
|
242
|
+
*
|
|
243
|
+
* @generated from rpc inari.tunnel.v2.TunnelService.Connect
|
|
244
|
+
*/
|
|
245
|
+
connect: {
|
|
246
|
+
methodKind: "bidi_streaming";
|
|
247
|
+
input: typeof TunnelMessageSchema;
|
|
248
|
+
output: typeof TunnelMessageSchema;
|
|
249
|
+
},
|
|
250
|
+
}> = /*@__PURE__*/
|
|
251
|
+
serviceDesc(file_inari_tunnel_v2_tunnel, 0);
|
|
252
|
+
|