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