github.com/docker/compose-on-kubernetes@v0.5.0/api/compose/v1alpha3/deepcopy_generated.go (about) 1 // +build !ignore_autogenerated 2 3 // Code generated by deepcopy-gen. DO NOT EDIT. 4 5 package v1alpha3 6 7 import ( 8 time "time" 9 ) 10 11 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 12 func (in *ConfigObjConfig) DeepCopyInto(out *ConfigObjConfig) { 13 *out = *in 14 out.External = in.External 15 if in.Labels != nil { 16 in, out := &in.Labels, &out.Labels 17 *out = make(map[string]string, len(*in)) 18 for key, val := range *in { 19 (*out)[key] = val 20 } 21 } 22 return 23 } 24 25 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigObjConfig. 26 func (in *ConfigObjConfig) DeepCopy() *ConfigObjConfig { 27 if in == nil { 28 return nil 29 } 30 out := new(ConfigObjConfig) 31 in.DeepCopyInto(out) 32 return out 33 } 34 35 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 36 func (in *Constraint) DeepCopyInto(out *Constraint) { 37 *out = *in 38 return 39 } 40 41 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Constraint. 42 func (in *Constraint) DeepCopy() *Constraint { 43 if in == nil { 44 return nil 45 } 46 out := new(Constraint) 47 in.DeepCopyInto(out) 48 return out 49 } 50 51 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 52 func (in *Constraints) DeepCopyInto(out *Constraints) { 53 *out = *in 54 if in.OperatingSystem != nil { 55 in, out := &in.OperatingSystem, &out.OperatingSystem 56 *out = new(Constraint) 57 **out = **in 58 } 59 if in.Architecture != nil { 60 in, out := &in.Architecture, &out.Architecture 61 *out = new(Constraint) 62 **out = **in 63 } 64 if in.Hostname != nil { 65 in, out := &in.Hostname, &out.Hostname 66 *out = new(Constraint) 67 **out = **in 68 } 69 if in.MatchLabels != nil { 70 in, out := &in.MatchLabels, &out.MatchLabels 71 *out = make(map[string]Constraint, len(*in)) 72 for key, val := range *in { 73 (*out)[key] = val 74 } 75 } 76 return 77 } 78 79 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Constraints. 80 func (in *Constraints) DeepCopy() *Constraints { 81 if in == nil { 82 return nil 83 } 84 out := new(Constraints) 85 in.DeepCopyInto(out) 86 return out 87 } 88 89 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 90 func (in *DeployConfig) DeepCopyInto(out *DeployConfig) { 91 *out = *in 92 if in.Replicas != nil { 93 in, out := &in.Replicas, &out.Replicas 94 *out = new(uint64) 95 **out = **in 96 } 97 if in.Labels != nil { 98 in, out := &in.Labels, &out.Labels 99 *out = make(map[string]string, len(*in)) 100 for key, val := range *in { 101 (*out)[key] = val 102 } 103 } 104 if in.UpdateConfig != nil { 105 in, out := &in.UpdateConfig, &out.UpdateConfig 106 *out = new(UpdateConfig) 107 (*in).DeepCopyInto(*out) 108 } 109 in.Resources.DeepCopyInto(&out.Resources) 110 if in.RestartPolicy != nil { 111 in, out := &in.RestartPolicy, &out.RestartPolicy 112 *out = new(RestartPolicy) 113 **out = **in 114 } 115 in.Placement.DeepCopyInto(&out.Placement) 116 return 117 } 118 119 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployConfig. 120 func (in *DeployConfig) DeepCopy() *DeployConfig { 121 if in == nil { 122 return nil 123 } 124 out := new(DeployConfig) 125 in.DeepCopyInto(out) 126 return out 127 } 128 129 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 130 func (in *External) DeepCopyInto(out *External) { 131 *out = *in 132 return 133 } 134 135 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new External. 136 func (in *External) DeepCopy() *External { 137 if in == nil { 138 return nil 139 } 140 out := new(External) 141 in.DeepCopyInto(out) 142 return out 143 } 144 145 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 146 func (in *FileObjectConfig) DeepCopyInto(out *FileObjectConfig) { 147 *out = *in 148 out.External = in.External 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 FileObjectConfig. 160 func (in *FileObjectConfig) DeepCopy() *FileObjectConfig { 161 if in == nil { 162 return nil 163 } 164 out := new(FileObjectConfig) 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 *FileReferenceConfig) DeepCopyInto(out *FileReferenceConfig) { 171 *out = *in 172 if in.Mode != nil { 173 in, out := &in.Mode, &out.Mode 174 *out = new(uint32) 175 **out = **in 176 } 177 return 178 } 179 180 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileReferenceConfig. 181 func (in *FileReferenceConfig) DeepCopy() *FileReferenceConfig { 182 if in == nil { 183 return nil 184 } 185 out := new(FileReferenceConfig) 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 *HealthCheckConfig) DeepCopyInto(out *HealthCheckConfig) { 192 *out = *in 193 if in.Test != nil { 194 in, out := &in.Test, &out.Test 195 *out = make([]string, len(*in)) 196 copy(*out, *in) 197 } 198 if in.Timeout != nil { 199 in, out := &in.Timeout, &out.Timeout 200 *out = new(time.Duration) 201 **out = **in 202 } 203 if in.Interval != nil { 204 in, out := &in.Interval, &out.Interval 205 *out = new(time.Duration) 206 **out = **in 207 } 208 if in.Retries != nil { 209 in, out := &in.Retries, &out.Retries 210 *out = new(uint64) 211 **out = **in 212 } 213 return 214 } 215 216 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheckConfig. 217 func (in *HealthCheckConfig) DeepCopy() *HealthCheckConfig { 218 if in == nil { 219 return nil 220 } 221 out := new(HealthCheckConfig) 222 in.DeepCopyInto(out) 223 return out 224 } 225 226 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 227 func (in *InternalPort) DeepCopyInto(out *InternalPort) { 228 *out = *in 229 return 230 } 231 232 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalPort. 233 func (in *InternalPort) DeepCopy() *InternalPort { 234 if in == nil { 235 return nil 236 } 237 out := new(InternalPort) 238 in.DeepCopyInto(out) 239 return out 240 } 241 242 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 243 func (in *Placement) DeepCopyInto(out *Placement) { 244 *out = *in 245 if in.Constraints != nil { 246 in, out := &in.Constraints, &out.Constraints 247 *out = new(Constraints) 248 (*in).DeepCopyInto(*out) 249 } 250 return 251 } 252 253 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Placement. 254 func (in *Placement) DeepCopy() *Placement { 255 if in == nil { 256 return nil 257 } 258 out := new(Placement) 259 in.DeepCopyInto(out) 260 return out 261 } 262 263 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 264 func (in *Resource) DeepCopyInto(out *Resource) { 265 *out = *in 266 return 267 } 268 269 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource. 270 func (in *Resource) DeepCopy() *Resource { 271 if in == nil { 272 return nil 273 } 274 out := new(Resource) 275 in.DeepCopyInto(out) 276 return out 277 } 278 279 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 280 func (in *Resources) DeepCopyInto(out *Resources) { 281 *out = *in 282 if in.Limits != nil { 283 in, out := &in.Limits, &out.Limits 284 *out = new(Resource) 285 **out = **in 286 } 287 if in.Reservations != nil { 288 in, out := &in.Reservations, &out.Reservations 289 *out = new(Resource) 290 **out = **in 291 } 292 return 293 } 294 295 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources. 296 func (in *Resources) DeepCopy() *Resources { 297 if in == nil { 298 return nil 299 } 300 out := new(Resources) 301 in.DeepCopyInto(out) 302 return out 303 } 304 305 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 306 func (in *RestartPolicy) DeepCopyInto(out *RestartPolicy) { 307 *out = *in 308 return 309 } 310 311 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestartPolicy. 312 func (in *RestartPolicy) DeepCopy() *RestartPolicy { 313 if in == nil { 314 return nil 315 } 316 out := new(RestartPolicy) 317 in.DeepCopyInto(out) 318 return out 319 } 320 321 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 322 func (in *SecretConfig) DeepCopyInto(out *SecretConfig) { 323 *out = *in 324 out.External = in.External 325 if in.Labels != nil { 326 in, out := &in.Labels, &out.Labels 327 *out = make(map[string]string, len(*in)) 328 for key, val := range *in { 329 (*out)[key] = val 330 } 331 } 332 return 333 } 334 335 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretConfig. 336 func (in *SecretConfig) DeepCopy() *SecretConfig { 337 if in == nil { 338 return nil 339 } 340 out := new(SecretConfig) 341 in.DeepCopyInto(out) 342 return out 343 } 344 345 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 346 func (in *ServiceConfig) DeepCopyInto(out *ServiceConfig) { 347 *out = *in 348 if in.CapAdd != nil { 349 in, out := &in.CapAdd, &out.CapAdd 350 *out = make([]string, len(*in)) 351 copy(*out, *in) 352 } 353 if in.CapDrop != nil { 354 in, out := &in.CapDrop, &out.CapDrop 355 *out = make([]string, len(*in)) 356 copy(*out, *in) 357 } 358 if in.Command != nil { 359 in, out := &in.Command, &out.Command 360 *out = make([]string, len(*in)) 361 copy(*out, *in) 362 } 363 if in.Configs != nil { 364 in, out := &in.Configs, &out.Configs 365 *out = make([]ServiceConfigObjConfig, len(*in)) 366 for i := range *in { 367 (*in)[i].DeepCopyInto(&(*out)[i]) 368 } 369 } 370 in.Deploy.DeepCopyInto(&out.Deploy) 371 if in.Entrypoint != nil { 372 in, out := &in.Entrypoint, &out.Entrypoint 373 *out = make([]string, len(*in)) 374 copy(*out, *in) 375 } 376 if in.Environment != nil { 377 in, out := &in.Environment, &out.Environment 378 *out = make(map[string]*string, len(*in)) 379 for key, val := range *in { 380 var outVal *string 381 if val == nil { 382 (*out)[key] = nil 383 } else { 384 in, out := &val, &outVal 385 *out = new(string) 386 **out = **in 387 } 388 (*out)[key] = outVal 389 } 390 } 391 if in.ExtraHosts != nil { 392 in, out := &in.ExtraHosts, &out.ExtraHosts 393 *out = make([]string, len(*in)) 394 copy(*out, *in) 395 } 396 if in.HealthCheck != nil { 397 in, out := &in.HealthCheck, &out.HealthCheck 398 *out = new(HealthCheckConfig) 399 (*in).DeepCopyInto(*out) 400 } 401 if in.Labels != nil { 402 in, out := &in.Labels, &out.Labels 403 *out = make(map[string]string, len(*in)) 404 for key, val := range *in { 405 (*out)[key] = val 406 } 407 } 408 if in.Ports != nil { 409 in, out := &in.Ports, &out.Ports 410 *out = make([]ServicePortConfig, len(*in)) 411 copy(*out, *in) 412 } 413 if in.Secrets != nil { 414 in, out := &in.Secrets, &out.Secrets 415 *out = make([]ServiceSecretConfig, len(*in)) 416 for i := range *in { 417 (*in)[i].DeepCopyInto(&(*out)[i]) 418 } 419 } 420 if in.StopGracePeriod != nil { 421 in, out := &in.StopGracePeriod, &out.StopGracePeriod 422 *out = new(time.Duration) 423 **out = **in 424 } 425 if in.Tmpfs != nil { 426 in, out := &in.Tmpfs, &out.Tmpfs 427 *out = make([]string, len(*in)) 428 copy(*out, *in) 429 } 430 if in.User != nil { 431 in, out := &in.User, &out.User 432 *out = new(int64) 433 **out = **in 434 } 435 if in.Volumes != nil { 436 in, out := &in.Volumes, &out.Volumes 437 *out = make([]ServiceVolumeConfig, len(*in)) 438 copy(*out, *in) 439 } 440 if in.InternalPorts != nil { 441 in, out := &in.InternalPorts, &out.InternalPorts 442 *out = make([]InternalPort, len(*in)) 443 copy(*out, *in) 444 } 445 return 446 } 447 448 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceConfig. 449 func (in *ServiceConfig) DeepCopy() *ServiceConfig { 450 if in == nil { 451 return nil 452 } 453 out := new(ServiceConfig) 454 in.DeepCopyInto(out) 455 return out 456 } 457 458 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 459 func (in *ServiceConfigObjConfig) DeepCopyInto(out *ServiceConfigObjConfig) { 460 *out = *in 461 if in.Mode != nil { 462 in, out := &in.Mode, &out.Mode 463 *out = new(uint32) 464 **out = **in 465 } 466 return 467 } 468 469 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceConfigObjConfig. 470 func (in *ServiceConfigObjConfig) DeepCopy() *ServiceConfigObjConfig { 471 if in == nil { 472 return nil 473 } 474 out := new(ServiceConfigObjConfig) 475 in.DeepCopyInto(out) 476 return out 477 } 478 479 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 480 func (in *ServicePortConfig) DeepCopyInto(out *ServicePortConfig) { 481 *out = *in 482 return 483 } 484 485 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePortConfig. 486 func (in *ServicePortConfig) DeepCopy() *ServicePortConfig { 487 if in == nil { 488 return nil 489 } 490 out := new(ServicePortConfig) 491 in.DeepCopyInto(out) 492 return out 493 } 494 495 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 496 func (in *ServiceSecretConfig) DeepCopyInto(out *ServiceSecretConfig) { 497 *out = *in 498 if in.Mode != nil { 499 in, out := &in.Mode, &out.Mode 500 *out = new(uint32) 501 **out = **in 502 } 503 return 504 } 505 506 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSecretConfig. 507 func (in *ServiceSecretConfig) DeepCopy() *ServiceSecretConfig { 508 if in == nil { 509 return nil 510 } 511 out := new(ServiceSecretConfig) 512 in.DeepCopyInto(out) 513 return out 514 } 515 516 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 517 func (in *ServiceVolumeConfig) DeepCopyInto(out *ServiceVolumeConfig) { 518 *out = *in 519 return 520 } 521 522 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceVolumeConfig. 523 func (in *ServiceVolumeConfig) DeepCopy() *ServiceVolumeConfig { 524 if in == nil { 525 return nil 526 } 527 out := new(ServiceVolumeConfig) 528 in.DeepCopyInto(out) 529 return out 530 } 531 532 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 533 func (in *StackSpec) DeepCopyInto(out *StackSpec) { 534 *out = *in 535 if in.Services != nil { 536 in, out := &in.Services, &out.Services 537 *out = make([]ServiceConfig, len(*in)) 538 for i := range *in { 539 (*in)[i].DeepCopyInto(&(*out)[i]) 540 } 541 } 542 if in.Secrets != nil { 543 in, out := &in.Secrets, &out.Secrets 544 *out = make(map[string]SecretConfig, len(*in)) 545 for key, val := range *in { 546 (*out)[key] = *val.DeepCopy() 547 } 548 } 549 if in.Configs != nil { 550 in, out := &in.Configs, &out.Configs 551 *out = make(map[string]ConfigObjConfig, len(*in)) 552 for key, val := range *in { 553 (*out)[key] = *val.DeepCopy() 554 } 555 } 556 return 557 } 558 559 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackSpec. 560 func (in *StackSpec) DeepCopy() *StackSpec { 561 if in == nil { 562 return nil 563 } 564 out := new(StackSpec) 565 in.DeepCopyInto(out) 566 return out 567 } 568 569 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 570 func (in *UpdateConfig) DeepCopyInto(out *UpdateConfig) { 571 *out = *in 572 if in.Parallelism != nil { 573 in, out := &in.Parallelism, &out.Parallelism 574 *out = new(uint64) 575 **out = **in 576 } 577 return 578 } 579 580 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateConfig. 581 func (in *UpdateConfig) DeepCopy() *UpdateConfig { 582 if in == nil { 583 return nil 584 } 585 out := new(UpdateConfig) 586 in.DeepCopyInto(out) 587 return out 588 }