zz_generated.deepcopy.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  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 networking
  16. import (
  17. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  18. runtime "k8s.io/apimachinery/pkg/runtime"
  19. intstr "k8s.io/apimachinery/pkg/util/intstr"
  20. core "k8s.io/kubernetes/pkg/apis/core"
  21. )
  22. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  23. func (in *HTTPIngressPath) DeepCopyInto(out *HTTPIngressPath) {
  24. *out = *in
  25. out.Backend = in.Backend
  26. return
  27. }
  28. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressPath.
  29. func (in *HTTPIngressPath) DeepCopy() *HTTPIngressPath {
  30. if in == nil {
  31. return nil
  32. }
  33. out := new(HTTPIngressPath)
  34. in.DeepCopyInto(out)
  35. return out
  36. }
  37. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  38. func (in *HTTPIngressRuleValue) DeepCopyInto(out *HTTPIngressRuleValue) {
  39. *out = *in
  40. if in.Paths != nil {
  41. in, out := &in.Paths, &out.Paths
  42. *out = make([]HTTPIngressPath, len(*in))
  43. copy(*out, *in)
  44. }
  45. return
  46. }
  47. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressRuleValue.
  48. func (in *HTTPIngressRuleValue) DeepCopy() *HTTPIngressRuleValue {
  49. if in == nil {
  50. return nil
  51. }
  52. out := new(HTTPIngressRuleValue)
  53. in.DeepCopyInto(out)
  54. return out
  55. }
  56. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  57. func (in *IPBlock) DeepCopyInto(out *IPBlock) {
  58. *out = *in
  59. if in.Except != nil {
  60. in, out := &in.Except, &out.Except
  61. *out = make([]string, len(*in))
  62. copy(*out, *in)
  63. }
  64. return
  65. }
  66. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock.
  67. func (in *IPBlock) DeepCopy() *IPBlock {
  68. if in == nil {
  69. return nil
  70. }
  71. out := new(IPBlock)
  72. in.DeepCopyInto(out)
  73. return out
  74. }
  75. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  76. func (in *Ingress) DeepCopyInto(out *Ingress) {
  77. *out = *in
  78. out.TypeMeta = in.TypeMeta
  79. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  80. in.Spec.DeepCopyInto(&out.Spec)
  81. in.Status.DeepCopyInto(&out.Status)
  82. return
  83. }
  84. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress.
  85. func (in *Ingress) DeepCopy() *Ingress {
  86. if in == nil {
  87. return nil
  88. }
  89. out := new(Ingress)
  90. in.DeepCopyInto(out)
  91. return out
  92. }
  93. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  94. func (in *Ingress) DeepCopyObject() runtime.Object {
  95. if c := in.DeepCopy(); c != nil {
  96. return c
  97. }
  98. return nil
  99. }
  100. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  101. func (in *IngressBackend) DeepCopyInto(out *IngressBackend) {
  102. *out = *in
  103. out.ServicePort = in.ServicePort
  104. return
  105. }
  106. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressBackend.
  107. func (in *IngressBackend) DeepCopy() *IngressBackend {
  108. if in == nil {
  109. return nil
  110. }
  111. out := new(IngressBackend)
  112. in.DeepCopyInto(out)
  113. return out
  114. }
  115. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  116. func (in *IngressList) DeepCopyInto(out *IngressList) {
  117. *out = *in
  118. out.TypeMeta = in.TypeMeta
  119. in.ListMeta.DeepCopyInto(&out.ListMeta)
  120. if in.Items != nil {
  121. in, out := &in.Items, &out.Items
  122. *out = make([]Ingress, len(*in))
  123. for i := range *in {
  124. (*in)[i].DeepCopyInto(&(*out)[i])
  125. }
  126. }
  127. return
  128. }
  129. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressList.
  130. func (in *IngressList) DeepCopy() *IngressList {
  131. if in == nil {
  132. return nil
  133. }
  134. out := new(IngressList)
  135. in.DeepCopyInto(out)
  136. return out
  137. }
  138. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  139. func (in *IngressList) DeepCopyObject() runtime.Object {
  140. if c := in.DeepCopy(); c != nil {
  141. return c
  142. }
  143. return nil
  144. }
  145. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  146. func (in *IngressRule) DeepCopyInto(out *IngressRule) {
  147. *out = *in
  148. in.IngressRuleValue.DeepCopyInto(&out.IngressRuleValue)
  149. return
  150. }
  151. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule.
  152. func (in *IngressRule) DeepCopy() *IngressRule {
  153. if in == nil {
  154. return nil
  155. }
  156. out := new(IngressRule)
  157. in.DeepCopyInto(out)
  158. return out
  159. }
  160. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  161. func (in *IngressRuleValue) DeepCopyInto(out *IngressRuleValue) {
  162. *out = *in
  163. if in.HTTP != nil {
  164. in, out := &in.HTTP, &out.HTTP
  165. *out = new(HTTPIngressRuleValue)
  166. (*in).DeepCopyInto(*out)
  167. }
  168. return
  169. }
  170. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRuleValue.
  171. func (in *IngressRuleValue) DeepCopy() *IngressRuleValue {
  172. if in == nil {
  173. return nil
  174. }
  175. out := new(IngressRuleValue)
  176. in.DeepCopyInto(out)
  177. return out
  178. }
  179. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  180. func (in *IngressSpec) DeepCopyInto(out *IngressSpec) {
  181. *out = *in
  182. if in.Backend != nil {
  183. in, out := &in.Backend, &out.Backend
  184. *out = new(IngressBackend)
  185. **out = **in
  186. }
  187. if in.TLS != nil {
  188. in, out := &in.TLS, &out.TLS
  189. *out = make([]IngressTLS, len(*in))
  190. for i := range *in {
  191. (*in)[i].DeepCopyInto(&(*out)[i])
  192. }
  193. }
  194. if in.Rules != nil {
  195. in, out := &in.Rules, &out.Rules
  196. *out = make([]IngressRule, len(*in))
  197. for i := range *in {
  198. (*in)[i].DeepCopyInto(&(*out)[i])
  199. }
  200. }
  201. return
  202. }
  203. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec.
  204. func (in *IngressSpec) DeepCopy() *IngressSpec {
  205. if in == nil {
  206. return nil
  207. }
  208. out := new(IngressSpec)
  209. in.DeepCopyInto(out)
  210. return out
  211. }
  212. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  213. func (in *IngressStatus) DeepCopyInto(out *IngressStatus) {
  214. *out = *in
  215. in.LoadBalancer.DeepCopyInto(&out.LoadBalancer)
  216. return
  217. }
  218. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressStatus.
  219. func (in *IngressStatus) DeepCopy() *IngressStatus {
  220. if in == nil {
  221. return nil
  222. }
  223. out := new(IngressStatus)
  224. in.DeepCopyInto(out)
  225. return out
  226. }
  227. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  228. func (in *IngressTLS) DeepCopyInto(out *IngressTLS) {
  229. *out = *in
  230. if in.Hosts != nil {
  231. in, out := &in.Hosts, &out.Hosts
  232. *out = make([]string, len(*in))
  233. copy(*out, *in)
  234. }
  235. return
  236. }
  237. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTLS.
  238. func (in *IngressTLS) DeepCopy() *IngressTLS {
  239. if in == nil {
  240. return nil
  241. }
  242. out := new(IngressTLS)
  243. in.DeepCopyInto(out)
  244. return out
  245. }
  246. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  247. func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
  248. *out = *in
  249. out.TypeMeta = in.TypeMeta
  250. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  251. in.Spec.DeepCopyInto(&out.Spec)
  252. return
  253. }
  254. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
  255. func (in *NetworkPolicy) DeepCopy() *NetworkPolicy {
  256. if in == nil {
  257. return nil
  258. }
  259. out := new(NetworkPolicy)
  260. in.DeepCopyInto(out)
  261. return out
  262. }
  263. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  264. func (in *NetworkPolicy) DeepCopyObject() runtime.Object {
  265. if c := in.DeepCopy(); c != nil {
  266. return c
  267. }
  268. return nil
  269. }
  270. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  271. func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) {
  272. *out = *in
  273. if in.Ports != nil {
  274. in, out := &in.Ports, &out.Ports
  275. *out = make([]NetworkPolicyPort, len(*in))
  276. for i := range *in {
  277. (*in)[i].DeepCopyInto(&(*out)[i])
  278. }
  279. }
  280. if in.To != nil {
  281. in, out := &in.To, &out.To
  282. *out = make([]NetworkPolicyPeer, len(*in))
  283. for i := range *in {
  284. (*in)[i].DeepCopyInto(&(*out)[i])
  285. }
  286. }
  287. return
  288. }
  289. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule.
  290. func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule {
  291. if in == nil {
  292. return nil
  293. }
  294. out := new(NetworkPolicyEgressRule)
  295. in.DeepCopyInto(out)
  296. return out
  297. }
  298. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  299. func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
  300. *out = *in
  301. if in.Ports != nil {
  302. in, out := &in.Ports, &out.Ports
  303. *out = make([]NetworkPolicyPort, len(*in))
  304. for i := range *in {
  305. (*in)[i].DeepCopyInto(&(*out)[i])
  306. }
  307. }
  308. if in.From != nil {
  309. in, out := &in.From, &out.From
  310. *out = make([]NetworkPolicyPeer, len(*in))
  311. for i := range *in {
  312. (*in)[i].DeepCopyInto(&(*out)[i])
  313. }
  314. }
  315. return
  316. }
  317. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
  318. func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
  319. if in == nil {
  320. return nil
  321. }
  322. out := new(NetworkPolicyIngressRule)
  323. in.DeepCopyInto(out)
  324. return out
  325. }
  326. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  327. func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
  328. *out = *in
  329. out.TypeMeta = in.TypeMeta
  330. in.ListMeta.DeepCopyInto(&out.ListMeta)
  331. if in.Items != nil {
  332. in, out := &in.Items, &out.Items
  333. *out = make([]NetworkPolicy, len(*in))
  334. for i := range *in {
  335. (*in)[i].DeepCopyInto(&(*out)[i])
  336. }
  337. }
  338. return
  339. }
  340. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
  341. func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
  342. if in == nil {
  343. return nil
  344. }
  345. out := new(NetworkPolicyList)
  346. in.DeepCopyInto(out)
  347. return out
  348. }
  349. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  350. func (in *NetworkPolicyList) DeepCopyObject() runtime.Object {
  351. if c := in.DeepCopy(); c != nil {
  352. return c
  353. }
  354. return nil
  355. }
  356. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  357. func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
  358. *out = *in
  359. if in.PodSelector != nil {
  360. in, out := &in.PodSelector, &out.PodSelector
  361. *out = new(v1.LabelSelector)
  362. (*in).DeepCopyInto(*out)
  363. }
  364. if in.NamespaceSelector != nil {
  365. in, out := &in.NamespaceSelector, &out.NamespaceSelector
  366. *out = new(v1.LabelSelector)
  367. (*in).DeepCopyInto(*out)
  368. }
  369. if in.IPBlock != nil {
  370. in, out := &in.IPBlock, &out.IPBlock
  371. *out = new(IPBlock)
  372. (*in).DeepCopyInto(*out)
  373. }
  374. return
  375. }
  376. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
  377. func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
  378. if in == nil {
  379. return nil
  380. }
  381. out := new(NetworkPolicyPeer)
  382. in.DeepCopyInto(out)
  383. return out
  384. }
  385. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  386. func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
  387. *out = *in
  388. if in.Protocol != nil {
  389. in, out := &in.Protocol, &out.Protocol
  390. *out = new(core.Protocol)
  391. **out = **in
  392. }
  393. if in.Port != nil {
  394. in, out := &in.Port, &out.Port
  395. *out = new(intstr.IntOrString)
  396. **out = **in
  397. }
  398. return
  399. }
  400. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
  401. func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
  402. if in == nil {
  403. return nil
  404. }
  405. out := new(NetworkPolicyPort)
  406. in.DeepCopyInto(out)
  407. return out
  408. }
  409. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  410. func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
  411. *out = *in
  412. in.PodSelector.DeepCopyInto(&out.PodSelector)
  413. if in.Ingress != nil {
  414. in, out := &in.Ingress, &out.Ingress
  415. *out = make([]NetworkPolicyIngressRule, len(*in))
  416. for i := range *in {
  417. (*in)[i].DeepCopyInto(&(*out)[i])
  418. }
  419. }
  420. if in.Egress != nil {
  421. in, out := &in.Egress, &out.Egress
  422. *out = make([]NetworkPolicyEgressRule, len(*in))
  423. for i := range *in {
  424. (*in)[i].DeepCopyInto(&(*out)[i])
  425. }
  426. }
  427. if in.PolicyTypes != nil {
  428. in, out := &in.PolicyTypes, &out.PolicyTypes
  429. *out = make([]PolicyType, len(*in))
  430. copy(*out, *in)
  431. }
  432. return
  433. }
  434. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
  435. func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
  436. if in == nil {
  437. return nil
  438. }
  439. out := new(NetworkPolicySpec)
  440. in.DeepCopyInto(out)
  441. return out
  442. }