github.com/cilium/cilium@v1.16.2/pkg/node/types/zz_generated.deepcopy.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  // SPDX-License-Identifier: Apache-2.0
     5  // Copyright Authors of Cilium
     6  
     7  // Code generated by deepcopy-gen. DO NOT EDIT.
     8  
     9  package types
    10  
    11  import (
    12  	net "net"
    13  
    14  	cidr "github.com/cilium/cilium/pkg/cidr"
    15  )
    16  
    17  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    18  func (in *Address) DeepCopyInto(out *Address) {
    19  	*out = *in
    20  	if in.IP != nil {
    21  		in, out := &in.IP, &out.IP
    22  		*out = make(net.IP, len(*in))
    23  		copy(*out, *in)
    24  	}
    25  	return
    26  }
    27  
    28  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Address.
    29  func (in *Address) DeepCopy() *Address {
    30  	if in == nil {
    31  		return nil
    32  	}
    33  	out := new(Address)
    34  	in.DeepCopyInto(out)
    35  	return out
    36  }
    37  
    38  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    39  func (in *Node) DeepCopyInto(out *Node) {
    40  	*out = *in
    41  	if in.IPAddresses != nil {
    42  		in, out := &in.IPAddresses, &out.IPAddresses
    43  		*out = make([]Address, len(*in))
    44  		for i := range *in {
    45  			(*in)[i].DeepCopyInto(&(*out)[i])
    46  		}
    47  	}
    48  	if in.IPv4AllocCIDR != nil {
    49  		in, out := &in.IPv4AllocCIDR, &out.IPv4AllocCIDR
    50  		*out = (*in).DeepCopy()
    51  	}
    52  	if in.IPv4SecondaryAllocCIDRs != nil {
    53  		in, out := &in.IPv4SecondaryAllocCIDRs, &out.IPv4SecondaryAllocCIDRs
    54  		*out = make([]*cidr.CIDR, len(*in))
    55  		for i := range *in {
    56  			if (*in)[i] != nil {
    57  				in, out := &(*in)[i], &(*out)[i]
    58  				*out = (*in).DeepCopy()
    59  			}
    60  		}
    61  	}
    62  	if in.IPv6AllocCIDR != nil {
    63  		in, out := &in.IPv6AllocCIDR, &out.IPv6AllocCIDR
    64  		*out = (*in).DeepCopy()
    65  	}
    66  	if in.IPv6SecondaryAllocCIDRs != nil {
    67  		in, out := &in.IPv6SecondaryAllocCIDRs, &out.IPv6SecondaryAllocCIDRs
    68  		*out = make([]*cidr.CIDR, len(*in))
    69  		for i := range *in {
    70  			if (*in)[i] != nil {
    71  				in, out := &(*in)[i], &(*out)[i]
    72  				*out = (*in).DeepCopy()
    73  			}
    74  		}
    75  	}
    76  	if in.IPv4HealthIP != nil {
    77  		in, out := &in.IPv4HealthIP, &out.IPv4HealthIP
    78  		*out = make(net.IP, len(*in))
    79  		copy(*out, *in)
    80  	}
    81  	if in.IPv6HealthIP != nil {
    82  		in, out := &in.IPv6HealthIP, &out.IPv6HealthIP
    83  		*out = make(net.IP, len(*in))
    84  		copy(*out, *in)
    85  	}
    86  	if in.IPv4IngressIP != nil {
    87  		in, out := &in.IPv4IngressIP, &out.IPv4IngressIP
    88  		*out = make(net.IP, len(*in))
    89  		copy(*out, *in)
    90  	}
    91  	if in.IPv6IngressIP != nil {
    92  		in, out := &in.IPv6IngressIP, &out.IPv6IngressIP
    93  		*out = make(net.IP, len(*in))
    94  		copy(*out, *in)
    95  	}
    96  	if in.Labels != nil {
    97  		in, out := &in.Labels, &out.Labels
    98  		*out = make(map[string]string, len(*in))
    99  		for key, val := range *in {
   100  			(*out)[key] = val
   101  		}
   102  	}
   103  	if in.Annotations != nil {
   104  		in, out := &in.Annotations, &out.Annotations
   105  		*out = make(map[string]string, len(*in))
   106  		for key, val := range *in {
   107  			(*out)[key] = val
   108  		}
   109  	}
   110  	return
   111  }
   112  
   113  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.
   114  func (in *Node) DeepCopy() *Node {
   115  	if in == nil {
   116  		return nil
   117  	}
   118  	out := new(Node)
   119  	in.DeepCopyInto(out)
   120  	return out
   121  }
   122  
   123  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   124  func (in *RegisterNode) DeepCopyInto(out *RegisterNode) {
   125  	*out = *in
   126  	in.Node.DeepCopyInto(&out.Node)
   127  	return
   128  }
   129  
   130  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterNode.
   131  func (in *RegisterNode) DeepCopy() *RegisterNode {
   132  	if in == nil {
   133  		return nil
   134  	}
   135  	out := new(RegisterNode)
   136  	in.DeepCopyInto(out)
   137  	return out
   138  }