github.phpd.cn/cilium/cilium@v1.6.12/pkg/service/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 service
    20  
    21  import (
    22  	loadbalancer "github.com/cilium/cilium/pkg/loadbalancer"
    23  )
    24  
    25  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    26  func (in *ClusterService) DeepCopyInto(out *ClusterService) {
    27  	*out = *in
    28  	if in.Frontends != nil {
    29  		in, out := &in.Frontends, &out.Frontends
    30  		*out = make(map[string]PortConfiguration, len(*in))
    31  		for key, val := range *in {
    32  			var outVal map[string]*loadbalancer.L4Addr
    33  			if val == nil {
    34  				(*out)[key] = nil
    35  			} else {
    36  				in, out := &val, &outVal
    37  				*out = make(PortConfiguration, len(*in))
    38  				for key, val := range *in {
    39  					var outVal *loadbalancer.L4Addr
    40  					if val == nil {
    41  						(*out)[key] = nil
    42  					} else {
    43  						in, out := &val, &outVal
    44  						*out = (*in).DeepCopy()
    45  					}
    46  					(*out)[key] = outVal
    47  				}
    48  			}
    49  			(*out)[key] = outVal
    50  		}
    51  	}
    52  	if in.Backends != nil {
    53  		in, out := &in.Backends, &out.Backends
    54  		*out = make(map[string]PortConfiguration, len(*in))
    55  		for key, val := range *in {
    56  			var outVal map[string]*loadbalancer.L4Addr
    57  			if val == nil {
    58  				(*out)[key] = nil
    59  			} else {
    60  				in, out := &val, &outVal
    61  				*out = make(PortConfiguration, len(*in))
    62  				for key, val := range *in {
    63  					var outVal *loadbalancer.L4Addr
    64  					if val == nil {
    65  						(*out)[key] = nil
    66  					} else {
    67  						in, out := &val, &outVal
    68  						*out = (*in).DeepCopy()
    69  					}
    70  					(*out)[key] = outVal
    71  				}
    72  			}
    73  			(*out)[key] = outVal
    74  		}
    75  	}
    76  	if in.Labels != nil {
    77  		in, out := &in.Labels, &out.Labels
    78  		*out = make(map[string]string, len(*in))
    79  		for key, val := range *in {
    80  			(*out)[key] = val
    81  		}
    82  	}
    83  	if in.Selector != nil {
    84  		in, out := &in.Selector, &out.Selector
    85  		*out = make(map[string]string, len(*in))
    86  		for key, val := range *in {
    87  			(*out)[key] = val
    88  		}
    89  	}
    90  	return
    91  }
    92  
    93  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterService.
    94  func (in *ClusterService) DeepCopy() *ClusterService {
    95  	if in == nil {
    96  		return nil
    97  	}
    98  	out := new(ClusterService)
    99  	in.DeepCopyInto(out)
   100  	return out
   101  }