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