zz_generated.deepcopy.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. // +build !ignore_autogenerated
  2. /*
  3. Copyright The Kubernetes Authors.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. */
  14. // Code generated by deepcopy-gen. DO NOT EDIT.
  15. package v1
  16. import (
  17. runtime "k8s.io/apimachinery/pkg/runtime"
  18. )
  19. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  20. func (in *Lease) DeepCopyInto(out *Lease) {
  21. *out = *in
  22. out.TypeMeta = in.TypeMeta
  23. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  24. in.Spec.DeepCopyInto(&out.Spec)
  25. return
  26. }
  27. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lease.
  28. func (in *Lease) DeepCopy() *Lease {
  29. if in == nil {
  30. return nil
  31. }
  32. out := new(Lease)
  33. in.DeepCopyInto(out)
  34. return out
  35. }
  36. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  37. func (in *Lease) DeepCopyObject() runtime.Object {
  38. if c := in.DeepCopy(); c != nil {
  39. return c
  40. }
  41. return nil
  42. }
  43. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  44. func (in *LeaseList) DeepCopyInto(out *LeaseList) {
  45. *out = *in
  46. out.TypeMeta = in.TypeMeta
  47. in.ListMeta.DeepCopyInto(&out.ListMeta)
  48. if in.Items != nil {
  49. in, out := &in.Items, &out.Items
  50. *out = make([]Lease, len(*in))
  51. for i := range *in {
  52. (*in)[i].DeepCopyInto(&(*out)[i])
  53. }
  54. }
  55. return
  56. }
  57. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseList.
  58. func (in *LeaseList) DeepCopy() *LeaseList {
  59. if in == nil {
  60. return nil
  61. }
  62. out := new(LeaseList)
  63. in.DeepCopyInto(out)
  64. return out
  65. }
  66. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  67. func (in *LeaseList) DeepCopyObject() runtime.Object {
  68. if c := in.DeepCopy(); c != nil {
  69. return c
  70. }
  71. return nil
  72. }
  73. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  74. func (in *LeaseSpec) DeepCopyInto(out *LeaseSpec) {
  75. *out = *in
  76. if in.HolderIdentity != nil {
  77. in, out := &in.HolderIdentity, &out.HolderIdentity
  78. *out = new(string)
  79. **out = **in
  80. }
  81. if in.LeaseDurationSeconds != nil {
  82. in, out := &in.LeaseDurationSeconds, &out.LeaseDurationSeconds
  83. *out = new(int32)
  84. **out = **in
  85. }
  86. if in.AcquireTime != nil {
  87. in, out := &in.AcquireTime, &out.AcquireTime
  88. *out = (*in).DeepCopy()
  89. }
  90. if in.RenewTime != nil {
  91. in, out := &in.RenewTime, &out.RenewTime
  92. *out = (*in).DeepCopy()
  93. }
  94. if in.LeaseTransitions != nil {
  95. in, out := &in.LeaseTransitions, &out.LeaseTransitions
  96. *out = new(int32)
  97. **out = **in
  98. }
  99. return
  100. }
  101. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseSpec.
  102. func (in *LeaseSpec) DeepCopy() *LeaseSpec {
  103. if in == nil {
  104. return nil
  105. }
  106. out := new(LeaseSpec)
  107. in.DeepCopyInto(out)
  108. return out
  109. }