...

Source file src/kubevirt.io/api/migrations/v1alpha1/deepcopy_generated.go

Documentation: kubevirt.io/api/migrations/v1alpha1

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The KubeVirt 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 v1alpha1
    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 LabelSelector) DeepCopyInto(out *LabelSelector) {
    30  	{
    31  		in := &in
    32  		*out = make(LabelSelector, len(*in))
    33  		for key, val := range *in {
    34  			(*out)[key] = val
    35  		}
    36  		return
    37  	}
    38  }
    39  
    40  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector.
    41  func (in LabelSelector) DeepCopy() LabelSelector {
    42  	if in == nil {
    43  		return nil
    44  	}
    45  	out := new(LabelSelector)
    46  	in.DeepCopyInto(out)
    47  	return *out
    48  }
    49  
    50  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    51  func (in *MigrationPolicy) DeepCopyInto(out *MigrationPolicy) {
    52  	*out = *in
    53  	out.TypeMeta = in.TypeMeta
    54  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    55  	in.Spec.DeepCopyInto(&out.Spec)
    56  	out.Status = in.Status
    57  	return
    58  }
    59  
    60  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicy.
    61  func (in *MigrationPolicy) DeepCopy() *MigrationPolicy {
    62  	if in == nil {
    63  		return nil
    64  	}
    65  	out := new(MigrationPolicy)
    66  	in.DeepCopyInto(out)
    67  	return out
    68  }
    69  
    70  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    71  func (in *MigrationPolicy) DeepCopyObject() runtime.Object {
    72  	if c := in.DeepCopy(); c != nil {
    73  		return c
    74  	}
    75  	return nil
    76  }
    77  
    78  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    79  func (in *MigrationPolicyList) DeepCopyInto(out *MigrationPolicyList) {
    80  	*out = *in
    81  	out.TypeMeta = in.TypeMeta
    82  	in.ListMeta.DeepCopyInto(&out.ListMeta)
    83  	if in.Items != nil {
    84  		in, out := &in.Items, &out.Items
    85  		*out = make([]MigrationPolicy, len(*in))
    86  		for i := range *in {
    87  			(*in)[i].DeepCopyInto(&(*out)[i])
    88  		}
    89  	}
    90  	return
    91  }
    92  
    93  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicyList.
    94  func (in *MigrationPolicyList) DeepCopy() *MigrationPolicyList {
    95  	if in == nil {
    96  		return nil
    97  	}
    98  	out := new(MigrationPolicyList)
    99  	in.DeepCopyInto(out)
   100  	return out
   101  }
   102  
   103  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   104  func (in *MigrationPolicyList) DeepCopyObject() runtime.Object {
   105  	if c := in.DeepCopy(); c != nil {
   106  		return c
   107  	}
   108  	return nil
   109  }
   110  
   111  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   112  func (in *MigrationPolicySpec) DeepCopyInto(out *MigrationPolicySpec) {
   113  	*out = *in
   114  	if in.Selectors != nil {
   115  		in, out := &in.Selectors, &out.Selectors
   116  		*out = new(Selectors)
   117  		(*in).DeepCopyInto(*out)
   118  	}
   119  	if in.AllowAutoConverge != nil {
   120  		in, out := &in.AllowAutoConverge, &out.AllowAutoConverge
   121  		*out = new(bool)
   122  		**out = **in
   123  	}
   124  	if in.BandwidthPerMigration != nil {
   125  		in, out := &in.BandwidthPerMigration, &out.BandwidthPerMigration
   126  		x := (*in).DeepCopy()
   127  		*out = &x
   128  	}
   129  	if in.CompletionTimeoutPerGiB != nil {
   130  		in, out := &in.CompletionTimeoutPerGiB, &out.CompletionTimeoutPerGiB
   131  		*out = new(int64)
   132  		**out = **in
   133  	}
   134  	if in.AllowPostCopy != nil {
   135  		in, out := &in.AllowPostCopy, &out.AllowPostCopy
   136  		*out = new(bool)
   137  		**out = **in
   138  	}
   139  	return
   140  }
   141  
   142  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicySpec.
   143  func (in *MigrationPolicySpec) DeepCopy() *MigrationPolicySpec {
   144  	if in == nil {
   145  		return nil
   146  	}
   147  	out := new(MigrationPolicySpec)
   148  	in.DeepCopyInto(out)
   149  	return out
   150  }
   151  
   152  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   153  func (in *MigrationPolicyStatus) DeepCopyInto(out *MigrationPolicyStatus) {
   154  	*out = *in
   155  	return
   156  }
   157  
   158  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicyStatus.
   159  func (in *MigrationPolicyStatus) DeepCopy() *MigrationPolicyStatus {
   160  	if in == nil {
   161  		return nil
   162  	}
   163  	out := new(MigrationPolicyStatus)
   164  	in.DeepCopyInto(out)
   165  	return out
   166  }
   167  
   168  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   169  func (in *Selectors) DeepCopyInto(out *Selectors) {
   170  	*out = *in
   171  	if in.NamespaceSelector != nil {
   172  		in, out := &in.NamespaceSelector, &out.NamespaceSelector
   173  		*out = make(LabelSelector, len(*in))
   174  		for key, val := range *in {
   175  			(*out)[key] = val
   176  		}
   177  	}
   178  	if in.VirtualMachineInstanceSelector != nil {
   179  		in, out := &in.VirtualMachineInstanceSelector, &out.VirtualMachineInstanceSelector
   180  		*out = make(LabelSelector, len(*in))
   181  		for key, val := range *in {
   182  			(*out)[key] = val
   183  		}
   184  	}
   185  	return
   186  }
   187  
   188  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selectors.
   189  func (in *Selectors) DeepCopy() *Selectors {
   190  	if in == nil {
   191  		return nil
   192  	}
   193  	out := new(Selectors)
   194  	in.DeepCopyInto(out)
   195  	return out
   196  }
   197  

View as plain text