Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/supervisor-api/go/port.pb.go
2498 views
1
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
// Code generated by protoc-gen-go. DO NOT EDIT.
6
// versions:
7
// protoc-gen-go v1.28.1
8
// protoc v3.20.1
9
// source: port.proto
10
11
package api
12
13
import (
14
_ "google.golang.org/genproto/googleapis/api/annotations"
15
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
16
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
17
reflect "reflect"
18
sync "sync"
19
)
20
21
const (
22
// Verify that this generated code is sufficiently up-to-date.
23
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
24
// Verify that runtime/protoimpl is sufficiently up-to-date.
25
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
26
)
27
28
type TunnelVisiblity int32
29
30
const (
31
TunnelVisiblity_none TunnelVisiblity = 0
32
TunnelVisiblity_host TunnelVisiblity = 1
33
TunnelVisiblity_network TunnelVisiblity = 2
34
)
35
36
// Enum value maps for TunnelVisiblity.
37
var (
38
TunnelVisiblity_name = map[int32]string{
39
0: "none",
40
1: "host",
41
2: "network",
42
}
43
TunnelVisiblity_value = map[string]int32{
44
"none": 0,
45
"host": 1,
46
"network": 2,
47
}
48
)
49
50
func (x TunnelVisiblity) Enum() *TunnelVisiblity {
51
p := new(TunnelVisiblity)
52
*p = x
53
return p
54
}
55
56
func (x TunnelVisiblity) String() string {
57
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
58
}
59
60
func (TunnelVisiblity) Descriptor() protoreflect.EnumDescriptor {
61
return file_port_proto_enumTypes[0].Descriptor()
62
}
63
64
func (TunnelVisiblity) Type() protoreflect.EnumType {
65
return &file_port_proto_enumTypes[0]
66
}
67
68
func (x TunnelVisiblity) Number() protoreflect.EnumNumber {
69
return protoreflect.EnumNumber(x)
70
}
71
72
// Deprecated: Use TunnelVisiblity.Descriptor instead.
73
func (TunnelVisiblity) EnumDescriptor() ([]byte, []int) {
74
return file_port_proto_rawDescGZIP(), []int{0}
75
}
76
77
type TunnelPortRequest struct {
78
state protoimpl.MessageState
79
sizeCache protoimpl.SizeCache
80
unknownFields protoimpl.UnknownFields
81
82
Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
83
TargetPort uint32 `protobuf:"varint,2,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"`
84
Visibility TunnelVisiblity `protobuf:"varint,3,opt,name=visibility,proto3,enum=supervisor.TunnelVisiblity" json:"visibility,omitempty"`
85
ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
86
}
87
88
func (x *TunnelPortRequest) Reset() {
89
*x = TunnelPortRequest{}
90
if protoimpl.UnsafeEnabled {
91
mi := &file_port_proto_msgTypes[0]
92
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
93
ms.StoreMessageInfo(mi)
94
}
95
}
96
97
func (x *TunnelPortRequest) String() string {
98
return protoimpl.X.MessageStringOf(x)
99
}
100
101
func (*TunnelPortRequest) ProtoMessage() {}
102
103
func (x *TunnelPortRequest) ProtoReflect() protoreflect.Message {
104
mi := &file_port_proto_msgTypes[0]
105
if protoimpl.UnsafeEnabled && x != nil {
106
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
107
if ms.LoadMessageInfo() == nil {
108
ms.StoreMessageInfo(mi)
109
}
110
return ms
111
}
112
return mi.MessageOf(x)
113
}
114
115
// Deprecated: Use TunnelPortRequest.ProtoReflect.Descriptor instead.
116
func (*TunnelPortRequest) Descriptor() ([]byte, []int) {
117
return file_port_proto_rawDescGZIP(), []int{0}
118
}
119
120
func (x *TunnelPortRequest) GetPort() uint32 {
121
if x != nil {
122
return x.Port
123
}
124
return 0
125
}
126
127
func (x *TunnelPortRequest) GetTargetPort() uint32 {
128
if x != nil {
129
return x.TargetPort
130
}
131
return 0
132
}
133
134
func (x *TunnelPortRequest) GetVisibility() TunnelVisiblity {
135
if x != nil {
136
return x.Visibility
137
}
138
return TunnelVisiblity_none
139
}
140
141
func (x *TunnelPortRequest) GetClientId() string {
142
if x != nil {
143
return x.ClientId
144
}
145
return ""
146
}
147
148
type TunnelPortResponse struct {
149
state protoimpl.MessageState
150
sizeCache protoimpl.SizeCache
151
unknownFields protoimpl.UnknownFields
152
}
153
154
func (x *TunnelPortResponse) Reset() {
155
*x = TunnelPortResponse{}
156
if protoimpl.UnsafeEnabled {
157
mi := &file_port_proto_msgTypes[1]
158
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
159
ms.StoreMessageInfo(mi)
160
}
161
}
162
163
func (x *TunnelPortResponse) String() string {
164
return protoimpl.X.MessageStringOf(x)
165
}
166
167
func (*TunnelPortResponse) ProtoMessage() {}
168
169
func (x *TunnelPortResponse) ProtoReflect() protoreflect.Message {
170
mi := &file_port_proto_msgTypes[1]
171
if protoimpl.UnsafeEnabled && x != nil {
172
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
173
if ms.LoadMessageInfo() == nil {
174
ms.StoreMessageInfo(mi)
175
}
176
return ms
177
}
178
return mi.MessageOf(x)
179
}
180
181
// Deprecated: Use TunnelPortResponse.ProtoReflect.Descriptor instead.
182
func (*TunnelPortResponse) Descriptor() ([]byte, []int) {
183
return file_port_proto_rawDescGZIP(), []int{1}
184
}
185
186
type CloseTunnelRequest struct {
187
state protoimpl.MessageState
188
sizeCache protoimpl.SizeCache
189
unknownFields protoimpl.UnknownFields
190
191
Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
192
}
193
194
func (x *CloseTunnelRequest) Reset() {
195
*x = CloseTunnelRequest{}
196
if protoimpl.UnsafeEnabled {
197
mi := &file_port_proto_msgTypes[2]
198
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
199
ms.StoreMessageInfo(mi)
200
}
201
}
202
203
func (x *CloseTunnelRequest) String() string {
204
return protoimpl.X.MessageStringOf(x)
205
}
206
207
func (*CloseTunnelRequest) ProtoMessage() {}
208
209
func (x *CloseTunnelRequest) ProtoReflect() protoreflect.Message {
210
mi := &file_port_proto_msgTypes[2]
211
if protoimpl.UnsafeEnabled && x != nil {
212
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
213
if ms.LoadMessageInfo() == nil {
214
ms.StoreMessageInfo(mi)
215
}
216
return ms
217
}
218
return mi.MessageOf(x)
219
}
220
221
// Deprecated: Use CloseTunnelRequest.ProtoReflect.Descriptor instead.
222
func (*CloseTunnelRequest) Descriptor() ([]byte, []int) {
223
return file_port_proto_rawDescGZIP(), []int{2}
224
}
225
226
func (x *CloseTunnelRequest) GetPort() uint32 {
227
if x != nil {
228
return x.Port
229
}
230
return 0
231
}
232
233
type CloseTunnelResponse struct {
234
state protoimpl.MessageState
235
sizeCache protoimpl.SizeCache
236
unknownFields protoimpl.UnknownFields
237
}
238
239
func (x *CloseTunnelResponse) Reset() {
240
*x = CloseTunnelResponse{}
241
if protoimpl.UnsafeEnabled {
242
mi := &file_port_proto_msgTypes[3]
243
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
244
ms.StoreMessageInfo(mi)
245
}
246
}
247
248
func (x *CloseTunnelResponse) String() string {
249
return protoimpl.X.MessageStringOf(x)
250
}
251
252
func (*CloseTunnelResponse) ProtoMessage() {}
253
254
func (x *CloseTunnelResponse) ProtoReflect() protoreflect.Message {
255
mi := &file_port_proto_msgTypes[3]
256
if protoimpl.UnsafeEnabled && x != nil {
257
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
258
if ms.LoadMessageInfo() == nil {
259
ms.StoreMessageInfo(mi)
260
}
261
return ms
262
}
263
return mi.MessageOf(x)
264
}
265
266
// Deprecated: Use CloseTunnelResponse.ProtoReflect.Descriptor instead.
267
func (*CloseTunnelResponse) Descriptor() ([]byte, []int) {
268
return file_port_proto_rawDescGZIP(), []int{3}
269
}
270
271
type EstablishTunnelRequest struct {
272
state protoimpl.MessageState
273
sizeCache protoimpl.SizeCache
274
unknownFields protoimpl.UnknownFields
275
276
// Types that are assignable to Output:
277
//
278
// *EstablishTunnelRequest_Desc
279
// *EstablishTunnelRequest_Data
280
Output isEstablishTunnelRequest_Output `protobuf_oneof:"output"`
281
}
282
283
func (x *EstablishTunnelRequest) Reset() {
284
*x = EstablishTunnelRequest{}
285
if protoimpl.UnsafeEnabled {
286
mi := &file_port_proto_msgTypes[4]
287
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
288
ms.StoreMessageInfo(mi)
289
}
290
}
291
292
func (x *EstablishTunnelRequest) String() string {
293
return protoimpl.X.MessageStringOf(x)
294
}
295
296
func (*EstablishTunnelRequest) ProtoMessage() {}
297
298
func (x *EstablishTunnelRequest) ProtoReflect() protoreflect.Message {
299
mi := &file_port_proto_msgTypes[4]
300
if protoimpl.UnsafeEnabled && x != nil {
301
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
302
if ms.LoadMessageInfo() == nil {
303
ms.StoreMessageInfo(mi)
304
}
305
return ms
306
}
307
return mi.MessageOf(x)
308
}
309
310
// Deprecated: Use EstablishTunnelRequest.ProtoReflect.Descriptor instead.
311
func (*EstablishTunnelRequest) Descriptor() ([]byte, []int) {
312
return file_port_proto_rawDescGZIP(), []int{4}
313
}
314
315
func (m *EstablishTunnelRequest) GetOutput() isEstablishTunnelRequest_Output {
316
if m != nil {
317
return m.Output
318
}
319
return nil
320
}
321
322
func (x *EstablishTunnelRequest) GetDesc() *TunnelPortRequest {
323
if x, ok := x.GetOutput().(*EstablishTunnelRequest_Desc); ok {
324
return x.Desc
325
}
326
return nil
327
}
328
329
func (x *EstablishTunnelRequest) GetData() []byte {
330
if x, ok := x.GetOutput().(*EstablishTunnelRequest_Data); ok {
331
return x.Data
332
}
333
return nil
334
}
335
336
type isEstablishTunnelRequest_Output interface {
337
isEstablishTunnelRequest_Output()
338
}
339
340
type EstablishTunnelRequest_Desc struct {
341
Desc *TunnelPortRequest `protobuf:"bytes,1,opt,name=desc,proto3,oneof"`
342
}
343
344
type EstablishTunnelRequest_Data struct {
345
Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
346
}
347
348
func (*EstablishTunnelRequest_Desc) isEstablishTunnelRequest_Output() {}
349
350
func (*EstablishTunnelRequest_Data) isEstablishTunnelRequest_Output() {}
351
352
type EstablishTunnelResponse struct {
353
state protoimpl.MessageState
354
sizeCache protoimpl.SizeCache
355
unknownFields protoimpl.UnknownFields
356
357
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
358
}
359
360
func (x *EstablishTunnelResponse) Reset() {
361
*x = EstablishTunnelResponse{}
362
if protoimpl.UnsafeEnabled {
363
mi := &file_port_proto_msgTypes[5]
364
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
365
ms.StoreMessageInfo(mi)
366
}
367
}
368
369
func (x *EstablishTunnelResponse) String() string {
370
return protoimpl.X.MessageStringOf(x)
371
}
372
373
func (*EstablishTunnelResponse) ProtoMessage() {}
374
375
func (x *EstablishTunnelResponse) ProtoReflect() protoreflect.Message {
376
mi := &file_port_proto_msgTypes[5]
377
if protoimpl.UnsafeEnabled && x != nil {
378
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
379
if ms.LoadMessageInfo() == nil {
380
ms.StoreMessageInfo(mi)
381
}
382
return ms
383
}
384
return mi.MessageOf(x)
385
}
386
387
// Deprecated: Use EstablishTunnelResponse.ProtoReflect.Descriptor instead.
388
func (*EstablishTunnelResponse) Descriptor() ([]byte, []int) {
389
return file_port_proto_rawDescGZIP(), []int{5}
390
}
391
392
func (x *EstablishTunnelResponse) GetData() []byte {
393
if x != nil {
394
return x.Data
395
}
396
return nil
397
}
398
399
type AutoTunnelRequest struct {
400
state protoimpl.MessageState
401
sizeCache protoimpl.SizeCache
402
unknownFields protoimpl.UnknownFields
403
404
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
405
}
406
407
func (x *AutoTunnelRequest) Reset() {
408
*x = AutoTunnelRequest{}
409
if protoimpl.UnsafeEnabled {
410
mi := &file_port_proto_msgTypes[6]
411
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
412
ms.StoreMessageInfo(mi)
413
}
414
}
415
416
func (x *AutoTunnelRequest) String() string {
417
return protoimpl.X.MessageStringOf(x)
418
}
419
420
func (*AutoTunnelRequest) ProtoMessage() {}
421
422
func (x *AutoTunnelRequest) ProtoReflect() protoreflect.Message {
423
mi := &file_port_proto_msgTypes[6]
424
if protoimpl.UnsafeEnabled && x != nil {
425
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
426
if ms.LoadMessageInfo() == nil {
427
ms.StoreMessageInfo(mi)
428
}
429
return ms
430
}
431
return mi.MessageOf(x)
432
}
433
434
// Deprecated: Use AutoTunnelRequest.ProtoReflect.Descriptor instead.
435
func (*AutoTunnelRequest) Descriptor() ([]byte, []int) {
436
return file_port_proto_rawDescGZIP(), []int{6}
437
}
438
439
func (x *AutoTunnelRequest) GetEnabled() bool {
440
if x != nil {
441
return x.Enabled
442
}
443
return false
444
}
445
446
type AutoTunnelResponse struct {
447
state protoimpl.MessageState
448
sizeCache protoimpl.SizeCache
449
unknownFields protoimpl.UnknownFields
450
}
451
452
func (x *AutoTunnelResponse) Reset() {
453
*x = AutoTunnelResponse{}
454
if protoimpl.UnsafeEnabled {
455
mi := &file_port_proto_msgTypes[7]
456
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
457
ms.StoreMessageInfo(mi)
458
}
459
}
460
461
func (x *AutoTunnelResponse) String() string {
462
return protoimpl.X.MessageStringOf(x)
463
}
464
465
func (*AutoTunnelResponse) ProtoMessage() {}
466
467
func (x *AutoTunnelResponse) ProtoReflect() protoreflect.Message {
468
mi := &file_port_proto_msgTypes[7]
469
if protoimpl.UnsafeEnabled && x != nil {
470
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
471
if ms.LoadMessageInfo() == nil {
472
ms.StoreMessageInfo(mi)
473
}
474
return ms
475
}
476
return mi.MessageOf(x)
477
}
478
479
// Deprecated: Use AutoTunnelResponse.ProtoReflect.Descriptor instead.
480
func (*AutoTunnelResponse) Descriptor() ([]byte, []int) {
481
return file_port_proto_rawDescGZIP(), []int{7}
482
}
483
484
type RetryAutoExposeRequest struct {
485
state protoimpl.MessageState
486
sizeCache protoimpl.SizeCache
487
unknownFields protoimpl.UnknownFields
488
489
Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
490
}
491
492
func (x *RetryAutoExposeRequest) Reset() {
493
*x = RetryAutoExposeRequest{}
494
if protoimpl.UnsafeEnabled {
495
mi := &file_port_proto_msgTypes[8]
496
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
497
ms.StoreMessageInfo(mi)
498
}
499
}
500
501
func (x *RetryAutoExposeRequest) String() string {
502
return protoimpl.X.MessageStringOf(x)
503
}
504
505
func (*RetryAutoExposeRequest) ProtoMessage() {}
506
507
func (x *RetryAutoExposeRequest) ProtoReflect() protoreflect.Message {
508
mi := &file_port_proto_msgTypes[8]
509
if protoimpl.UnsafeEnabled && x != nil {
510
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
511
if ms.LoadMessageInfo() == nil {
512
ms.StoreMessageInfo(mi)
513
}
514
return ms
515
}
516
return mi.MessageOf(x)
517
}
518
519
// Deprecated: Use RetryAutoExposeRequest.ProtoReflect.Descriptor instead.
520
func (*RetryAutoExposeRequest) Descriptor() ([]byte, []int) {
521
return file_port_proto_rawDescGZIP(), []int{8}
522
}
523
524
func (x *RetryAutoExposeRequest) GetPort() uint32 {
525
if x != nil {
526
return x.Port
527
}
528
return 0
529
}
530
531
type RetryAutoExposeResponse struct {
532
state protoimpl.MessageState
533
sizeCache protoimpl.SizeCache
534
unknownFields protoimpl.UnknownFields
535
}
536
537
func (x *RetryAutoExposeResponse) Reset() {
538
*x = RetryAutoExposeResponse{}
539
if protoimpl.UnsafeEnabled {
540
mi := &file_port_proto_msgTypes[9]
541
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
542
ms.StoreMessageInfo(mi)
543
}
544
}
545
546
func (x *RetryAutoExposeResponse) String() string {
547
return protoimpl.X.MessageStringOf(x)
548
}
549
550
func (*RetryAutoExposeResponse) ProtoMessage() {}
551
552
func (x *RetryAutoExposeResponse) ProtoReflect() protoreflect.Message {
553
mi := &file_port_proto_msgTypes[9]
554
if protoimpl.UnsafeEnabled && x != nil {
555
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
556
if ms.LoadMessageInfo() == nil {
557
ms.StoreMessageInfo(mi)
558
}
559
return ms
560
}
561
return mi.MessageOf(x)
562
}
563
564
// Deprecated: Use RetryAutoExposeResponse.ProtoReflect.Descriptor instead.
565
func (*RetryAutoExposeResponse) Descriptor() ([]byte, []int) {
566
return file_port_proto_rawDescGZIP(), []int{9}
567
}
568
569
var File_port_proto protoreflect.FileDescriptor
570
571
var file_port_proto_rawDesc = []byte{
572
0x0a, 0x0a, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x73, 0x75,
573
0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
574
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
575
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa2, 0x01, 0x0a, 0x11, 0x54, 0x75, 0x6e, 0x6e, 0x65,
576
0x6c, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
577
0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74,
578
0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18,
579
0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x6f, 0x72,
580
0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18,
581
0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73,
582
0x6f, 0x72, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x56, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x69,
583
0x74, 0x79, 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1b,
584
0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
585
0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x54,
586
0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
587
0x65, 0x22, 0x28, 0x0a, 0x12, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c,
588
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18,
589
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x15, 0x0a, 0x13, 0x43,
590
0x6c, 0x6f, 0x73, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
591
0x73, 0x65, 0x22, 0x6d, 0x0a, 0x16, 0x45, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54,
592
0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x04,
593
0x64, 0x65, 0x73, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x75, 0x70,
594
0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x50, 0x6f,
595
0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x04, 0x64, 0x65, 0x73,
596
0x63, 0x12, 0x14, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48,
597
0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75,
598
0x74, 0x22, 0x2d, 0x0a, 0x17, 0x45, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x75,
599
0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04,
600
0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
601
0x22, 0x2d, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x6f, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65,
602
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
603
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22,
604
0x14, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x6f, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73,
605
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x0a, 0x16, 0x52, 0x65, 0x74, 0x72, 0x79, 0x41, 0x75,
606
0x74, 0x6f, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
607
0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70,
608
0x6f, 0x72, 0x74, 0x22, 0x19, 0x0a, 0x17, 0x52, 0x65, 0x74, 0x72, 0x79, 0x41, 0x75, 0x74, 0x6f,
609
0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x32,
610
0x0a, 0x0f, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x56, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x69, 0x74,
611
0x79, 0x12, 0x08, 0x0a, 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x68,
612
0x6f, 0x73, 0x74, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
613
0x10, 0x02, 0x32, 0xc8, 0x04, 0x0a, 0x0b, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,
614
0x63, 0x65, 0x12, 0x6a, 0x0a, 0x06, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1d, 0x2e, 0x73,
615
0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c,
616
0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x75,
617
0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x50,
618
0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4,
619
0x93, 0x02, 0x1b, 0x22, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x74, 0x75,
620
0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x7b, 0x70, 0x6f, 0x72, 0x74, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x6e,
621
0x0a, 0x0b, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1e, 0x2e,
622
0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65,
623
0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e,
624
0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65,
625
0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e,
626
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x2a, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x72, 0x74,
627
0x2f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x7b, 0x70, 0x6f, 0x72, 0x74, 0x7d, 0x12, 0x5e,
628
0x0a, 0x0f, 0x45, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x75, 0x6e, 0x6e, 0x65,
629
0x6c, 0x12, 0x22, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x45,
630
0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65,
631
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73,
632
0x6f, 0x72, 0x2e, 0x45, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x75, 0x6e, 0x6e,
633
0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x73,
634
0x0a, 0x0a, 0x41, 0x75, 0x74, 0x6f, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1d, 0x2e, 0x73,
635
0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x54, 0x75,
636
0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x75,
637
0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x54, 0x75, 0x6e,
638
0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4,
639
0x93, 0x02, 0x20, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x74, 0x75,
640
0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x61, 0x75, 0x74, 0x6f, 0x2f, 0x7b, 0x65, 0x6e, 0x61, 0x62, 0x6c,
641
0x65, 0x64, 0x7d, 0x12, 0x87, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x74, 0x72, 0x79, 0x41, 0x75, 0x74,
642
0x6f, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76,
643
0x69, 0x73, 0x6f, 0x72, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x41, 0x75, 0x74, 0x6f, 0x45, 0x78,
644
0x70, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x75,
645
0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x41, 0x75,
646
0x74, 0x6f, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
647
0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f,
648
0x72, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x65, 0x78, 0x70, 0x6f, 0x73, 0x65, 0x64,
649
0x2f, 0x72, 0x65, 0x74, 0x72, 0x79, 0x2f, 0x7b, 0x70, 0x6f, 0x72, 0x74, 0x7d, 0x42, 0x46, 0x0a,
650
0x18, 0x69, 0x6f, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2e, 0x73, 0x75, 0x70, 0x65, 0x72,
651
0x76, 0x69, 0x73, 0x6f, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75,
652
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f,
653
0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f,
654
0x72, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
655
}
656
657
var (
658
file_port_proto_rawDescOnce sync.Once
659
file_port_proto_rawDescData = file_port_proto_rawDesc
660
)
661
662
func file_port_proto_rawDescGZIP() []byte {
663
file_port_proto_rawDescOnce.Do(func() {
664
file_port_proto_rawDescData = protoimpl.X.CompressGZIP(file_port_proto_rawDescData)
665
})
666
return file_port_proto_rawDescData
667
}
668
669
var file_port_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
670
var file_port_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
671
var file_port_proto_goTypes = []interface{}{
672
(TunnelVisiblity)(0), // 0: supervisor.TunnelVisiblity
673
(*TunnelPortRequest)(nil), // 1: supervisor.TunnelPortRequest
674
(*TunnelPortResponse)(nil), // 2: supervisor.TunnelPortResponse
675
(*CloseTunnelRequest)(nil), // 3: supervisor.CloseTunnelRequest
676
(*CloseTunnelResponse)(nil), // 4: supervisor.CloseTunnelResponse
677
(*EstablishTunnelRequest)(nil), // 5: supervisor.EstablishTunnelRequest
678
(*EstablishTunnelResponse)(nil), // 6: supervisor.EstablishTunnelResponse
679
(*AutoTunnelRequest)(nil), // 7: supervisor.AutoTunnelRequest
680
(*AutoTunnelResponse)(nil), // 8: supervisor.AutoTunnelResponse
681
(*RetryAutoExposeRequest)(nil), // 9: supervisor.RetryAutoExposeRequest
682
(*RetryAutoExposeResponse)(nil), // 10: supervisor.RetryAutoExposeResponse
683
}
684
var file_port_proto_depIdxs = []int32{
685
0, // 0: supervisor.TunnelPortRequest.visibility:type_name -> supervisor.TunnelVisiblity
686
1, // 1: supervisor.EstablishTunnelRequest.desc:type_name -> supervisor.TunnelPortRequest
687
1, // 2: supervisor.PortService.Tunnel:input_type -> supervisor.TunnelPortRequest
688
3, // 3: supervisor.PortService.CloseTunnel:input_type -> supervisor.CloseTunnelRequest
689
5, // 4: supervisor.PortService.EstablishTunnel:input_type -> supervisor.EstablishTunnelRequest
690
7, // 5: supervisor.PortService.AutoTunnel:input_type -> supervisor.AutoTunnelRequest
691
9, // 6: supervisor.PortService.RetryAutoExpose:input_type -> supervisor.RetryAutoExposeRequest
692
2, // 7: supervisor.PortService.Tunnel:output_type -> supervisor.TunnelPortResponse
693
4, // 8: supervisor.PortService.CloseTunnel:output_type -> supervisor.CloseTunnelResponse
694
6, // 9: supervisor.PortService.EstablishTunnel:output_type -> supervisor.EstablishTunnelResponse
695
8, // 10: supervisor.PortService.AutoTunnel:output_type -> supervisor.AutoTunnelResponse
696
10, // 11: supervisor.PortService.RetryAutoExpose:output_type -> supervisor.RetryAutoExposeResponse
697
7, // [7:12] is the sub-list for method output_type
698
2, // [2:7] is the sub-list for method input_type
699
2, // [2:2] is the sub-list for extension type_name
700
2, // [2:2] is the sub-list for extension extendee
701
0, // [0:2] is the sub-list for field type_name
702
}
703
704
func init() { file_port_proto_init() }
705
func file_port_proto_init() {
706
if File_port_proto != nil {
707
return
708
}
709
if !protoimpl.UnsafeEnabled {
710
file_port_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
711
switch v := v.(*TunnelPortRequest); i {
712
case 0:
713
return &v.state
714
case 1:
715
return &v.sizeCache
716
case 2:
717
return &v.unknownFields
718
default:
719
return nil
720
}
721
}
722
file_port_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
723
switch v := v.(*TunnelPortResponse); i {
724
case 0:
725
return &v.state
726
case 1:
727
return &v.sizeCache
728
case 2:
729
return &v.unknownFields
730
default:
731
return nil
732
}
733
}
734
file_port_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
735
switch v := v.(*CloseTunnelRequest); i {
736
case 0:
737
return &v.state
738
case 1:
739
return &v.sizeCache
740
case 2:
741
return &v.unknownFields
742
default:
743
return nil
744
}
745
}
746
file_port_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
747
switch v := v.(*CloseTunnelResponse); i {
748
case 0:
749
return &v.state
750
case 1:
751
return &v.sizeCache
752
case 2:
753
return &v.unknownFields
754
default:
755
return nil
756
}
757
}
758
file_port_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
759
switch v := v.(*EstablishTunnelRequest); i {
760
case 0:
761
return &v.state
762
case 1:
763
return &v.sizeCache
764
case 2:
765
return &v.unknownFields
766
default:
767
return nil
768
}
769
}
770
file_port_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
771
switch v := v.(*EstablishTunnelResponse); i {
772
case 0:
773
return &v.state
774
case 1:
775
return &v.sizeCache
776
case 2:
777
return &v.unknownFields
778
default:
779
return nil
780
}
781
}
782
file_port_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
783
switch v := v.(*AutoTunnelRequest); i {
784
case 0:
785
return &v.state
786
case 1:
787
return &v.sizeCache
788
case 2:
789
return &v.unknownFields
790
default:
791
return nil
792
}
793
}
794
file_port_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
795
switch v := v.(*AutoTunnelResponse); i {
796
case 0:
797
return &v.state
798
case 1:
799
return &v.sizeCache
800
case 2:
801
return &v.unknownFields
802
default:
803
return nil
804
}
805
}
806
file_port_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
807
switch v := v.(*RetryAutoExposeRequest); i {
808
case 0:
809
return &v.state
810
case 1:
811
return &v.sizeCache
812
case 2:
813
return &v.unknownFields
814
default:
815
return nil
816
}
817
}
818
file_port_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
819
switch v := v.(*RetryAutoExposeResponse); i {
820
case 0:
821
return &v.state
822
case 1:
823
return &v.sizeCache
824
case 2:
825
return &v.unknownFields
826
default:
827
return nil
828
}
829
}
830
}
831
file_port_proto_msgTypes[4].OneofWrappers = []interface{}{
832
(*EstablishTunnelRequest_Desc)(nil),
833
(*EstablishTunnelRequest_Data)(nil),
834
}
835
type x struct{}
836
out := protoimpl.TypeBuilder{
837
File: protoimpl.DescBuilder{
838
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
839
RawDescriptor: file_port_proto_rawDesc,
840
NumEnums: 1,
841
NumMessages: 10,
842
NumExtensions: 0,
843
NumServices: 1,
844
},
845
GoTypes: file_port_proto_goTypes,
846
DependencyIndexes: file_port_proto_depIdxs,
847
EnumInfos: file_port_proto_enumTypes,
848
MessageInfos: file_port_proto_msgTypes,
849
}.Build()
850
File_port_proto = out.File
851
file_port_proto_rawDesc = nil
852
file_port_proto_goTypes = nil
853
file_port_proto_depIdxs = nil
854
}
855
856