forked from joeholley/supergloo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingress.pb.go
350 lines (319 loc) · 11.2 KB
/
ingress.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: github.com/solo-io/supergloo/api/v1/ingress.proto
package v1
import (
bytes "bytes"
fmt "fmt"
math "math"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
core "github.com/solo-io/solo-kit/pkg/api/v1/resources/core"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
//
//MeshIngress represents a managed ingress (edge router) which can proxy connections
//for services in Mesh managed by SuperGloo. SuperGloo will perform additional configuration,
//if necessary, to enable proxying services which are using mTLS for communication.
type MeshIngress struct {
// Status indicates the validation status of this resource.
// Status is read-only by clients, and set by supergloo during validation
Status core.Status `protobuf:"bytes,100,opt,name=status,proto3" json:"status" testdiff:"ignore"`
// Metadata contains the object metadata for this resource
Metadata core.Metadata `protobuf:"bytes,101,opt,name=metadata,proto3" json:"metadata"`
// type of Mesh ingress represented by this resource
//
// Types that are valid to be assigned to MeshIngressType:
// *MeshIngress_Gloo
MeshIngressType isMeshIngress_MeshIngressType `protobuf_oneof:"mesh_ingress_type"`
// where the ingress has been installed
InstallationNamespace string `protobuf:"bytes,2,opt,name=installation_namespace,json=installationNamespace,proto3" json:"installation_namespace,omitempty"`
// reference to the Mesh(s) that this ingress is acting upon
// enable the ingress to route to services within these mTLS-enabled meshes
Meshes []*core.ResourceRef `protobuf:"bytes,3,rep,name=meshes,proto3" json:"meshes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MeshIngress) Reset() { *m = MeshIngress{} }
func (m *MeshIngress) String() string { return proto.CompactTextString(m) }
func (*MeshIngress) ProtoMessage() {}
func (*MeshIngress) Descriptor() ([]byte, []int) {
return fileDescriptor_5d220723bdc29937, []int{0}
}
func (m *MeshIngress) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MeshIngress.Unmarshal(m, b)
}
func (m *MeshIngress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MeshIngress.Marshal(b, m, deterministic)
}
func (m *MeshIngress) XXX_Merge(src proto.Message) {
xxx_messageInfo_MeshIngress.Merge(m, src)
}
func (m *MeshIngress) XXX_Size() int {
return xxx_messageInfo_MeshIngress.Size(m)
}
func (m *MeshIngress) XXX_DiscardUnknown() {
xxx_messageInfo_MeshIngress.DiscardUnknown(m)
}
var xxx_messageInfo_MeshIngress proto.InternalMessageInfo
type isMeshIngress_MeshIngressType interface {
isMeshIngress_MeshIngressType()
Equal(interface{}) bool
}
type MeshIngress_Gloo struct {
Gloo *GlooMeshIngress `protobuf:"bytes,1,opt,name=gloo,proto3,oneof"`
}
func (*MeshIngress_Gloo) isMeshIngress_MeshIngressType() {}
func (m *MeshIngress) GetMeshIngressType() isMeshIngress_MeshIngressType {
if m != nil {
return m.MeshIngressType
}
return nil
}
func (m *MeshIngress) GetStatus() core.Status {
if m != nil {
return m.Status
}
return core.Status{}
}
func (m *MeshIngress) GetMetadata() core.Metadata {
if m != nil {
return m.Metadata
}
return core.Metadata{}
}
func (m *MeshIngress) GetGloo() *GlooMeshIngress {
if x, ok := m.GetMeshIngressType().(*MeshIngress_Gloo); ok {
return x.Gloo
}
return nil
}
func (m *MeshIngress) GetInstallationNamespace() string {
if m != nil {
return m.InstallationNamespace
}
return ""
}
func (m *MeshIngress) GetMeshes() []*core.ResourceRef {
if m != nil {
return m.Meshes
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*MeshIngress) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _MeshIngress_OneofMarshaler, _MeshIngress_OneofUnmarshaler, _MeshIngress_OneofSizer, []interface{}{
(*MeshIngress_Gloo)(nil),
}
}
func _MeshIngress_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*MeshIngress)
// mesh_ingress_type
switch x := m.MeshIngressType.(type) {
case *MeshIngress_Gloo:
_ = b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Gloo); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("MeshIngress.MeshIngressType has unexpected type %T", x)
}
return nil
}
func _MeshIngress_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*MeshIngress)
switch tag {
case 1: // mesh_ingress_type.gloo
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(GlooMeshIngress)
err := b.DecodeMessage(msg)
m.MeshIngressType = &MeshIngress_Gloo{msg}
return true, err
default:
return false, nil
}
}
func _MeshIngress_OneofSizer(msg proto.Message) (n int) {
m := msg.(*MeshIngress)
// mesh_ingress_type
switch x := m.MeshIngressType.(type) {
case *MeshIngress_Gloo:
s := proto.Size(x.Gloo)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Mesh ingress object for gloo
type GlooMeshIngress struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GlooMeshIngress) Reset() { *m = GlooMeshIngress{} }
func (m *GlooMeshIngress) String() string { return proto.CompactTextString(m) }
func (*GlooMeshIngress) ProtoMessage() {}
func (*GlooMeshIngress) Descriptor() ([]byte, []int) {
return fileDescriptor_5d220723bdc29937, []int{1}
}
func (m *GlooMeshIngress) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GlooMeshIngress.Unmarshal(m, b)
}
func (m *GlooMeshIngress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GlooMeshIngress.Marshal(b, m, deterministic)
}
func (m *GlooMeshIngress) XXX_Merge(src proto.Message) {
xxx_messageInfo_GlooMeshIngress.Merge(m, src)
}
func (m *GlooMeshIngress) XXX_Size() int {
return xxx_messageInfo_GlooMeshIngress.Size(m)
}
func (m *GlooMeshIngress) XXX_DiscardUnknown() {
xxx_messageInfo_GlooMeshIngress.DiscardUnknown(m)
}
var xxx_messageInfo_GlooMeshIngress proto.InternalMessageInfo
func init() {
proto.RegisterType((*MeshIngress)(nil), "supergloo.solo.io.MeshIngress")
proto.RegisterType((*GlooMeshIngress)(nil), "supergloo.solo.io.GlooMeshIngress")
}
func init() {
proto.RegisterFile("github.com/solo-io/supergloo/api/v1/ingress.proto", fileDescriptor_5d220723bdc29937)
}
var fileDescriptor_5d220723bdc29937 = []byte{
// 387 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0xce, 0xd2, 0x40,
0x10, 0xc7, 0x29, 0x34, 0x44, 0x97, 0x18, 0xd2, 0x8a, 0xa4, 0x60, 0x22, 0xa4, 0x17, 0x39, 0xc8,
0x36, 0x60, 0x4c, 0x08, 0xc7, 0x5e, 0xd0, 0x03, 0x1e, 0xea, 0xcd, 0x0b, 0x59, 0xca, 0xb4, 0x6c,
0x68, 0x3b, 0x4d, 0x77, 0x6b, 0xe2, 0x95, 0xa7, 0xf1, 0x51, 0x7c, 0x0a, 0x0e, 0x1e, 0xbc, 0xe3,
0x13, 0x98, 0xb6, 0x5b, 0x02, 0xfa, 0xe5, 0x0b, 0xdf, 0xa9, 0xed, 0xfc, 0xe7, 0xf7, 0xcf, 0xbf,
0x33, 0x43, 0x66, 0x21, 0x97, 0xfb, 0x7c, 0x4b, 0x7d, 0x8c, 0x1d, 0x81, 0x11, 0x4e, 0x39, 0x3a,
0x22, 0x4f, 0x21, 0x0b, 0x23, 0x44, 0x87, 0xa5, 0xdc, 0xf9, 0x36, 0x73, 0x78, 0x12, 0x66, 0x20,
0x04, 0x4d, 0x33, 0x94, 0x68, 0x1a, 0x17, 0x9d, 0x16, 0x04, 0xe5, 0x38, 0xec, 0x85, 0x18, 0x62,
0xa9, 0x3a, 0xc5, 0x5b, 0xd5, 0x38, 0x7c, 0xd0, 0xbb, 0x78, 0x1e, 0xb8, 0xac, 0xad, 0x63, 0x90,
0x6c, 0xc7, 0x24, 0x53, 0x88, 0x73, 0x07, 0x22,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 0x2f, 0x89, 0x51, 0x14, 0x36, 0xaa, 0xb2, 0x91, 0xdf, 0x53, 0xb0, 0x0d, 0xd2, 0xfd, 0x27,
0xb6, 0x3b, 0xfd, 0xf1, 0xeb, 0x8d, 0xf6, 0xf5, 0xed, 0xa3, 0x27, 0x9a, 0x1e, 0x42, 0xb5, 0xb9,
0x6d, 0xbb, 0xdc, 0xd8, 0xfb, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xfd, 0x25, 0x86, 0xd4,
0x02, 0x00, 0x00,
}
func (this *MeshIngress) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*MeshIngress)
if !ok {
that2, ok := that.(MeshIngress)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.Status.Equal(&that1.Status) {
return false
}
if !this.Metadata.Equal(&that1.Metadata) {
return false
}
if that1.MeshIngressType == nil {
if this.MeshIngressType != nil {
return false
}
} else if this.MeshIngressType == nil {
return false
} else if !this.MeshIngressType.Equal(that1.MeshIngressType) {
return false
}
if this.InstallationNamespace != that1.InstallationNamespace {
return false
}
if len(this.Meshes) != len(that1.Meshes) {
return false
}
for i := range this.Meshes {
if !this.Meshes[i].Equal(that1.Meshes[i]) {
return false
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *MeshIngress_Gloo) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*MeshIngress_Gloo)
if !ok {
that2, ok := that.(MeshIngress_Gloo)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.Gloo.Equal(that1.Gloo) {
return false
}
return true
}
func (this *GlooMeshIngress) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*GlooMeshIngress)
if !ok {
that2, ok := that.(GlooMeshIngress)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}