k8s.io/apiserver@v0.31.1/pkg/apis/example/zz_generated.deepcopy.go (about) 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 example 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 *Pod) DeepCopyInto(out *Pod) { 30 *out = *in 31 out.TypeMeta = in.TypeMeta 32 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 33 in.Spec.DeepCopyInto(&out.Spec) 34 in.Status.DeepCopyInto(&out.Status) 35 return 36 } 37 38 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pod. 39 func (in *Pod) DeepCopy() *Pod { 40 if in == nil { 41 return nil 42 } 43 out := new(Pod) 44 in.DeepCopyInto(out) 45 return out 46 } 47 48 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 49 func (in *Pod) DeepCopyObject() runtime.Object { 50 if c := in.DeepCopy(); c != nil { 51 return c 52 } 53 return nil 54 } 55 56 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 57 func (in *PodCondition) DeepCopyInto(out *PodCondition) { 58 *out = *in 59 in.LastProbeTime.DeepCopyInto(&out.LastProbeTime) 60 in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) 61 return 62 } 63 64 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCondition. 65 func (in *PodCondition) DeepCopy() *PodCondition { 66 if in == nil { 67 return nil 68 } 69 out := new(PodCondition) 70 in.DeepCopyInto(out) 71 return out 72 } 73 74 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 75 func (in *PodList) DeepCopyInto(out *PodList) { 76 *out = *in 77 out.TypeMeta = in.TypeMeta 78 in.ListMeta.DeepCopyInto(&out.ListMeta) 79 if in.Items != nil { 80 in, out := &in.Items, &out.Items 81 *out = make([]Pod, len(*in)) 82 for i := range *in { 83 (*in)[i].DeepCopyInto(&(*out)[i]) 84 } 85 } 86 return 87 } 88 89 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodList. 90 func (in *PodList) DeepCopy() *PodList { 91 if in == nil { 92 return nil 93 } 94 out := new(PodList) 95 in.DeepCopyInto(out) 96 return out 97 } 98 99 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 100 func (in *PodList) DeepCopyObject() runtime.Object { 101 if c := in.DeepCopy(); c != nil { 102 return c 103 } 104 return nil 105 } 106 107 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 108 func (in *PodSpec) DeepCopyInto(out *PodSpec) { 109 *out = *in 110 if in.TerminationGracePeriodSeconds != nil { 111 in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds 112 *out = new(int64) 113 **out = **in 114 } 115 if in.ActiveDeadlineSeconds != nil { 116 in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds 117 *out = new(int64) 118 **out = **in 119 } 120 if in.NodeSelector != nil { 121 in, out := &in.NodeSelector, &out.NodeSelector 122 *out = make(map[string]string, len(*in)) 123 for key, val := range *in { 124 (*out)[key] = val 125 } 126 } 127 return 128 } 129 130 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec. 131 func (in *PodSpec) DeepCopy() *PodSpec { 132 if in == nil { 133 return nil 134 } 135 out := new(PodSpec) 136 in.DeepCopyInto(out) 137 return out 138 } 139 140 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 141 func (in *PodStatus) DeepCopyInto(out *PodStatus) { 142 *out = *in 143 if in.Conditions != nil { 144 in, out := &in.Conditions, &out.Conditions 145 *out = make([]PodCondition, len(*in)) 146 for i := range *in { 147 (*in)[i].DeepCopyInto(&(*out)[i]) 148 } 149 } 150 if in.StartTime != nil { 151 in, out := &in.StartTime, &out.StartTime 152 *out = (*in).DeepCopy() 153 } 154 return 155 } 156 157 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus. 158 func (in *PodStatus) DeepCopy() *PodStatus { 159 if in == nil { 160 return nil 161 } 162 out := new(PodStatus) 163 in.DeepCopyInto(out) 164 return out 165 } 166 167 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 168 func (in *ReplicaSet) DeepCopyInto(out *ReplicaSet) { 169 *out = *in 170 out.TypeMeta = in.TypeMeta 171 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 172 out.Spec = in.Spec 173 out.Status = in.Status 174 return 175 } 176 177 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSet. 178 func (in *ReplicaSet) DeepCopy() *ReplicaSet { 179 if in == nil { 180 return nil 181 } 182 out := new(ReplicaSet) 183 in.DeepCopyInto(out) 184 return out 185 } 186 187 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 188 func (in *ReplicaSet) DeepCopyObject() runtime.Object { 189 if c := in.DeepCopy(); c != nil { 190 return c 191 } 192 return nil 193 } 194 195 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 196 func (in *ReplicaSetSpec) DeepCopyInto(out *ReplicaSetSpec) { 197 *out = *in 198 return 199 } 200 201 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetSpec. 202 func (in *ReplicaSetSpec) DeepCopy() *ReplicaSetSpec { 203 if in == nil { 204 return nil 205 } 206 out := new(ReplicaSetSpec) 207 in.DeepCopyInto(out) 208 return out 209 } 210 211 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 212 func (in *ReplicaSetStatus) DeepCopyInto(out *ReplicaSetStatus) { 213 *out = *in 214 return 215 } 216 217 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetStatus. 218 func (in *ReplicaSetStatus) DeepCopy() *ReplicaSetStatus { 219 if in == nil { 220 return nil 221 } 222 out := new(ReplicaSetStatus) 223 in.DeepCopyInto(out) 224 return out 225 }