k8s.io/client-go@v0.31.1/tools/clientcmd/api/v1/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 v1 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 *AuthInfo) DeepCopyInto(out *AuthInfo) { 30 *out = *in 31 if in.ClientCertificateData != nil { 32 in, out := &in.ClientCertificateData, &out.ClientCertificateData 33 *out = make([]byte, len(*in)) 34 copy(*out, *in) 35 } 36 if in.ClientKeyData != nil { 37 in, out := &in.ClientKeyData, &out.ClientKeyData 38 *out = make([]byte, len(*in)) 39 copy(*out, *in) 40 } 41 if in.ImpersonateGroups != nil { 42 in, out := &in.ImpersonateGroups, &out.ImpersonateGroups 43 *out = make([]string, len(*in)) 44 copy(*out, *in) 45 } 46 if in.ImpersonateUserExtra != nil { 47 in, out := &in.ImpersonateUserExtra, &out.ImpersonateUserExtra 48 *out = make(map[string][]string, len(*in)) 49 for key, val := range *in { 50 var outVal []string 51 if val == nil { 52 (*out)[key] = nil 53 } else { 54 in, out := &val, &outVal 55 *out = make([]string, len(*in)) 56 copy(*out, *in) 57 } 58 (*out)[key] = outVal 59 } 60 } 61 if in.AuthProvider != nil { 62 in, out := &in.AuthProvider, &out.AuthProvider 63 *out = new(AuthProviderConfig) 64 (*in).DeepCopyInto(*out) 65 } 66 if in.Exec != nil { 67 in, out := &in.Exec, &out.Exec 68 *out = new(ExecConfig) 69 (*in).DeepCopyInto(*out) 70 } 71 if in.Extensions != nil { 72 in, out := &in.Extensions, &out.Extensions 73 *out = make([]NamedExtension, len(*in)) 74 for i := range *in { 75 (*in)[i].DeepCopyInto(&(*out)[i]) 76 } 77 } 78 return 79 } 80 81 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo. 82 func (in *AuthInfo) DeepCopy() *AuthInfo { 83 if in == nil { 84 return nil 85 } 86 out := new(AuthInfo) 87 in.DeepCopyInto(out) 88 return out 89 } 90 91 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 92 func (in *AuthProviderConfig) DeepCopyInto(out *AuthProviderConfig) { 93 *out = *in 94 if in.Config != nil { 95 in, out := &in.Config, &out.Config 96 *out = make(map[string]string, len(*in)) 97 for key, val := range *in { 98 (*out)[key] = val 99 } 100 } 101 return 102 } 103 104 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthProviderConfig. 105 func (in *AuthProviderConfig) DeepCopy() *AuthProviderConfig { 106 if in == nil { 107 return nil 108 } 109 out := new(AuthProviderConfig) 110 in.DeepCopyInto(out) 111 return out 112 } 113 114 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 115 func (in *Cluster) DeepCopyInto(out *Cluster) { 116 *out = *in 117 if in.CertificateAuthorityData != nil { 118 in, out := &in.CertificateAuthorityData, &out.CertificateAuthorityData 119 *out = make([]byte, len(*in)) 120 copy(*out, *in) 121 } 122 if in.Extensions != nil { 123 in, out := &in.Extensions, &out.Extensions 124 *out = make([]NamedExtension, len(*in)) 125 for i := range *in { 126 (*in)[i].DeepCopyInto(&(*out)[i]) 127 } 128 } 129 return 130 } 131 132 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. 133 func (in *Cluster) DeepCopy() *Cluster { 134 if in == nil { 135 return nil 136 } 137 out := new(Cluster) 138 in.DeepCopyInto(out) 139 return out 140 } 141 142 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 143 func (in *Config) DeepCopyInto(out *Config) { 144 *out = *in 145 in.Preferences.DeepCopyInto(&out.Preferences) 146 if in.Clusters != nil { 147 in, out := &in.Clusters, &out.Clusters 148 *out = make([]NamedCluster, len(*in)) 149 for i := range *in { 150 (*in)[i].DeepCopyInto(&(*out)[i]) 151 } 152 } 153 if in.AuthInfos != nil { 154 in, out := &in.AuthInfos, &out.AuthInfos 155 *out = make([]NamedAuthInfo, len(*in)) 156 for i := range *in { 157 (*in)[i].DeepCopyInto(&(*out)[i]) 158 } 159 } 160 if in.Contexts != nil { 161 in, out := &in.Contexts, &out.Contexts 162 *out = make([]NamedContext, len(*in)) 163 for i := range *in { 164 (*in)[i].DeepCopyInto(&(*out)[i]) 165 } 166 } 167 if in.Extensions != nil { 168 in, out := &in.Extensions, &out.Extensions 169 *out = make([]NamedExtension, len(*in)) 170 for i := range *in { 171 (*in)[i].DeepCopyInto(&(*out)[i]) 172 } 173 } 174 return 175 } 176 177 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config. 178 func (in *Config) DeepCopy() *Config { 179 if in == nil { 180 return nil 181 } 182 out := new(Config) 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 *Config) 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 *Context) DeepCopyInto(out *Context) { 197 *out = *in 198 if in.Extensions != nil { 199 in, out := &in.Extensions, &out.Extensions 200 *out = make([]NamedExtension, len(*in)) 201 for i := range *in { 202 (*in)[i].DeepCopyInto(&(*out)[i]) 203 } 204 } 205 return 206 } 207 208 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Context. 209 func (in *Context) DeepCopy() *Context { 210 if in == nil { 211 return nil 212 } 213 out := new(Context) 214 in.DeepCopyInto(out) 215 return out 216 } 217 218 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 219 func (in *ExecConfig) DeepCopyInto(out *ExecConfig) { 220 *out = *in 221 if in.Args != nil { 222 in, out := &in.Args, &out.Args 223 *out = make([]string, len(*in)) 224 copy(*out, *in) 225 } 226 if in.Env != nil { 227 in, out := &in.Env, &out.Env 228 *out = make([]ExecEnvVar, len(*in)) 229 copy(*out, *in) 230 } 231 return 232 } 233 234 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecConfig. 235 func (in *ExecConfig) DeepCopy() *ExecConfig { 236 if in == nil { 237 return nil 238 } 239 out := new(ExecConfig) 240 in.DeepCopyInto(out) 241 return out 242 } 243 244 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 245 func (in *ExecEnvVar) DeepCopyInto(out *ExecEnvVar) { 246 *out = *in 247 return 248 } 249 250 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecEnvVar. 251 func (in *ExecEnvVar) DeepCopy() *ExecEnvVar { 252 if in == nil { 253 return nil 254 } 255 out := new(ExecEnvVar) 256 in.DeepCopyInto(out) 257 return out 258 } 259 260 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 261 func (in *NamedAuthInfo) DeepCopyInto(out *NamedAuthInfo) { 262 *out = *in 263 in.AuthInfo.DeepCopyInto(&out.AuthInfo) 264 return 265 } 266 267 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedAuthInfo. 268 func (in *NamedAuthInfo) DeepCopy() *NamedAuthInfo { 269 if in == nil { 270 return nil 271 } 272 out := new(NamedAuthInfo) 273 in.DeepCopyInto(out) 274 return out 275 } 276 277 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 278 func (in *NamedCluster) DeepCopyInto(out *NamedCluster) { 279 *out = *in 280 in.Cluster.DeepCopyInto(&out.Cluster) 281 return 282 } 283 284 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedCluster. 285 func (in *NamedCluster) DeepCopy() *NamedCluster { 286 if in == nil { 287 return nil 288 } 289 out := new(NamedCluster) 290 in.DeepCopyInto(out) 291 return out 292 } 293 294 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 295 func (in *NamedContext) DeepCopyInto(out *NamedContext) { 296 *out = *in 297 in.Context.DeepCopyInto(&out.Context) 298 return 299 } 300 301 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedContext. 302 func (in *NamedContext) DeepCopy() *NamedContext { 303 if in == nil { 304 return nil 305 } 306 out := new(NamedContext) 307 in.DeepCopyInto(out) 308 return out 309 } 310 311 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 312 func (in *NamedExtension) DeepCopyInto(out *NamedExtension) { 313 *out = *in 314 in.Extension.DeepCopyInto(&out.Extension) 315 return 316 } 317 318 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedExtension. 319 func (in *NamedExtension) DeepCopy() *NamedExtension { 320 if in == nil { 321 return nil 322 } 323 out := new(NamedExtension) 324 in.DeepCopyInto(out) 325 return out 326 } 327 328 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 329 func (in *Preferences) DeepCopyInto(out *Preferences) { 330 *out = *in 331 if in.Extensions != nil { 332 in, out := &in.Extensions, &out.Extensions 333 *out = make([]NamedExtension, len(*in)) 334 for i := range *in { 335 (*in)[i].DeepCopyInto(&(*out)[i]) 336 } 337 } 338 return 339 } 340 341 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preferences. 342 func (in *Preferences) DeepCopy() *Preferences { 343 if in == nil { 344 return nil 345 } 346 out := new(Preferences) 347 in.DeepCopyInto(out) 348 return out 349 }