zz_generated.deepcopy.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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/api/authorization/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 *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview) {
  41. *out = *in
  42. out.TypeMeta = in.TypeMeta
  43. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  44. in.Spec.DeepCopyInto(&out.Spec)
  45. out.Status = in.Status
  46. return
  47. }
  48. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSubjectAccessReview.
  49. func (in *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview {
  50. if in == nil {
  51. return nil
  52. }
  53. out := new(LocalSubjectAccessReview)
  54. in.DeepCopyInto(out)
  55. return out
  56. }
  57. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  58. func (in *LocalSubjectAccessReview) DeepCopyObject() runtime.Object {
  59. if c := in.DeepCopy(); c != nil {
  60. return c
  61. }
  62. return nil
  63. }
  64. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  65. func (in *NonResourceAttributes) DeepCopyInto(out *NonResourceAttributes) {
  66. *out = *in
  67. return
  68. }
  69. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceAttributes.
  70. func (in *NonResourceAttributes) DeepCopy() *NonResourceAttributes {
  71. if in == nil {
  72. return nil
  73. }
  74. out := new(NonResourceAttributes)
  75. in.DeepCopyInto(out)
  76. return out
  77. }
  78. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  79. func (in *NonResourceRule) DeepCopyInto(out *NonResourceRule) {
  80. *out = *in
  81. if in.Verbs != nil {
  82. in, out := &in.Verbs, &out.Verbs
  83. *out = make([]string, len(*in))
  84. copy(*out, *in)
  85. }
  86. if in.NonResourceURLs != nil {
  87. in, out := &in.NonResourceURLs, &out.NonResourceURLs
  88. *out = make([]string, len(*in))
  89. copy(*out, *in)
  90. }
  91. return
  92. }
  93. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceRule.
  94. func (in *NonResourceRule) DeepCopy() *NonResourceRule {
  95. if in == nil {
  96. return nil
  97. }
  98. out := new(NonResourceRule)
  99. in.DeepCopyInto(out)
  100. return out
  101. }
  102. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  103. func (in *ResourceAttributes) DeepCopyInto(out *ResourceAttributes) {
  104. *out = *in
  105. if in.FieldSelector != nil {
  106. in, out := &in.FieldSelector, &out.FieldSelector
  107. *out = new(v1.FieldSelectorAttributes)
  108. (*in).DeepCopyInto(*out)
  109. }
  110. if in.LabelSelector != nil {
  111. in, out := &in.LabelSelector, &out.LabelSelector
  112. *out = new(v1.LabelSelectorAttributes)
  113. (*in).DeepCopyInto(*out)
  114. }
  115. return
  116. }
  117. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceAttributes.
  118. func (in *ResourceAttributes) DeepCopy() *ResourceAttributes {
  119. if in == nil {
  120. return nil
  121. }
  122. out := new(ResourceAttributes)
  123. in.DeepCopyInto(out)
  124. return out
  125. }
  126. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  127. func (in *ResourceRule) DeepCopyInto(out *ResourceRule) {
  128. *out = *in
  129. if in.Verbs != nil {
  130. in, out := &in.Verbs, &out.Verbs
  131. *out = make([]string, len(*in))
  132. copy(*out, *in)
  133. }
  134. if in.APIGroups != nil {
  135. in, out := &in.APIGroups, &out.APIGroups
  136. *out = make([]string, len(*in))
  137. copy(*out, *in)
  138. }
  139. if in.Resources != nil {
  140. in, out := &in.Resources, &out.Resources
  141. *out = make([]string, len(*in))
  142. copy(*out, *in)
  143. }
  144. if in.ResourceNames != nil {
  145. in, out := &in.ResourceNames, &out.ResourceNames
  146. *out = make([]string, len(*in))
  147. copy(*out, *in)
  148. }
  149. return
  150. }
  151. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRule.
  152. func (in *ResourceRule) DeepCopy() *ResourceRule {
  153. if in == nil {
  154. return nil
  155. }
  156. out := new(ResourceRule)
  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 *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) {
  162. *out = *in
  163. out.TypeMeta = in.TypeMeta
  164. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  165. in.Spec.DeepCopyInto(&out.Spec)
  166. out.Status = in.Status
  167. return
  168. }
  169. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReview.
  170. func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview {
  171. if in == nil {
  172. return nil
  173. }
  174. out := new(SelfSubjectAccessReview)
  175. in.DeepCopyInto(out)
  176. return out
  177. }
  178. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  179. func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object {
  180. if c := in.DeepCopy(); c != nil {
  181. return c
  182. }
  183. return nil
  184. }
  185. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  186. func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) {
  187. *out = *in
  188. if in.ResourceAttributes != nil {
  189. in, out := &in.ResourceAttributes, &out.ResourceAttributes
  190. *out = new(ResourceAttributes)
  191. (*in).DeepCopyInto(*out)
  192. }
  193. if in.NonResourceAttributes != nil {
  194. in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
  195. *out = new(NonResourceAttributes)
  196. **out = **in
  197. }
  198. return
  199. }
  200. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec.
  201. func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec {
  202. if in == nil {
  203. return nil
  204. }
  205. out := new(SelfSubjectAccessReviewSpec)
  206. in.DeepCopyInto(out)
  207. return out
  208. }
  209. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  210. func (in *SelfSubjectRulesReview) DeepCopyInto(out *SelfSubjectRulesReview) {
  211. *out = *in
  212. out.TypeMeta = in.TypeMeta
  213. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  214. out.Spec = in.Spec
  215. in.Status.DeepCopyInto(&out.Status)
  216. return
  217. }
  218. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReview.
  219. func (in *SelfSubjectRulesReview) DeepCopy() *SelfSubjectRulesReview {
  220. if in == nil {
  221. return nil
  222. }
  223. out := new(SelfSubjectRulesReview)
  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 *SelfSubjectRulesReview) 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 *SelfSubjectRulesReviewSpec) DeepCopyInto(out *SelfSubjectRulesReviewSpec) {
  236. *out = *in
  237. return
  238. }
  239. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReviewSpec.
  240. func (in *SelfSubjectRulesReviewSpec) DeepCopy() *SelfSubjectRulesReviewSpec {
  241. if in == nil {
  242. return nil
  243. }
  244. out := new(SelfSubjectRulesReviewSpec)
  245. in.DeepCopyInto(out)
  246. return out
  247. }
  248. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  249. func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) {
  250. *out = *in
  251. out.TypeMeta = in.TypeMeta
  252. in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
  253. in.Spec.DeepCopyInto(&out.Spec)
  254. out.Status = in.Status
  255. return
  256. }
  257. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReview.
  258. func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview {
  259. if in == nil {
  260. return nil
  261. }
  262. out := new(SubjectAccessReview)
  263. in.DeepCopyInto(out)
  264. return out
  265. }
  266. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
  267. func (in *SubjectAccessReview) DeepCopyObject() runtime.Object {
  268. if c := in.DeepCopy(); c != nil {
  269. return c
  270. }
  271. return nil
  272. }
  273. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  274. func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) {
  275. *out = *in
  276. if in.ResourceAttributes != nil {
  277. in, out := &in.ResourceAttributes, &out.ResourceAttributes
  278. *out = new(ResourceAttributes)
  279. (*in).DeepCopyInto(*out)
  280. }
  281. if in.NonResourceAttributes != nil {
  282. in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
  283. *out = new(NonResourceAttributes)
  284. **out = **in
  285. }
  286. if in.Groups != nil {
  287. in, out := &in.Groups, &out.Groups
  288. *out = make([]string, len(*in))
  289. copy(*out, *in)
  290. }
  291. if in.Extra != nil {
  292. in, out := &in.Extra, &out.Extra
  293. *out = make(map[string]ExtraValue, len(*in))
  294. for key, val := range *in {
  295. var outVal []string
  296. if val == nil {
  297. (*out)[key] = nil
  298. } else {
  299. in, out := &val, &outVal
  300. *out = make(ExtraValue, len(*in))
  301. copy(*out, *in)
  302. }
  303. (*out)[key] = outVal
  304. }
  305. }
  306. return
  307. }
  308. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec.
  309. func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec {
  310. if in == nil {
  311. return nil
  312. }
  313. out := new(SubjectAccessReviewSpec)
  314. in.DeepCopyInto(out)
  315. return out
  316. }
  317. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  318. func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) {
  319. *out = *in
  320. return
  321. }
  322. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus.
  323. func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus {
  324. if in == nil {
  325. return nil
  326. }
  327. out := new(SubjectAccessReviewStatus)
  328. in.DeepCopyInto(out)
  329. return out
  330. }
  331. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
  332. func (in *SubjectRulesReviewStatus) DeepCopyInto(out *SubjectRulesReviewStatus) {
  333. *out = *in
  334. if in.ResourceRules != nil {
  335. in, out := &in.ResourceRules, &out.ResourceRules
  336. *out = make([]ResourceRule, len(*in))
  337. for i := range *in {
  338. (*in)[i].DeepCopyInto(&(*out)[i])
  339. }
  340. }
  341. if in.NonResourceRules != nil {
  342. in, out := &in.NonResourceRules, &out.NonResourceRules
  343. *out = make([]NonResourceRule, len(*in))
  344. for i := range *in {
  345. (*in)[i].DeepCopyInto(&(*out)[i])
  346. }
  347. }
  348. return
  349. }
  350. // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectRulesReviewStatus.
  351. func (in *SubjectRulesReviewStatus) DeepCopy() *SubjectRulesReviewStatus {
  352. if in == nil {
  353. return nil
  354. }
  355. out := new(SubjectRulesReviewStatus)
  356. in.DeepCopyInto(out)
  357. return out
  358. }