zz_generated.deepcopy.go 11 KB

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