istio

Форк
0
/
nds.pb.go 
284 строки · 10.2 Кб
1
// Copyright Istio Authors. All Rights Reserved.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//     http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15
// Code generated by protoc-gen-go. DO NOT EDIT.
16
// versions:
17
// 	protoc-gen-go v1.33.0
18
// 	protoc        (unknown)
19
// source: dns/proto/nds.proto
20

21
package istio_networking_nds_v1
22

23
import (
24
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26
	reflect "reflect"
27
	sync "sync"
28
)
29

30
const (
31
	// Verify that this generated code is sufficiently up-to-date.
32
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33
	// Verify that runtime/protoimpl is sufficiently up-to-date.
34
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35
)
36

37
// Table of hostnames and their IPs to br used for DNS resolution at the agent
38
// Sent by istiod to istio agents via xds
39
type NameTable struct {
40
	state         protoimpl.MessageState
41
	sizeCache     protoimpl.SizeCache
42
	unknownFields protoimpl.UnknownFields
43

44
	// Map of hostname to resolution attributes.
45
	Table map[string]*NameTable_NameInfo `protobuf:"bytes,1,rep,name=table,proto3" json:"table,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
46
}
47

48
func (x *NameTable) Reset() {
49
	*x = NameTable{}
50
	if protoimpl.UnsafeEnabled {
51
		mi := &file_dns_proto_nds_proto_msgTypes[0]
52
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53
		ms.StoreMessageInfo(mi)
54
	}
55
}
56

57
func (x *NameTable) String() string {
58
	return protoimpl.X.MessageStringOf(x)
59
}
60

61
func (*NameTable) ProtoMessage() {}
62

63
func (x *NameTable) ProtoReflect() protoreflect.Message {
64
	mi := &file_dns_proto_nds_proto_msgTypes[0]
65
	if protoimpl.UnsafeEnabled && x != nil {
66
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67
		if ms.LoadMessageInfo() == nil {
68
			ms.StoreMessageInfo(mi)
69
		}
70
		return ms
71
	}
72
	return mi.MessageOf(x)
73
}
74

75
// Deprecated: Use NameTable.ProtoReflect.Descriptor instead.
76
func (*NameTable) Descriptor() ([]byte, []int) {
77
	return file_dns_proto_nds_proto_rawDescGZIP(), []int{0}
78
}
79

80
func (x *NameTable) GetTable() map[string]*NameTable_NameInfo {
81
	if x != nil {
82
		return x.Table
83
	}
84
	return nil
85
}
86

87
type NameTable_NameInfo struct {
88
	state         protoimpl.MessageState
89
	sizeCache     protoimpl.SizeCache
90
	unknownFields protoimpl.UnknownFields
91

92
	// List of IPs for the host.
93
	Ips []string `protobuf:"bytes,1,rep,name=ips,proto3" json:"ips,omitempty"`
94
	// The name of the service registry containing the service (e.g. 'Kubernetes').
95
	Registry string `protobuf:"bytes,2,opt,name=registry,proto3" json:"registry,omitempty"`
96
	// The k8s service name. Only applies when registry=`Kubernetes`
97
	Shortname string `protobuf:"bytes,3,opt,name=shortname,proto3" json:"shortname,omitempty"`
98
	// The k8s namespace for the service. Only applies when registry=`Kubernetes`
99
	Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
100
	// Deprecated. Was added for experimentation only.
101
	//
102
	// Deprecated: Marked as deprecated in dns/proto/nds.proto.
103
	AltHosts []string `protobuf:"bytes,5,rep,name=alt_hosts,json=altHosts,proto3" json:"alt_hosts,omitempty"`
104
}
105

106
func (x *NameTable_NameInfo) Reset() {
107
	*x = NameTable_NameInfo{}
108
	if protoimpl.UnsafeEnabled {
109
		mi := &file_dns_proto_nds_proto_msgTypes[1]
110
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111
		ms.StoreMessageInfo(mi)
112
	}
113
}
114

115
func (x *NameTable_NameInfo) String() string {
116
	return protoimpl.X.MessageStringOf(x)
117
}
118

119
func (*NameTable_NameInfo) ProtoMessage() {}
120

121
func (x *NameTable_NameInfo) ProtoReflect() protoreflect.Message {
122
	mi := &file_dns_proto_nds_proto_msgTypes[1]
123
	if protoimpl.UnsafeEnabled && x != nil {
124
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125
		if ms.LoadMessageInfo() == nil {
126
			ms.StoreMessageInfo(mi)
127
		}
128
		return ms
129
	}
130
	return mi.MessageOf(x)
131
}
132

133
// Deprecated: Use NameTable_NameInfo.ProtoReflect.Descriptor instead.
134
func (*NameTable_NameInfo) Descriptor() ([]byte, []int) {
135
	return file_dns_proto_nds_proto_rawDescGZIP(), []int{0, 0}
136
}
137

138
func (x *NameTable_NameInfo) GetIps() []string {
139
	if x != nil {
140
		return x.Ips
141
	}
142
	return nil
143
}
144

145
func (x *NameTable_NameInfo) GetRegistry() string {
146
	if x != nil {
147
		return x.Registry
148
	}
149
	return ""
150
}
151

152
func (x *NameTable_NameInfo) GetShortname() string {
153
	if x != nil {
154
		return x.Shortname
155
	}
156
	return ""
157
}
158

159
func (x *NameTable_NameInfo) GetNamespace() string {
160
	if x != nil {
161
		return x.Namespace
162
	}
163
	return ""
164
}
165

166
// Deprecated: Marked as deprecated in dns/proto/nds.proto.
167
func (x *NameTable_NameInfo) GetAltHosts() []string {
168
	if x != nil {
169
		return x.AltHosts
170
	}
171
	return nil
172
}
173

174
var File_dns_proto_nds_proto protoreflect.FileDescriptor
175

176
var file_dns_proto_nds_proto_rawDesc = []byte{
177
	0x0a, 0x13, 0x64, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6e, 0x64, 0x73, 0x2e,
178
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x6e, 0x65, 0x74,
179
	0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x22, 0xcf,
180
	0x02, 0x0a, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x43, 0x0a, 0x05,
181
	0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x69, 0x73,
182
	0x74, 0x69, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x6e,
183
	0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e,
184
	0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c,
185
	0x65, 0x1a, 0x95, 0x01, 0x0a, 0x08, 0x4e, 0x61, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10,
186
	0x0a, 0x03, 0x69, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x70, 0x73,
187
	0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01,
188
	0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09,
189
	0x73, 0x68, 0x6f, 0x72, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
190
	0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61,
191
	0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e,
192
	0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x09, 0x61, 0x6c, 0x74, 0x5f,
193
	0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52,
194
	0x08, 0x61, 0x6c, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x1a, 0x65, 0x0a, 0x0a, 0x54, 0x61, 0x62,
195
	0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
196
	0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x41, 0x0a, 0x05, 0x76, 0x61, 0x6c,
197
	0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x69, 0x73, 0x74, 0x69, 0x6f,
198
	0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x64, 0x73, 0x2e,
199
	0x76, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4e, 0x61, 0x6d,
200
	0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
201
	0x42, 0x36, 0x5a, 0x34, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x69, 0x73, 0x74,
202
	0x69, 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
203
	0x2f, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e,
204
	0x67, 0x5f, 0x6e, 0x64, 0x73, 0x5f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
205
}
206

207
var (
208
	file_dns_proto_nds_proto_rawDescOnce sync.Once
209
	file_dns_proto_nds_proto_rawDescData = file_dns_proto_nds_proto_rawDesc
210
)
211

212
func file_dns_proto_nds_proto_rawDescGZIP() []byte {
213
	file_dns_proto_nds_proto_rawDescOnce.Do(func() {
214
		file_dns_proto_nds_proto_rawDescData = protoimpl.X.CompressGZIP(file_dns_proto_nds_proto_rawDescData)
215
	})
216
	return file_dns_proto_nds_proto_rawDescData
217
}
218

219
var file_dns_proto_nds_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
220
var file_dns_proto_nds_proto_goTypes = []interface{}{
221
	(*NameTable)(nil),          // 0: istio.networking.nds.v1.NameTable
222
	(*NameTable_NameInfo)(nil), // 1: istio.networking.nds.v1.NameTable.NameInfo
223
	nil,                        // 2: istio.networking.nds.v1.NameTable.TableEntry
224
}
225
var file_dns_proto_nds_proto_depIdxs = []int32{
226
	2, // 0: istio.networking.nds.v1.NameTable.table:type_name -> istio.networking.nds.v1.NameTable.TableEntry
227
	1, // 1: istio.networking.nds.v1.NameTable.TableEntry.value:type_name -> istio.networking.nds.v1.NameTable.NameInfo
228
	2, // [2:2] is the sub-list for method output_type
229
	2, // [2:2] is the sub-list for method input_type
230
	2, // [2:2] is the sub-list for extension type_name
231
	2, // [2:2] is the sub-list for extension extendee
232
	0, // [0:2] is the sub-list for field type_name
233
}
234

235
func init() { file_dns_proto_nds_proto_init() }
236
func file_dns_proto_nds_proto_init() {
237
	if File_dns_proto_nds_proto != nil {
238
		return
239
	}
240
	if !protoimpl.UnsafeEnabled {
241
		file_dns_proto_nds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
242
			switch v := v.(*NameTable); i {
243
			case 0:
244
				return &v.state
245
			case 1:
246
				return &v.sizeCache
247
			case 2:
248
				return &v.unknownFields
249
			default:
250
				return nil
251
			}
252
		}
253
		file_dns_proto_nds_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
254
			switch v := v.(*NameTable_NameInfo); i {
255
			case 0:
256
				return &v.state
257
			case 1:
258
				return &v.sizeCache
259
			case 2:
260
				return &v.unknownFields
261
			default:
262
				return nil
263
			}
264
		}
265
	}
266
	type x struct{}
267
	out := protoimpl.TypeBuilder{
268
		File: protoimpl.DescBuilder{
269
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
270
			RawDescriptor: file_dns_proto_nds_proto_rawDesc,
271
			NumEnums:      0,
272
			NumMessages:   3,
273
			NumExtensions: 0,
274
			NumServices:   0,
275
		},
276
		GoTypes:           file_dns_proto_nds_proto_goTypes,
277
		DependencyIndexes: file_dns_proto_nds_proto_depIdxs,
278
		MessageInfos:      file_dns_proto_nds_proto_msgTypes,
279
	}.Build()
280
	File_dns_proto_nds_proto = out.File
281
	file_dns_proto_nds_proto_rawDesc = nil
282
	file_dns_proto_nds_proto_goTypes = nil
283
	file_dns_proto_nds_proto_depIdxs = nil
284
}
285

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.