...

Source file src/k8s.io/api/coordination/v1beta1/zz_generated.deepcopy.go

Documentation: k8s.io/api/coordination/v1beta1

     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 v1beta1
    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 *Lease) DeepCopyInto(out *Lease) {
    30  	*out = *in
    31  	out.TypeMeta = in.TypeMeta
    32  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    33  	in.Spec.DeepCopyInto(&out.Spec)
    34  	return
    35  }
    36  
    37  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lease.
    38  func (in *Lease) DeepCopy() *Lease {
    39  	if in == nil {
    40  		return nil
    41  	}
    42  	out := new(Lease)
    43  	in.DeepCopyInto(out)
    44  	return out
    45  }
    46  
    47  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    48  func (in *Lease) DeepCopyObject() runtime.Object {
    49  	if c := in.DeepCopy(); c != nil {
    50  		return c
    51  	}
    52  	return nil
    53  }
    54  
    55  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    56  func (in *LeaseList) DeepCopyInto(out *LeaseList) {
    57  	*out = *in
    58  	out.TypeMeta = in.TypeMeta
    59  	in.ListMeta.DeepCopyInto(&out.ListMeta)
    60  	if in.Items != nil {
    61  		in, out := &in.Items, &out.Items
    62  		*out = make([]Lease, len(*in))
    63  		for i := range *in {
    64  			(*in)[i].DeepCopyInto(&(*out)[i])
    65  		}
    66  	}
    67  	return
    68  }
    69  
    70  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseList.
    71  func (in *LeaseList) DeepCopy() *LeaseList {
    72  	if in == nil {
    73  		return nil
    74  	}
    75  	out := new(LeaseList)
    76  	in.DeepCopyInto(out)
    77  	return out
    78  }
    79  
    80  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    81  func (in *LeaseList) DeepCopyObject() runtime.Object {
    82  	if c := in.DeepCopy(); c != nil {
    83  		return c
    84  	}
    85  	return nil
    86  }
    87  
    88  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    89  func (in *LeaseSpec) DeepCopyInto(out *LeaseSpec) {
    90  	*out = *in
    91  	if in.HolderIdentity != nil {
    92  		in, out := &in.HolderIdentity, &out.HolderIdentity
    93  		*out = new(string)
    94  		**out = **in
    95  	}
    96  	if in.LeaseDurationSeconds != nil {
    97  		in, out := &in.LeaseDurationSeconds, &out.LeaseDurationSeconds
    98  		*out = new(int32)
    99  		**out = **in
   100  	}
   101  	if in.AcquireTime != nil {
   102  		in, out := &in.AcquireTime, &out.AcquireTime
   103  		*out = (*in).DeepCopy()
   104  	}
   105  	if in.RenewTime != nil {
   106  		in, out := &in.RenewTime, &out.RenewTime
   107  		*out = (*in).DeepCopy()
   108  	}
   109  	if in.LeaseTransitions != nil {
   110  		in, out := &in.LeaseTransitions, &out.LeaseTransitions
   111  		*out = new(int32)
   112  		**out = **in
   113  	}
   114  	return
   115  }
   116  
   117  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseSpec.
   118  func (in *LeaseSpec) DeepCopy() *LeaseSpec {
   119  	if in == nil {
   120  		return nil
   121  	}
   122  	out := new(LeaseSpec)
   123  	in.DeepCopyInto(out)
   124  	return out
   125  }
   126  

View as plain text