kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/cluster/v1alpha1/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2020 The KubeSphere 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 controller-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 *Cluster) DeepCopyInto(out *Cluster) { 30 *out = *in 31 out.TypeMeta = in.TypeMeta 32 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 33 in.Spec.DeepCopyInto(&out.Spec) 34 in.Status.DeepCopyInto(&out.Status) 35 } 36 37 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. 38 func (in *Cluster) DeepCopy() *Cluster { 39 if in == nil { 40 return nil 41 } 42 out := new(Cluster) 43 in.DeepCopyInto(out) 44 return out 45 } 46 47 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 48 func (in *Cluster) DeepCopyObject() runtime.Object { 49 if c := in.DeepCopy(); c != nil { 50 return c 51 } 52 return nil 53 } 54 55 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 56 func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition) { 57 *out = *in 58 in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime) 59 in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) 60 } 61 62 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition. 63 func (in *ClusterCondition) DeepCopy() *ClusterCondition { 64 if in == nil { 65 return nil 66 } 67 out := new(ClusterCondition) 68 in.DeepCopyInto(out) 69 return out 70 } 71 72 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 73 func (in *ClusterList) DeepCopyInto(out *ClusterList) { 74 *out = *in 75 out.TypeMeta = in.TypeMeta 76 in.ListMeta.DeepCopyInto(&out.ListMeta) 77 if in.Items != nil { 78 in, out := &in.Items, &out.Items 79 *out = make([]Cluster, len(*in)) 80 for i := range *in { 81 (*in)[i].DeepCopyInto(&(*out)[i]) 82 } 83 } 84 } 85 86 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. 87 func (in *ClusterList) DeepCopy() *ClusterList { 88 if in == nil { 89 return nil 90 } 91 out := new(ClusterList) 92 in.DeepCopyInto(out) 93 return out 94 } 95 96 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 97 func (in *ClusterList) DeepCopyObject() runtime.Object { 98 if c := in.DeepCopy(); c != nil { 99 return c 100 } 101 return nil 102 } 103 104 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 105 func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { 106 *out = *in 107 in.Connection.DeepCopyInto(&out.Connection) 108 } 109 110 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. 111 func (in *ClusterSpec) DeepCopy() *ClusterSpec { 112 if in == nil { 113 return nil 114 } 115 out := new(ClusterSpec) 116 in.DeepCopyInto(out) 117 return out 118 } 119 120 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 121 func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { 122 *out = *in 123 if in.Conditions != nil { 124 in, out := &in.Conditions, &out.Conditions 125 *out = make([]ClusterCondition, len(*in)) 126 for i := range *in { 127 (*in)[i].DeepCopyInto(&(*out)[i]) 128 } 129 } 130 if in.Zones != nil { 131 in, out := &in.Zones, &out.Zones 132 *out = make([]string, len(*in)) 133 copy(*out, *in) 134 } 135 if in.Region != nil { 136 in, out := &in.Region, &out.Region 137 *out = new(string) 138 **out = **in 139 } 140 if in.Configz != nil { 141 in, out := &in.Configz, &out.Configz 142 *out = make(map[string]bool, len(*in)) 143 for key, val := range *in { 144 (*out)[key] = val 145 } 146 } 147 } 148 149 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus. 150 func (in *ClusterStatus) DeepCopy() *ClusterStatus { 151 if in == nil { 152 return nil 153 } 154 out := new(ClusterStatus) 155 in.DeepCopyInto(out) 156 return out 157 } 158 159 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 160 func (in *Connection) DeepCopyInto(out *Connection) { 161 *out = *in 162 if in.KubeConfig != nil { 163 in, out := &in.KubeConfig, &out.KubeConfig 164 *out = make([]byte, len(*in)) 165 copy(*out, *in) 166 } 167 } 168 169 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Connection. 170 func (in *Connection) DeepCopy() *Connection { 171 if in == nil { 172 return nil 173 } 174 out := new(Connection) 175 in.DeepCopyInto(out) 176 return out 177 }