1// +build !ignore_autogenerated 2 3/* 4Copyright The Kubernetes Authors. 5 6Licensed under the Apache License, Version 2.0 (the "License"); 7you may not use this file except in compliance with the License. 8You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12Unless required by applicable law or agreed to in writing, software 13distributed under the License is distributed on an "AS IS" BASIS, 14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15See the License for the specific language governing permissions and 16limitations under the License. 17*/ 18 19// Code generated by deepcopy-gen. DO NOT EDIT. 20 21package v1beta1 22 23import ( 24 runtime "k8s.io/apimachinery/pkg/runtime" 25) 26 27// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 28func (in *Lease) DeepCopyInto(out *Lease) { 29 *out = *in 30 out.TypeMeta = in.TypeMeta 31 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 32 in.Spec.DeepCopyInto(&out.Spec) 33 return 34} 35 36// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lease. 37func (in *Lease) DeepCopy() *Lease { 38 if in == nil { 39 return nil 40 } 41 out := new(Lease) 42 in.DeepCopyInto(out) 43 return out 44} 45 46// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 47func (in *Lease) DeepCopyObject() runtime.Object { 48 if c := in.DeepCopy(); c != nil { 49 return c 50 } 51 return nil 52} 53 54// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 55func (in *LeaseList) DeepCopyInto(out *LeaseList) { 56 *out = *in 57 out.TypeMeta = in.TypeMeta 58 in.ListMeta.DeepCopyInto(&out.ListMeta) 59 if in.Items != nil { 60 in, out := &in.Items, &out.Items 61 *out = make([]Lease, len(*in)) 62 for i := range *in { 63 (*in)[i].DeepCopyInto(&(*out)[i]) 64 } 65 } 66 return 67} 68 69// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseList. 70func (in *LeaseList) DeepCopy() *LeaseList { 71 if in == nil { 72 return nil 73 } 74 out := new(LeaseList) 75 in.DeepCopyInto(out) 76 return out 77} 78 79// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 80func (in *LeaseList) DeepCopyObject() runtime.Object { 81 if c := in.DeepCopy(); c != nil { 82 return c 83 } 84 return nil 85} 86 87// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 88func (in *LeaseSpec) DeepCopyInto(out *LeaseSpec) { 89 *out = *in 90 if in.HolderIdentity != nil { 91 in, out := &in.HolderIdentity, &out.HolderIdentity 92 *out = new(string) 93 **out = **in 94 } 95 if in.LeaseDurationSeconds != nil { 96 in, out := &in.LeaseDurationSeconds, &out.LeaseDurationSeconds 97 *out = new(int32) 98 **out = **in 99 } 100 if in.AcquireTime != nil { 101 in, out := &in.AcquireTime, &out.AcquireTime 102 *out = (*in).DeepCopy() 103 } 104 if in.RenewTime != nil { 105 in, out := &in.RenewTime, &out.RenewTime 106 *out = (*in).DeepCopy() 107 } 108 if in.LeaseTransitions != nil { 109 in, out := &in.LeaseTransitions, &out.LeaseTransitions 110 *out = new(int32) 111 **out = **in 112 } 113 return 114} 115 116// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseSpec. 117func (in *LeaseSpec) DeepCopy() *LeaseSpec { 118 if in == nil { 119 return nil 120 } 121 out := new(LeaseSpec) 122 in.DeepCopyInto(out) 123 return out 124} 125