23d2edf03dc0f1f0f26ac5c6a66a768d1d8f5bab
[oom/registrator.git] /
1 // +build !ignore_autogenerated
2
3 /*
4 Copyright 2016 The Kubernetes Authors.
5
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
9
10     http://www.apache.org/licenses/LICENSE-2.0
11
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.
17 */
18
19 // This file was autogenerated by deepcopy-gen. Do not edit it manually!
20
21 package v1beta1
22
23 import (
24         api "k8s.io/kubernetes/pkg/api"
25         conversion "k8s.io/kubernetes/pkg/conversion"
26 )
27
28 func init() {
29         if err := api.Scheme.AddGeneratedDeepCopyFuncs(
30                 DeepCopy_v1beta1_LocalSubjectAccessReview,
31                 DeepCopy_v1beta1_NonResourceAttributes,
32                 DeepCopy_v1beta1_ResourceAttributes,
33                 DeepCopy_v1beta1_SelfSubjectAccessReview,
34                 DeepCopy_v1beta1_SelfSubjectAccessReviewSpec,
35                 DeepCopy_v1beta1_SubjectAccessReview,
36                 DeepCopy_v1beta1_SubjectAccessReviewSpec,
37                 DeepCopy_v1beta1_SubjectAccessReviewStatus,
38         ); err != nil {
39                 // if one of the deep copy functions is malformed, detect it immediately.
40                 panic(err)
41         }
42 }
43
44 func DeepCopy_v1beta1_LocalSubjectAccessReview(in LocalSubjectAccessReview, out *LocalSubjectAccessReview, c *conversion.Cloner) error {
45         out.TypeMeta = in.TypeMeta
46         if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(in.Spec, &out.Spec, c); err != nil {
47                 return err
48         }
49         out.Status = in.Status
50         return nil
51 }
52
53 func DeepCopy_v1beta1_NonResourceAttributes(in NonResourceAttributes, out *NonResourceAttributes, c *conversion.Cloner) error {
54         out.Path = in.Path
55         out.Verb = in.Verb
56         return nil
57 }
58
59 func DeepCopy_v1beta1_ResourceAttributes(in ResourceAttributes, out *ResourceAttributes, c *conversion.Cloner) error {
60         out.Namespace = in.Namespace
61         out.Verb = in.Verb
62         out.Group = in.Group
63         out.Version = in.Version
64         out.Resource = in.Resource
65         out.Subresource = in.Subresource
66         out.Name = in.Name
67         return nil
68 }
69
70 func DeepCopy_v1beta1_SelfSubjectAccessReview(in SelfSubjectAccessReview, out *SelfSubjectAccessReview, c *conversion.Cloner) error {
71         out.TypeMeta = in.TypeMeta
72         if err := DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(in.Spec, &out.Spec, c); err != nil {
73                 return err
74         }
75         out.Status = in.Status
76         return nil
77 }
78
79 func DeepCopy_v1beta1_SelfSubjectAccessReviewSpec(in SelfSubjectAccessReviewSpec, out *SelfSubjectAccessReviewSpec, c *conversion.Cloner) error {
80         if in.ResourceAttributes != nil {
81                 in, out := in.ResourceAttributes, &out.ResourceAttributes
82                 *out = new(ResourceAttributes)
83                 **out = *in
84         } else {
85                 out.ResourceAttributes = nil
86         }
87         if in.NonResourceAttributes != nil {
88                 in, out := in.NonResourceAttributes, &out.NonResourceAttributes
89                 *out = new(NonResourceAttributes)
90                 **out = *in
91         } else {
92                 out.NonResourceAttributes = nil
93         }
94         return nil
95 }
96
97 func DeepCopy_v1beta1_SubjectAccessReview(in SubjectAccessReview, out *SubjectAccessReview, c *conversion.Cloner) error {
98         out.TypeMeta = in.TypeMeta
99         if err := DeepCopy_v1beta1_SubjectAccessReviewSpec(in.Spec, &out.Spec, c); err != nil {
100                 return err
101         }
102         out.Status = in.Status
103         return nil
104 }
105
106 func DeepCopy_v1beta1_SubjectAccessReviewSpec(in SubjectAccessReviewSpec, out *SubjectAccessReviewSpec, c *conversion.Cloner) error {
107         if in.ResourceAttributes != nil {
108                 in, out := in.ResourceAttributes, &out.ResourceAttributes
109                 *out = new(ResourceAttributes)
110                 **out = *in
111         } else {
112                 out.ResourceAttributes = nil
113         }
114         if in.NonResourceAttributes != nil {
115                 in, out := in.NonResourceAttributes, &out.NonResourceAttributes
116                 *out = new(NonResourceAttributes)
117                 **out = *in
118         } else {
119                 out.NonResourceAttributes = nil
120         }
121         out.User = in.User
122         if in.Groups != nil {
123                 in, out := in.Groups, &out.Groups
124                 *out = make([]string, len(in))
125                 copy(*out, in)
126         } else {
127                 out.Groups = nil
128         }
129         if in.Extra != nil {
130                 in, out := in.Extra, &out.Extra
131                 *out = make(map[string][]string)
132                 for key, val := range in {
133                         if newVal, err := c.DeepCopy(val); err != nil {
134                                 return err
135                         } else {
136                                 (*out)[key] = newVal.([]string)
137                         }
138                 }
139         } else {
140                 out.Extra = nil
141         }
142         return nil
143 }
144
145 func DeepCopy_v1beta1_SubjectAccessReviewStatus(in SubjectAccessReviewStatus, out *SubjectAccessReviewStatus, c *conversion.Cloner) error {
146         out.Allowed = in.Allowed
147         out.Reason = in.Reason
148         return nil
149 }