github.com/imran-kn/cilium-fork@v1.6.9/pkg/k8s/types/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 types
    20  
    21  import (
    22  	v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2"
    23  	v1 "k8s.io/api/core/v1"
    24  	v1beta1 "k8s.io/api/extensions/v1beta1"
    25  	networkingv1 "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 *CiliumEndpoint) DeepCopyInto(out *CiliumEndpoint) {
    31  	*out = *in
    32  	out.TypeMeta = in.TypeMeta
    33  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    34  	if in.Identity != nil {
    35  		in, out := &in.Identity, &out.Identity
    36  		*out = new(v2.EndpointIdentity)
    37  		(*in).DeepCopyInto(*out)
    38  	}
    39  	if in.Networking != nil {
    40  		in, out := &in.Networking, &out.Networking
    41  		*out = new(v2.EndpointNetworking)
    42  		(*in).DeepCopyInto(*out)
    43  	}
    44  	if in.Encryption != nil {
    45  		in, out := &in.Encryption, &out.Encryption
    46  		*out = new(v2.EncryptionSpec)
    47  		**out = **in
    48  	}
    49  	return
    50  }
    51  
    52  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CiliumEndpoint.
    53  func (in *CiliumEndpoint) DeepCopy() *CiliumEndpoint {
    54  	if in == nil {
    55  		return nil
    56  	}
    57  	out := new(CiliumEndpoint)
    58  	in.DeepCopyInto(out)
    59  	return out
    60  }
    61  
    62  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    63  func (in *CiliumEndpoint) DeepCopyObject() runtime.Object {
    64  	if c := in.DeepCopy(); c != nil {
    65  		return c
    66  	}
    67  	return nil
    68  }
    69  
    70  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    71  func (in *Endpoints) DeepCopyInto(out *Endpoints) {
    72  	*out = *in
    73  	if in.Endpoints != nil {
    74  		in, out := &in.Endpoints, &out.Endpoints
    75  		*out = new(v1.Endpoints)
    76  		(*in).DeepCopyInto(*out)
    77  	}
    78  	return
    79  }
    80  
    81  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoints.
    82  func (in *Endpoints) DeepCopy() *Endpoints {
    83  	if in == nil {
    84  		return nil
    85  	}
    86  	out := new(Endpoints)
    87  	in.DeepCopyInto(out)
    88  	return out
    89  }
    90  
    91  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    92  func (in *Endpoints) DeepCopyObject() runtime.Object {
    93  	if c := in.DeepCopy(); c != nil {
    94  		return c
    95  	}
    96  	return nil
    97  }
    98  
    99  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   100  func (in *Identity) DeepCopyInto(out *Identity) {
   101  	*out = *in
   102  	if in.CiliumIdentity != nil {
   103  		in, out := &in.CiliumIdentity, &out.CiliumIdentity
   104  		*out = new(v2.CiliumIdentity)
   105  		(*in).DeepCopyInto(*out)
   106  	}
   107  	return
   108  }
   109  
   110  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Identity.
   111  func (in *Identity) DeepCopy() *Identity {
   112  	if in == nil {
   113  		return nil
   114  	}
   115  	out := new(Identity)
   116  	in.DeepCopyInto(out)
   117  	return out
   118  }
   119  
   120  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   121  func (in *Identity) DeepCopyObject() runtime.Object {
   122  	if c := in.DeepCopy(); c != nil {
   123  		return c
   124  	}
   125  	return nil
   126  }
   127  
   128  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   129  func (in *Ingress) DeepCopyInto(out *Ingress) {
   130  	*out = *in
   131  	if in.Ingress != nil {
   132  		in, out := &in.Ingress, &out.Ingress
   133  		*out = new(v1beta1.Ingress)
   134  		(*in).DeepCopyInto(*out)
   135  	}
   136  	return
   137  }
   138  
   139  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
   140  func (in *Ingress) DeepCopy() *Ingress {
   141  	if in == nil {
   142  		return nil
   143  	}
   144  	out := new(Ingress)
   145  	in.DeepCopyInto(out)
   146  	return out
   147  }
   148  
   149  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   150  func (in *Ingress) DeepCopyObject() runtime.Object {
   151  	if c := in.DeepCopy(); c != nil {
   152  		return c
   153  	}
   154  	return nil
   155  }
   156  
   157  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   158  func (in *Namespace) DeepCopyInto(out *Namespace) {
   159  	*out = *in
   160  	out.TypeMeta = in.TypeMeta
   161  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   162  	return
   163  }
   164  
   165  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Namespace.
   166  func (in *Namespace) DeepCopy() *Namespace {
   167  	if in == nil {
   168  		return nil
   169  	}
   170  	out := new(Namespace)
   171  	in.DeepCopyInto(out)
   172  	return out
   173  }
   174  
   175  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   176  func (in *Namespace) DeepCopyObject() runtime.Object {
   177  	if c := in.DeepCopy(); c != nil {
   178  		return c
   179  	}
   180  	return nil
   181  }
   182  
   183  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   184  func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
   185  	*out = *in
   186  	if in.NetworkPolicy != nil {
   187  		in, out := &in.NetworkPolicy, &out.NetworkPolicy
   188  		*out = new(networkingv1.NetworkPolicy)
   189  		(*in).DeepCopyInto(*out)
   190  	}
   191  	return
   192  }
   193  
   194  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
   195  func (in *NetworkPolicy) DeepCopy() *NetworkPolicy {
   196  	if in == nil {
   197  		return nil
   198  	}
   199  	out := new(NetworkPolicy)
   200  	in.DeepCopyInto(out)
   201  	return out
   202  }
   203  
   204  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   205  func (in *NetworkPolicy) DeepCopyObject() runtime.Object {
   206  	if c := in.DeepCopy(); c != nil {
   207  		return c
   208  	}
   209  	return nil
   210  }
   211  
   212  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   213  func (in *Node) DeepCopyInto(out *Node) {
   214  	*out = *in
   215  	out.TypeMeta = in.TypeMeta
   216  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   217  	if in.StatusAddresses != nil {
   218  		in, out := &in.StatusAddresses, &out.StatusAddresses
   219  		*out = make([]v1.NodeAddress, len(*in))
   220  		copy(*out, *in)
   221  	}
   222  	if in.SpecTaints != nil {
   223  		in, out := &in.SpecTaints, &out.SpecTaints
   224  		*out = make([]v1.Taint, len(*in))
   225  		for i := range *in {
   226  			(*in)[i].DeepCopyInto(&(*out)[i])
   227  		}
   228  	}
   229  	return
   230  }
   231  
   232  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.
   233  func (in *Node) DeepCopy() *Node {
   234  	if in == nil {
   235  		return nil
   236  	}
   237  	out := new(Node)
   238  	in.DeepCopyInto(out)
   239  	return out
   240  }
   241  
   242  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   243  func (in *Node) DeepCopyObject() runtime.Object {
   244  	if c := in.DeepCopy(); c != nil {
   245  		return c
   246  	}
   247  	return nil
   248  }
   249  
   250  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   251  func (in *Pod) DeepCopyInto(out *Pod) {
   252  	*out = *in
   253  	out.TypeMeta = in.TypeMeta
   254  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   255  	return
   256  }
   257  
   258  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
   259  func (in *Pod) DeepCopy() *Pod {
   260  	if in == nil {
   261  		return nil
   262  	}
   263  	out := new(Pod)
   264  	in.DeepCopyInto(out)
   265  	return out
   266  }
   267  
   268  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   269  func (in *Pod) DeepCopyObject() runtime.Object {
   270  	if c := in.DeepCopy(); c != nil {
   271  		return c
   272  	}
   273  	return nil
   274  }
   275  
   276  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   277  func (in *Service) DeepCopyInto(out *Service) {
   278  	*out = *in
   279  	if in.Service != nil {
   280  		in, out := &in.Service, &out.Service
   281  		*out = new(v1.Service)
   282  		(*in).DeepCopyInto(*out)
   283  	}
   284  	return
   285  }
   286  
   287  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
   288  func (in *Service) DeepCopy() *Service {
   289  	if in == nil {
   290  		return nil
   291  	}
   292  	out := new(Service)
   293  	in.DeepCopyInto(out)
   294  	return out
   295  }
   296  
   297  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   298  func (in *Service) DeepCopyObject() runtime.Object {
   299  	if c := in.DeepCopy(); c != nil {
   300  		return c
   301  	}
   302  	return nil
   303  }
   304  
   305  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   306  func (in *SlimCNP) DeepCopyInto(out *SlimCNP) {
   307  	*out = *in
   308  	if in.CiliumNetworkPolicy != nil {
   309  		in, out := &in.CiliumNetworkPolicy, &out.CiliumNetworkPolicy
   310  		*out = new(v2.CiliumNetworkPolicy)
   311  		(*in).DeepCopyInto(*out)
   312  	}
   313  	return
   314  }
   315  
   316  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlimCNP.
   317  func (in *SlimCNP) DeepCopy() *SlimCNP {
   318  	if in == nil {
   319  		return nil
   320  	}
   321  	out := new(SlimCNP)
   322  	in.DeepCopyInto(out)
   323  	return out
   324  }
   325  
   326  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   327  func (in *SlimCNP) DeepCopyObject() runtime.Object {
   328  	if c := in.DeepCopy(); c != nil {
   329  		return c
   330  	}
   331  	return nil
   332  }