d3294bfc8d09ab17120ae6d543157217c592e152
[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_TokenReview,
31                 DeepCopy_v1beta1_TokenReviewSpec,
32                 DeepCopy_v1beta1_TokenReviewStatus,
33                 DeepCopy_v1beta1_UserInfo,
34         ); err != nil {
35                 // if one of the deep copy functions is malformed, detect it immediately.
36                 panic(err)
37         }
38 }
39
40 func DeepCopy_v1beta1_TokenReview(in TokenReview, out *TokenReview, c *conversion.Cloner) error {
41         out.TypeMeta = in.TypeMeta
42         out.Spec = in.Spec
43         if err := DeepCopy_v1beta1_TokenReviewStatus(in.Status, &out.Status, c); err != nil {
44                 return err
45         }
46         return nil
47 }
48
49 func DeepCopy_v1beta1_TokenReviewSpec(in TokenReviewSpec, out *TokenReviewSpec, c *conversion.Cloner) error {
50         out.Token = in.Token
51         return nil
52 }
53
54 func DeepCopy_v1beta1_TokenReviewStatus(in TokenReviewStatus, out *TokenReviewStatus, c *conversion.Cloner) error {
55         out.Authenticated = in.Authenticated
56         if err := DeepCopy_v1beta1_UserInfo(in.User, &out.User, c); err != nil {
57                 return err
58         }
59         return nil
60 }
61
62 func DeepCopy_v1beta1_UserInfo(in UserInfo, out *UserInfo, c *conversion.Cloner) error {
63         out.Username = in.Username
64         out.UID = in.UID
65         if in.Groups != nil {
66                 in, out := in.Groups, &out.Groups
67                 *out = make([]string, len(in))
68                 copy(*out, in)
69         } else {
70                 out.Groups = nil
71         }
72         if in.Extra != nil {
73                 in, out := in.Extra, &out.Extra
74                 *out = make(map[string][]string)
75                 for key, val := range in {
76                         if newVal, err := c.DeepCopy(val); err != nil {
77                                 return err
78                         } else {
79                                 (*out)[key] = newVal.([]string)
80                         }
81                 }
82         } else {
83                 out.Extra = nil
84         }
85         return nil
86 }