1 // +build !ignore_autogenerated
4 Copyright The Kubernetes Authors.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
19 // Code generated by deepcopy-gen. DO NOT EDIT.
24 runtime "k8s.io/apimachinery/pkg/runtime"
27 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
28 func (in ExtraValue) DeepCopyInto(out *ExtraValue) {
31 *out = make(ExtraValue, len(*in))
37 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue.
38 func (in ExtraValue) DeepCopy() ExtraValue {
42 out := new(ExtraValue)
47 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
48 func (in *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview) {
50 out.TypeMeta = in.TypeMeta
51 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
52 in.Spec.DeepCopyInto(&out.Spec)
53 out.Status = in.Status
57 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSubjectAccessReview.
58 func (in *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview {
62 out := new(LocalSubjectAccessReview)
67 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
68 func (in *LocalSubjectAccessReview) DeepCopyObject() runtime.Object {
69 if c := in.DeepCopy(); c != nil {
75 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
76 func (in *NonResourceAttributes) DeepCopyInto(out *NonResourceAttributes) {
81 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceAttributes.
82 func (in *NonResourceAttributes) DeepCopy() *NonResourceAttributes {
86 out := new(NonResourceAttributes)
91 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
92 func (in *NonResourceRule) DeepCopyInto(out *NonResourceRule) {
95 in, out := &in.Verbs, &out.Verbs
96 *out = make([]string, len(*in))
99 if in.NonResourceURLs != nil {
100 in, out := &in.NonResourceURLs, &out.NonResourceURLs
101 *out = make([]string, len(*in))
107 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceRule.
108 func (in *NonResourceRule) DeepCopy() *NonResourceRule {
112 out := new(NonResourceRule)
117 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
118 func (in *ResourceAttributes) DeepCopyInto(out *ResourceAttributes) {
123 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceAttributes.
124 func (in *ResourceAttributes) DeepCopy() *ResourceAttributes {
128 out := new(ResourceAttributes)
133 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
134 func (in *ResourceRule) DeepCopyInto(out *ResourceRule) {
137 in, out := &in.Verbs, &out.Verbs
138 *out = make([]string, len(*in))
141 if in.APIGroups != nil {
142 in, out := &in.APIGroups, &out.APIGroups
143 *out = make([]string, len(*in))
146 if in.Resources != nil {
147 in, out := &in.Resources, &out.Resources
148 *out = make([]string, len(*in))
151 if in.ResourceNames != nil {
152 in, out := &in.ResourceNames, &out.ResourceNames
153 *out = make([]string, len(*in))
159 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRule.
160 func (in *ResourceRule) DeepCopy() *ResourceRule {
164 out := new(ResourceRule)
169 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
170 func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) {
172 out.TypeMeta = in.TypeMeta
173 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
174 in.Spec.DeepCopyInto(&out.Spec)
175 out.Status = in.Status
179 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReview.
180 func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview {
184 out := new(SelfSubjectAccessReview)
189 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
190 func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object {
191 if c := in.DeepCopy(); c != nil {
197 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
198 func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) {
200 if in.ResourceAttributes != nil {
201 in, out := &in.ResourceAttributes, &out.ResourceAttributes
202 *out = new(ResourceAttributes)
205 if in.NonResourceAttributes != nil {
206 in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
207 *out = new(NonResourceAttributes)
213 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec.
214 func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec {
218 out := new(SelfSubjectAccessReviewSpec)
223 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
224 func (in *SelfSubjectRulesReview) DeepCopyInto(out *SelfSubjectRulesReview) {
226 out.TypeMeta = in.TypeMeta
227 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
229 in.Status.DeepCopyInto(&out.Status)
233 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReview.
234 func (in *SelfSubjectRulesReview) DeepCopy() *SelfSubjectRulesReview {
238 out := new(SelfSubjectRulesReview)
243 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
244 func (in *SelfSubjectRulesReview) DeepCopyObject() runtime.Object {
245 if c := in.DeepCopy(); c != nil {
251 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
252 func (in *SelfSubjectRulesReviewSpec) DeepCopyInto(out *SelfSubjectRulesReviewSpec) {
257 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReviewSpec.
258 func (in *SelfSubjectRulesReviewSpec) DeepCopy() *SelfSubjectRulesReviewSpec {
262 out := new(SelfSubjectRulesReviewSpec)
267 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
268 func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) {
270 out.TypeMeta = in.TypeMeta
271 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
272 in.Spec.DeepCopyInto(&out.Spec)
273 out.Status = in.Status
277 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReview.
278 func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview {
282 out := new(SubjectAccessReview)
287 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
288 func (in *SubjectAccessReview) DeepCopyObject() runtime.Object {
289 if c := in.DeepCopy(); c != nil {
295 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
296 func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) {
298 if in.ResourceAttributes != nil {
299 in, out := &in.ResourceAttributes, &out.ResourceAttributes
300 *out = new(ResourceAttributes)
303 if in.NonResourceAttributes != nil {
304 in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
305 *out = new(NonResourceAttributes)
308 if in.Groups != nil {
309 in, out := &in.Groups, &out.Groups
310 *out = make([]string, len(*in))
314 in, out := &in.Extra, &out.Extra
315 *out = make(map[string]ExtraValue, len(*in))
316 for key, val := range *in {
321 in, out := &val, &outVal
322 *out = make(ExtraValue, len(*in))
331 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec.
332 func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec {
336 out := new(SubjectAccessReviewSpec)
341 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
342 func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) {
347 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus.
348 func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus {
352 out := new(SubjectAccessReviewStatus)
357 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
358 func (in *SubjectRulesReviewStatus) DeepCopyInto(out *SubjectRulesReviewStatus) {
360 if in.ResourceRules != nil {
361 in, out := &in.ResourceRules, &out.ResourceRules
362 *out = make([]ResourceRule, len(*in))
364 (*in)[i].DeepCopyInto(&(*out)[i])
367 if in.NonResourceRules != nil {
368 in, out := &in.NonResourceRules, &out.NonResourceRules
369 *out = make([]NonResourceRule, len(*in))
371 (*in)[i].DeepCopyInto(&(*out)[i])
377 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectRulesReviewStatus.
378 func (in *SubjectRulesReviewStatus) DeepCopy() *SubjectRulesReviewStatus {
382 out := new(SubjectRulesReviewStatus)