...

Source file src/github.com/linkerd/linkerd2/controller/gen/apis/serviceprofile/v1alpha2/zz_generated.deepcopy.go

Documentation: github.com/linkerd/linkerd2/controller/gen/apis/serviceprofile/v1alpha2

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The Kubernetes Authors.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  // Code generated by deepcopy-gen. DO NOT EDIT.
    21  
    22  package v1alpha2
    23  
    24  import (
    25  	runtime "k8s.io/apimachinery/pkg/runtime"
    26  )
    27  
    28  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    29  func (in *Range) DeepCopyInto(out *Range) {
    30  	*out = *in
    31  	return
    32  }
    33  
    34  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Range.
    35  func (in *Range) DeepCopy() *Range {
    36  	if in == nil {
    37  		return nil
    38  	}
    39  	out := new(Range)
    40  	in.DeepCopyInto(out)
    41  	return out
    42  }
    43  
    44  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    45  func (in *RequestMatch) DeepCopyInto(out *RequestMatch) {
    46  	*out = *in
    47  	if in.All != nil {
    48  		in, out := &in.All, &out.All
    49  		*out = make([]*RequestMatch, len(*in))
    50  		for i := range *in {
    51  			if (*in)[i] != nil {
    52  				in, out := &(*in)[i], &(*out)[i]
    53  				*out = new(RequestMatch)
    54  				(*in).DeepCopyInto(*out)
    55  			}
    56  		}
    57  	}
    58  	if in.Not != nil {
    59  		in, out := &in.Not, &out.Not
    60  		*out = new(RequestMatch)
    61  		(*in).DeepCopyInto(*out)
    62  	}
    63  	if in.Any != nil {
    64  		in, out := &in.Any, &out.Any
    65  		*out = make([]*RequestMatch, len(*in))
    66  		for i := range *in {
    67  			if (*in)[i] != nil {
    68  				in, out := &(*in)[i], &(*out)[i]
    69  				*out = new(RequestMatch)
    70  				(*in).DeepCopyInto(*out)
    71  			}
    72  		}
    73  	}
    74  	return
    75  }
    76  
    77  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequestMatch.
    78  func (in *RequestMatch) DeepCopy() *RequestMatch {
    79  	if in == nil {
    80  		return nil
    81  	}
    82  	out := new(RequestMatch)
    83  	in.DeepCopyInto(out)
    84  	return out
    85  }
    86  
    87  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    88  func (in *ResponseClass) DeepCopyInto(out *ResponseClass) {
    89  	*out = *in
    90  	if in.Condition != nil {
    91  		in, out := &in.Condition, &out.Condition
    92  		*out = new(ResponseMatch)
    93  		(*in).DeepCopyInto(*out)
    94  	}
    95  	return
    96  }
    97  
    98  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResponseClass.
    99  func (in *ResponseClass) DeepCopy() *ResponseClass {
   100  	if in == nil {
   101  		return nil
   102  	}
   103  	out := new(ResponseClass)
   104  	in.DeepCopyInto(out)
   105  	return out
   106  }
   107  
   108  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   109  func (in *ResponseMatch) DeepCopyInto(out *ResponseMatch) {
   110  	*out = *in
   111  	if in.All != nil {
   112  		in, out := &in.All, &out.All
   113  		*out = make([]*ResponseMatch, len(*in))
   114  		for i := range *in {
   115  			if (*in)[i] != nil {
   116  				in, out := &(*in)[i], &(*out)[i]
   117  				*out = new(ResponseMatch)
   118  				(*in).DeepCopyInto(*out)
   119  			}
   120  		}
   121  	}
   122  	if in.Not != nil {
   123  		in, out := &in.Not, &out.Not
   124  		*out = new(ResponseMatch)
   125  		(*in).DeepCopyInto(*out)
   126  	}
   127  	if in.Any != nil {
   128  		in, out := &in.Any, &out.Any
   129  		*out = make([]*ResponseMatch, len(*in))
   130  		for i := range *in {
   131  			if (*in)[i] != nil {
   132  				in, out := &(*in)[i], &(*out)[i]
   133  				*out = new(ResponseMatch)
   134  				(*in).DeepCopyInto(*out)
   135  			}
   136  		}
   137  	}
   138  	if in.Status != nil {
   139  		in, out := &in.Status, &out.Status
   140  		*out = new(Range)
   141  		**out = **in
   142  	}
   143  	return
   144  }
   145  
   146  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResponseMatch.
   147  func (in *ResponseMatch) DeepCopy() *ResponseMatch {
   148  	if in == nil {
   149  		return nil
   150  	}
   151  	out := new(ResponseMatch)
   152  	in.DeepCopyInto(out)
   153  	return out
   154  }
   155  
   156  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   157  func (in *RetryBudget) DeepCopyInto(out *RetryBudget) {
   158  	*out = *in
   159  	return
   160  }
   161  
   162  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RetryBudget.
   163  func (in *RetryBudget) DeepCopy() *RetryBudget {
   164  	if in == nil {
   165  		return nil
   166  	}
   167  	out := new(RetryBudget)
   168  	in.DeepCopyInto(out)
   169  	return out
   170  }
   171  
   172  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   173  func (in *RouteSpec) DeepCopyInto(out *RouteSpec) {
   174  	*out = *in
   175  	if in.Condition != nil {
   176  		in, out := &in.Condition, &out.Condition
   177  		*out = new(RequestMatch)
   178  		(*in).DeepCopyInto(*out)
   179  	}
   180  	if in.ResponseClasses != nil {
   181  		in, out := &in.ResponseClasses, &out.ResponseClasses
   182  		*out = make([]*ResponseClass, len(*in))
   183  		for i := range *in {
   184  			if (*in)[i] != nil {
   185  				in, out := &(*in)[i], &(*out)[i]
   186  				*out = new(ResponseClass)
   187  				(*in).DeepCopyInto(*out)
   188  			}
   189  		}
   190  	}
   191  	return
   192  }
   193  
   194  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteSpec.
   195  func (in *RouteSpec) DeepCopy() *RouteSpec {
   196  	if in == nil {
   197  		return nil
   198  	}
   199  	out := new(RouteSpec)
   200  	in.DeepCopyInto(out)
   201  	return out
   202  }
   203  
   204  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   205  func (in *ServiceProfile) DeepCopyInto(out *ServiceProfile) {
   206  	*out = *in
   207  	out.TypeMeta = in.TypeMeta
   208  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   209  	in.Spec.DeepCopyInto(&out.Spec)
   210  	return
   211  }
   212  
   213  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProfile.
   214  func (in *ServiceProfile) DeepCopy() *ServiceProfile {
   215  	if in == nil {
   216  		return nil
   217  	}
   218  	out := new(ServiceProfile)
   219  	in.DeepCopyInto(out)
   220  	return out
   221  }
   222  
   223  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   224  func (in *ServiceProfile) DeepCopyObject() runtime.Object {
   225  	if c := in.DeepCopy(); c != nil {
   226  		return c
   227  	}
   228  	return nil
   229  }
   230  
   231  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   232  func (in *ServiceProfileList) DeepCopyInto(out *ServiceProfileList) {
   233  	*out = *in
   234  	out.TypeMeta = in.TypeMeta
   235  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   236  	if in.Items != nil {
   237  		in, out := &in.Items, &out.Items
   238  		*out = make([]ServiceProfile, len(*in))
   239  		for i := range *in {
   240  			(*in)[i].DeepCopyInto(&(*out)[i])
   241  		}
   242  	}
   243  	return
   244  }
   245  
   246  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProfileList.
   247  func (in *ServiceProfileList) DeepCopy() *ServiceProfileList {
   248  	if in == nil {
   249  		return nil
   250  	}
   251  	out := new(ServiceProfileList)
   252  	in.DeepCopyInto(out)
   253  	return out
   254  }
   255  
   256  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   257  func (in *ServiceProfileList) DeepCopyObject() runtime.Object {
   258  	if c := in.DeepCopy(); c != nil {
   259  		return c
   260  	}
   261  	return nil
   262  }
   263  
   264  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   265  func (in *ServiceProfileSpec) DeepCopyInto(out *ServiceProfileSpec) {
   266  	*out = *in
   267  	if in.Routes != nil {
   268  		in, out := &in.Routes, &out.Routes
   269  		*out = make([]*RouteSpec, len(*in))
   270  		for i := range *in {
   271  			if (*in)[i] != nil {
   272  				in, out := &(*in)[i], &(*out)[i]
   273  				*out = new(RouteSpec)
   274  				(*in).DeepCopyInto(*out)
   275  			}
   276  		}
   277  	}
   278  	if in.RetryBudget != nil {
   279  		in, out := &in.RetryBudget, &out.RetryBudget
   280  		*out = new(RetryBudget)
   281  		**out = **in
   282  	}
   283  	if in.DstOverrides != nil {
   284  		in, out := &in.DstOverrides, &out.DstOverrides
   285  		*out = make([]*WeightedDst, len(*in))
   286  		for i := range *in {
   287  			if (*in)[i] != nil {
   288  				in, out := &(*in)[i], &(*out)[i]
   289  				*out = new(WeightedDst)
   290  				(*in).DeepCopyInto(*out)
   291  			}
   292  		}
   293  	}
   294  	if in.OpaquePorts != nil {
   295  		in, out := &in.OpaquePorts, &out.OpaquePorts
   296  		*out = make(map[uint32]struct{}, len(*in))
   297  		for key, val := range *in {
   298  			(*out)[key] = val
   299  		}
   300  	}
   301  	return
   302  }
   303  
   304  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProfileSpec.
   305  func (in *ServiceProfileSpec) DeepCopy() *ServiceProfileSpec {
   306  	if in == nil {
   307  		return nil
   308  	}
   309  	out := new(ServiceProfileSpec)
   310  	in.DeepCopyInto(out)
   311  	return out
   312  }
   313  
   314  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   315  func (in *WeightedDst) DeepCopyInto(out *WeightedDst) {
   316  	*out = *in
   317  	out.Weight = in.Weight.DeepCopy()
   318  	return
   319  }
   320  
   321  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WeightedDst.
   322  func (in *WeightedDst) DeepCopy() *WeightedDst {
   323  	if in == nil {
   324  		return nil
   325  	}
   326  	out := new(WeightedDst)
   327  	in.DeepCopyInto(out)
   328  	return out
   329  }
   330  

View as plain text