zz_generated.deepcopy.go 11 KB

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