kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/notification/v2beta1/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2020 The KubeSphere Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 20 // Code generated by controller-gen. DO NOT EDIT. 21 22 package v2beta1 23 24 import ( 25 v1 "k8s.io/api/core/v1" 26 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 27 runtime "k8s.io/apimachinery/pkg/runtime" 28 ) 29 30 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 31 func (in *BasicAuth) DeepCopyInto(out *BasicAuth) { 32 *out = *in 33 if in.Password != nil { 34 in, out := &in.Password, &out.Password 35 *out = new(SecretKeySelector) 36 **out = **in 37 } 38 } 39 40 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicAuth. 41 func (in *BasicAuth) DeepCopy() *BasicAuth { 42 if in == nil { 43 return nil 44 } 45 out := new(BasicAuth) 46 in.DeepCopyInto(out) 47 return out 48 } 49 50 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 51 func (in *ClientCertificate) DeepCopyInto(out *ClientCertificate) { 52 *out = *in 53 if in.Cert != nil { 54 in, out := &in.Cert, &out.Cert 55 *out = new(SecretKeySelector) 56 **out = **in 57 } 58 if in.Key != nil { 59 in, out := &in.Key, &out.Key 60 *out = new(SecretKeySelector) 61 **out = **in 62 } 63 } 64 65 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientCertificate. 66 func (in *ClientCertificate) DeepCopy() *ClientCertificate { 67 if in == nil { 68 return nil 69 } 70 out := new(ClientCertificate) 71 in.DeepCopyInto(out) 72 return out 73 } 74 75 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 76 func (in *Config) DeepCopyInto(out *Config) { 77 *out = *in 78 out.TypeMeta = in.TypeMeta 79 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 80 in.Spec.DeepCopyInto(&out.Spec) 81 out.Status = in.Status 82 } 83 84 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config. 85 func (in *Config) DeepCopy() *Config { 86 if in == nil { 87 return nil 88 } 89 out := new(Config) 90 in.DeepCopyInto(out) 91 return out 92 } 93 94 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 95 func (in *Config) DeepCopyObject() runtime.Object { 96 if c := in.DeepCopy(); c != nil { 97 return c 98 } 99 return nil 100 } 101 102 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 103 func (in *ConfigList) DeepCopyInto(out *ConfigList) { 104 *out = *in 105 out.TypeMeta = in.TypeMeta 106 in.ListMeta.DeepCopyInto(&out.ListMeta) 107 if in.Items != nil { 108 in, out := &in.Items, &out.Items 109 *out = make([]Config, len(*in)) 110 for i := range *in { 111 (*in)[i].DeepCopyInto(&(*out)[i]) 112 } 113 } 114 } 115 116 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigList. 117 func (in *ConfigList) DeepCopy() *ConfigList { 118 if in == nil { 119 return nil 120 } 121 out := new(ConfigList) 122 in.DeepCopyInto(out) 123 return out 124 } 125 126 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 127 func (in *ConfigList) DeepCopyObject() runtime.Object { 128 if c := in.DeepCopy(); c != nil { 129 return c 130 } 131 return nil 132 } 133 134 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 135 func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec) { 136 *out = *in 137 if in.DingTalk != nil { 138 in, out := &in.DingTalk, &out.DingTalk 139 *out = new(DingTalkConfig) 140 (*in).DeepCopyInto(*out) 141 } 142 if in.Email != nil { 143 in, out := &in.Email, &out.Email 144 *out = new(EmailConfig) 145 (*in).DeepCopyInto(*out) 146 } 147 if in.Slack != nil { 148 in, out := &in.Slack, &out.Slack 149 *out = new(SlackConfig) 150 (*in).DeepCopyInto(*out) 151 } 152 if in.Webhook != nil { 153 in, out := &in.Webhook, &out.Webhook 154 *out = new(WebhookConfig) 155 (*in).DeepCopyInto(*out) 156 } 157 if in.Wechat != nil { 158 in, out := &in.Wechat, &out.Wechat 159 *out = new(WechatConfig) 160 (*in).DeepCopyInto(*out) 161 } 162 } 163 164 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSpec. 165 func (in *ConfigSpec) DeepCopy() *ConfigSpec { 166 if in == nil { 167 return nil 168 } 169 out := new(ConfigSpec) 170 in.DeepCopyInto(out) 171 return out 172 } 173 174 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 175 func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) { 176 *out = *in 177 } 178 179 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigStatus. 180 func (in *ConfigStatus) DeepCopy() *ConfigStatus { 181 if in == nil { 182 return nil 183 } 184 out := new(ConfigStatus) 185 in.DeepCopyInto(out) 186 return out 187 } 188 189 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 190 func (in *DingTalkApplicationConfig) DeepCopyInto(out *DingTalkApplicationConfig) { 191 *out = *in 192 if in.AppKey != nil { 193 in, out := &in.AppKey, &out.AppKey 194 *out = new(SecretKeySelector) 195 **out = **in 196 } 197 if in.AppSecret != nil { 198 in, out := &in.AppSecret, &out.AppSecret 199 *out = new(SecretKeySelector) 200 **out = **in 201 } 202 } 203 204 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkApplicationConfig. 205 func (in *DingTalkApplicationConfig) DeepCopy() *DingTalkApplicationConfig { 206 if in == nil { 207 return nil 208 } 209 out := new(DingTalkApplicationConfig) 210 in.DeepCopyInto(out) 211 return out 212 } 213 214 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 215 func (in *DingTalkChatBot) DeepCopyInto(out *DingTalkChatBot) { 216 *out = *in 217 if in.Webhook != nil { 218 in, out := &in.Webhook, &out.Webhook 219 *out = new(SecretKeySelector) 220 **out = **in 221 } 222 if in.Keywords != nil { 223 in, out := &in.Keywords, &out.Keywords 224 *out = make([]string, len(*in)) 225 copy(*out, *in) 226 } 227 if in.Secret != nil { 228 in, out := &in.Secret, &out.Secret 229 *out = new(SecretKeySelector) 230 **out = **in 231 } 232 } 233 234 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkChatBot. 235 func (in *DingTalkChatBot) DeepCopy() *DingTalkChatBot { 236 if in == nil { 237 return nil 238 } 239 out := new(DingTalkChatBot) 240 in.DeepCopyInto(out) 241 return out 242 } 243 244 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 245 func (in *DingTalkConfig) DeepCopyInto(out *DingTalkConfig) { 246 *out = *in 247 if in.Labels != nil { 248 in, out := &in.Labels, &out.Labels 249 *out = make(map[string]string, len(*in)) 250 for key, val := range *in { 251 (*out)[key] = val 252 } 253 } 254 if in.Conversation != nil { 255 in, out := &in.Conversation, &out.Conversation 256 *out = new(DingTalkApplicationConfig) 257 (*in).DeepCopyInto(*out) 258 } 259 } 260 261 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkConfig. 262 func (in *DingTalkConfig) DeepCopy() *DingTalkConfig { 263 if in == nil { 264 return nil 265 } 266 out := new(DingTalkConfig) 267 in.DeepCopyInto(out) 268 return out 269 } 270 271 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 272 func (in *DingTalkConversation) DeepCopyInto(out *DingTalkConversation) { 273 *out = *in 274 if in.ChatIDs != nil { 275 in, out := &in.ChatIDs, &out.ChatIDs 276 *out = make([]string, len(*in)) 277 copy(*out, *in) 278 } 279 } 280 281 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkConversation. 282 func (in *DingTalkConversation) DeepCopy() *DingTalkConversation { 283 if in == nil { 284 return nil 285 } 286 out := new(DingTalkConversation) 287 in.DeepCopyInto(out) 288 return out 289 } 290 291 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 292 func (in *DingTalkOptions) DeepCopyInto(out *DingTalkOptions) { 293 *out = *in 294 if in.NotificationTimeout != nil { 295 in, out := &in.NotificationTimeout, &out.NotificationTimeout 296 *out = new(int32) 297 **out = **in 298 } 299 if in.ChatBotThrottle != nil { 300 in, out := &in.ChatBotThrottle, &out.ChatBotThrottle 301 *out = new(Throttle) 302 **out = **in 303 } 304 if in.ConversationThrottle != nil { 305 in, out := &in.ConversationThrottle, &out.ConversationThrottle 306 *out = new(Throttle) 307 **out = **in 308 } 309 } 310 311 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkOptions. 312 func (in *DingTalkOptions) DeepCopy() *DingTalkOptions { 313 if in == nil { 314 return nil 315 } 316 out := new(DingTalkOptions) 317 in.DeepCopyInto(out) 318 return out 319 } 320 321 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 322 func (in *DingTalkReceiver) DeepCopyInto(out *DingTalkReceiver) { 323 *out = *in 324 if in.Enabled != nil { 325 in, out := &in.Enabled, &out.Enabled 326 *out = new(bool) 327 **out = **in 328 } 329 if in.DingTalkConfigSelector != nil { 330 in, out := &in.DingTalkConfigSelector, &out.DingTalkConfigSelector 331 *out = new(metav1.LabelSelector) 332 (*in).DeepCopyInto(*out) 333 } 334 if in.AlertSelector != nil { 335 in, out := &in.AlertSelector, &out.AlertSelector 336 *out = new(metav1.LabelSelector) 337 (*in).DeepCopyInto(*out) 338 } 339 if in.ChatBot != nil { 340 in, out := &in.ChatBot, &out.ChatBot 341 *out = new(DingTalkChatBot) 342 (*in).DeepCopyInto(*out) 343 } 344 if in.Conversation != nil { 345 in, out := &in.Conversation, &out.Conversation 346 *out = new(DingTalkConversation) 347 (*in).DeepCopyInto(*out) 348 } 349 } 350 351 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingTalkReceiver. 352 func (in *DingTalkReceiver) DeepCopy() *DingTalkReceiver { 353 if in == nil { 354 return nil 355 } 356 out := new(DingTalkReceiver) 357 in.DeepCopyInto(out) 358 return out 359 } 360 361 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 362 func (in *EmailConfig) DeepCopyInto(out *EmailConfig) { 363 *out = *in 364 if in.Labels != nil { 365 in, out := &in.Labels, &out.Labels 366 *out = make(map[string]string, len(*in)) 367 for key, val := range *in { 368 (*out)[key] = val 369 } 370 } 371 out.SmartHost = in.SmartHost 372 if in.Hello != nil { 373 in, out := &in.Hello, &out.Hello 374 *out = new(string) 375 **out = **in 376 } 377 if in.AuthUsername != nil { 378 in, out := &in.AuthUsername, &out.AuthUsername 379 *out = new(string) 380 **out = **in 381 } 382 if in.AuthIdentify != nil { 383 in, out := &in.AuthIdentify, &out.AuthIdentify 384 *out = new(string) 385 **out = **in 386 } 387 if in.AuthPassword != nil { 388 in, out := &in.AuthPassword, &out.AuthPassword 389 *out = new(SecretKeySelector) 390 **out = **in 391 } 392 if in.AuthSecret != nil { 393 in, out := &in.AuthSecret, &out.AuthSecret 394 *out = new(SecretKeySelector) 395 **out = **in 396 } 397 if in.RequireTLS != nil { 398 in, out := &in.RequireTLS, &out.RequireTLS 399 *out = new(bool) 400 **out = **in 401 } 402 if in.TLS != nil { 403 in, out := &in.TLS, &out.TLS 404 *out = new(TLSConfig) 405 (*in).DeepCopyInto(*out) 406 } 407 } 408 409 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailConfig. 410 func (in *EmailConfig) DeepCopy() *EmailConfig { 411 if in == nil { 412 return nil 413 } 414 out := new(EmailConfig) 415 in.DeepCopyInto(out) 416 return out 417 } 418 419 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 420 func (in *EmailOptions) DeepCopyInto(out *EmailOptions) { 421 *out = *in 422 if in.NotificationTimeout != nil { 423 in, out := &in.NotificationTimeout, &out.NotificationTimeout 424 *out = new(int32) 425 **out = **in 426 } 427 } 428 429 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailOptions. 430 func (in *EmailOptions) DeepCopy() *EmailOptions { 431 if in == nil { 432 return nil 433 } 434 out := new(EmailOptions) 435 in.DeepCopyInto(out) 436 return out 437 } 438 439 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 440 func (in *EmailReceiver) DeepCopyInto(out *EmailReceiver) { 441 *out = *in 442 if in.Enabled != nil { 443 in, out := &in.Enabled, &out.Enabled 444 *out = new(bool) 445 **out = **in 446 } 447 if in.To != nil { 448 in, out := &in.To, &out.To 449 *out = make([]string, len(*in)) 450 copy(*out, *in) 451 } 452 if in.EmailConfigSelector != nil { 453 in, out := &in.EmailConfigSelector, &out.EmailConfigSelector 454 *out = new(metav1.LabelSelector) 455 (*in).DeepCopyInto(*out) 456 } 457 if in.AlertSelector != nil { 458 in, out := &in.AlertSelector, &out.AlertSelector 459 *out = new(metav1.LabelSelector) 460 (*in).DeepCopyInto(*out) 461 } 462 } 463 464 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmailReceiver. 465 func (in *EmailReceiver) DeepCopy() *EmailReceiver { 466 if in == nil { 467 return nil 468 } 469 out := new(EmailReceiver) 470 in.DeepCopyInto(out) 471 return out 472 } 473 474 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 475 func (in *GlobalOptions) DeepCopyInto(out *GlobalOptions) { 476 *out = *in 477 if in.TemplateFiles != nil { 478 in, out := &in.TemplateFiles, &out.TemplateFiles 479 *out = make([]string, len(*in)) 480 copy(*out, *in) 481 } 482 } 483 484 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalOptions. 485 func (in *GlobalOptions) DeepCopy() *GlobalOptions { 486 if in == nil { 487 return nil 488 } 489 out := new(GlobalOptions) 490 in.DeepCopyInto(out) 491 return out 492 } 493 494 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 495 func (in *HTTPClientConfig) DeepCopyInto(out *HTTPClientConfig) { 496 *out = *in 497 if in.BasicAuth != nil { 498 in, out := &in.BasicAuth, &out.BasicAuth 499 *out = new(BasicAuth) 500 (*in).DeepCopyInto(*out) 501 } 502 if in.BearerToken != nil { 503 in, out := &in.BearerToken, &out.BearerToken 504 *out = new(SecretKeySelector) 505 **out = **in 506 } 507 if in.TLSConfig != nil { 508 in, out := &in.TLSConfig, &out.TLSConfig 509 *out = new(TLSConfig) 510 (*in).DeepCopyInto(*out) 511 } 512 } 513 514 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPClientConfig. 515 func (in *HTTPClientConfig) DeepCopy() *HTTPClientConfig { 516 if in == nil { 517 return nil 518 } 519 out := new(HTTPClientConfig) 520 in.DeepCopyInto(out) 521 return out 522 } 523 524 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 525 func (in *HostPort) DeepCopyInto(out *HostPort) { 526 *out = *in 527 } 528 529 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPort. 530 func (in *HostPort) DeepCopy() *HostPort { 531 if in == nil { 532 return nil 533 } 534 out := new(HostPort) 535 in.DeepCopyInto(out) 536 return out 537 } 538 539 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 540 func (in *NotificationManager) DeepCopyInto(out *NotificationManager) { 541 *out = *in 542 out.TypeMeta = in.TypeMeta 543 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 544 in.Spec.DeepCopyInto(&out.Spec) 545 out.Status = in.Status 546 } 547 548 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationManager. 549 func (in *NotificationManager) DeepCopy() *NotificationManager { 550 if in == nil { 551 return nil 552 } 553 out := new(NotificationManager) 554 in.DeepCopyInto(out) 555 return out 556 } 557 558 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 559 func (in *NotificationManager) DeepCopyObject() runtime.Object { 560 if c := in.DeepCopy(); c != nil { 561 return c 562 } 563 return nil 564 } 565 566 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 567 func (in *NotificationManagerList) DeepCopyInto(out *NotificationManagerList) { 568 *out = *in 569 out.TypeMeta = in.TypeMeta 570 in.ListMeta.DeepCopyInto(&out.ListMeta) 571 if in.Items != nil { 572 in, out := &in.Items, &out.Items 573 *out = make([]NotificationManager, len(*in)) 574 for i := range *in { 575 (*in)[i].DeepCopyInto(&(*out)[i]) 576 } 577 } 578 } 579 580 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationManagerList. 581 func (in *NotificationManagerList) DeepCopy() *NotificationManagerList { 582 if in == nil { 583 return nil 584 } 585 out := new(NotificationManagerList) 586 in.DeepCopyInto(out) 587 return out 588 } 589 590 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 591 func (in *NotificationManagerList) DeepCopyObject() runtime.Object { 592 if c := in.DeepCopy(); c != nil { 593 return c 594 } 595 return nil 596 } 597 598 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 599 func (in *NotificationManagerSpec) DeepCopyInto(out *NotificationManagerSpec) { 600 *out = *in 601 in.Resources.DeepCopyInto(&out.Resources) 602 if in.Image != nil { 603 in, out := &in.Image, &out.Image 604 *out = new(string) 605 **out = **in 606 } 607 if in.ImagePullPolicy != nil { 608 in, out := &in.ImagePullPolicy, &out.ImagePullPolicy 609 *out = new(v1.PullPolicy) 610 **out = **in 611 } 612 if in.Replicas != nil { 613 in, out := &in.Replicas, &out.Replicas 614 *out = new(int32) 615 **out = **in 616 } 617 if in.NodeSelector != nil { 618 in, out := &in.NodeSelector, &out.NodeSelector 619 *out = make(map[string]string, len(*in)) 620 for key, val := range *in { 621 (*out)[key] = val 622 } 623 } 624 if in.Affinity != nil { 625 in, out := &in.Affinity, &out.Affinity 626 *out = new(v1.Affinity) 627 (*in).DeepCopyInto(*out) 628 } 629 if in.Tolerations != nil { 630 in, out := &in.Tolerations, &out.Tolerations 631 *out = make([]v1.Toleration, len(*in)) 632 for i := range *in { 633 (*in)[i].DeepCopyInto(&(*out)[i]) 634 } 635 } 636 if in.DefaultConfigSelector != nil { 637 in, out := &in.DefaultConfigSelector, &out.DefaultConfigSelector 638 *out = new(metav1.LabelSelector) 639 (*in).DeepCopyInto(*out) 640 } 641 if in.Receivers != nil { 642 in, out := &in.Receivers, &out.Receivers 643 *out = new(ReceiversSpec) 644 (*in).DeepCopyInto(*out) 645 } 646 if in.Volumes != nil { 647 in, out := &in.Volumes, &out.Volumes 648 *out = make([]v1.Volume, len(*in)) 649 for i := range *in { 650 (*in)[i].DeepCopyInto(&(*out)[i]) 651 } 652 } 653 if in.VolumeMounts != nil { 654 in, out := &in.VolumeMounts, &out.VolumeMounts 655 *out = make([]v1.VolumeMount, len(*in)) 656 for i := range *in { 657 (*in)[i].DeepCopyInto(&(*out)[i]) 658 } 659 } 660 if in.Args != nil { 661 in, out := &in.Args, &out.Args 662 *out = make([]string, len(*in)) 663 copy(*out, *in) 664 } 665 } 666 667 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationManagerSpec. 668 func (in *NotificationManagerSpec) DeepCopy() *NotificationManagerSpec { 669 if in == nil { 670 return nil 671 } 672 out := new(NotificationManagerSpec) 673 in.DeepCopyInto(out) 674 return out 675 } 676 677 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 678 func (in *NotificationManagerStatus) DeepCopyInto(out *NotificationManagerStatus) { 679 *out = *in 680 } 681 682 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationManagerStatus. 683 func (in *NotificationManagerStatus) DeepCopy() *NotificationManagerStatus { 684 if in == nil { 685 return nil 686 } 687 out := new(NotificationManagerStatus) 688 in.DeepCopyInto(out) 689 return out 690 } 691 692 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 693 func (in *Options) DeepCopyInto(out *Options) { 694 *out = *in 695 if in.Global != nil { 696 in, out := &in.Global, &out.Global 697 *out = new(GlobalOptions) 698 (*in).DeepCopyInto(*out) 699 } 700 if in.Email != nil { 701 in, out := &in.Email, &out.Email 702 *out = new(EmailOptions) 703 (*in).DeepCopyInto(*out) 704 } 705 if in.Wechat != nil { 706 in, out := &in.Wechat, &out.Wechat 707 *out = new(WechatOptions) 708 (*in).DeepCopyInto(*out) 709 } 710 if in.Slack != nil { 711 in, out := &in.Slack, &out.Slack 712 *out = new(SlackOptions) 713 (*in).DeepCopyInto(*out) 714 } 715 if in.Webhook != nil { 716 in, out := &in.Webhook, &out.Webhook 717 *out = new(WebhookOptions) 718 (*in).DeepCopyInto(*out) 719 } 720 if in.DingTalk != nil { 721 in, out := &in.DingTalk, &out.DingTalk 722 *out = new(DingTalkOptions) 723 (*in).DeepCopyInto(*out) 724 } 725 } 726 727 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Options. 728 func (in *Options) DeepCopy() *Options { 729 if in == nil { 730 return nil 731 } 732 out := new(Options) 733 in.DeepCopyInto(out) 734 return out 735 } 736 737 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 738 func (in *Receiver) DeepCopyInto(out *Receiver) { 739 *out = *in 740 out.TypeMeta = in.TypeMeta 741 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 742 in.Spec.DeepCopyInto(&out.Spec) 743 out.Status = in.Status 744 } 745 746 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Receiver. 747 func (in *Receiver) DeepCopy() *Receiver { 748 if in == nil { 749 return nil 750 } 751 out := new(Receiver) 752 in.DeepCopyInto(out) 753 return out 754 } 755 756 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 757 func (in *Receiver) DeepCopyObject() runtime.Object { 758 if c := in.DeepCopy(); c != nil { 759 return c 760 } 761 return nil 762 } 763 764 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 765 func (in *ReceiverList) DeepCopyInto(out *ReceiverList) { 766 *out = *in 767 out.TypeMeta = in.TypeMeta 768 in.ListMeta.DeepCopyInto(&out.ListMeta) 769 if in.Items != nil { 770 in, out := &in.Items, &out.Items 771 *out = make([]Receiver, len(*in)) 772 for i := range *in { 773 (*in)[i].DeepCopyInto(&(*out)[i]) 774 } 775 } 776 } 777 778 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverList. 779 func (in *ReceiverList) DeepCopy() *ReceiverList { 780 if in == nil { 781 return nil 782 } 783 out := new(ReceiverList) 784 in.DeepCopyInto(out) 785 return out 786 } 787 788 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 789 func (in *ReceiverList) DeepCopyObject() runtime.Object { 790 if c := in.DeepCopy(); c != nil { 791 return c 792 } 793 return nil 794 } 795 796 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 797 func (in *ReceiverSpec) DeepCopyInto(out *ReceiverSpec) { 798 *out = *in 799 if in.DingTalk != nil { 800 in, out := &in.DingTalk, &out.DingTalk 801 *out = new(DingTalkReceiver) 802 (*in).DeepCopyInto(*out) 803 } 804 if in.Email != nil { 805 in, out := &in.Email, &out.Email 806 *out = new(EmailReceiver) 807 (*in).DeepCopyInto(*out) 808 } 809 if in.Slack != nil { 810 in, out := &in.Slack, &out.Slack 811 *out = new(SlackReceiver) 812 (*in).DeepCopyInto(*out) 813 } 814 if in.Webhook != nil { 815 in, out := &in.Webhook, &out.Webhook 816 *out = new(WebhookReceiver) 817 (*in).DeepCopyInto(*out) 818 } 819 if in.Wechat != nil { 820 in, out := &in.Wechat, &out.Wechat 821 *out = new(WechatReceiver) 822 (*in).DeepCopyInto(*out) 823 } 824 } 825 826 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverSpec. 827 func (in *ReceiverSpec) DeepCopy() *ReceiverSpec { 828 if in == nil { 829 return nil 830 } 831 out := new(ReceiverSpec) 832 in.DeepCopyInto(out) 833 return out 834 } 835 836 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 837 func (in *ReceiverStatus) DeepCopyInto(out *ReceiverStatus) { 838 *out = *in 839 } 840 841 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiverStatus. 842 func (in *ReceiverStatus) DeepCopy() *ReceiverStatus { 843 if in == nil { 844 return nil 845 } 846 out := new(ReceiverStatus) 847 in.DeepCopyInto(out) 848 return out 849 } 850 851 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 852 func (in *ReceiversSpec) DeepCopyInto(out *ReceiversSpec) { 853 *out = *in 854 if in.GlobalReceiverSelector != nil { 855 in, out := &in.GlobalReceiverSelector, &out.GlobalReceiverSelector 856 *out = new(metav1.LabelSelector) 857 (*in).DeepCopyInto(*out) 858 } 859 if in.TenantReceiverSelector != nil { 860 in, out := &in.TenantReceiverSelector, &out.TenantReceiverSelector 861 *out = new(metav1.LabelSelector) 862 (*in).DeepCopyInto(*out) 863 } 864 if in.Options != nil { 865 in, out := &in.Options, &out.Options 866 *out = new(Options) 867 (*in).DeepCopyInto(*out) 868 } 869 } 870 871 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReceiversSpec. 872 func (in *ReceiversSpec) DeepCopy() *ReceiversSpec { 873 if in == nil { 874 return nil 875 } 876 out := new(ReceiversSpec) 877 in.DeepCopyInto(out) 878 return out 879 } 880 881 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 882 func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector) { 883 *out = *in 884 } 885 886 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretKeySelector. 887 func (in *SecretKeySelector) DeepCopy() *SecretKeySelector { 888 if in == nil { 889 return nil 890 } 891 out := new(SecretKeySelector) 892 in.DeepCopyInto(out) 893 return out 894 } 895 896 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 897 func (in *ServiceReference) DeepCopyInto(out *ServiceReference) { 898 *out = *in 899 if in.Path != nil { 900 in, out := &in.Path, &out.Path 901 *out = new(string) 902 **out = **in 903 } 904 if in.Port != nil { 905 in, out := &in.Port, &out.Port 906 *out = new(int32) 907 **out = **in 908 } 909 if in.Scheme != nil { 910 in, out := &in.Scheme, &out.Scheme 911 *out = new(string) 912 **out = **in 913 } 914 } 915 916 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference. 917 func (in *ServiceReference) DeepCopy() *ServiceReference { 918 if in == nil { 919 return nil 920 } 921 out := new(ServiceReference) 922 in.DeepCopyInto(out) 923 return out 924 } 925 926 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 927 func (in *SlackConfig) DeepCopyInto(out *SlackConfig) { 928 *out = *in 929 if in.Labels != nil { 930 in, out := &in.Labels, &out.Labels 931 *out = make(map[string]string, len(*in)) 932 for key, val := range *in { 933 (*out)[key] = val 934 } 935 } 936 if in.SlackTokenSecret != nil { 937 in, out := &in.SlackTokenSecret, &out.SlackTokenSecret 938 *out = new(SecretKeySelector) 939 **out = **in 940 } 941 } 942 943 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackConfig. 944 func (in *SlackConfig) DeepCopy() *SlackConfig { 945 if in == nil { 946 return nil 947 } 948 out := new(SlackConfig) 949 in.DeepCopyInto(out) 950 return out 951 } 952 953 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 954 func (in *SlackOptions) DeepCopyInto(out *SlackOptions) { 955 *out = *in 956 if in.NotificationTimeout != nil { 957 in, out := &in.NotificationTimeout, &out.NotificationTimeout 958 *out = new(int32) 959 **out = **in 960 } 961 } 962 963 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackOptions. 964 func (in *SlackOptions) DeepCopy() *SlackOptions { 965 if in == nil { 966 return nil 967 } 968 out := new(SlackOptions) 969 in.DeepCopyInto(out) 970 return out 971 } 972 973 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 974 func (in *SlackReceiver) DeepCopyInto(out *SlackReceiver) { 975 *out = *in 976 if in.Enabled != nil { 977 in, out := &in.Enabled, &out.Enabled 978 *out = new(bool) 979 **out = **in 980 } 981 if in.SlackConfigSelector != nil { 982 in, out := &in.SlackConfigSelector, &out.SlackConfigSelector 983 *out = new(metav1.LabelSelector) 984 (*in).DeepCopyInto(*out) 985 } 986 if in.AlertSelector != nil { 987 in, out := &in.AlertSelector, &out.AlertSelector 988 *out = new(metav1.LabelSelector) 989 (*in).DeepCopyInto(*out) 990 } 991 if in.Channels != nil { 992 in, out := &in.Channels, &out.Channels 993 *out = make([]string, len(*in)) 994 copy(*out, *in) 995 } 996 } 997 998 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackReceiver. 999 func (in *SlackReceiver) DeepCopy() *SlackReceiver { 1000 if in == nil { 1001 return nil 1002 } 1003 out := new(SlackReceiver) 1004 in.DeepCopyInto(out) 1005 return out 1006 } 1007 1008 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 1009 func (in *TLSConfig) DeepCopyInto(out *TLSConfig) { 1010 *out = *in 1011 if in.RootCA != nil { 1012 in, out := &in.RootCA, &out.RootCA 1013 *out = new(SecretKeySelector) 1014 **out = **in 1015 } 1016 if in.ClientCertificate != nil { 1017 in, out := &in.ClientCertificate, &out.ClientCertificate 1018 *out = new(ClientCertificate) 1019 (*in).DeepCopyInto(*out) 1020 } 1021 } 1022 1023 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig. 1024 func (in *TLSConfig) DeepCopy() *TLSConfig { 1025 if in == nil { 1026 return nil 1027 } 1028 out := new(TLSConfig) 1029 in.DeepCopyInto(out) 1030 return out 1031 } 1032 1033 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 1034 func (in *Throttle) DeepCopyInto(out *Throttle) { 1035 *out = *in 1036 } 1037 1038 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Throttle. 1039 func (in *Throttle) DeepCopy() *Throttle { 1040 if in == nil { 1041 return nil 1042 } 1043 out := new(Throttle) 1044 in.DeepCopyInto(out) 1045 return out 1046 } 1047 1048 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 1049 func (in *WebhookConfig) DeepCopyInto(out *WebhookConfig) { 1050 *out = *in 1051 if in.Labels != nil { 1052 in, out := &in.Labels, &out.Labels 1053 *out = make(map[string]string, len(*in)) 1054 for key, val := range *in { 1055 (*out)[key] = val 1056 } 1057 } 1058 } 1059 1060 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookConfig. 1061 func (in *WebhookConfig) DeepCopy() *WebhookConfig { 1062 if in == nil { 1063 return nil 1064 } 1065 out := new(WebhookConfig) 1066 in.DeepCopyInto(out) 1067 return out 1068 } 1069 1070 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 1071 func (in *WebhookOptions) DeepCopyInto(out *WebhookOptions) { 1072 *out = *in 1073 if in.NotificationTimeout != nil { 1074 in, out := &in.NotificationTimeout, &out.NotificationTimeout 1075 *out = new(int32) 1076 **out = **in 1077 } 1078 } 1079 1080 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookOptions. 1081 func (in *WebhookOptions) DeepCopy() *WebhookOptions { 1082 if in == nil { 1083 return nil 1084 } 1085 out := new(WebhookOptions) 1086 in.DeepCopyInto(out) 1087 return out 1088 } 1089 1090 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 1091 func (in *WebhookReceiver) DeepCopyInto(out *WebhookReceiver) { 1092 *out = *in 1093 if in.Enabled != nil { 1094 in, out := &in.Enabled, &out.Enabled 1095 *out = new(bool) 1096 **out = **in 1097 } 1098 if in.WebhookConfigSelector != nil { 1099 in, out := &in.WebhookConfigSelector, &out.WebhookConfigSelector 1100 *out = new(metav1.LabelSelector) 1101 (*in).DeepCopyInto(*out) 1102 } 1103 if in.AlertSelector != nil { 1104 in, out := &in.AlertSelector, &out.AlertSelector 1105 *out = new(metav1.LabelSelector) 1106 (*in).DeepCopyInto(*out) 1107 } 1108 if in.URL != nil { 1109 in, out := &in.URL, &out.URL 1110 *out = new(string) 1111 **out = **in 1112 } 1113 if in.Service != nil { 1114 in, out := &in.Service, &out.Service 1115 *out = new(ServiceReference) 1116 (*in).DeepCopyInto(*out) 1117 } 1118 if in.HTTPConfig != nil { 1119 in, out := &in.HTTPConfig, &out.HTTPConfig 1120 *out = new(HTTPClientConfig) 1121 (*in).DeepCopyInto(*out) 1122 } 1123 } 1124 1125 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookReceiver. 1126 func (in *WebhookReceiver) DeepCopy() *WebhookReceiver { 1127 if in == nil { 1128 return nil 1129 } 1130 out := new(WebhookReceiver) 1131 in.DeepCopyInto(out) 1132 return out 1133 } 1134 1135 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 1136 func (in *WechatConfig) DeepCopyInto(out *WechatConfig) { 1137 *out = *in 1138 if in.Labels != nil { 1139 in, out := &in.Labels, &out.Labels 1140 *out = make(map[string]string, len(*in)) 1141 for key, val := range *in { 1142 (*out)[key] = val 1143 } 1144 } 1145 if in.WechatApiSecret != nil { 1146 in, out := &in.WechatApiSecret, &out.WechatApiSecret 1147 *out = new(SecretKeySelector) 1148 **out = **in 1149 } 1150 } 1151 1152 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WechatConfig. 1153 func (in *WechatConfig) DeepCopy() *WechatConfig { 1154 if in == nil { 1155 return nil 1156 } 1157 out := new(WechatConfig) 1158 in.DeepCopyInto(out) 1159 return out 1160 } 1161 1162 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 1163 func (in *WechatOptions) DeepCopyInto(out *WechatOptions) { 1164 *out = *in 1165 if in.NotificationTimeout != nil { 1166 in, out := &in.NotificationTimeout, &out.NotificationTimeout 1167 *out = new(int32) 1168 **out = **in 1169 } 1170 } 1171 1172 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WechatOptions. 1173 func (in *WechatOptions) DeepCopy() *WechatOptions { 1174 if in == nil { 1175 return nil 1176 } 1177 out := new(WechatOptions) 1178 in.DeepCopyInto(out) 1179 return out 1180 } 1181 1182 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 1183 func (in *WechatReceiver) DeepCopyInto(out *WechatReceiver) { 1184 *out = *in 1185 if in.Enabled != nil { 1186 in, out := &in.Enabled, &out.Enabled 1187 *out = new(bool) 1188 **out = **in 1189 } 1190 if in.WechatConfigSelector != nil { 1191 in, out := &in.WechatConfigSelector, &out.WechatConfigSelector 1192 *out = new(metav1.LabelSelector) 1193 (*in).DeepCopyInto(*out) 1194 } 1195 if in.AlertSelector != nil { 1196 in, out := &in.AlertSelector, &out.AlertSelector 1197 *out = new(metav1.LabelSelector) 1198 (*in).DeepCopyInto(*out) 1199 } 1200 if in.ToUser != nil { 1201 in, out := &in.ToUser, &out.ToUser 1202 *out = make([]string, len(*in)) 1203 copy(*out, *in) 1204 } 1205 if in.ToParty != nil { 1206 in, out := &in.ToParty, &out.ToParty 1207 *out = make([]string, len(*in)) 1208 copy(*out, *in) 1209 } 1210 if in.ToTag != nil { 1211 in, out := &in.ToTag, &out.ToTag 1212 *out = make([]string, len(*in)) 1213 copy(*out, *in) 1214 } 1215 } 1216 1217 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WechatReceiver. 1218 func (in *WechatReceiver) DeepCopy() *WechatReceiver { 1219 if in == nil { 1220 return nil 1221 } 1222 out := new(WechatReceiver) 1223 in.DeepCopyInto(out) 1224 return out 1225 }