...

Source file src/k8s.io/client-go/tools/clientcmd/api/zz_generated.deepcopy.go

Documentation: k8s.io/client-go/tools/clientcmd/api

     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 api
    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(map[string]runtime.Object, len(*in))
    74  		for key, val := range *in {
    75  			if val == nil {
    76  				(*out)[key] = nil
    77  			} else {
    78  				(*out)[key] = val.DeepCopyObject()
    79  			}
    80  		}
    81  	}
    82  	return
    83  }
    84  
    85  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthInfo.
    86  func (in *AuthInfo) DeepCopy() *AuthInfo {
    87  	if in == nil {
    88  		return nil
    89  	}
    90  	out := new(AuthInfo)
    91  	in.DeepCopyInto(out)
    92  	return out
    93  }
    94  
    95  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    96  func (in *AuthProviderConfig) DeepCopyInto(out *AuthProviderConfig) {
    97  	*out = *in
    98  	if in.Config != nil {
    99  		in, out := &in.Config, &out.Config
   100  		*out = make(map[string]string, len(*in))
   101  		for key, val := range *in {
   102  			(*out)[key] = val
   103  		}
   104  	}
   105  	return
   106  }
   107  
   108  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthProviderConfig.
   109  func (in *AuthProviderConfig) DeepCopy() *AuthProviderConfig {
   110  	if in == nil {
   111  		return nil
   112  	}
   113  	out := new(AuthProviderConfig)
   114  	in.DeepCopyInto(out)
   115  	return out
   116  }
   117  
   118  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   119  func (in *Cluster) DeepCopyInto(out *Cluster) {
   120  	*out = *in
   121  	if in.CertificateAuthorityData != nil {
   122  		in, out := &in.CertificateAuthorityData, &out.CertificateAuthorityData
   123  		*out = make([]byte, len(*in))
   124  		copy(*out, *in)
   125  	}
   126  	if in.Extensions != nil {
   127  		in, out := &in.Extensions, &out.Extensions
   128  		*out = make(map[string]runtime.Object, len(*in))
   129  		for key, val := range *in {
   130  			if val == nil {
   131  				(*out)[key] = nil
   132  			} else {
   133  				(*out)[key] = val.DeepCopyObject()
   134  			}
   135  		}
   136  	}
   137  	return
   138  }
   139  
   140  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
   141  func (in *Cluster) DeepCopy() *Cluster {
   142  	if in == nil {
   143  		return nil
   144  	}
   145  	out := new(Cluster)
   146  	in.DeepCopyInto(out)
   147  	return out
   148  }
   149  
   150  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   151  func (in *Config) DeepCopyInto(out *Config) {
   152  	*out = *in
   153  	in.Preferences.DeepCopyInto(&out.Preferences)
   154  	if in.Clusters != nil {
   155  		in, out := &in.Clusters, &out.Clusters
   156  		*out = make(map[string]*Cluster, len(*in))
   157  		for key, val := range *in {
   158  			var outVal *Cluster
   159  			if val == nil {
   160  				(*out)[key] = nil
   161  			} else {
   162  				in, out := &val, &outVal
   163  				*out = new(Cluster)
   164  				(*in).DeepCopyInto(*out)
   165  			}
   166  			(*out)[key] = outVal
   167  		}
   168  	}
   169  	if in.AuthInfos != nil {
   170  		in, out := &in.AuthInfos, &out.AuthInfos
   171  		*out = make(map[string]*AuthInfo, len(*in))
   172  		for key, val := range *in {
   173  			var outVal *AuthInfo
   174  			if val == nil {
   175  				(*out)[key] = nil
   176  			} else {
   177  				in, out := &val, &outVal
   178  				*out = new(AuthInfo)
   179  				(*in).DeepCopyInto(*out)
   180  			}
   181  			(*out)[key] = outVal
   182  		}
   183  	}
   184  	if in.Contexts != nil {
   185  		in, out := &in.Contexts, &out.Contexts
   186  		*out = make(map[string]*Context, len(*in))
   187  		for key, val := range *in {
   188  			var outVal *Context
   189  			if val == nil {
   190  				(*out)[key] = nil
   191  			} else {
   192  				in, out := &val, &outVal
   193  				*out = new(Context)
   194  				(*in).DeepCopyInto(*out)
   195  			}
   196  			(*out)[key] = outVal
   197  		}
   198  	}
   199  	if in.Extensions != nil {
   200  		in, out := &in.Extensions, &out.Extensions
   201  		*out = make(map[string]runtime.Object, len(*in))
   202  		for key, val := range *in {
   203  			if val == nil {
   204  				(*out)[key] = nil
   205  			} else {
   206  				(*out)[key] = val.DeepCopyObject()
   207  			}
   208  		}
   209  	}
   210  	return
   211  }
   212  
   213  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
   214  func (in *Config) DeepCopy() *Config {
   215  	if in == nil {
   216  		return nil
   217  	}
   218  	out := new(Config)
   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 *Config) 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 *Context) DeepCopyInto(out *Context) {
   233  	*out = *in
   234  	if in.Extensions != nil {
   235  		in, out := &in.Extensions, &out.Extensions
   236  		*out = make(map[string]runtime.Object, len(*in))
   237  		for key, val := range *in {
   238  			if val == nil {
   239  				(*out)[key] = nil
   240  			} else {
   241  				(*out)[key] = val.DeepCopyObject()
   242  			}
   243  		}
   244  	}
   245  	return
   246  }
   247  
   248  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Context.
   249  func (in *Context) DeepCopy() *Context {
   250  	if in == nil {
   251  		return nil
   252  	}
   253  	out := new(Context)
   254  	in.DeepCopyInto(out)
   255  	return out
   256  }
   257  
   258  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   259  func (in *ExecConfig) DeepCopyInto(out *ExecConfig) {
   260  	*out = *in
   261  	if in.Args != nil {
   262  		in, out := &in.Args, &out.Args
   263  		*out = make([]string, len(*in))
   264  		copy(*out, *in)
   265  	}
   266  	if in.Env != nil {
   267  		in, out := &in.Env, &out.Env
   268  		*out = make([]ExecEnvVar, len(*in))
   269  		copy(*out, *in)
   270  	}
   271  	if in.Config != nil {
   272  		out.Config = in.Config.DeepCopyObject()
   273  	}
   274  	return
   275  }
   276  
   277  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecConfig.
   278  func (in *ExecConfig) DeepCopy() *ExecConfig {
   279  	if in == nil {
   280  		return nil
   281  	}
   282  	out := new(ExecConfig)
   283  	in.DeepCopyInto(out)
   284  	return out
   285  }
   286  
   287  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   288  func (in *ExecEnvVar) DeepCopyInto(out *ExecEnvVar) {
   289  	*out = *in
   290  	return
   291  }
   292  
   293  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecEnvVar.
   294  func (in *ExecEnvVar) DeepCopy() *ExecEnvVar {
   295  	if in == nil {
   296  		return nil
   297  	}
   298  	out := new(ExecEnvVar)
   299  	in.DeepCopyInto(out)
   300  	return out
   301  }
   302  
   303  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   304  func (in *Preferences) DeepCopyInto(out *Preferences) {
   305  	*out = *in
   306  	if in.Extensions != nil {
   307  		in, out := &in.Extensions, &out.Extensions
   308  		*out = make(map[string]runtime.Object, len(*in))
   309  		for key, val := range *in {
   310  			if val == nil {
   311  				(*out)[key] = nil
   312  			} else {
   313  				(*out)[key] = val.DeepCopyObject()
   314  			}
   315  		}
   316  	}
   317  	return
   318  }
   319  
   320  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preferences.
   321  func (in *Preferences) DeepCopy() *Preferences {
   322  	if in == nil {
   323  		return nil
   324  	}
   325  	out := new(Preferences)
   326  	in.DeepCopyInto(out)
   327  	return out
   328  }
   329  

View as plain text