zz_generated.deepcopy.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  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/apimachinery/pkg/apis/meta/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 *AggregationRule) DeepCopyInto(out *AggregationRule) {
  22. *out = *in
  23. if in.ClusterRoleSelectors != nil {
  24. in, out := &in.ClusterRoleSelectors, &out.ClusterRoleSelectors
  25. *out = make([]v1.LabelSelector, len(*in))
  26. for i := range *in {
  27. (*in)[i].DeepCopyInto(&(*out)[i])
  28. }
  29. }
  30. return
  31. }
  32. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AggregationRule.
  33. func (in *AggregationRule) DeepCopy() *AggregationRule {
  34. if in == nil {
  35. return nil
  36. }
  37. out := new(AggregationRule)
  38. in.DeepCopyInto(out)
  39. return out
  40. }
  41. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  42. func (in *ClusterRole) DeepCopyInto(out *ClusterRole) {
  43. *out = *in
  44. out.TypeMeta = in.TypeMeta
  45. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  46. if in.Rules != nil {
  47. in, out := &in.Rules, &out.Rules
  48. *out = make([]PolicyRule, len(*in))
  49. for i := range *in {
  50. (*in)[i].DeepCopyInto(&(*out)[i])
  51. }
  52. }
  53. if in.AggregationRule != nil {
  54. in, out := &in.AggregationRule, &out.AggregationRule
  55. *out = new(AggregationRule)
  56. (*in).DeepCopyInto(*out)
  57. }
  58. return
  59. }
  60. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRole.
  61. func (in *ClusterRole) DeepCopy() *ClusterRole {
  62. if in == nil {
  63. return nil
  64. }
  65. out := new(ClusterRole)
  66. in.DeepCopyInto(out)
  67. return out
  68. }
  69. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  70. func (in *ClusterRole) DeepCopyObject() runtime.Object {
  71. if c := in.DeepCopy(); c != nil {
  72. return c
  73. }
  74. return nil
  75. }
  76. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  77. func (in *ClusterRoleBinding) DeepCopyInto(out *ClusterRoleBinding) {
  78. *out = *in
  79. out.TypeMeta = in.TypeMeta
  80. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  81. if in.Subjects != nil {
  82. in, out := &in.Subjects, &out.Subjects
  83. *out = make([]Subject, len(*in))
  84. copy(*out, *in)
  85. }
  86. out.RoleRef = in.RoleRef
  87. return
  88. }
  89. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBinding.
  90. func (in *ClusterRoleBinding) DeepCopy() *ClusterRoleBinding {
  91. if in == nil {
  92. return nil
  93. }
  94. out := new(ClusterRoleBinding)
  95. in.DeepCopyInto(out)
  96. return out
  97. }
  98. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  99. func (in *ClusterRoleBinding) DeepCopyObject() runtime.Object {
  100. if c := in.DeepCopy(); c != nil {
  101. return c
  102. }
  103. return nil
  104. }
  105. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  106. func (in *ClusterRoleBindingList) DeepCopyInto(out *ClusterRoleBindingList) {
  107. *out = *in
  108. out.TypeMeta = in.TypeMeta
  109. out.ListMeta = in.ListMeta
  110. if in.Items != nil {
  111. in, out := &in.Items, &out.Items
  112. *out = make([]ClusterRoleBinding, len(*in))
  113. for i := range *in {
  114. (*in)[i].DeepCopyInto(&(*out)[i])
  115. }
  116. }
  117. return
  118. }
  119. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBindingList.
  120. func (in *ClusterRoleBindingList) DeepCopy() *ClusterRoleBindingList {
  121. if in == nil {
  122. return nil
  123. }
  124. out := new(ClusterRoleBindingList)
  125. in.DeepCopyInto(out)
  126. return out
  127. }
  128. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  129. func (in *ClusterRoleBindingList) DeepCopyObject() runtime.Object {
  130. if c := in.DeepCopy(); c != nil {
  131. return c
  132. }
  133. return nil
  134. }
  135. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  136. func (in *ClusterRoleList) DeepCopyInto(out *ClusterRoleList) {
  137. *out = *in
  138. out.TypeMeta = in.TypeMeta
  139. out.ListMeta = in.ListMeta
  140. if in.Items != nil {
  141. in, out := &in.Items, &out.Items
  142. *out = make([]ClusterRole, len(*in))
  143. for i := range *in {
  144. (*in)[i].DeepCopyInto(&(*out)[i])
  145. }
  146. }
  147. return
  148. }
  149. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleList.
  150. func (in *ClusterRoleList) DeepCopy() *ClusterRoleList {
  151. if in == nil {
  152. return nil
  153. }
  154. out := new(ClusterRoleList)
  155. in.DeepCopyInto(out)
  156. return out
  157. }
  158. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  159. func (in *ClusterRoleList) DeepCopyObject() runtime.Object {
  160. if c := in.DeepCopy(); c != nil {
  161. return c
  162. }
  163. return nil
  164. }
  165. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  166. func (in *PolicyRule) DeepCopyInto(out *PolicyRule) {
  167. *out = *in
  168. if in.Verbs != nil {
  169. in, out := &in.Verbs, &out.Verbs
  170. *out = make([]string, len(*in))
  171. copy(*out, *in)
  172. }
  173. if in.APIGroups != nil {
  174. in, out := &in.APIGroups, &out.APIGroups
  175. *out = make([]string, len(*in))
  176. copy(*out, *in)
  177. }
  178. if in.Resources != nil {
  179. in, out := &in.Resources, &out.Resources
  180. *out = make([]string, len(*in))
  181. copy(*out, *in)
  182. }
  183. if in.ResourceNames != nil {
  184. in, out := &in.ResourceNames, &out.ResourceNames
  185. *out = make([]string, len(*in))
  186. copy(*out, *in)
  187. }
  188. if in.NonResourceURLs != nil {
  189. in, out := &in.NonResourceURLs, &out.NonResourceURLs
  190. *out = make([]string, len(*in))
  191. copy(*out, *in)
  192. }
  193. return
  194. }
  195. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
  196. func (in *PolicyRule) DeepCopy() *PolicyRule {
  197. if in == nil {
  198. return nil
  199. }
  200. out := new(PolicyRule)
  201. in.DeepCopyInto(out)
  202. return out
  203. }
  204. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  205. func (in *Role) DeepCopyInto(out *Role) {
  206. *out = *in
  207. out.TypeMeta = in.TypeMeta
  208. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  209. if in.Rules != nil {
  210. in, out := &in.Rules, &out.Rules
  211. *out = make([]PolicyRule, len(*in))
  212. for i := range *in {
  213. (*in)[i].DeepCopyInto(&(*out)[i])
  214. }
  215. }
  216. return
  217. }
  218. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Role.
  219. func (in *Role) DeepCopy() *Role {
  220. if in == nil {
  221. return nil
  222. }
  223. out := new(Role)
  224. in.DeepCopyInto(out)
  225. return out
  226. }
  227. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  228. func (in *Role) DeepCopyObject() runtime.Object {
  229. if c := in.DeepCopy(); c != nil {
  230. return c
  231. }
  232. return nil
  233. }
  234. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  235. func (in *RoleBinding) DeepCopyInto(out *RoleBinding) {
  236. *out = *in
  237. out.TypeMeta = in.TypeMeta
  238. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  239. if in.Subjects != nil {
  240. in, out := &in.Subjects, &out.Subjects
  241. *out = make([]Subject, len(*in))
  242. copy(*out, *in)
  243. }
  244. out.RoleRef = in.RoleRef
  245. return
  246. }
  247. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBinding.
  248. func (in *RoleBinding) DeepCopy() *RoleBinding {
  249. if in == nil {
  250. return nil
  251. }
  252. out := new(RoleBinding)
  253. in.DeepCopyInto(out)
  254. return out
  255. }
  256. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  257. func (in *RoleBinding) DeepCopyObject() runtime.Object {
  258. if c := in.DeepCopy(); c != nil {
  259. return c
  260. }
  261. return nil
  262. }
  263. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  264. func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList) {
  265. *out = *in
  266. out.TypeMeta = in.TypeMeta
  267. out.ListMeta = in.ListMeta
  268. if in.Items != nil {
  269. in, out := &in.Items, &out.Items
  270. *out = make([]RoleBinding, len(*in))
  271. for i := range *in {
  272. (*in)[i].DeepCopyInto(&(*out)[i])
  273. }
  274. }
  275. return
  276. }
  277. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingList.
  278. func (in *RoleBindingList) DeepCopy() *RoleBindingList {
  279. if in == nil {
  280. return nil
  281. }
  282. out := new(RoleBindingList)
  283. in.DeepCopyInto(out)
  284. return out
  285. }
  286. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  287. func (in *RoleBindingList) DeepCopyObject() runtime.Object {
  288. if c := in.DeepCopy(); c != nil {
  289. return c
  290. }
  291. return nil
  292. }
  293. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  294. func (in *RoleList) DeepCopyInto(out *RoleList) {
  295. *out = *in
  296. out.TypeMeta = in.TypeMeta
  297. out.ListMeta = in.ListMeta
  298. if in.Items != nil {
  299. in, out := &in.Items, &out.Items
  300. *out = make([]Role, len(*in))
  301. for i := range *in {
  302. (*in)[i].DeepCopyInto(&(*out)[i])
  303. }
  304. }
  305. return
  306. }
  307. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleList.
  308. func (in *RoleList) DeepCopy() *RoleList {
  309. if in == nil {
  310. return nil
  311. }
  312. out := new(RoleList)
  313. in.DeepCopyInto(out)
  314. return out
  315. }
  316. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  317. func (in *RoleList) DeepCopyObject() runtime.Object {
  318. if c := in.DeepCopy(); c != nil {
  319. return c
  320. }
  321. return nil
  322. }
  323. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  324. func (in *RoleRef) DeepCopyInto(out *RoleRef) {
  325. *out = *in
  326. return
  327. }
  328. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRef.
  329. func (in *RoleRef) DeepCopy() *RoleRef {
  330. if in == nil {
  331. return nil
  332. }
  333. out := new(RoleRef)
  334. in.DeepCopyInto(out)
  335. return out
  336. }
  337. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  338. func (in *Subject) DeepCopyInto(out *Subject) {
  339. *out = *in
  340. return
  341. }
  342. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subject.
  343. func (in *Subject) DeepCopy() *Subject {
  344. if in == nil {
  345. return nil
  346. }
  347. out := new(Subject)
  348. in.DeepCopyInto(out)
  349. return out
  350. }