github.com/looshlee/beatles@v0.0.0-20220727174639-742810ab631c/pkg/node/zz_generated.deepcopy.go (about) 1 // +build !ignore_autogenerated 2 3 // Copyright 2017-2019 Authors of Cilium 4 // 5 // Licensed under the Apache License, Version 2.0 (the "License"); 6 // you may not use this file except in compliance with the License. 7 // You may obtain a copy of the License at 8 // 9 // http://www.apache.org/licenses/LICENSE-2.0 10 // 11 // Unless required by applicable law or agreed to in writing, software 12 // distributed under the License is distributed on an "AS IS" BASIS, 13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 // See the License for the specific language governing permissions and 15 // limitations under the License. 16 17 // Code generated by deepcopy-gen. DO NOT EDIT. 18 19 package node 20 21 import ( 22 net "net" 23 ) 24 25 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 26 func (in *Address) DeepCopyInto(out *Address) { 27 *out = *in 28 if in.IP != nil { 29 in, out := &in.IP, &out.IP 30 *out = make(net.IP, len(*in)) 31 copy(*out, *in) 32 } 33 return 34 } 35 36 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Address. 37 func (in *Address) DeepCopy() *Address { 38 if in == nil { 39 return nil 40 } 41 out := new(Address) 42 in.DeepCopyInto(out) 43 return out 44 } 45 46 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 47 func (in *Node) DeepCopyInto(out *Node) { 48 *out = *in 49 if in.IPAddresses != nil { 50 in, out := &in.IPAddresses, &out.IPAddresses 51 *out = make([]Address, len(*in)) 52 for i := range *in { 53 (*in)[i].DeepCopyInto(&(*out)[i]) 54 } 55 } 56 if in.IPv4AllocCIDR != nil { 57 in, out := &in.IPv4AllocCIDR, &out.IPv4AllocCIDR 58 *out = (*in).DeepCopy() 59 } 60 if in.IPv6AllocCIDR != nil { 61 in, out := &in.IPv6AllocCIDR, &out.IPv6AllocCIDR 62 *out = (*in).DeepCopy() 63 } 64 if in.IPv4HealthIP != nil { 65 in, out := &in.IPv4HealthIP, &out.IPv4HealthIP 66 *out = make(net.IP, len(*in)) 67 copy(*out, *in) 68 } 69 if in.IPv6HealthIP != nil { 70 in, out := &in.IPv6HealthIP, &out.IPv6HealthIP 71 *out = make(net.IP, len(*in)) 72 copy(*out, *in) 73 } 74 return 75 } 76 77 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node. 78 func (in *Node) DeepCopy() *Node { 79 if in == nil { 80 return nil 81 } 82 out := new(Node) 83 in.DeepCopyInto(out) 84 return out 85 }