github.com/cilium/cilium@v1.16.2/pkg/ipam/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  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    12  func (in *AllocationIP) DeepCopyInto(out *AllocationIP) {
    13  	*out = *in
    14  	return
    15  }
    16  
    17  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationIP.
    18  func (in *AllocationIP) DeepCopy() *AllocationIP {
    19  	if in == nil {
    20  		return nil
    21  	}
    22  	out := new(AllocationIP)
    23  	in.DeepCopyInto(out)
    24  	return out
    25  }
    26  
    27  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    28  func (in AllocationMap) DeepCopyInto(out *AllocationMap) {
    29  	{
    30  		in := &in
    31  		*out = make(AllocationMap, len(*in))
    32  		for key, val := range *in {
    33  			(*out)[key] = val
    34  		}
    35  		return
    36  	}
    37  }
    38  
    39  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationMap.
    40  func (in AllocationMap) DeepCopy() AllocationMap {
    41  	if in == nil {
    42  		return nil
    43  	}
    44  	out := new(AllocationMap)
    45  	in.DeepCopyInto(out)
    46  	return *out
    47  }
    48  
    49  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    50  func (in *IPAMPoolAllocation) DeepCopyInto(out *IPAMPoolAllocation) {
    51  	*out = *in
    52  	if in.CIDRs != nil {
    53  		in, out := &in.CIDRs, &out.CIDRs
    54  		*out = make([]IPAMPodCIDR, len(*in))
    55  		copy(*out, *in)
    56  	}
    57  	return
    58  }
    59  
    60  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMPoolAllocation.
    61  func (in *IPAMPoolAllocation) DeepCopy() *IPAMPoolAllocation {
    62  	if in == nil {
    63  		return nil
    64  	}
    65  	out := new(IPAMPoolAllocation)
    66  	in.DeepCopyInto(out)
    67  	return out
    68  }
    69  
    70  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    71  func (in *IPAMPoolDemand) DeepCopyInto(out *IPAMPoolDemand) {
    72  	*out = *in
    73  	return
    74  }
    75  
    76  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMPoolDemand.
    77  func (in *IPAMPoolDemand) DeepCopy() *IPAMPoolDemand {
    78  	if in == nil {
    79  		return nil
    80  	}
    81  	out := new(IPAMPoolDemand)
    82  	in.DeepCopyInto(out)
    83  	return out
    84  }
    85  
    86  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    87  func (in *IPAMPoolRequest) DeepCopyInto(out *IPAMPoolRequest) {
    88  	*out = *in
    89  	out.Needed = in.Needed
    90  	return
    91  }
    92  
    93  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMPoolRequest.
    94  func (in *IPAMPoolRequest) DeepCopy() *IPAMPoolRequest {
    95  	if in == nil {
    96  		return nil
    97  	}
    98  	out := new(IPAMPoolRequest)
    99  	in.DeepCopyInto(out)
   100  	return out
   101  }
   102  
   103  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   104  func (in *IPAMPoolSpec) DeepCopyInto(out *IPAMPoolSpec) {
   105  	*out = *in
   106  	if in.Requested != nil {
   107  		in, out := &in.Requested, &out.Requested
   108  		*out = make([]IPAMPoolRequest, len(*in))
   109  		copy(*out, *in)
   110  	}
   111  	if in.Allocated != nil {
   112  		in, out := &in.Allocated, &out.Allocated
   113  		*out = make([]IPAMPoolAllocation, len(*in))
   114  		for i := range *in {
   115  			(*in)[i].DeepCopyInto(&(*out)[i])
   116  		}
   117  	}
   118  	return
   119  }
   120  
   121  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMPoolSpec.
   122  func (in *IPAMPoolSpec) DeepCopy() *IPAMPoolSpec {
   123  	if in == nil {
   124  		return nil
   125  	}
   126  	out := new(IPAMPoolSpec)
   127  	in.DeepCopyInto(out)
   128  	return out
   129  }
   130  
   131  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   132  func (in *IPAMSpec) DeepCopyInto(out *IPAMSpec) {
   133  	*out = *in
   134  	if in.Pool != nil {
   135  		in, out := &in.Pool, &out.Pool
   136  		*out = make(AllocationMap, len(*in))
   137  		for key, val := range *in {
   138  			(*out)[key] = val
   139  		}
   140  	}
   141  	if in.IPv6Pool != nil {
   142  		in, out := &in.IPv6Pool, &out.IPv6Pool
   143  		*out = make(AllocationMap, len(*in))
   144  		for key, val := range *in {
   145  			(*out)[key] = val
   146  		}
   147  	}
   148  	in.Pools.DeepCopyInto(&out.Pools)
   149  	if in.PodCIDRs != nil {
   150  		in, out := &in.PodCIDRs, &out.PodCIDRs
   151  		*out = make([]string, len(*in))
   152  		copy(*out, *in)
   153  	}
   154  	return
   155  }
   156  
   157  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMSpec.
   158  func (in *IPAMSpec) DeepCopy() *IPAMSpec {
   159  	if in == nil {
   160  		return nil
   161  	}
   162  	out := new(IPAMSpec)
   163  	in.DeepCopyInto(out)
   164  	return out
   165  }
   166  
   167  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   168  func (in *IPAMStatus) DeepCopyInto(out *IPAMStatus) {
   169  	*out = *in
   170  	if in.Used != nil {
   171  		in, out := &in.Used, &out.Used
   172  		*out = make(AllocationMap, len(*in))
   173  		for key, val := range *in {
   174  			(*out)[key] = val
   175  		}
   176  	}
   177  	if in.IPv6Used != nil {
   178  		in, out := &in.IPv6Used, &out.IPv6Used
   179  		*out = make(AllocationMap, len(*in))
   180  		for key, val := range *in {
   181  			(*out)[key] = val
   182  		}
   183  	}
   184  	if in.PodCIDRs != nil {
   185  		in, out := &in.PodCIDRs, &out.PodCIDRs
   186  		*out = make(PodCIDRMap, len(*in))
   187  		for key, val := range *in {
   188  			(*out)[key] = val
   189  		}
   190  	}
   191  	out.OperatorStatus = in.OperatorStatus
   192  	if in.ReleaseIPs != nil {
   193  		in, out := &in.ReleaseIPs, &out.ReleaseIPs
   194  		*out = make(map[string]IPReleaseStatus, len(*in))
   195  		for key, val := range *in {
   196  			(*out)[key] = val
   197  		}
   198  	}
   199  	if in.ReleaseIPv6s != nil {
   200  		in, out := &in.ReleaseIPv6s, &out.ReleaseIPv6s
   201  		*out = make(map[string]IPReleaseStatus, len(*in))
   202  		for key, val := range *in {
   203  			(*out)[key] = val
   204  		}
   205  	}
   206  	return
   207  }
   208  
   209  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAMStatus.
   210  func (in *IPAMStatus) DeepCopy() *IPAMStatus {
   211  	if in == nil {
   212  		return nil
   213  	}
   214  	out := new(IPAMStatus)
   215  	in.DeepCopyInto(out)
   216  	return out
   217  }
   218  
   219  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   220  func (in *Limits) DeepCopyInto(out *Limits) {
   221  	*out = *in
   222  	return
   223  }
   224  
   225  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Limits.
   226  func (in *Limits) DeepCopy() *Limits {
   227  	if in == nil {
   228  		return nil
   229  	}
   230  	out := new(Limits)
   231  	in.DeepCopyInto(out)
   232  	return out
   233  }
   234  
   235  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   236  func (in *OperatorStatus) DeepCopyInto(out *OperatorStatus) {
   237  	*out = *in
   238  	return
   239  }
   240  
   241  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorStatus.
   242  func (in *OperatorStatus) DeepCopy() *OperatorStatus {
   243  	if in == nil {
   244  		return nil
   245  	}
   246  	out := new(OperatorStatus)
   247  	in.DeepCopyInto(out)
   248  	return out
   249  }
   250  
   251  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   252  func (in PodCIDRMap) DeepCopyInto(out *PodCIDRMap) {
   253  	{
   254  		in := &in
   255  		*out = make(PodCIDRMap, len(*in))
   256  		for key, val := range *in {
   257  			(*out)[key] = val
   258  		}
   259  		return
   260  	}
   261  }
   262  
   263  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCIDRMap.
   264  func (in PodCIDRMap) DeepCopy() PodCIDRMap {
   265  	if in == nil {
   266  		return nil
   267  	}
   268  	out := new(PodCIDRMap)
   269  	in.DeepCopyInto(out)
   270  	return *out
   271  }
   272  
   273  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   274  func (in *PodCIDRMapEntry) DeepCopyInto(out *PodCIDRMapEntry) {
   275  	*out = *in
   276  	return
   277  }
   278  
   279  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCIDRMapEntry.
   280  func (in *PodCIDRMapEntry) DeepCopy() *PodCIDRMapEntry {
   281  	if in == nil {
   282  		return nil
   283  	}
   284  	out := new(PodCIDRMapEntry)
   285  	in.DeepCopyInto(out)
   286  	return out
   287  }
   288  
   289  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   290  func (in *PoolQuota) DeepCopyInto(out *PoolQuota) {
   291  	*out = *in
   292  	return
   293  }
   294  
   295  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PoolQuota.
   296  func (in *PoolQuota) DeepCopy() *PoolQuota {
   297  	if in == nil {
   298  		return nil
   299  	}
   300  	out := new(PoolQuota)
   301  	in.DeepCopyInto(out)
   302  	return out
   303  }
   304  
   305  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   306  func (in PoolQuotaMap) DeepCopyInto(out *PoolQuotaMap) {
   307  	{
   308  		in := &in
   309  		*out = make(PoolQuotaMap, len(*in))
   310  		for key, val := range *in {
   311  			(*out)[key] = val
   312  		}
   313  		return
   314  	}
   315  }
   316  
   317  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PoolQuotaMap.
   318  func (in PoolQuotaMap) DeepCopy() PoolQuotaMap {
   319  	if in == nil {
   320  		return nil
   321  	}
   322  	out := new(PoolQuotaMap)
   323  	in.DeepCopyInto(out)
   324  	return *out
   325  }
   326  
   327  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   328  func (in *Subnet) DeepCopyInto(out *Subnet) {
   329  	*out = *in
   330  	if in.CIDR != nil {
   331  		in, out := &in.CIDR, &out.CIDR
   332  		*out = (*in).DeepCopy()
   333  	}
   334  	if in.IPv6CIDR != nil {
   335  		in, out := &in.IPv6CIDR, &out.IPv6CIDR
   336  		*out = (*in).DeepCopy()
   337  	}
   338  	if in.Tags != nil {
   339  		in, out := &in.Tags, &out.Tags
   340  		*out = make(Tags, len(*in))
   341  		for key, val := range *in {
   342  			(*out)[key] = val
   343  		}
   344  	}
   345  	return
   346  }
   347  
   348  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subnet.
   349  func (in *Subnet) DeepCopy() *Subnet {
   350  	if in == nil {
   351  		return nil
   352  	}
   353  	out := new(Subnet)
   354  	in.DeepCopyInto(out)
   355  	return out
   356  }
   357  
   358  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   359  func (in SubnetMap) DeepCopyInto(out *SubnetMap) {
   360  	{
   361  		in := &in
   362  		*out = make(SubnetMap, len(*in))
   363  		for key, val := range *in {
   364  			var outVal *Subnet
   365  			if val == nil {
   366  				(*out)[key] = nil
   367  			} else {
   368  				in, out := &val, &outVal
   369  				*out = new(Subnet)
   370  				(*in).DeepCopyInto(*out)
   371  			}
   372  			(*out)[key] = outVal
   373  		}
   374  		return
   375  	}
   376  }
   377  
   378  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetMap.
   379  func (in SubnetMap) DeepCopy() SubnetMap {
   380  	if in == nil {
   381  		return nil
   382  	}
   383  	out := new(SubnetMap)
   384  	in.DeepCopyInto(out)
   385  	return *out
   386  }
   387  
   388  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   389  func (in Tags) DeepCopyInto(out *Tags) {
   390  	{
   391  		in := &in
   392  		*out = make(Tags, len(*in))
   393  		for key, val := range *in {
   394  			(*out)[key] = val
   395  		}
   396  		return
   397  	}
   398  }
   399  
   400  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tags.
   401  func (in Tags) DeepCopy() Tags {
   402  	if in == nil {
   403  		return nil
   404  	}
   405  	out := new(Tags)
   406  	in.DeepCopyInto(out)
   407  	return *out
   408  }
   409  
   410  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   411  func (in *VirtualNetwork) DeepCopyInto(out *VirtualNetwork) {
   412  	*out = *in
   413  	if in.CIDRs != nil {
   414  		in, out := &in.CIDRs, &out.CIDRs
   415  		*out = make([]string, len(*in))
   416  		copy(*out, *in)
   417  	}
   418  	if in.IPv6CIDRs != nil {
   419  		in, out := &in.IPv6CIDRs, &out.IPv6CIDRs
   420  		*out = make([]string, len(*in))
   421  		copy(*out, *in)
   422  	}
   423  	return
   424  }
   425  
   426  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualNetwork.
   427  func (in *VirtualNetwork) DeepCopy() *VirtualNetwork {
   428  	if in == nil {
   429  		return nil
   430  	}
   431  	out := new(VirtualNetwork)
   432  	in.DeepCopyInto(out)
   433  	return out
   434  }
   435  
   436  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   437  func (in VirtualNetworkMap) DeepCopyInto(out *VirtualNetworkMap) {
   438  	{
   439  		in := &in
   440  		*out = make(VirtualNetworkMap, len(*in))
   441  		for key, val := range *in {
   442  			var outVal *VirtualNetwork
   443  			if val == nil {
   444  				(*out)[key] = nil
   445  			} else {
   446  				in, out := &val, &outVal
   447  				*out = new(VirtualNetwork)
   448  				(*in).DeepCopyInto(*out)
   449  			}
   450  			(*out)[key] = outVal
   451  		}
   452  		return
   453  	}
   454  }
   455  
   456  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualNetworkMap.
   457  func (in VirtualNetworkMap) DeepCopy() VirtualNetworkMap {
   458  	if in == nil {
   459  		return nil
   460  	}
   461  	out := new(VirtualNetworkMap)
   462  	in.DeepCopyInto(out)
   463  	return *out
   464  }