zz_generated.deepcopy.go 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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 v1alpha1
  16. import (
  17. v1 "k8s.io/api/core/v1"
  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 *Endpoint) DeepCopyInto(out *Endpoint) {
  22. *out = *in
  23. if in.Addresses != nil {
  24. in, out := &in.Addresses, &out.Addresses
  25. *out = make([]string, len(*in))
  26. copy(*out, *in)
  27. }
  28. in.Conditions.DeepCopyInto(&out.Conditions)
  29. if in.Hostname != nil {
  30. in, out := &in.Hostname, &out.Hostname
  31. *out = new(string)
  32. **out = **in
  33. }
  34. if in.TargetRef != nil {
  35. in, out := &in.TargetRef, &out.TargetRef
  36. *out = new(v1.ObjectReference)
  37. **out = **in
  38. }
  39. if in.Topology != nil {
  40. in, out := &in.Topology, &out.Topology
  41. *out = make(map[string]string, len(*in))
  42. for key, val := range *in {
  43. (*out)[key] = val
  44. }
  45. }
  46. return
  47. }
  48. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
  49. func (in *Endpoint) DeepCopy() *Endpoint {
  50. if in == nil {
  51. return nil
  52. }
  53. out := new(Endpoint)
  54. in.DeepCopyInto(out)
  55. return out
  56. }
  57. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  58. func (in *EndpointConditions) DeepCopyInto(out *EndpointConditions) {
  59. *out = *in
  60. if in.Ready != nil {
  61. in, out := &in.Ready, &out.Ready
  62. *out = new(bool)
  63. **out = **in
  64. }
  65. return
  66. }
  67. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointConditions.
  68. func (in *EndpointConditions) DeepCopy() *EndpointConditions {
  69. if in == nil {
  70. return nil
  71. }
  72. out := new(EndpointConditions)
  73. in.DeepCopyInto(out)
  74. return out
  75. }
  76. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  77. func (in *EndpointPort) DeepCopyInto(out *EndpointPort) {
  78. *out = *in
  79. if in.Name != nil {
  80. in, out := &in.Name, &out.Name
  81. *out = new(string)
  82. **out = **in
  83. }
  84. if in.Protocol != nil {
  85. in, out := &in.Protocol, &out.Protocol
  86. *out = new(v1.Protocol)
  87. **out = **in
  88. }
  89. if in.Port != nil {
  90. in, out := &in.Port, &out.Port
  91. *out = new(int32)
  92. **out = **in
  93. }
  94. if in.AppProtocol != nil {
  95. in, out := &in.AppProtocol, &out.AppProtocol
  96. *out = new(string)
  97. **out = **in
  98. }
  99. return
  100. }
  101. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointPort.
  102. func (in *EndpointPort) DeepCopy() *EndpointPort {
  103. if in == nil {
  104. return nil
  105. }
  106. out := new(EndpointPort)
  107. in.DeepCopyInto(out)
  108. return out
  109. }
  110. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  111. func (in *EndpointSlice) DeepCopyInto(out *EndpointSlice) {
  112. *out = *in
  113. out.TypeMeta = in.TypeMeta
  114. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  115. if in.Endpoints != nil {
  116. in, out := &in.Endpoints, &out.Endpoints
  117. *out = make([]Endpoint, len(*in))
  118. for i := range *in {
  119. (*in)[i].DeepCopyInto(&(*out)[i])
  120. }
  121. }
  122. if in.Ports != nil {
  123. in, out := &in.Ports, &out.Ports
  124. *out = make([]EndpointPort, len(*in))
  125. for i := range *in {
  126. (*in)[i].DeepCopyInto(&(*out)[i])
  127. }
  128. }
  129. return
  130. }
  131. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSlice.
  132. func (in *EndpointSlice) DeepCopy() *EndpointSlice {
  133. if in == nil {
  134. return nil
  135. }
  136. out := new(EndpointSlice)
  137. in.DeepCopyInto(out)
  138. return out
  139. }
  140. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  141. func (in *EndpointSlice) DeepCopyObject() runtime.Object {
  142. if c := in.DeepCopy(); c != nil {
  143. return c
  144. }
  145. return nil
  146. }
  147. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  148. func (in *EndpointSliceList) DeepCopyInto(out *EndpointSliceList) {
  149. *out = *in
  150. out.TypeMeta = in.TypeMeta
  151. in.ListMeta.DeepCopyInto(&out.ListMeta)
  152. if in.Items != nil {
  153. in, out := &in.Items, &out.Items
  154. *out = make([]EndpointSlice, len(*in))
  155. for i := range *in {
  156. (*in)[i].DeepCopyInto(&(*out)[i])
  157. }
  158. }
  159. return
  160. }
  161. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSliceList.
  162. func (in *EndpointSliceList) DeepCopy() *EndpointSliceList {
  163. if in == nil {
  164. return nil
  165. }
  166. out := new(EndpointSliceList)
  167. in.DeepCopyInto(out)
  168. return out
  169. }
  170. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  171. func (in *EndpointSliceList) DeepCopyObject() runtime.Object {
  172. if c := in.DeepCopy(); c != nil {
  173. return c
  174. }
  175. return nil
  176. }