kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/auditing/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 corev1 "k8s.io/api/core/v1" 26 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 27 runtime "k8s.io/apimachinery/pkg/runtime" 28 ) 29 30 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 31 func (in *AuditSinkPolicy) DeepCopyInto(out *AuditSinkPolicy) { 32 *out = *in 33 if in.ArchivingRuleSelector != nil { 34 in, out := &in.ArchivingRuleSelector, &out.ArchivingRuleSelector 35 *out = new(v1.LabelSelector) 36 (*in).DeepCopyInto(*out) 37 } 38 if in.AlertingRuleSelector != nil { 39 in, out := &in.AlertingRuleSelector, &out.AlertingRuleSelector 40 *out = new(v1.LabelSelector) 41 (*in).DeepCopyInto(*out) 42 } 43 } 44 45 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditSinkPolicy. 46 func (in *AuditSinkPolicy) DeepCopy() *AuditSinkPolicy { 47 if in == nil { 48 return nil 49 } 50 out := new(AuditSinkPolicy) 51 in.DeepCopyInto(out) 52 return out 53 } 54 55 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 56 func (in *DynamicAuditConfig) DeepCopyInto(out *DynamicAuditConfig) { 57 *out = *in 58 if in.Throttle != nil { 59 in, out := &in.Throttle, &out.Throttle 60 *out = new(WebhookThrottleConfig) 61 (*in).DeepCopyInto(*out) 62 } 63 if in.Policy != nil { 64 in, out := &in.Policy, &out.Policy 65 *out = new(Policy) 66 (*in).DeepCopyInto(*out) 67 } 68 } 69 70 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicAuditConfig. 71 func (in *DynamicAuditConfig) DeepCopy() *DynamicAuditConfig { 72 if in == nil { 73 return nil 74 } 75 out := new(DynamicAuditConfig) 76 in.DeepCopyInto(out) 77 return out 78 } 79 80 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 81 func (in *PolicyRule) DeepCopyInto(out *PolicyRule) { 82 *out = *in 83 if in.List != nil { 84 in, out := &in.List, &out.List 85 *out = make([]string, len(*in)) 86 copy(*out, *in) 87 } 88 } 89 90 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule. 91 func (in *PolicyRule) DeepCopy() *PolicyRule { 92 if in == nil { 93 return nil 94 } 95 out := new(PolicyRule) 96 in.DeepCopyInto(out) 97 return out 98 } 99 100 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 101 func (in *Receiver) DeepCopyInto(out *Receiver) { 102 *out = *in 103 in.ReceiverConfig.DeepCopyInto(out.ReceiverConfig) 104 } 105 106 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Receiver. 107 func (in *Receiver) DeepCopy() *Receiver { 108 if in == nil { 109 return nil 110 } 111 out := new(Receiver) 112 in.DeepCopyInto(out) 113 return out 114 } 115 116 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 117 func (in *Rule) DeepCopyInto(out *Rule) { 118 *out = *in 119 out.TypeMeta = in.TypeMeta 120 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 121 in.Spec.DeepCopyInto(&out.Spec) 122 out.Status = in.Status 123 } 124 125 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule. 126 func (in *Rule) DeepCopy() *Rule { 127 if in == nil { 128 return nil 129 } 130 out := new(Rule) 131 in.DeepCopyInto(out) 132 return out 133 } 134 135 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 136 func (in *Rule) DeepCopyObject() runtime.Object { 137 if c := in.DeepCopy(); c != nil { 138 return c 139 } 140 return nil 141 } 142 143 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 144 func (in *RuleList) DeepCopyInto(out *RuleList) { 145 *out = *in 146 out.TypeMeta = in.TypeMeta 147 in.ListMeta.DeepCopyInto(&out.ListMeta) 148 if in.Items != nil { 149 in, out := &in.Items, &out.Items 150 *out = make([]Rule, len(*in)) 151 for i := range *in { 152 (*in)[i].DeepCopyInto(&(*out)[i]) 153 } 154 } 155 } 156 157 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList. 158 func (in *RuleList) DeepCopy() *RuleList { 159 if in == nil { 160 return nil 161 } 162 out := new(RuleList) 163 in.DeepCopyInto(out) 164 return out 165 } 166 167 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 168 func (in *RuleList) DeepCopyObject() runtime.Object { 169 if c := in.DeepCopy(); c != nil { 170 return c 171 } 172 return nil 173 } 174 175 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 176 func (in *RuleSpec) DeepCopyInto(out *RuleSpec) { 177 *out = *in 178 if in.PolicyRules != nil { 179 in, out := &in.PolicyRules, &out.PolicyRules 180 *out = make([]PolicyRule, len(*in)) 181 for i := range *in { 182 (*in)[i].DeepCopyInto(&(*out)[i]) 183 } 184 } 185 } 186 187 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleSpec. 188 func (in *RuleSpec) DeepCopy() *RuleSpec { 189 if in == nil { 190 return nil 191 } 192 out := new(RuleSpec) 193 in.DeepCopyInto(out) 194 return out 195 } 196 197 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 198 func (in *RuleStatus) DeepCopyInto(out *RuleStatus) { 199 *out = *in 200 } 201 202 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleStatus. 203 func (in *RuleStatus) DeepCopy() *RuleStatus { 204 if in == nil { 205 return nil 206 } 207 out := new(RuleStatus) 208 in.DeepCopyInto(out) 209 return out 210 } 211 212 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 213 func (in *Webhook) DeepCopyInto(out *Webhook) { 214 *out = *in 215 out.TypeMeta = in.TypeMeta 216 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 217 in.Spec.DeepCopyInto(&out.Spec) 218 out.Status = in.Status 219 } 220 221 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Webhook. 222 func (in *Webhook) DeepCopy() *Webhook { 223 if in == nil { 224 return nil 225 } 226 out := new(Webhook) 227 in.DeepCopyInto(out) 228 return out 229 } 230 231 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 232 func (in *Webhook) DeepCopyObject() runtime.Object { 233 if c := in.DeepCopy(); c != nil { 234 return c 235 } 236 return nil 237 } 238 239 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 240 func (in *WebhookList) DeepCopyInto(out *WebhookList) { 241 *out = *in 242 out.TypeMeta = in.TypeMeta 243 in.ListMeta.DeepCopyInto(&out.ListMeta) 244 if in.Items != nil { 245 in, out := &in.Items, &out.Items 246 *out = make([]Webhook, len(*in)) 247 for i := range *in { 248 (*in)[i].DeepCopyInto(&(*out)[i]) 249 } 250 } 251 } 252 253 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookList. 254 func (in *WebhookList) DeepCopy() *WebhookList { 255 if in == nil { 256 return nil 257 } 258 out := new(WebhookList) 259 in.DeepCopyInto(out) 260 return out 261 } 262 263 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 264 func (in *WebhookList) DeepCopyObject() runtime.Object { 265 if c := in.DeepCopy(); c != nil { 266 return c 267 } 268 return nil 269 } 270 271 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 272 func (in *WebhookSpec) DeepCopyInto(out *WebhookSpec) { 273 *out = *in 274 if in.Replicas != nil { 275 in, out := &in.Replicas, &out.Replicas 276 *out = new(int32) 277 **out = **in 278 } 279 if in.ImagePullSecrets != nil { 280 in, out := &in.ImagePullSecrets, &out.ImagePullSecrets 281 *out = make([]corev1.LocalObjectReference, len(*in)) 282 copy(*out, *in) 283 } 284 if in.Args != nil { 285 in, out := &in.Args, &out.Args 286 *out = make([]string, len(*in)) 287 copy(*out, *in) 288 } 289 if in.NodeSelector != nil { 290 in, out := &in.NodeSelector, &out.NodeSelector 291 *out = make(map[string]string, len(*in)) 292 for key, val := range *in { 293 (*out)[key] = val 294 } 295 } 296 if in.Affinity != nil { 297 in, out := &in.Affinity, &out.Affinity 298 *out = new(corev1.Affinity) 299 (*in).DeepCopyInto(*out) 300 } 301 if in.Tolerations != nil { 302 in, out := &in.Tolerations, &out.Tolerations 303 *out = make([]corev1.Toleration, len(*in)) 304 for i := range *in { 305 (*in)[i].DeepCopyInto(&(*out)[i]) 306 } 307 } 308 if in.Resources != nil { 309 in, out := &in.Resources, &out.Resources 310 *out = new(corev1.ResourceRequirements) 311 (*in).DeepCopyInto(*out) 312 } 313 if in.Receivers != nil { 314 in, out := &in.Receivers, &out.Receivers 315 *out = make([]Receiver, len(*in)) 316 for i := range *in { 317 (*in)[i].DeepCopyInto(&(*out)[i]) 318 } 319 } 320 if in.AuditSinkPolicy != nil { 321 in, out := &in.AuditSinkPolicy, &out.AuditSinkPolicy 322 *out = new(AuditSinkPolicy) 323 (*in).DeepCopyInto(*out) 324 } 325 } 326 327 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookSpec. 328 func (in *WebhookSpec) DeepCopy() *WebhookSpec { 329 if in == nil { 330 return nil 331 } 332 out := new(WebhookSpec) 333 in.DeepCopyInto(out) 334 return out 335 } 336 337 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 338 func (in *WebhookStatus) DeepCopyInto(out *WebhookStatus) { 339 *out = *in 340 } 341 342 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookStatus. 343 func (in *WebhookStatus) DeepCopy() *WebhookStatus { 344 if in == nil { 345 return nil 346 } 347 out := new(WebhookStatus) 348 in.DeepCopyInto(out) 349 return out 350 } 351 352 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 353 func (in *WebhookThrottleConfig) DeepCopyInto(out *WebhookThrottleConfig) { 354 *out = *in 355 if in.QPS != nil { 356 in, out := &in.QPS, &out.QPS 357 *out = new(int64) 358 **out = **in 359 } 360 if in.Burst != nil { 361 in, out := &in.Burst, &out.Burst 362 *out = new(int64) 363 **out = **in 364 } 365 return 366 } 367 368 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookThrottleConfig. 369 func (in *WebhookThrottleConfig) DeepCopy() *WebhookThrottleConfig { 370 if in == nil { 371 return nil 372 } 373 out := new(WebhookThrottleConfig) 374 in.DeepCopyInto(out) 375 return out 376 } 377 378 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 379 func (in *Policy) DeepCopyInto(out *Policy) { 380 *out = *in 381 if in.Stages != nil { 382 in, out := &in.Stages, &out.Stages 383 *out = make([]Stage, len(*in)) 384 copy(*out, *in) 385 } 386 return 387 } 388 389 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy. 390 func (in *Policy) DeepCopy() *Policy { 391 if in == nil { 392 return nil 393 } 394 out := new(Policy) 395 in.DeepCopyInto(out) 396 return out 397 } 398 399 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 400 func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) { 401 *out = *in 402 if in.URL != nil { 403 in, out := &in.URL, &out.URL 404 *out = new(string) 405 **out = **in 406 } 407 if in.Service != nil { 408 in, out := &in.Service, &out.Service 409 *out = new(ServiceReference) 410 (*in).DeepCopyInto(*out) 411 } 412 if in.CABundle != nil { 413 in, out := &in.CABundle, &out.CABundle 414 *out = make([]byte, len(*in)) 415 copy(*out, *in) 416 } 417 return 418 } 419 420 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookClientConfig. 421 func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig { 422 if in == nil { 423 return nil 424 } 425 out := new(WebhookClientConfig) 426 in.DeepCopyInto(out) 427 return out 428 } 429 430 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 431 func (in *ServiceReference) DeepCopyInto(out *ServiceReference) { 432 *out = *in 433 if in.Path != nil { 434 435 in, out := &in.Path, &out.Path 436 *out = new(string) 437 **out = **in 438 } 439 if in.Port != nil { 440 in, out := &in.Port, &out.Port 441 *out = new(int32) 442 **out = **in 443 } 444 return 445 } 446 447 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference. 448 func (in *ServiceReference) DeepCopy() *ServiceReference { 449 if in == nil { 450 return nil 451 } 452 out := new(ServiceReference) 453 in.DeepCopyInto(out) 454 return out 455 }