zz_generated.deepcopy.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  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. metav1 "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 ExtraValue) DeepCopyInto(out *ExtraValue) {
  23. {
  24. in := &in
  25. *out = make(ExtraValue, len(*in))
  26. copy(*out, *in)
  27. return
  28. }
  29. }
  30. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue.
  31. func (in ExtraValue) DeepCopy() ExtraValue {
  32. if in == nil {
  33. return nil
  34. }
  35. out := new(ExtraValue)
  36. in.DeepCopyInto(out)
  37. return *out
  38. }
  39. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  40. func (in *FieldSelectorAttributes) DeepCopyInto(out *FieldSelectorAttributes) {
  41. *out = *in
  42. if in.Requirements != nil {
  43. in, out := &in.Requirements, &out.Requirements
  44. *out = make([]metav1.FieldSelectorRequirement, len(*in))
  45. for i := range *in {
  46. (*in)[i].DeepCopyInto(&(*out)[i])
  47. }
  48. }
  49. return
  50. }
  51. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FieldSelectorAttributes.
  52. func (in *FieldSelectorAttributes) DeepCopy() *FieldSelectorAttributes {
  53. if in == nil {
  54. return nil
  55. }
  56. out := new(FieldSelectorAttributes)
  57. in.DeepCopyInto(out)
  58. return out
  59. }
  60. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  61. func (in *LabelSelectorAttributes) DeepCopyInto(out *LabelSelectorAttributes) {
  62. *out = *in
  63. if in.Requirements != nil {
  64. in, out := &in.Requirements, &out.Requirements
  65. *out = make([]metav1.LabelSelectorRequirement, len(*in))
  66. for i := range *in {
  67. (*in)[i].DeepCopyInto(&(*out)[i])
  68. }
  69. }
  70. return
  71. }
  72. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelectorAttributes.
  73. func (in *LabelSelectorAttributes) DeepCopy() *LabelSelectorAttributes {
  74. if in == nil {
  75. return nil
  76. }
  77. out := new(LabelSelectorAttributes)
  78. in.DeepCopyInto(out)
  79. return out
  80. }
  81. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  82. func (in *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview) {
  83. *out = *in
  84. out.TypeMeta = in.TypeMeta
  85. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  86. in.Spec.DeepCopyInto(&out.Spec)
  87. out.Status = in.Status
  88. return
  89. }
  90. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSubjectAccessReview.
  91. func (in *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview {
  92. if in == nil {
  93. return nil
  94. }
  95. out := new(LocalSubjectAccessReview)
  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 *LocalSubjectAccessReview) 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 *NonResourceAttributes) DeepCopyInto(out *NonResourceAttributes) {
  108. *out = *in
  109. return
  110. }
  111. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceAttributes.
  112. func (in *NonResourceAttributes) DeepCopy() *NonResourceAttributes {
  113. if in == nil {
  114. return nil
  115. }
  116. out := new(NonResourceAttributes)
  117. in.DeepCopyInto(out)
  118. return out
  119. }
  120. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  121. func (in *NonResourceRule) DeepCopyInto(out *NonResourceRule) {
  122. *out = *in
  123. if in.Verbs != nil {
  124. in, out := &in.Verbs, &out.Verbs
  125. *out = make([]string, len(*in))
  126. copy(*out, *in)
  127. }
  128. if in.NonResourceURLs != nil {
  129. in, out := &in.NonResourceURLs, &out.NonResourceURLs
  130. *out = make([]string, len(*in))
  131. copy(*out, *in)
  132. }
  133. return
  134. }
  135. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceRule.
  136. func (in *NonResourceRule) DeepCopy() *NonResourceRule {
  137. if in == nil {
  138. return nil
  139. }
  140. out := new(NonResourceRule)
  141. in.DeepCopyInto(out)
  142. return out
  143. }
  144. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  145. func (in *ResourceAttributes) DeepCopyInto(out *ResourceAttributes) {
  146. *out = *in
  147. if in.FieldSelector != nil {
  148. in, out := &in.FieldSelector, &out.FieldSelector
  149. *out = new(FieldSelectorAttributes)
  150. (*in).DeepCopyInto(*out)
  151. }
  152. if in.LabelSelector != nil {
  153. in, out := &in.LabelSelector, &out.LabelSelector
  154. *out = new(LabelSelectorAttributes)
  155. (*in).DeepCopyInto(*out)
  156. }
  157. return
  158. }
  159. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceAttributes.
  160. func (in *ResourceAttributes) DeepCopy() *ResourceAttributes {
  161. if in == nil {
  162. return nil
  163. }
  164. out := new(ResourceAttributes)
  165. in.DeepCopyInto(out)
  166. return out
  167. }
  168. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  169. func (in *ResourceRule) DeepCopyInto(out *ResourceRule) {
  170. *out = *in
  171. if in.Verbs != nil {
  172. in, out := &in.Verbs, &out.Verbs
  173. *out = make([]string, len(*in))
  174. copy(*out, *in)
  175. }
  176. if in.APIGroups != nil {
  177. in, out := &in.APIGroups, &out.APIGroups
  178. *out = make([]string, len(*in))
  179. copy(*out, *in)
  180. }
  181. if in.Resources != nil {
  182. in, out := &in.Resources, &out.Resources
  183. *out = make([]string, len(*in))
  184. copy(*out, *in)
  185. }
  186. if in.ResourceNames != nil {
  187. in, out := &in.ResourceNames, &out.ResourceNames
  188. *out = make([]string, len(*in))
  189. copy(*out, *in)
  190. }
  191. return
  192. }
  193. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRule.
  194. func (in *ResourceRule) DeepCopy() *ResourceRule {
  195. if in == nil {
  196. return nil
  197. }
  198. out := new(ResourceRule)
  199. in.DeepCopyInto(out)
  200. return out
  201. }
  202. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  203. func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) {
  204. *out = *in
  205. out.TypeMeta = in.TypeMeta
  206. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  207. in.Spec.DeepCopyInto(&out.Spec)
  208. out.Status = in.Status
  209. return
  210. }
  211. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReview.
  212. func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview {
  213. if in == nil {
  214. return nil
  215. }
  216. out := new(SelfSubjectAccessReview)
  217. in.DeepCopyInto(out)
  218. return out
  219. }
  220. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  221. func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object {
  222. if c := in.DeepCopy(); c != nil {
  223. return c
  224. }
  225. return nil
  226. }
  227. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  228. func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) {
  229. *out = *in
  230. if in.ResourceAttributes != nil {
  231. in, out := &in.ResourceAttributes, &out.ResourceAttributes
  232. *out = new(ResourceAttributes)
  233. (*in).DeepCopyInto(*out)
  234. }
  235. if in.NonResourceAttributes != nil {
  236. in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
  237. *out = new(NonResourceAttributes)
  238. **out = **in
  239. }
  240. return
  241. }
  242. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec.
  243. func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec {
  244. if in == nil {
  245. return nil
  246. }
  247. out := new(SelfSubjectAccessReviewSpec)
  248. in.DeepCopyInto(out)
  249. return out
  250. }
  251. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  252. func (in *SelfSubjectRulesReview) DeepCopyInto(out *SelfSubjectRulesReview) {
  253. *out = *in
  254. out.TypeMeta = in.TypeMeta
  255. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  256. out.Spec = in.Spec
  257. in.Status.DeepCopyInto(&out.Status)
  258. return
  259. }
  260. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReview.
  261. func (in *SelfSubjectRulesReview) DeepCopy() *SelfSubjectRulesReview {
  262. if in == nil {
  263. return nil
  264. }
  265. out := new(SelfSubjectRulesReview)
  266. in.DeepCopyInto(out)
  267. return out
  268. }
  269. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  270. func (in *SelfSubjectRulesReview) DeepCopyObject() runtime.Object {
  271. if c := in.DeepCopy(); c != nil {
  272. return c
  273. }
  274. return nil
  275. }
  276. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  277. func (in *SelfSubjectRulesReviewSpec) DeepCopyInto(out *SelfSubjectRulesReviewSpec) {
  278. *out = *in
  279. return
  280. }
  281. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReviewSpec.
  282. func (in *SelfSubjectRulesReviewSpec) DeepCopy() *SelfSubjectRulesReviewSpec {
  283. if in == nil {
  284. return nil
  285. }
  286. out := new(SelfSubjectRulesReviewSpec)
  287. in.DeepCopyInto(out)
  288. return out
  289. }
  290. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  291. func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) {
  292. *out = *in
  293. out.TypeMeta = in.TypeMeta
  294. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  295. in.Spec.DeepCopyInto(&out.Spec)
  296. out.Status = in.Status
  297. return
  298. }
  299. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReview.
  300. func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview {
  301. if in == nil {
  302. return nil
  303. }
  304. out := new(SubjectAccessReview)
  305. in.DeepCopyInto(out)
  306. return out
  307. }
  308. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  309. func (in *SubjectAccessReview) DeepCopyObject() runtime.Object {
  310. if c := in.DeepCopy(); c != nil {
  311. return c
  312. }
  313. return nil
  314. }
  315. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  316. func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) {
  317. *out = *in
  318. if in.ResourceAttributes != nil {
  319. in, out := &in.ResourceAttributes, &out.ResourceAttributes
  320. *out = new(ResourceAttributes)
  321. (*in).DeepCopyInto(*out)
  322. }
  323. if in.NonResourceAttributes != nil {
  324. in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
  325. *out = new(NonResourceAttributes)
  326. **out = **in
  327. }
  328. if in.Groups != nil {
  329. in, out := &in.Groups, &out.Groups
  330. *out = make([]string, len(*in))
  331. copy(*out, *in)
  332. }
  333. if in.Extra != nil {
  334. in, out := &in.Extra, &out.Extra
  335. *out = make(map[string]ExtraValue, len(*in))
  336. for key, val := range *in {
  337. var outVal []string
  338. if val == nil {
  339. (*out)[key] = nil
  340. } else {
  341. in, out := &val, &outVal
  342. *out = make(ExtraValue, len(*in))
  343. copy(*out, *in)
  344. }
  345. (*out)[key] = outVal
  346. }
  347. }
  348. return
  349. }
  350. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec.
  351. func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec {
  352. if in == nil {
  353. return nil
  354. }
  355. out := new(SubjectAccessReviewSpec)
  356. in.DeepCopyInto(out)
  357. return out
  358. }
  359. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  360. func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) {
  361. *out = *in
  362. return
  363. }
  364. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus.
  365. func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus {
  366. if in == nil {
  367. return nil
  368. }
  369. out := new(SubjectAccessReviewStatus)
  370. in.DeepCopyInto(out)
  371. return out
  372. }
  373. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  374. func (in *SubjectRulesReviewStatus) DeepCopyInto(out *SubjectRulesReviewStatus) {
  375. *out = *in
  376. if in.ResourceRules != nil {
  377. in, out := &in.ResourceRules, &out.ResourceRules
  378. *out = make([]ResourceRule, len(*in))
  379. for i := range *in {
  380. (*in)[i].DeepCopyInto(&(*out)[i])
  381. }
  382. }
  383. if in.NonResourceRules != nil {
  384. in, out := &in.NonResourceRules, &out.NonResourceRules
  385. *out = make([]NonResourceRule, len(*in))
  386. for i := range *in {
  387. (*in)[i].DeepCopyInto(&(*out)[i])
  388. }
  389. }
  390. return
  391. }
  392. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectRulesReviewStatus.
  393. func (in *SubjectRulesReviewStatus) DeepCopy() *SubjectRulesReviewStatus {
  394. if in == nil {
  395. return nil
  396. }
  397. out := new(SubjectRulesReviewStatus)
  398. in.DeepCopyInto(out)
  399. return out
  400. }