github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/apis/workloads/v1alpha1/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright (C) 2022-2023 ApeCloud Co., Ltd 6 7 This file is part of KubeBlocks project 8 9 This program is free software: you can redistribute it and/or modify 10 it under the terms of the GNU Affero General Public License as published by 11 the Free Software Foundation, either version 3 of the License, or 12 (at your option) any later version. 13 14 This program is distributed in the hope that it will be useful 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU Affero General Public License for more details. 18 19 You should have received a copy of the GNU Affero General Public License 20 along with this program. If not, see <http://www.gnu.org/licenses/>. 21 */ 22 23 // Code generated by controller-gen. DO NOT EDIT. 24 25 package v1alpha1 26 27 import ( 28 corev1 "k8s.io/api/core/v1" 29 "k8s.io/apimachinery/pkg/apis/meta/v1" 30 "k8s.io/apimachinery/pkg/runtime" 31 ) 32 33 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 34 func (in *Action) DeepCopyInto(out *Action) { 35 *out = *in 36 if in.Command != nil { 37 in, out := &in.Command, &out.Command 38 *out = make([]string, len(*in)) 39 copy(*out, *in) 40 } 41 } 42 43 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Action. 44 func (in *Action) DeepCopy() *Action { 45 if in == nil { 46 return nil 47 } 48 out := new(Action) 49 in.DeepCopyInto(out) 50 return out 51 } 52 53 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 54 func (in *Credential) DeepCopyInto(out *Credential) { 55 *out = *in 56 in.Username.DeepCopyInto(&out.Username) 57 in.Password.DeepCopyInto(&out.Password) 58 } 59 60 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Credential. 61 func (in *Credential) DeepCopy() *Credential { 62 if in == nil { 63 return nil 64 } 65 out := new(Credential) 66 in.DeepCopyInto(out) 67 return out 68 } 69 70 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 71 func (in *CredentialVar) DeepCopyInto(out *CredentialVar) { 72 *out = *in 73 if in.ValueFrom != nil { 74 in, out := &in.ValueFrom, &out.ValueFrom 75 *out = new(corev1.EnvVarSource) 76 (*in).DeepCopyInto(*out) 77 } 78 } 79 80 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialVar. 81 func (in *CredentialVar) DeepCopy() *CredentialVar { 82 if in == nil { 83 return nil 84 } 85 out := new(CredentialVar) 86 in.DeepCopyInto(out) 87 return out 88 } 89 90 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 91 func (in *MemberStatus) DeepCopyInto(out *MemberStatus) { 92 *out = *in 93 out.ReplicaRole = in.ReplicaRole 94 } 95 96 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemberStatus. 97 func (in *MemberStatus) DeepCopy() *MemberStatus { 98 if in == nil { 99 return nil 100 } 101 out := new(MemberStatus) 102 in.DeepCopyInto(out) 103 return out 104 } 105 106 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 107 func (in *MembershipReconfiguration) DeepCopyInto(out *MembershipReconfiguration) { 108 *out = *in 109 if in.SwitchoverAction != nil { 110 in, out := &in.SwitchoverAction, &out.SwitchoverAction 111 *out = new(Action) 112 (*in).DeepCopyInto(*out) 113 } 114 if in.MemberJoinAction != nil { 115 in, out := &in.MemberJoinAction, &out.MemberJoinAction 116 *out = new(Action) 117 (*in).DeepCopyInto(*out) 118 } 119 if in.MemberLeaveAction != nil { 120 in, out := &in.MemberLeaveAction, &out.MemberLeaveAction 121 *out = new(Action) 122 (*in).DeepCopyInto(*out) 123 } 124 if in.LogSyncAction != nil { 125 in, out := &in.LogSyncAction, &out.LogSyncAction 126 *out = new(Action) 127 (*in).DeepCopyInto(*out) 128 } 129 if in.PromoteAction != nil { 130 in, out := &in.PromoteAction, &out.PromoteAction 131 *out = new(Action) 132 (*in).DeepCopyInto(*out) 133 } 134 } 135 136 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MembershipReconfiguration. 137 func (in *MembershipReconfiguration) DeepCopy() *MembershipReconfiguration { 138 if in == nil { 139 return nil 140 } 141 out := new(MembershipReconfiguration) 142 in.DeepCopyInto(out) 143 return out 144 } 145 146 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 147 func (in *ReplicaRole) DeepCopyInto(out *ReplicaRole) { 148 *out = *in 149 } 150 151 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaRole. 152 func (in *ReplicaRole) DeepCopy() *ReplicaRole { 153 if in == nil { 154 return nil 155 } 156 out := new(ReplicaRole) 157 in.DeepCopyInto(out) 158 return out 159 } 160 161 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 162 func (in *ReplicatedStateMachine) DeepCopyInto(out *ReplicatedStateMachine) { 163 *out = *in 164 out.TypeMeta = in.TypeMeta 165 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 166 in.Spec.DeepCopyInto(&out.Spec) 167 in.Status.DeepCopyInto(&out.Status) 168 } 169 170 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicatedStateMachine. 171 func (in *ReplicatedStateMachine) DeepCopy() *ReplicatedStateMachine { 172 if in == nil { 173 return nil 174 } 175 out := new(ReplicatedStateMachine) 176 in.DeepCopyInto(out) 177 return out 178 } 179 180 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 181 func (in *ReplicatedStateMachine) DeepCopyObject() runtime.Object { 182 if c := in.DeepCopy(); c != nil { 183 return c 184 } 185 return nil 186 } 187 188 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 189 func (in *ReplicatedStateMachineList) DeepCopyInto(out *ReplicatedStateMachineList) { 190 *out = *in 191 out.TypeMeta = in.TypeMeta 192 in.ListMeta.DeepCopyInto(&out.ListMeta) 193 if in.Items != nil { 194 in, out := &in.Items, &out.Items 195 *out = make([]ReplicatedStateMachine, len(*in)) 196 for i := range *in { 197 (*in)[i].DeepCopyInto(&(*out)[i]) 198 } 199 } 200 } 201 202 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicatedStateMachineList. 203 func (in *ReplicatedStateMachineList) DeepCopy() *ReplicatedStateMachineList { 204 if in == nil { 205 return nil 206 } 207 out := new(ReplicatedStateMachineList) 208 in.DeepCopyInto(out) 209 return out 210 } 211 212 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 213 func (in *ReplicatedStateMachineList) DeepCopyObject() runtime.Object { 214 if c := in.DeepCopy(); c != nil { 215 return c 216 } 217 return nil 218 } 219 220 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 221 func (in *ReplicatedStateMachineSpec) DeepCopyInto(out *ReplicatedStateMachineSpec) { 222 *out = *in 223 if in.Replicas != nil { 224 in, out := &in.Replicas, &out.Replicas 225 *out = new(int32) 226 **out = **in 227 } 228 if in.Selector != nil { 229 in, out := &in.Selector, &out.Selector 230 *out = new(v1.LabelSelector) 231 (*in).DeepCopyInto(*out) 232 } 233 if in.Service != nil { 234 in, out := &in.Service, &out.Service 235 *out = new(corev1.Service) 236 (*in).DeepCopyInto(*out) 237 } 238 if in.AlternativeServices != nil { 239 in, out := &in.AlternativeServices, &out.AlternativeServices 240 *out = make([]corev1.Service, len(*in)) 241 for i := range *in { 242 (*in)[i].DeepCopyInto(&(*out)[i]) 243 } 244 } 245 in.Template.DeepCopyInto(&out.Template) 246 if in.VolumeClaimTemplates != nil { 247 in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates 248 *out = make([]corev1.PersistentVolumeClaim, len(*in)) 249 for i := range *in { 250 (*in)[i].DeepCopyInto(&(*out)[i]) 251 } 252 } 253 in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) 254 if in.Roles != nil { 255 in, out := &in.Roles, &out.Roles 256 *out = make([]ReplicaRole, len(*in)) 257 copy(*out, *in) 258 } 259 if in.RoleProbe != nil { 260 in, out := &in.RoleProbe, &out.RoleProbe 261 *out = new(RoleProbe) 262 (*in).DeepCopyInto(*out) 263 } 264 if in.MembershipReconfiguration != nil { 265 in, out := &in.MembershipReconfiguration, &out.MembershipReconfiguration 266 *out = new(MembershipReconfiguration) 267 (*in).DeepCopyInto(*out) 268 } 269 if in.MemberUpdateStrategy != nil { 270 in, out := &in.MemberUpdateStrategy, &out.MemberUpdateStrategy 271 *out = new(MemberUpdateStrategy) 272 **out = **in 273 } 274 if in.Credential != nil { 275 in, out := &in.Credential, &out.Credential 276 *out = new(Credential) 277 (*in).DeepCopyInto(*out) 278 } 279 } 280 281 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicatedStateMachineSpec. 282 func (in *ReplicatedStateMachineSpec) DeepCopy() *ReplicatedStateMachineSpec { 283 if in == nil { 284 return nil 285 } 286 out := new(ReplicatedStateMachineSpec) 287 in.DeepCopyInto(out) 288 return out 289 } 290 291 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 292 func (in *ReplicatedStateMachineStatus) DeepCopyInto(out *ReplicatedStateMachineStatus) { 293 *out = *in 294 in.StatefulSetStatus.DeepCopyInto(&out.StatefulSetStatus) 295 if in.MembersStatus != nil { 296 in, out := &in.MembersStatus, &out.MembersStatus 297 *out = make([]MemberStatus, len(*in)) 298 copy(*out, *in) 299 } 300 } 301 302 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicatedStateMachineStatus. 303 func (in *ReplicatedStateMachineStatus) DeepCopy() *ReplicatedStateMachineStatus { 304 if in == nil { 305 return nil 306 } 307 out := new(ReplicatedStateMachineStatus) 308 in.DeepCopyInto(out) 309 return out 310 } 311 312 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 313 func (in *RoleProbe) DeepCopyInto(out *RoleProbe) { 314 *out = *in 315 if in.BuiltinHandler != nil { 316 in, out := &in.BuiltinHandler, &out.BuiltinHandler 317 *out = new(string) 318 **out = **in 319 } 320 if in.CustomHandler != nil { 321 in, out := &in.CustomHandler, &out.CustomHandler 322 *out = make([]Action, len(*in)) 323 for i := range *in { 324 (*in)[i].DeepCopyInto(&(*out)[i]) 325 } 326 } 327 } 328 329 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleProbe. 330 func (in *RoleProbe) DeepCopy() *RoleProbe { 331 if in == nil { 332 return nil 333 } 334 out := new(RoleProbe) 335 in.DeepCopyInto(out) 336 return out 337 }