1 // +build !ignore_autogenerated
4 Copyright 2016 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 // This file was autogenerated by deepcopy-gen. Do not edit it manually!
24 api "k8s.io/kubernetes/pkg/api"
25 conversion "k8s.io/kubernetes/pkg/conversion"
29 if err := api.Scheme.AddGeneratedDeepCopyFuncs(
30 DeepCopy_v1beta1_TokenReview,
31 DeepCopy_v1beta1_TokenReviewSpec,
32 DeepCopy_v1beta1_TokenReviewStatus,
33 DeepCopy_v1beta1_UserInfo,
35 // if one of the deep copy functions is malformed, detect it immediately.
40 func DeepCopy_v1beta1_TokenReview(in TokenReview, out *TokenReview, c *conversion.Cloner) error {
41 out.TypeMeta = in.TypeMeta
43 if err := DeepCopy_v1beta1_TokenReviewStatus(in.Status, &out.Status, c); err != nil {
49 func DeepCopy_v1beta1_TokenReviewSpec(in TokenReviewSpec, out *TokenReviewSpec, c *conversion.Cloner) error {
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 {
62 func DeepCopy_v1beta1_UserInfo(in UserInfo, out *UserInfo, c *conversion.Cloner) error {
63 out.Username = in.Username
66 in, out := in.Groups, &out.Groups
67 *out = make([]string, len(in))
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 {
79 (*out)[key] = newVal.([]string)