kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/network/v1alpha1/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 v1alpha1 23 24 import ( 25 "k8s.io/api/networking/v1" 26 runtime "k8s.io/apimachinery/pkg/runtime" 27 ) 28 29 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 30 func (in *AllocationAttribute) DeepCopyInto(out *AllocationAttribute) { 31 *out = *in 32 if in.AttrSecondary != nil { 33 in, out := &in.AttrSecondary, &out.AttrSecondary 34 *out = make(map[string]string, len(*in)) 35 for key, val := range *in { 36 (*out)[key] = val 37 } 38 } 39 } 40 41 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationAttribute. 42 func (in *AllocationAttribute) DeepCopy() *AllocationAttribute { 43 if in == nil { 44 return nil 45 } 46 out := new(AllocationAttribute) 47 in.DeepCopyInto(out) 48 return out 49 } 50 51 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 52 func (in *DNS) DeepCopyInto(out *DNS) { 53 *out = *in 54 if in.Nameservers != nil { 55 in, out := &in.Nameservers, &out.Nameservers 56 *out = make([]string, len(*in)) 57 copy(*out, *in) 58 } 59 if in.Search != nil { 60 in, out := &in.Search, &out.Search 61 *out = make([]string, len(*in)) 62 copy(*out, *in) 63 } 64 if in.Options != nil { 65 in, out := &in.Options, &out.Options 66 *out = make([]string, len(*in)) 67 copy(*out, *in) 68 } 69 } 70 71 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNS. 72 func (in *DNS) DeepCopy() *DNS { 73 if in == nil { 74 return nil 75 } 76 out := new(DNS) 77 in.DeepCopyInto(out) 78 return out 79 } 80 81 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 82 func (in *IPAMBlock) DeepCopyInto(out *IPAMBlock) { 83 *out = *in 84 out.TypeMeta = in.TypeMeta 85 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 86 in.Spec.DeepCopyInto(&out.Spec) 87 } 88 89 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMBlock. 90 func (in *IPAMBlock) DeepCopy() *IPAMBlock { 91 if in == nil { 92 return nil 93 } 94 out := new(IPAMBlock) 95 in.DeepCopyInto(out) 96 return out 97 } 98 99 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 100 func (in *IPAMBlock) DeepCopyObject() runtime.Object { 101 if c := in.DeepCopy(); c != nil { 102 return c 103 } 104 return nil 105 } 106 107 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 108 func (in *IPAMBlockList) DeepCopyInto(out *IPAMBlockList) { 109 *out = *in 110 out.TypeMeta = in.TypeMeta 111 in.ListMeta.DeepCopyInto(&out.ListMeta) 112 if in.Items != nil { 113 in, out := &in.Items, &out.Items 114 *out = make([]IPAMBlock, len(*in)) 115 for i := range *in { 116 (*in)[i].DeepCopyInto(&(*out)[i]) 117 } 118 } 119 } 120 121 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMBlockList. 122 func (in *IPAMBlockList) DeepCopy() *IPAMBlockList { 123 if in == nil { 124 return nil 125 } 126 out := new(IPAMBlockList) 127 in.DeepCopyInto(out) 128 return out 129 } 130 131 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 132 func (in *IPAMBlockList) DeepCopyObject() runtime.Object { 133 if c := in.DeepCopy(); c != nil { 134 return c 135 } 136 return nil 137 } 138 139 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 140 func (in *IPAMBlockSpec) DeepCopyInto(out *IPAMBlockSpec) { 141 *out = *in 142 if in.Allocations != nil { 143 in, out := &in.Allocations, &out.Allocations 144 *out = make([]*int, len(*in)) 145 for i := range *in { 146 if (*in)[i] != nil { 147 in, out := &(*in)[i], &(*out)[i] 148 *out = new(int) 149 **out = **in 150 } 151 } 152 } 153 if in.Unallocated != nil { 154 in, out := &in.Unallocated, &out.Unallocated 155 *out = make([]int, len(*in)) 156 copy(*out, *in) 157 } 158 if in.Attributes != nil { 159 in, out := &in.Attributes, &out.Attributes 160 *out = make([]AllocationAttribute, len(*in)) 161 for i := range *in { 162 (*in)[i].DeepCopyInto(&(*out)[i]) 163 } 164 } 165 } 166 167 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMBlockSpec. 168 func (in *IPAMBlockSpec) DeepCopy() *IPAMBlockSpec { 169 if in == nil { 170 return nil 171 } 172 out := new(IPAMBlockSpec) 173 in.DeepCopyInto(out) 174 return out 175 } 176 177 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 178 func (in *IPAMHandle) DeepCopyInto(out *IPAMHandle) { 179 *out = *in 180 out.TypeMeta = in.TypeMeta 181 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 182 in.Spec.DeepCopyInto(&out.Spec) 183 } 184 185 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMHandle. 186 func (in *IPAMHandle) DeepCopy() *IPAMHandle { 187 if in == nil { 188 return nil 189 } 190 out := new(IPAMHandle) 191 in.DeepCopyInto(out) 192 return out 193 } 194 195 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 196 func (in *IPAMHandle) DeepCopyObject() runtime.Object { 197 if c := in.DeepCopy(); c != nil { 198 return c 199 } 200 return nil 201 } 202 203 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 204 func (in *IPAMHandleList) DeepCopyInto(out *IPAMHandleList) { 205 *out = *in 206 out.TypeMeta = in.TypeMeta 207 in.ListMeta.DeepCopyInto(&out.ListMeta) 208 if in.Items != nil { 209 in, out := &in.Items, &out.Items 210 *out = make([]IPAMHandle, len(*in)) 211 for i := range *in { 212 (*in)[i].DeepCopyInto(&(*out)[i]) 213 } 214 } 215 } 216 217 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMHandleList. 218 func (in *IPAMHandleList) DeepCopy() *IPAMHandleList { 219 if in == nil { 220 return nil 221 } 222 out := new(IPAMHandleList) 223 in.DeepCopyInto(out) 224 return out 225 } 226 227 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 228 func (in *IPAMHandleList) DeepCopyObject() runtime.Object { 229 if c := in.DeepCopy(); c != nil { 230 return c 231 } 232 return nil 233 } 234 235 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 236 func (in *IPAMHandleSpec) DeepCopyInto(out *IPAMHandleSpec) { 237 *out = *in 238 if in.Block != nil { 239 in, out := &in.Block, &out.Block 240 *out = make(map[string]int, len(*in)) 241 for key, val := range *in { 242 (*out)[key] = val 243 } 244 } 245 } 246 247 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMHandleSpec. 248 func (in *IPAMHandleSpec) DeepCopy() *IPAMHandleSpec { 249 if in == nil { 250 return nil 251 } 252 out := new(IPAMHandleSpec) 253 in.DeepCopyInto(out) 254 return out 255 } 256 257 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 258 func (in *IPPool) DeepCopyInto(out *IPPool) { 259 *out = *in 260 out.TypeMeta = in.TypeMeta 261 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 262 in.Spec.DeepCopyInto(&out.Spec) 263 in.Status.DeepCopyInto(&out.Status) 264 } 265 266 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPool. 267 func (in *IPPool) DeepCopy() *IPPool { 268 if in == nil { 269 return nil 270 } 271 out := new(IPPool) 272 in.DeepCopyInto(out) 273 return out 274 } 275 276 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 277 func (in *IPPool) DeepCopyObject() runtime.Object { 278 if c := in.DeepCopy(); c != nil { 279 return c 280 } 281 return nil 282 } 283 284 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 285 func (in *IPPoolList) DeepCopyInto(out *IPPoolList) { 286 *out = *in 287 out.TypeMeta = in.TypeMeta 288 in.ListMeta.DeepCopyInto(&out.ListMeta) 289 if in.Items != nil { 290 in, out := &in.Items, &out.Items 291 *out = make([]IPPool, len(*in)) 292 for i := range *in { 293 (*in)[i].DeepCopyInto(&(*out)[i]) 294 } 295 } 296 } 297 298 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolList. 299 func (in *IPPoolList) DeepCopy() *IPPoolList { 300 if in == nil { 301 return nil 302 } 303 out := new(IPPoolList) 304 in.DeepCopyInto(out) 305 return out 306 } 307 308 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 309 func (in *IPPoolList) DeepCopyObject() runtime.Object { 310 if c := in.DeepCopy(); c != nil { 311 return c 312 } 313 return nil 314 } 315 316 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 317 func (in *IPPoolSpec) DeepCopyInto(out *IPPoolSpec) { 318 *out = *in 319 out.VLAN = in.VLAN 320 if in.Routes != nil { 321 in, out := &in.Routes, &out.Routes 322 *out = make([]Route, len(*in)) 323 copy(*out, *in) 324 } 325 in.DNS.DeepCopyInto(&out.DNS) 326 } 327 328 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolSpec. 329 func (in *IPPoolSpec) DeepCopy() *IPPoolSpec { 330 if in == nil { 331 return nil 332 } 333 out := new(IPPoolSpec) 334 in.DeepCopyInto(out) 335 return out 336 } 337 338 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 339 func (in *IPPoolStatus) DeepCopyInto(out *IPPoolStatus) { 340 *out = *in 341 if in.Workspaces != nil { 342 in, out := &in.Workspaces, &out.Workspaces 343 *out = make(map[string]WorkspaceStatus, len(*in)) 344 for key, val := range *in { 345 (*out)[key] = val 346 } 347 } 348 } 349 350 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPoolStatus. 351 func (in *IPPoolStatus) DeepCopy() *IPPoolStatus { 352 if in == nil { 353 return nil 354 } 355 out := new(IPPoolStatus) 356 in.DeepCopyInto(out) 357 return out 358 } 359 360 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 361 func (in *NamespaceNetworkPolicy) DeepCopyInto(out *NamespaceNetworkPolicy) { 362 *out = *in 363 out.TypeMeta = in.TypeMeta 364 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 365 in.Spec.DeepCopyInto(&out.Spec) 366 } 367 368 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceNetworkPolicy. 369 func (in *NamespaceNetworkPolicy) DeepCopy() *NamespaceNetworkPolicy { 370 if in == nil { 371 return nil 372 } 373 out := new(NamespaceNetworkPolicy) 374 in.DeepCopyInto(out) 375 return out 376 } 377 378 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 379 func (in *NamespaceNetworkPolicy) DeepCopyObject() runtime.Object { 380 if c := in.DeepCopy(); c != nil { 381 return c 382 } 383 return nil 384 } 385 386 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 387 func (in *NamespaceNetworkPolicyList) DeepCopyInto(out *NamespaceNetworkPolicyList) { 388 *out = *in 389 out.TypeMeta = in.TypeMeta 390 in.ListMeta.DeepCopyInto(&out.ListMeta) 391 if in.Items != nil { 392 in, out := &in.Items, &out.Items 393 *out = make([]NamespaceNetworkPolicy, len(*in)) 394 for i := range *in { 395 (*in)[i].DeepCopyInto(&(*out)[i]) 396 } 397 } 398 } 399 400 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceNetworkPolicyList. 401 func (in *NamespaceNetworkPolicyList) DeepCopy() *NamespaceNetworkPolicyList { 402 if in == nil { 403 return nil 404 } 405 out := new(NamespaceNetworkPolicyList) 406 in.DeepCopyInto(out) 407 return out 408 } 409 410 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 411 func (in *NamespaceNetworkPolicyList) DeepCopyObject() runtime.Object { 412 if c := in.DeepCopy(); c != nil { 413 return c 414 } 415 return nil 416 } 417 418 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 419 func (in *NamespaceNetworkPolicySpec) DeepCopyInto(out *NamespaceNetworkPolicySpec) { 420 *out = *in 421 if in.Ingress != nil { 422 in, out := &in.Ingress, &out.Ingress 423 *out = make([]NetworkPolicyIngressRule, len(*in)) 424 for i := range *in { 425 (*in)[i].DeepCopyInto(&(*out)[i]) 426 } 427 } 428 if in.Egress != nil { 429 in, out := &in.Egress, &out.Egress 430 *out = make([]NetworkPolicyEgressRule, len(*in)) 431 for i := range *in { 432 (*in)[i].DeepCopyInto(&(*out)[i]) 433 } 434 } 435 if in.PolicyTypes != nil { 436 in, out := &in.PolicyTypes, &out.PolicyTypes 437 *out = make([]v1.PolicyType, len(*in)) 438 copy(*out, *in) 439 } 440 } 441 442 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceNetworkPolicySpec. 443 func (in *NamespaceNetworkPolicySpec) DeepCopy() *NamespaceNetworkPolicySpec { 444 if in == nil { 445 return nil 446 } 447 out := new(NamespaceNetworkPolicySpec) 448 in.DeepCopyInto(out) 449 return out 450 } 451 452 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 453 func (in *NamespaceSelector) DeepCopyInto(out *NamespaceSelector) { 454 *out = *in 455 } 456 457 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSelector. 458 func (in *NamespaceSelector) DeepCopy() *NamespaceSelector { 459 if in == nil { 460 return nil 461 } 462 out := new(NamespaceSelector) 463 in.DeepCopyInto(out) 464 return out 465 } 466 467 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 468 func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) { 469 *out = *in 470 if in.Ports != nil { 471 in, out := &in.Ports, &out.Ports 472 *out = make([]v1.NetworkPolicyPort, len(*in)) 473 for i := range *in { 474 (*in)[i].DeepCopyInto(&(*out)[i]) 475 } 476 } 477 if in.To != nil { 478 in, out := &in.To, &out.To 479 *out = make([]NetworkPolicyPeer, len(*in)) 480 for i := range *in { 481 (*in)[i].DeepCopyInto(&(*out)[i]) 482 } 483 } 484 } 485 486 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule. 487 func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule { 488 if in == nil { 489 return nil 490 } 491 out := new(NetworkPolicyEgressRule) 492 in.DeepCopyInto(out) 493 return out 494 } 495 496 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 497 func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) { 498 *out = *in 499 if in.Ports != nil { 500 in, out := &in.Ports, &out.Ports 501 *out = make([]v1.NetworkPolicyPort, len(*in)) 502 for i := range *in { 503 (*in)[i].DeepCopyInto(&(*out)[i]) 504 } 505 } 506 if in.From != nil { 507 in, out := &in.From, &out.From 508 *out = make([]NetworkPolicyPeer, len(*in)) 509 for i := range *in { 510 (*in)[i].DeepCopyInto(&(*out)[i]) 511 } 512 } 513 } 514 515 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule. 516 func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule { 517 if in == nil { 518 return nil 519 } 520 out := new(NetworkPolicyIngressRule) 521 in.DeepCopyInto(out) 522 return out 523 } 524 525 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 526 func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) { 527 *out = *in 528 if in.NamespaceSelector != nil { 529 in, out := &in.NamespaceSelector, &out.NamespaceSelector 530 *out = new(NamespaceSelector) 531 **out = **in 532 } 533 if in.IPBlock != nil { 534 in, out := &in.IPBlock, &out.IPBlock 535 *out = new(v1.IPBlock) 536 (*in).DeepCopyInto(*out) 537 } 538 if in.ServiceSelector != nil { 539 in, out := &in.ServiceSelector, &out.ServiceSelector 540 *out = new(ServiceSelector) 541 **out = **in 542 } 543 } 544 545 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer. 546 func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer { 547 if in == nil { 548 return nil 549 } 550 out := new(NetworkPolicyPeer) 551 in.DeepCopyInto(out) 552 return out 553 } 554 555 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 556 func (in *ReservedAttr) DeepCopyInto(out *ReservedAttr) { 557 *out = *in 558 } 559 560 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReservedAttr. 561 func (in *ReservedAttr) DeepCopy() *ReservedAttr { 562 if in == nil { 563 return nil 564 } 565 out := new(ReservedAttr) 566 in.DeepCopyInto(out) 567 return out 568 } 569 570 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 571 func (in *Route) DeepCopyInto(out *Route) { 572 *out = *in 573 } 574 575 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route. 576 func (in *Route) DeepCopy() *Route { 577 if in == nil { 578 return nil 579 } 580 out := new(Route) 581 in.DeepCopyInto(out) 582 return out 583 } 584 585 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 586 func (in *ServiceSelector) DeepCopyInto(out *ServiceSelector) { 587 *out = *in 588 } 589 590 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSelector. 591 func (in *ServiceSelector) DeepCopy() *ServiceSelector { 592 if in == nil { 593 return nil 594 } 595 out := new(ServiceSelector) 596 in.DeepCopyInto(out) 597 return out 598 } 599 600 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 601 func (in *VLANConfig) DeepCopyInto(out *VLANConfig) { 602 *out = *in 603 } 604 605 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VLANConfig. 606 func (in *VLANConfig) DeepCopy() *VLANConfig { 607 if in == nil { 608 return nil 609 } 610 out := new(VLANConfig) 611 in.DeepCopyInto(out) 612 return out 613 } 614 615 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 616 func (in *WorkspaceStatus) DeepCopyInto(out *WorkspaceStatus) { 617 *out = *in 618 } 619 620 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceStatus. 621 func (in *WorkspaceStatus) DeepCopy() *WorkspaceStatus { 622 if in == nil { 623 return nil 624 } 625 out := new(WorkspaceStatus) 626 in.DeepCopyInto(out) 627 return out 628 }