zz_generated.deepcopy.go 11 KB

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