zz_generated.deepcopy.go 3.3 KB

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