github.com/cilium/cilium@v1.16.2/pkg/k8s/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  	models "github.com/cilium/cilium/api/v1/models"
    13  	v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2"
    14  	runtime "k8s.io/apimachinery/pkg/runtime"
    15  )
    16  
    17  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    18  func (in *CiliumEndpoint) DeepCopyInto(out *CiliumEndpoint) {
    19  	*out = *in
    20  	out.TypeMeta = in.TypeMeta
    21  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    22  	if in.Identity != nil {
    23  		in, out := &in.Identity, &out.Identity
    24  		*out = new(v2.EndpointIdentity)
    25  		(*in).DeepCopyInto(*out)
    26  	}
    27  	if in.Networking != nil {
    28  		in, out := &in.Networking, &out.Networking
    29  		*out = new(v2.EndpointNetworking)
    30  		(*in).DeepCopyInto(*out)
    31  	}
    32  	if in.Encryption != nil {
    33  		in, out := &in.Encryption, &out.Encryption
    34  		*out = new(v2.EncryptionSpec)
    35  		**out = **in
    36  	}
    37  	if in.NamedPorts != nil {
    38  		in, out := &in.NamedPorts, &out.NamedPorts
    39  		*out = make(models.NamedPorts, len(*in))
    40  		for i := range *in {
    41  			if (*in)[i] != nil {
    42  				in, out := &(*in)[i], &(*out)[i]
    43  				*out = new(models.Port)
    44  				**out = **in
    45  			}
    46  		}
    47  	}
    48  	return
    49  }
    50  
    51  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CiliumEndpoint.
    52  func (in *CiliumEndpoint) DeepCopy() *CiliumEndpoint {
    53  	if in == nil {
    54  		return nil
    55  	}
    56  	out := new(CiliumEndpoint)
    57  	in.DeepCopyInto(out)
    58  	return out
    59  }
    60  
    61  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    62  func (in *CiliumEndpoint) DeepCopyObject() runtime.Object {
    63  	if c := in.DeepCopy(); c != nil {
    64  		return c
    65  	}
    66  	return nil
    67  }
    68  
    69  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    70  func (in IPSlice) DeepCopyInto(out *IPSlice) {
    71  	{
    72  		in := &in
    73  		*out = make(IPSlice, len(*in))
    74  		copy(*out, *in)
    75  		return
    76  	}
    77  }
    78  
    79  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPSlice.
    80  func (in IPSlice) DeepCopy() IPSlice {
    81  	if in == nil {
    82  		return nil
    83  	}
    84  	out := new(IPSlice)
    85  	in.DeepCopyInto(out)
    86  	return *out
    87  }
    88  
    89  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    90  func (in *SlimCNP) DeepCopyInto(out *SlimCNP) {
    91  	*out = *in
    92  	if in.CiliumNetworkPolicy != nil {
    93  		in, out := &in.CiliumNetworkPolicy, &out.CiliumNetworkPolicy
    94  		*out = new(v2.CiliumNetworkPolicy)
    95  		(*in).DeepCopyInto(*out)
    96  	}
    97  	return
    98  }
    99  
   100  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlimCNP.
   101  func (in *SlimCNP) DeepCopy() *SlimCNP {
   102  	if in == nil {
   103  		return nil
   104  	}
   105  	out := new(SlimCNP)
   106  	in.DeepCopyInto(out)
   107  	return out
   108  }
   109  
   110  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   111  func (in *SlimCNP) DeepCopyObject() runtime.Object {
   112  	if c := in.DeepCopy(); c != nil {
   113  		return c
   114  	}
   115  	return nil
   116  }