github.com/argoproj/argo-events@v1.9.1/pkg/apis/common/deepcopy_generated.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2021 BlackRock, Inc. 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 main. DO NOT EDIT. 21 22 package common 23 24 import ( 25 v1 "k8s.io/api/core/v1" 26 ) 27 28 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 29 func (in *Amount) DeepCopyInto(out *Amount) { 30 *out = *in 31 if in.Value != nil { 32 in, out := &in.Value, &out.Value 33 *out = make([]byte, len(*in)) 34 copy(*out, *in) 35 } 36 return 37 } 38 39 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Amount. 40 func (in *Amount) DeepCopy() *Amount { 41 if in == nil { 42 return nil 43 } 44 out := new(Amount) 45 in.DeepCopyInto(out) 46 return out 47 } 48 49 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 50 func (in *Backoff) DeepCopyInto(out *Backoff) { 51 *out = *in 52 if in.Duration != nil { 53 in, out := &in.Duration, &out.Duration 54 *out = new(Int64OrString) 55 **out = **in 56 } 57 if in.Factor != nil { 58 in, out := &in.Factor, &out.Factor 59 *out = new(Amount) 60 (*in).DeepCopyInto(*out) 61 } 62 if in.Jitter != nil { 63 in, out := &in.Jitter, &out.Jitter 64 *out = new(Amount) 65 (*in).DeepCopyInto(*out) 66 } 67 return 68 } 69 70 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backoff. 71 func (in *Backoff) DeepCopy() *Backoff { 72 if in == nil { 73 return nil 74 } 75 out := new(Backoff) 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 *BasicAuth) DeepCopyInto(out *BasicAuth) { 82 *out = *in 83 if in.Username != nil { 84 in, out := &in.Username, &out.Username 85 *out = new(v1.SecretKeySelector) 86 (*in).DeepCopyInto(*out) 87 } 88 if in.Password != nil { 89 in, out := &in.Password, &out.Password 90 *out = new(v1.SecretKeySelector) 91 (*in).DeepCopyInto(*out) 92 } 93 return 94 } 95 96 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicAuth. 97 func (in *BasicAuth) DeepCopy() *BasicAuth { 98 if in == nil { 99 return nil 100 } 101 out := new(BasicAuth) 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 *Condition) DeepCopyInto(out *Condition) { 108 *out = *in 109 in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) 110 return 111 } 112 113 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition. 114 func (in *Condition) DeepCopy() *Condition { 115 if in == nil { 116 return nil 117 } 118 out := new(Condition) 119 in.DeepCopyInto(out) 120 return out 121 } 122 123 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 124 func (in *Int64OrString) DeepCopyInto(out *Int64OrString) { 125 *out = *in 126 return 127 } 128 129 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Int64OrString. 130 func (in *Int64OrString) DeepCopy() *Int64OrString { 131 if in == nil { 132 return nil 133 } 134 out := new(Int64OrString) 135 in.DeepCopyInto(out) 136 return out 137 } 138 139 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 140 func (in *Metadata) DeepCopyInto(out *Metadata) { 141 *out = *in 142 if in.Annotations != nil { 143 in, out := &in.Annotations, &out.Annotations 144 *out = make(map[string]string, len(*in)) 145 for key, val := range *in { 146 (*out)[key] = val 147 } 148 } 149 if in.Labels != nil { 150 in, out := &in.Labels, &out.Labels 151 *out = make(map[string]string, len(*in)) 152 for key, val := range *in { 153 (*out)[key] = val 154 } 155 } 156 return 157 } 158 159 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata. 160 func (in *Metadata) DeepCopy() *Metadata { 161 if in == nil { 162 return nil 163 } 164 out := new(Metadata) 165 in.DeepCopyInto(out) 166 return out 167 } 168 169 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 170 func (in *Resource) DeepCopyInto(out *Resource) { 171 *out = *in 172 if in.Value != nil { 173 in, out := &in.Value, &out.Value 174 *out = make([]byte, len(*in)) 175 copy(*out, *in) 176 } 177 return 178 } 179 180 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource. 181 func (in *Resource) DeepCopy() *Resource { 182 if in == nil { 183 return nil 184 } 185 out := new(Resource) 186 in.DeepCopyInto(out) 187 return out 188 } 189 190 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 191 func (in *S3Artifact) DeepCopyInto(out *S3Artifact) { 192 *out = *in 193 if in.Bucket != nil { 194 in, out := &in.Bucket, &out.Bucket 195 *out = new(S3Bucket) 196 **out = **in 197 } 198 if in.AccessKey != nil { 199 in, out := &in.AccessKey, &out.AccessKey 200 *out = new(v1.SecretKeySelector) 201 (*in).DeepCopyInto(*out) 202 } 203 if in.SecretKey != nil { 204 in, out := &in.SecretKey, &out.SecretKey 205 *out = new(v1.SecretKeySelector) 206 (*in).DeepCopyInto(*out) 207 } 208 if in.Events != nil { 209 in, out := &in.Events, &out.Events 210 *out = make([]string, len(*in)) 211 copy(*out, *in) 212 } 213 if in.Filter != nil { 214 in, out := &in.Filter, &out.Filter 215 *out = new(S3Filter) 216 **out = **in 217 } 218 if in.Metadata != nil { 219 in, out := &in.Metadata, &out.Metadata 220 *out = make(map[string]string, len(*in)) 221 for key, val := range *in { 222 (*out)[key] = val 223 } 224 } 225 if in.CACertificate != nil { 226 in, out := &in.CACertificate, &out.CACertificate 227 *out = new(v1.SecretKeySelector) 228 (*in).DeepCopyInto(*out) 229 } 230 return 231 } 232 233 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Artifact. 234 func (in *S3Artifact) DeepCopy() *S3Artifact { 235 if in == nil { 236 return nil 237 } 238 out := new(S3Artifact) 239 in.DeepCopyInto(out) 240 return out 241 } 242 243 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 244 func (in *S3Bucket) DeepCopyInto(out *S3Bucket) { 245 *out = *in 246 return 247 } 248 249 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Bucket. 250 func (in *S3Bucket) DeepCopy() *S3Bucket { 251 if in == nil { 252 return nil 253 } 254 out := new(S3Bucket) 255 in.DeepCopyInto(out) 256 return out 257 } 258 259 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 260 func (in *S3Filter) DeepCopyInto(out *S3Filter) { 261 *out = *in 262 return 263 } 264 265 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Filter. 266 func (in *S3Filter) DeepCopy() *S3Filter { 267 if in == nil { 268 return nil 269 } 270 out := new(S3Filter) 271 in.DeepCopyInto(out) 272 return out 273 } 274 275 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 276 func (in *SASLConfig) DeepCopyInto(out *SASLConfig) { 277 *out = *in 278 if in.UserSecret != nil { 279 in, out := &in.UserSecret, &out.UserSecret 280 *out = new(v1.SecretKeySelector) 281 (*in).DeepCopyInto(*out) 282 } 283 if in.PasswordSecret != nil { 284 in, out := &in.PasswordSecret, &out.PasswordSecret 285 *out = new(v1.SecretKeySelector) 286 (*in).DeepCopyInto(*out) 287 } 288 return 289 } 290 291 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SASLConfig. 292 func (in *SASLConfig) DeepCopy() *SASLConfig { 293 if in == nil { 294 return nil 295 } 296 out := new(SASLConfig) 297 in.DeepCopyInto(out) 298 return out 299 } 300 301 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 302 func (in *SchemaRegistryConfig) DeepCopyInto(out *SchemaRegistryConfig) { 303 *out = *in 304 in.Auth.DeepCopyInto(&out.Auth) 305 return 306 } 307 308 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchemaRegistryConfig. 309 func (in *SchemaRegistryConfig) DeepCopy() *SchemaRegistryConfig { 310 if in == nil { 311 return nil 312 } 313 out := new(SchemaRegistryConfig) 314 in.DeepCopyInto(out) 315 return out 316 } 317 318 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 319 func (in *SecureHeader) DeepCopyInto(out *SecureHeader) { 320 *out = *in 321 if in.ValueFrom != nil { 322 in, out := &in.ValueFrom, &out.ValueFrom 323 *out = new(ValueFromSource) 324 (*in).DeepCopyInto(*out) 325 } 326 return 327 } 328 329 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecureHeader. 330 func (in *SecureHeader) DeepCopy() *SecureHeader { 331 if in == nil { 332 return nil 333 } 334 out := new(SecureHeader) 335 in.DeepCopyInto(out) 336 return out 337 } 338 339 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 340 func (in *Status) DeepCopyInto(out *Status) { 341 *out = *in 342 if in.Conditions != nil { 343 in, out := &in.Conditions, &out.Conditions 344 *out = make([]Condition, len(*in)) 345 for i := range *in { 346 (*in)[i].DeepCopyInto(&(*out)[i]) 347 } 348 } 349 return 350 } 351 352 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status. 353 func (in *Status) DeepCopy() *Status { 354 if in == nil { 355 return nil 356 } 357 out := new(Status) 358 in.DeepCopyInto(out) 359 return out 360 } 361 362 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 363 func (in *TLSConfig) DeepCopyInto(out *TLSConfig) { 364 *out = *in 365 if in.CACertSecret != nil { 366 in, out := &in.CACertSecret, &out.CACertSecret 367 *out = new(v1.SecretKeySelector) 368 (*in).DeepCopyInto(*out) 369 } 370 if in.ClientCertSecret != nil { 371 in, out := &in.ClientCertSecret, &out.ClientCertSecret 372 *out = new(v1.SecretKeySelector) 373 (*in).DeepCopyInto(*out) 374 } 375 if in.ClientKeySecret != nil { 376 in, out := &in.ClientKeySecret, &out.ClientKeySecret 377 *out = new(v1.SecretKeySelector) 378 (*in).DeepCopyInto(*out) 379 } 380 return 381 } 382 383 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig. 384 func (in *TLSConfig) DeepCopy() *TLSConfig { 385 if in == nil { 386 return nil 387 } 388 out := new(TLSConfig) 389 in.DeepCopyInto(out) 390 return out 391 } 392 393 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 394 func (in *ValueFromSource) DeepCopyInto(out *ValueFromSource) { 395 *out = *in 396 if in.SecretKeyRef != nil { 397 in, out := &in.SecretKeyRef, &out.SecretKeyRef 398 *out = new(v1.SecretKeySelector) 399 (*in).DeepCopyInto(*out) 400 } 401 if in.ConfigMapKeyRef != nil { 402 in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef 403 *out = new(v1.ConfigMapKeySelector) 404 (*in).DeepCopyInto(*out) 405 } 406 return 407 } 408 409 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueFromSource. 410 func (in *ValueFromSource) DeepCopy() *ValueFromSource { 411 if in == nil { 412 return nil 413 } 414 out := new(ValueFromSource) 415 in.DeepCopyInto(out) 416 return out 417 }