/
zz_generated.conversion.go
534 lines (472 loc) · 25.2 KB
/
zz_generated.conversion.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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
// +build !ignore_autogenerated
/*
* Tencent is pleased to support the open source community by making TKEStack
* available.
*
* Copyright (C) 2012-2020 Tencent. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
*
* https://opensource.org/licenses/Apache-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
// Code generated by conversion-gen. DO NOT EDIT.
package v1
import (
url "net/url"
unsafe "unsafe"
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
logagent "tkestack.io/tke/api/logagent"
)
func init() {
localSchemeBuilder.Register(RegisterConversions)
}
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func RegisterConversions(s *runtime.Scheme) error {
if err := s.AddGeneratedConversionFunc((*ConfigMap)(nil), (*logagent.ConfigMap)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_ConfigMap_To_logagent_ConfigMap(a.(*ConfigMap), b.(*logagent.ConfigMap), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.ConfigMap)(nil), (*ConfigMap)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_ConfigMap_To_v1_ConfigMap(a.(*logagent.ConfigMap), b.(*ConfigMap), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*ConfigMapList)(nil), (*logagent.ConfigMapList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_ConfigMapList_To_logagent_ConfigMapList(a.(*ConfigMapList), b.(*logagent.ConfigMapList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.ConfigMapList)(nil), (*ConfigMapList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_ConfigMapList_To_v1_ConfigMapList(a.(*logagent.ConfigMapList), b.(*ConfigMapList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogAgent)(nil), (*logagent.LogAgent)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogAgent_To_logagent_LogAgent(a.(*LogAgent), b.(*logagent.LogAgent), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogAgent)(nil), (*LogAgent)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogAgent_To_v1_LogAgent(a.(*logagent.LogAgent), b.(*LogAgent), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogAgentList)(nil), (*logagent.LogAgentList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogAgentList_To_logagent_LogAgentList(a.(*LogAgentList), b.(*logagent.LogAgentList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogAgentList)(nil), (*LogAgentList)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogAgentList_To_v1_LogAgentList(a.(*logagent.LogAgentList), b.(*LogAgentList), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogAgentProxyOptions)(nil), (*logagent.LogAgentProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogAgentProxyOptions_To_logagent_LogAgentProxyOptions(a.(*LogAgentProxyOptions), b.(*logagent.LogAgentProxyOptions), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogAgentProxyOptions)(nil), (*LogAgentProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogAgentProxyOptions_To_v1_LogAgentProxyOptions(a.(*logagent.LogAgentProxyOptions), b.(*LogAgentProxyOptions), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogAgentSpec)(nil), (*logagent.LogAgentSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogAgentSpec_To_logagent_LogAgentSpec(a.(*LogAgentSpec), b.(*logagent.LogAgentSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogAgentSpec)(nil), (*LogAgentSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogAgentSpec_To_v1_LogAgentSpec(a.(*logagent.LogAgentSpec), b.(*LogAgentSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogAgentStatus)(nil), (*logagent.LogAgentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogAgentStatus_To_logagent_LogAgentStatus(a.(*LogAgentStatus), b.(*logagent.LogAgentStatus), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogAgentStatus)(nil), (*LogAgentStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogAgentStatus_To_v1_LogAgentStatus(a.(*logagent.LogAgentStatus), b.(*LogAgentStatus), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogEsDetection)(nil), (*logagent.LogEsDetection)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogEsDetection_To_logagent_LogEsDetection(a.(*LogEsDetection), b.(*logagent.LogEsDetection), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogEsDetection)(nil), (*LogEsDetection)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogEsDetection_To_v1_LogEsDetection(a.(*logagent.LogEsDetection), b.(*LogEsDetection), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogFileContent)(nil), (*logagent.LogFileContent)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogFileContent_To_logagent_LogFileContent(a.(*LogFileContent), b.(*logagent.LogFileContent), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogFileContent)(nil), (*LogFileContent)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogFileContent_To_v1_LogFileContent(a.(*logagent.LogFileContent), b.(*LogFileContent), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogFileContentSpec)(nil), (*logagent.LogFileContentSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogFileContentSpec_To_logagent_LogFileContentSpec(a.(*LogFileContentSpec), b.(*logagent.LogFileContentSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogFileContentSpec)(nil), (*LogFileContentSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogFileContentSpec_To_v1_LogFileContentSpec(a.(*logagent.LogFileContentSpec), b.(*LogFileContentSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogFileProxyOptions)(nil), (*logagent.LogFileProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogFileProxyOptions_To_logagent_LogFileProxyOptions(a.(*LogFileProxyOptions), b.(*logagent.LogFileProxyOptions), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogFileProxyOptions)(nil), (*LogFileProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogFileProxyOptions_To_v1_LogFileProxyOptions(a.(*logagent.LogFileProxyOptions), b.(*LogFileProxyOptions), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogFileTree)(nil), (*logagent.LogFileTree)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogFileTree_To_logagent_LogFileTree(a.(*LogFileTree), b.(*logagent.LogFileTree), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogFileTree)(nil), (*LogFileTree)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogFileTree_To_v1_LogFileTree(a.(*logagent.LogFileTree), b.(*LogFileTree), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*LogFileTreeSpec)(nil), (*logagent.LogFileTreeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1_LogFileTreeSpec_To_logagent_LogFileTreeSpec(a.(*LogFileTreeSpec), b.(*logagent.LogFileTreeSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*logagent.LogFileTreeSpec)(nil), (*LogFileTreeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_logagent_LogFileTreeSpec_To_v1_LogFileTreeSpec(a.(*logagent.LogFileTreeSpec), b.(*LogFileTreeSpec), scope)
}); err != nil {
return err
}
if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*LogAgentProxyOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_url_Values_To_v1_LogAgentProxyOptions(a.(*url.Values), b.(*LogAgentProxyOptions), scope)
}); err != nil {
return err
}
return nil
}
func autoConvert_v1_ConfigMap_To_logagent_ConfigMap(in *ConfigMap, out *logagent.ConfigMap, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.Data = *(*map[string]string)(unsafe.Pointer(&in.Data))
out.BinaryData = *(*map[string][]byte)(unsafe.Pointer(&in.BinaryData))
return nil
}
// Convert_v1_ConfigMap_To_logagent_ConfigMap is an autogenerated conversion function.
func Convert_v1_ConfigMap_To_logagent_ConfigMap(in *ConfigMap, out *logagent.ConfigMap, s conversion.Scope) error {
return autoConvert_v1_ConfigMap_To_logagent_ConfigMap(in, out, s)
}
func autoConvert_logagent_ConfigMap_To_v1_ConfigMap(in *logagent.ConfigMap, out *ConfigMap, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
out.Data = *(*map[string]string)(unsafe.Pointer(&in.Data))
out.BinaryData = *(*map[string][]byte)(unsafe.Pointer(&in.BinaryData))
return nil
}
// Convert_logagent_ConfigMap_To_v1_ConfigMap is an autogenerated conversion function.
func Convert_logagent_ConfigMap_To_v1_ConfigMap(in *logagent.ConfigMap, out *ConfigMap, s conversion.Scope) error {
return autoConvert_logagent_ConfigMap_To_v1_ConfigMap(in, out, s)
}
func autoConvert_v1_ConfigMapList_To_logagent_ConfigMapList(in *ConfigMapList, out *logagent.ConfigMapList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]logagent.ConfigMap)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1_ConfigMapList_To_logagent_ConfigMapList is an autogenerated conversion function.
func Convert_v1_ConfigMapList_To_logagent_ConfigMapList(in *ConfigMapList, out *logagent.ConfigMapList, s conversion.Scope) error {
return autoConvert_v1_ConfigMapList_To_logagent_ConfigMapList(in, out, s)
}
func autoConvert_logagent_ConfigMapList_To_v1_ConfigMapList(in *logagent.ConfigMapList, out *ConfigMapList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]ConfigMap)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_logagent_ConfigMapList_To_v1_ConfigMapList is an autogenerated conversion function.
func Convert_logagent_ConfigMapList_To_v1_ConfigMapList(in *logagent.ConfigMapList, out *ConfigMapList, s conversion.Scope) error {
return autoConvert_logagent_ConfigMapList_To_v1_ConfigMapList(in, out, s)
}
func autoConvert_v1_LogAgent_To_logagent_LogAgent(in *LogAgent, out *logagent.LogAgent, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_v1_LogAgentSpec_To_logagent_LogAgentSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_v1_LogAgentStatus_To_logagent_LogAgentStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_v1_LogAgent_To_logagent_LogAgent is an autogenerated conversion function.
func Convert_v1_LogAgent_To_logagent_LogAgent(in *LogAgent, out *logagent.LogAgent, s conversion.Scope) error {
return autoConvert_v1_LogAgent_To_logagent_LogAgent(in, out, s)
}
func autoConvert_logagent_LogAgent_To_v1_LogAgent(in *logagent.LogAgent, out *LogAgent, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta
if err := Convert_logagent_LogAgentSpec_To_v1_LogAgentSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
if err := Convert_logagent_LogAgentStatus_To_v1_LogAgentStatus(&in.Status, &out.Status, s); err != nil {
return err
}
return nil
}
// Convert_logagent_LogAgent_To_v1_LogAgent is an autogenerated conversion function.
func Convert_logagent_LogAgent_To_v1_LogAgent(in *logagent.LogAgent, out *LogAgent, s conversion.Scope) error {
return autoConvert_logagent_LogAgent_To_v1_LogAgent(in, out, s)
}
func autoConvert_v1_LogAgentList_To_logagent_LogAgentList(in *LogAgentList, out *logagent.LogAgentList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]logagent.LogAgent)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_v1_LogAgentList_To_logagent_LogAgentList is an autogenerated conversion function.
func Convert_v1_LogAgentList_To_logagent_LogAgentList(in *LogAgentList, out *logagent.LogAgentList, s conversion.Scope) error {
return autoConvert_v1_LogAgentList_To_logagent_LogAgentList(in, out, s)
}
func autoConvert_logagent_LogAgentList_To_v1_LogAgentList(in *logagent.LogAgentList, out *LogAgentList, s conversion.Scope) error {
out.ListMeta = in.ListMeta
out.Items = *(*[]LogAgent)(unsafe.Pointer(&in.Items))
return nil
}
// Convert_logagent_LogAgentList_To_v1_LogAgentList is an autogenerated conversion function.
func Convert_logagent_LogAgentList_To_v1_LogAgentList(in *logagent.LogAgentList, out *LogAgentList, s conversion.Scope) error {
return autoConvert_logagent_LogAgentList_To_v1_LogAgentList(in, out, s)
}
func autoConvert_v1_LogAgentProxyOptions_To_logagent_LogAgentProxyOptions(in *LogAgentProxyOptions, out *logagent.LogAgentProxyOptions, s conversion.Scope) error {
out.Namespace = in.Namespace
out.Name = in.Name
return nil
}
// Convert_v1_LogAgentProxyOptions_To_logagent_LogAgentProxyOptions is an autogenerated conversion function.
func Convert_v1_LogAgentProxyOptions_To_logagent_LogAgentProxyOptions(in *LogAgentProxyOptions, out *logagent.LogAgentProxyOptions, s conversion.Scope) error {
return autoConvert_v1_LogAgentProxyOptions_To_logagent_LogAgentProxyOptions(in, out, s)
}
func autoConvert_logagent_LogAgentProxyOptions_To_v1_LogAgentProxyOptions(in *logagent.LogAgentProxyOptions, out *LogAgentProxyOptions, s conversion.Scope) error {
out.Namespace = in.Namespace
out.Name = in.Name
return nil
}
// Convert_logagent_LogAgentProxyOptions_To_v1_LogAgentProxyOptions is an autogenerated conversion function.
func Convert_logagent_LogAgentProxyOptions_To_v1_LogAgentProxyOptions(in *logagent.LogAgentProxyOptions, out *LogAgentProxyOptions, s conversion.Scope) error {
return autoConvert_logagent_LogAgentProxyOptions_To_v1_LogAgentProxyOptions(in, out, s)
}
func autoConvert_url_Values_To_v1_LogAgentProxyOptions(in *url.Values, out *LogAgentProxyOptions, s conversion.Scope) error {
// WARNING: Field TypeMeta does not have json tag, skipping.
if values, ok := map[string][]string(*in)["namespace"]; ok && len(values) > 0 {
if err := runtime.Convert_Slice_string_To_string(&values, &out.Namespace, s); err != nil {
return err
}
} else {
out.Namespace = ""
}
if values, ok := map[string][]string(*in)["name"]; ok && len(values) > 0 {
if err := runtime.Convert_Slice_string_To_string(&values, &out.Name, s); err != nil {
return err
}
} else {
out.Name = ""
}
return nil
}
// Convert_url_Values_To_v1_LogAgentProxyOptions is an autogenerated conversion function.
func Convert_url_Values_To_v1_LogAgentProxyOptions(in *url.Values, out *LogAgentProxyOptions, s conversion.Scope) error {
return autoConvert_url_Values_To_v1_LogAgentProxyOptions(in, out, s)
}
func autoConvert_v1_LogAgentSpec_To_logagent_LogAgentSpec(in *LogAgentSpec, out *logagent.LogAgentSpec, s conversion.Scope) error {
out.TenantID = in.TenantID
out.ClusterName = in.ClusterName
out.Version = in.Version
return nil
}
// Convert_v1_LogAgentSpec_To_logagent_LogAgentSpec is an autogenerated conversion function.
func Convert_v1_LogAgentSpec_To_logagent_LogAgentSpec(in *LogAgentSpec, out *logagent.LogAgentSpec, s conversion.Scope) error {
return autoConvert_v1_LogAgentSpec_To_logagent_LogAgentSpec(in, out, s)
}
func autoConvert_logagent_LogAgentSpec_To_v1_LogAgentSpec(in *logagent.LogAgentSpec, out *LogAgentSpec, s conversion.Scope) error {
out.TenantID = in.TenantID
out.ClusterName = in.ClusterName
out.Version = in.Version
return nil
}
// Convert_logagent_LogAgentSpec_To_v1_LogAgentSpec is an autogenerated conversion function.
func Convert_logagent_LogAgentSpec_To_v1_LogAgentSpec(in *logagent.LogAgentSpec, out *LogAgentSpec, s conversion.Scope) error {
return autoConvert_logagent_LogAgentSpec_To_v1_LogAgentSpec(in, out, s)
}
func autoConvert_v1_LogAgentStatus_To_logagent_LogAgentStatus(in *LogAgentStatus, out *logagent.LogAgentStatus, s conversion.Scope) error {
out.Version = in.Version
out.Phase = logagent.AddonPhase(in.Phase)
out.Reason = in.Reason
out.RetryCount = in.RetryCount
out.LastReInitializingTimestamp = in.LastReInitializingTimestamp
return nil
}
// Convert_v1_LogAgentStatus_To_logagent_LogAgentStatus is an autogenerated conversion function.
func Convert_v1_LogAgentStatus_To_logagent_LogAgentStatus(in *LogAgentStatus, out *logagent.LogAgentStatus, s conversion.Scope) error {
return autoConvert_v1_LogAgentStatus_To_logagent_LogAgentStatus(in, out, s)
}
func autoConvert_logagent_LogAgentStatus_To_v1_LogAgentStatus(in *logagent.LogAgentStatus, out *LogAgentStatus, s conversion.Scope) error {
out.Version = in.Version
out.Phase = AddonPhase(in.Phase)
out.Reason = in.Reason
out.RetryCount = in.RetryCount
out.LastReInitializingTimestamp = in.LastReInitializingTimestamp
return nil
}
// Convert_logagent_LogAgentStatus_To_v1_LogAgentStatus is an autogenerated conversion function.
func Convert_logagent_LogAgentStatus_To_v1_LogAgentStatus(in *logagent.LogAgentStatus, out *LogAgentStatus, s conversion.Scope) error {
return autoConvert_logagent_LogAgentStatus_To_v1_LogAgentStatus(in, out, s)
}
func autoConvert_v1_LogEsDetection_To_logagent_LogEsDetection(in *LogEsDetection, out *logagent.LogEsDetection, s conversion.Scope) error {
out.Scheme = in.Scheme
out.IP = in.IP
out.Port = in.Port
out.User = in.User
out.Password = in.Password
return nil
}
// Convert_v1_LogEsDetection_To_logagent_LogEsDetection is an autogenerated conversion function.
func Convert_v1_LogEsDetection_To_logagent_LogEsDetection(in *LogEsDetection, out *logagent.LogEsDetection, s conversion.Scope) error {
return autoConvert_v1_LogEsDetection_To_logagent_LogEsDetection(in, out, s)
}
func autoConvert_logagent_LogEsDetection_To_v1_LogEsDetection(in *logagent.LogEsDetection, out *LogEsDetection, s conversion.Scope) error {
out.Scheme = in.Scheme
out.IP = in.IP
out.Port = in.Port
out.User = in.User
out.Password = in.Password
return nil
}
// Convert_logagent_LogEsDetection_To_v1_LogEsDetection is an autogenerated conversion function.
func Convert_logagent_LogEsDetection_To_v1_LogEsDetection(in *logagent.LogEsDetection, out *LogEsDetection, s conversion.Scope) error {
return autoConvert_logagent_LogEsDetection_To_v1_LogEsDetection(in, out, s)
}
func autoConvert_v1_LogFileContent_To_logagent_LogFileContent(in *LogFileContent, out *logagent.LogFileContent, s conversion.Scope) error {
if err := Convert_v1_LogFileContentSpec_To_logagent_LogFileContentSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
return nil
}
// Convert_v1_LogFileContent_To_logagent_LogFileContent is an autogenerated conversion function.
func Convert_v1_LogFileContent_To_logagent_LogFileContent(in *LogFileContent, out *logagent.LogFileContent, s conversion.Scope) error {
return autoConvert_v1_LogFileContent_To_logagent_LogFileContent(in, out, s)
}
func autoConvert_logagent_LogFileContent_To_v1_LogFileContent(in *logagent.LogFileContent, out *LogFileContent, s conversion.Scope) error {
if err := Convert_logagent_LogFileContentSpec_To_v1_LogFileContentSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
return nil
}
// Convert_logagent_LogFileContent_To_v1_LogFileContent is an autogenerated conversion function.
func Convert_logagent_LogFileContent_To_v1_LogFileContent(in *logagent.LogFileContent, out *LogFileContent, s conversion.Scope) error {
return autoConvert_logagent_LogFileContent_To_v1_LogFileContent(in, out, s)
}
func autoConvert_v1_LogFileContentSpec_To_logagent_LogFileContentSpec(in *LogFileContentSpec, out *logagent.LogFileContentSpec, s conversion.Scope) error {
out.ClusterId = in.ClusterId
out.Namespace = in.Namespace
out.Container = in.Container
out.Pod = in.Pod
out.Start = in.Start
out.Length = in.Length
out.Filepath = in.Filepath
return nil
}
// Convert_v1_LogFileContentSpec_To_logagent_LogFileContentSpec is an autogenerated conversion function.
func Convert_v1_LogFileContentSpec_To_logagent_LogFileContentSpec(in *LogFileContentSpec, out *logagent.LogFileContentSpec, s conversion.Scope) error {
return autoConvert_v1_LogFileContentSpec_To_logagent_LogFileContentSpec(in, out, s)
}
func autoConvert_logagent_LogFileContentSpec_To_v1_LogFileContentSpec(in *logagent.LogFileContentSpec, out *LogFileContentSpec, s conversion.Scope) error {
out.ClusterId = in.ClusterId
out.Namespace = in.Namespace
out.Container = in.Container
out.Pod = in.Pod
out.Start = in.Start
out.Length = in.Length
out.Filepath = in.Filepath
return nil
}
// Convert_logagent_LogFileContentSpec_To_v1_LogFileContentSpec is an autogenerated conversion function.
func Convert_logagent_LogFileContentSpec_To_v1_LogFileContentSpec(in *logagent.LogFileContentSpec, out *LogFileContentSpec, s conversion.Scope) error {
return autoConvert_logagent_LogFileContentSpec_To_v1_LogFileContentSpec(in, out, s)
}
func autoConvert_v1_LogFileProxyOptions_To_logagent_LogFileProxyOptions(in *LogFileProxyOptions, out *logagent.LogFileProxyOptions, s conversion.Scope) error {
out.Namespace = in.Namespace
out.Pod = in.Pod
out.Container = in.Container
return nil
}
// Convert_v1_LogFileProxyOptions_To_logagent_LogFileProxyOptions is an autogenerated conversion function.
func Convert_v1_LogFileProxyOptions_To_logagent_LogFileProxyOptions(in *LogFileProxyOptions, out *logagent.LogFileProxyOptions, s conversion.Scope) error {
return autoConvert_v1_LogFileProxyOptions_To_logagent_LogFileProxyOptions(in, out, s)
}
func autoConvert_logagent_LogFileProxyOptions_To_v1_LogFileProxyOptions(in *logagent.LogFileProxyOptions, out *LogFileProxyOptions, s conversion.Scope) error {
out.Namespace = in.Namespace
out.Pod = in.Pod
out.Container = in.Container
return nil
}
// Convert_logagent_LogFileProxyOptions_To_v1_LogFileProxyOptions is an autogenerated conversion function.
func Convert_logagent_LogFileProxyOptions_To_v1_LogFileProxyOptions(in *logagent.LogFileProxyOptions, out *LogFileProxyOptions, s conversion.Scope) error {
return autoConvert_logagent_LogFileProxyOptions_To_v1_LogFileProxyOptions(in, out, s)
}
func autoConvert_v1_LogFileTree_To_logagent_LogFileTree(in *LogFileTree, out *logagent.LogFileTree, s conversion.Scope) error {
if err := Convert_v1_LogFileTreeSpec_To_logagent_LogFileTreeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
return nil
}
// Convert_v1_LogFileTree_To_logagent_LogFileTree is an autogenerated conversion function.
func Convert_v1_LogFileTree_To_logagent_LogFileTree(in *LogFileTree, out *logagent.LogFileTree, s conversion.Scope) error {
return autoConvert_v1_LogFileTree_To_logagent_LogFileTree(in, out, s)
}
func autoConvert_logagent_LogFileTree_To_v1_LogFileTree(in *logagent.LogFileTree, out *LogFileTree, s conversion.Scope) error {
if err := Convert_logagent_LogFileTreeSpec_To_v1_LogFileTreeSpec(&in.Spec, &out.Spec, s); err != nil {
return err
}
return nil
}
// Convert_logagent_LogFileTree_To_v1_LogFileTree is an autogenerated conversion function.
func Convert_logagent_LogFileTree_To_v1_LogFileTree(in *logagent.LogFileTree, out *LogFileTree, s conversion.Scope) error {
return autoConvert_logagent_LogFileTree_To_v1_LogFileTree(in, out, s)
}
func autoConvert_v1_LogFileTreeSpec_To_logagent_LogFileTreeSpec(in *LogFileTreeSpec, out *logagent.LogFileTreeSpec, s conversion.Scope) error {
out.ClusterId = in.ClusterId
out.Namespace = in.Namespace
out.Container = in.Container
out.Pod = in.Pod
return nil
}
// Convert_v1_LogFileTreeSpec_To_logagent_LogFileTreeSpec is an autogenerated conversion function.
func Convert_v1_LogFileTreeSpec_To_logagent_LogFileTreeSpec(in *LogFileTreeSpec, out *logagent.LogFileTreeSpec, s conversion.Scope) error {
return autoConvert_v1_LogFileTreeSpec_To_logagent_LogFileTreeSpec(in, out, s)
}
func autoConvert_logagent_LogFileTreeSpec_To_v1_LogFileTreeSpec(in *logagent.LogFileTreeSpec, out *LogFileTreeSpec, s conversion.Scope) error {
out.ClusterId = in.ClusterId
out.Namespace = in.Namespace
out.Container = in.Container
out.Pod = in.Pod
return nil
}
// Convert_logagent_LogFileTreeSpec_To_v1_LogFileTreeSpec is an autogenerated conversion function.
func Convert_logagent_LogFileTreeSpec_To_v1_LogFileTreeSpec(in *logagent.LogFileTreeSpec, out *LogFileTreeSpec, s conversion.Scope) error {
return autoConvert_logagent_LogFileTreeSpec_To_v1_LogFileTreeSpec(in, out, s)
}