sigs.k8s.io/cluster-api@v1.7.1/cmd/clusterctl/internal/test/providers/controlplane/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 3 /* 4 Copyright The Kubernetes Authors. 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 controller-gen. DO NOT EDIT. 20 21 package controlplane 22 23 import ( 24 "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 *GenericControlPlane) DeepCopyInto(out *GenericControlPlane) { 29 *out = *in 30 out.TypeMeta = in.TypeMeta 31 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 32 out.Spec = in.Spec 33 } 34 35 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericControlPlane. 36 func (in *GenericControlPlane) DeepCopy() *GenericControlPlane { 37 if in == nil { 38 return nil 39 } 40 out := new(GenericControlPlane) 41 in.DeepCopyInto(out) 42 return out 43 } 44 45 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 46 func (in *GenericControlPlane) DeepCopyObject() runtime.Object { 47 if c := in.DeepCopy(); c != nil { 48 return c 49 } 50 return nil 51 } 52 53 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 54 func (in *GenericControlPlaneList) DeepCopyInto(out *GenericControlPlaneList) { 55 *out = *in 56 out.TypeMeta = in.TypeMeta 57 in.ListMeta.DeepCopyInto(&out.ListMeta) 58 if in.Items != nil { 59 in, out := &in.Items, &out.Items 60 *out = make([]GenericControlPlane, len(*in)) 61 for i := range *in { 62 (*in)[i].DeepCopyInto(&(*out)[i]) 63 } 64 } 65 } 66 67 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericControlPlaneList. 68 func (in *GenericControlPlaneList) DeepCopy() *GenericControlPlaneList { 69 if in == nil { 70 return nil 71 } 72 out := new(GenericControlPlaneList) 73 in.DeepCopyInto(out) 74 return out 75 } 76 77 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 78 func (in *GenericControlPlaneList) DeepCopyObject() runtime.Object { 79 if c := in.DeepCopy(); c != nil { 80 return c 81 } 82 return nil 83 } 84 85 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 86 func (in *GenericControlPlaneSpec) DeepCopyInto(out *GenericControlPlaneSpec) { 87 *out = *in 88 out.MachineTemplate = in.MachineTemplate 89 } 90 91 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericControlPlaneSpec. 92 func (in *GenericControlPlaneSpec) DeepCopy() *GenericControlPlaneSpec { 93 if in == nil { 94 return nil 95 } 96 out := new(GenericControlPlaneSpec) 97 in.DeepCopyInto(out) 98 return out 99 } 100 101 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 102 func (in *GenericMachineTemplate) DeepCopyInto(out *GenericMachineTemplate) { 103 *out = *in 104 out.InfrastructureRef = in.InfrastructureRef 105 } 106 107 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericMachineTemplate. 108 func (in *GenericMachineTemplate) DeepCopy() *GenericMachineTemplate { 109 if in == nil { 110 return nil 111 } 112 out := new(GenericMachineTemplate) 113 in.DeepCopyInto(out) 114 return out 115 }