github.com/Equinix-Metal/virtlet@v1.5.2-0.20210807010419-342346535dc5/pkg/api/virtlet.k8s/v1/zz_generated.deepcopy.go (about)

     1  // +build !ignore_autogenerated
     2  
     3  /*
     4  Copyright 2019 Mirantis
     5  
     6  Licensed under the Apache License, Version 2.0 (the "License");
     7  you may not use this file except in compliance with the License.
     8  You may obtain a copy of the License at
     9  
    10      http://www.apache.org/licenses/LICENSE-2.0
    11  
    12  Unless required by applicable law or agreed to in writing, software
    13  distributed under the License is distributed on an "AS IS" BASIS,
    14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  See the License for the specific language governing permissions and
    16  limitations under the License.
    17  */
    18  
    19  // Code generated by deepcopy-gen. DO NOT EDIT.
    20  
    21  package v1
    22  
    23  import (
    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.
    28  func (in *ImageTranslation) DeepCopyInto(out *ImageTranslation) {
    29  	*out = *in
    30  	if in.Rules != nil {
    31  		in, out := &in.Rules, &out.Rules
    32  		*out = make([]TranslationRule, len(*in))
    33  		copy(*out, *in)
    34  	}
    35  	if in.Transports != nil {
    36  		in, out := &in.Transports, &out.Transports
    37  		*out = make(map[string]TransportProfile, len(*in))
    38  		for key, val := range *in {
    39  			newVal := new(TransportProfile)
    40  			val.DeepCopyInto(newVal)
    41  			(*out)[key] = *newVal
    42  		}
    43  	}
    44  	return
    45  }
    46  
    47  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageTranslation.
    48  func (in *ImageTranslation) DeepCopy() *ImageTranslation {
    49  	if in == nil {
    50  		return nil
    51  	}
    52  	out := new(ImageTranslation)
    53  	in.DeepCopyInto(out)
    54  	return out
    55  }
    56  
    57  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    58  func (in *TLSCertificate) DeepCopyInto(out *TLSCertificate) {
    59  	*out = *in
    60  	return
    61  }
    62  
    63  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSCertificate.
    64  func (in *TLSCertificate) DeepCopy() *TLSCertificate {
    65  	if in == nil {
    66  		return nil
    67  	}
    68  	out := new(TLSCertificate)
    69  	in.DeepCopyInto(out)
    70  	return out
    71  }
    72  
    73  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    74  func (in *TLSConfig) DeepCopyInto(out *TLSConfig) {
    75  	*out = *in
    76  	if in.Certificates != nil {
    77  		in, out := &in.Certificates, &out.Certificates
    78  		*out = make([]TLSCertificate, len(*in))
    79  		copy(*out, *in)
    80  	}
    81  	return
    82  }
    83  
    84  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig.
    85  func (in *TLSConfig) DeepCopy() *TLSConfig {
    86  	if in == nil {
    87  		return nil
    88  	}
    89  	out := new(TLSConfig)
    90  	in.DeepCopyInto(out)
    91  	return out
    92  }
    93  
    94  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    95  func (in *TranslationRule) DeepCopyInto(out *TranslationRule) {
    96  	*out = *in
    97  	return
    98  }
    99  
   100  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslationRule.
   101  func (in *TranslationRule) DeepCopy() *TranslationRule {
   102  	if in == nil {
   103  		return nil
   104  	}
   105  	out := new(TranslationRule)
   106  	in.DeepCopyInto(out)
   107  	return out
   108  }
   109  
   110  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   111  func (in *TransportProfile) DeepCopyInto(out *TransportProfile) {
   112  	*out = *in
   113  	if in.MaxRedirects != nil {
   114  		in, out := &in.MaxRedirects, &out.MaxRedirects
   115  		if *in == nil {
   116  			*out = nil
   117  		} else {
   118  			*out = new(int)
   119  			**out = **in
   120  		}
   121  	}
   122  	if in.TLS != nil {
   123  		in, out := &in.TLS, &out.TLS
   124  		if *in == nil {
   125  			*out = nil
   126  		} else {
   127  			*out = new(TLSConfig)
   128  			(*in).DeepCopyInto(*out)
   129  		}
   130  	}
   131  	return
   132  }
   133  
   134  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransportProfile.
   135  func (in *TransportProfile) DeepCopy() *TransportProfile {
   136  	if in == nil {
   137  		return nil
   138  	}
   139  	out := new(TransportProfile)
   140  	in.DeepCopyInto(out)
   141  	return out
   142  }
   143  
   144  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   145  func (in *VirtletConfig) DeepCopyInto(out *VirtletConfig) {
   146  	*out = *in
   147  	if in.FDServerSocketPath != nil {
   148  		in, out := &in.FDServerSocketPath, &out.FDServerSocketPath
   149  		if *in == nil {
   150  			*out = nil
   151  		} else {
   152  			*out = new(string)
   153  			**out = **in
   154  		}
   155  	}
   156  	if in.DatabasePath != nil {
   157  		in, out := &in.DatabasePath, &out.DatabasePath
   158  		if *in == nil {
   159  			*out = nil
   160  		} else {
   161  			*out = new(string)
   162  			**out = **in
   163  		}
   164  	}
   165  	if in.DownloadProtocol != nil {
   166  		in, out := &in.DownloadProtocol, &out.DownloadProtocol
   167  		if *in == nil {
   168  			*out = nil
   169  		} else {
   170  			*out = new(string)
   171  			**out = **in
   172  		}
   173  	}
   174  	if in.ImageDir != nil {
   175  		in, out := &in.ImageDir, &out.ImageDir
   176  		if *in == nil {
   177  			*out = nil
   178  		} else {
   179  			*out = new(string)
   180  			**out = **in
   181  		}
   182  	}
   183  	if in.ImageTranslationConfigsDir != nil {
   184  		in, out := &in.ImageTranslationConfigsDir, &out.ImageTranslationConfigsDir
   185  		if *in == nil {
   186  			*out = nil
   187  		} else {
   188  			*out = new(string)
   189  			**out = **in
   190  		}
   191  	}
   192  	if in.SkipImageTranslation != nil {
   193  		in, out := &in.SkipImageTranslation, &out.SkipImageTranslation
   194  		if *in == nil {
   195  			*out = nil
   196  		} else {
   197  			*out = new(bool)
   198  			**out = **in
   199  		}
   200  	}
   201  	if in.LibvirtURI != nil {
   202  		in, out := &in.LibvirtURI, &out.LibvirtURI
   203  		if *in == nil {
   204  			*out = nil
   205  		} else {
   206  			*out = new(string)
   207  			**out = **in
   208  		}
   209  	}
   210  	if in.RawDevices != nil {
   211  		in, out := &in.RawDevices, &out.RawDevices
   212  		if *in == nil {
   213  			*out = nil
   214  		} else {
   215  			*out = new(string)
   216  			**out = **in
   217  		}
   218  	}
   219  	if in.CRISocketPath != nil {
   220  		in, out := &in.CRISocketPath, &out.CRISocketPath
   221  		if *in == nil {
   222  			*out = nil
   223  		} else {
   224  			*out = new(string)
   225  			**out = **in
   226  		}
   227  	}
   228  	if in.DisableLogging != nil {
   229  		in, out := &in.DisableLogging, &out.DisableLogging
   230  		if *in == nil {
   231  			*out = nil
   232  		} else {
   233  			*out = new(bool)
   234  			**out = **in
   235  		}
   236  	}
   237  	if in.DisableKVM != nil {
   238  		in, out := &in.DisableKVM, &out.DisableKVM
   239  		if *in == nil {
   240  			*out = nil
   241  		} else {
   242  			*out = new(bool)
   243  			**out = **in
   244  		}
   245  	}
   246  	if in.EnableSriov != nil {
   247  		in, out := &in.EnableSriov, &out.EnableSriov
   248  		if *in == nil {
   249  			*out = nil
   250  		} else {
   251  			*out = new(bool)
   252  			**out = **in
   253  		}
   254  	}
   255  	if in.CNIPluginDir != nil {
   256  		in, out := &in.CNIPluginDir, &out.CNIPluginDir
   257  		if *in == nil {
   258  			*out = nil
   259  		} else {
   260  			*out = new(string)
   261  			**out = **in
   262  		}
   263  	}
   264  	if in.CNIConfigDir != nil {
   265  		in, out := &in.CNIConfigDir, &out.CNIConfigDir
   266  		if *in == nil {
   267  			*out = nil
   268  		} else {
   269  			*out = new(string)
   270  			**out = **in
   271  		}
   272  	}
   273  	if in.CalicoSubnetSize != nil {
   274  		in, out := &in.CalicoSubnetSize, &out.CalicoSubnetSize
   275  		if *in == nil {
   276  			*out = nil
   277  		} else {
   278  			*out = new(int)
   279  			**out = **in
   280  		}
   281  	}
   282  	if in.EnableRegexpImageTranslation != nil {
   283  		in, out := &in.EnableRegexpImageTranslation, &out.EnableRegexpImageTranslation
   284  		if *in == nil {
   285  			*out = nil
   286  		} else {
   287  			*out = new(bool)
   288  			**out = **in
   289  		}
   290  	}
   291  	if in.CPUModel != nil {
   292  		in, out := &in.CPUModel, &out.CPUModel
   293  		if *in == nil {
   294  			*out = nil
   295  		} else {
   296  			*out = new(string)
   297  			**out = **in
   298  		}
   299  	}
   300  	if in.StreamPort != nil {
   301  		in, out := &in.StreamPort, &out.StreamPort
   302  		if *in == nil {
   303  			*out = nil
   304  		} else {
   305  			*out = new(int)
   306  			**out = **in
   307  		}
   308  	}
   309  	if in.LogLevel != nil {
   310  		in, out := &in.LogLevel, &out.LogLevel
   311  		if *in == nil {
   312  			*out = nil
   313  		} else {
   314  			*out = new(int)
   315  			**out = **in
   316  		}
   317  	}
   318  	if in.KubeletRootDir != nil {
   319  		in, out := &in.KubeletRootDir, &out.KubeletRootDir
   320  		if *in == nil {
   321  			*out = nil
   322  		} else {
   323  			*out = new(string)
   324  			**out = **in
   325  		}
   326  	}
   327  	return
   328  }
   329  
   330  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletConfig.
   331  func (in *VirtletConfig) DeepCopy() *VirtletConfig {
   332  	if in == nil {
   333  		return nil
   334  	}
   335  	out := new(VirtletConfig)
   336  	in.DeepCopyInto(out)
   337  	return out
   338  }
   339  
   340  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   341  func (in *VirtletConfigMapping) DeepCopyInto(out *VirtletConfigMapping) {
   342  	*out = *in
   343  	out.TypeMeta = in.TypeMeta
   344  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   345  	in.Spec.DeepCopyInto(&out.Spec)
   346  	return
   347  }
   348  
   349  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletConfigMapping.
   350  func (in *VirtletConfigMapping) DeepCopy() *VirtletConfigMapping {
   351  	if in == nil {
   352  		return nil
   353  	}
   354  	out := new(VirtletConfigMapping)
   355  	in.DeepCopyInto(out)
   356  	return out
   357  }
   358  
   359  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   360  func (in *VirtletConfigMapping) DeepCopyObject() runtime.Object {
   361  	if c := in.DeepCopy(); c != nil {
   362  		return c
   363  	}
   364  	return nil
   365  }
   366  
   367  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   368  func (in *VirtletConfigMappingList) DeepCopyInto(out *VirtletConfigMappingList) {
   369  	*out = *in
   370  	out.TypeMeta = in.TypeMeta
   371  	out.ListMeta = in.ListMeta
   372  	if in.Items != nil {
   373  		in, out := &in.Items, &out.Items
   374  		*out = make([]VirtletConfigMapping, len(*in))
   375  		for i := range *in {
   376  			(*in)[i].DeepCopyInto(&(*out)[i])
   377  		}
   378  	}
   379  	return
   380  }
   381  
   382  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletConfigMappingList.
   383  func (in *VirtletConfigMappingList) DeepCopy() *VirtletConfigMappingList {
   384  	if in == nil {
   385  		return nil
   386  	}
   387  	out := new(VirtletConfigMappingList)
   388  	in.DeepCopyInto(out)
   389  	return out
   390  }
   391  
   392  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   393  func (in *VirtletConfigMappingList) DeepCopyObject() runtime.Object {
   394  	if c := in.DeepCopy(); c != nil {
   395  		return c
   396  	}
   397  	return nil
   398  }
   399  
   400  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   401  func (in *VirtletConfigMappingSpec) DeepCopyInto(out *VirtletConfigMappingSpec) {
   402  	*out = *in
   403  	out.TypeMeta = in.TypeMeta
   404  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   405  	if in.NodeSelector != nil {
   406  		in, out := &in.NodeSelector, &out.NodeSelector
   407  		*out = make(map[string]string, len(*in))
   408  		for key, val := range *in {
   409  			(*out)[key] = val
   410  		}
   411  	}
   412  	if in.Config != nil {
   413  		in, out := &in.Config, &out.Config
   414  		if *in == nil {
   415  			*out = nil
   416  		} else {
   417  			*out = new(VirtletConfig)
   418  			(*in).DeepCopyInto(*out)
   419  		}
   420  	}
   421  	return
   422  }
   423  
   424  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletConfigMappingSpec.
   425  func (in *VirtletConfigMappingSpec) DeepCopy() *VirtletConfigMappingSpec {
   426  	if in == nil {
   427  		return nil
   428  	}
   429  	out := new(VirtletConfigMappingSpec)
   430  	in.DeepCopyInto(out)
   431  	return out
   432  }
   433  
   434  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   435  func (in *VirtletImageMapping) DeepCopyInto(out *VirtletImageMapping) {
   436  	*out = *in
   437  	out.TypeMeta = in.TypeMeta
   438  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   439  	in.Spec.DeepCopyInto(&out.Spec)
   440  	return
   441  }
   442  
   443  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletImageMapping.
   444  func (in *VirtletImageMapping) DeepCopy() *VirtletImageMapping {
   445  	if in == nil {
   446  		return nil
   447  	}
   448  	out := new(VirtletImageMapping)
   449  	in.DeepCopyInto(out)
   450  	return out
   451  }
   452  
   453  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   454  func (in *VirtletImageMapping) DeepCopyObject() runtime.Object {
   455  	if c := in.DeepCopy(); c != nil {
   456  		return c
   457  	}
   458  	return nil
   459  }
   460  
   461  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   462  func (in *VirtletImageMappingList) DeepCopyInto(out *VirtletImageMappingList) {
   463  	*out = *in
   464  	out.TypeMeta = in.TypeMeta
   465  	out.ListMeta = in.ListMeta
   466  	if in.Items != nil {
   467  		in, out := &in.Items, &out.Items
   468  		*out = make([]VirtletImageMapping, len(*in))
   469  		for i := range *in {
   470  			(*in)[i].DeepCopyInto(&(*out)[i])
   471  		}
   472  	}
   473  	return
   474  }
   475  
   476  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletImageMappingList.
   477  func (in *VirtletImageMappingList) DeepCopy() *VirtletImageMappingList {
   478  	if in == nil {
   479  		return nil
   480  	}
   481  	out := new(VirtletImageMappingList)
   482  	in.DeepCopyInto(out)
   483  	return out
   484  }
   485  
   486  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   487  func (in *VirtletImageMappingList) DeepCopyObject() runtime.Object {
   488  	if c := in.DeepCopy(); c != nil {
   489  		return c
   490  	}
   491  	return nil
   492  }