5b4a3ad220b6e2e1b3c21520f9bc478a7a817f80
[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 v1alpha1
22
23 import (
24         api "k8s.io/kubernetes/pkg/api"
25         v1 "k8s.io/kubernetes/pkg/api/v1"
26         conversion "k8s.io/kubernetes/pkg/conversion"
27 )
28
29 func init() {
30         if err := api.Scheme.AddGeneratedDeepCopyFuncs(
31                 DeepCopy_v1alpha1_CertificateSigningRequest,
32                 DeepCopy_v1alpha1_CertificateSigningRequestCondition,
33                 DeepCopy_v1alpha1_CertificateSigningRequestList,
34                 DeepCopy_v1alpha1_CertificateSigningRequestSpec,
35                 DeepCopy_v1alpha1_CertificateSigningRequestStatus,
36         ); err != nil {
37                 // if one of the deep copy functions is malformed, detect it immediately.
38                 panic(err)
39         }
40 }
41
42 func DeepCopy_v1alpha1_CertificateSigningRequest(in CertificateSigningRequest, out *CertificateSigningRequest, c *conversion.Cloner) error {
43         out.TypeMeta = in.TypeMeta
44         if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil {
45                 return err
46         }
47         if err := DeepCopy_v1alpha1_CertificateSigningRequestSpec(in.Spec, &out.Spec, c); err != nil {
48                 return err
49         }
50         if err := DeepCopy_v1alpha1_CertificateSigningRequestStatus(in.Status, &out.Status, c); err != nil {
51                 return err
52         }
53         return nil
54 }
55
56 func DeepCopy_v1alpha1_CertificateSigningRequestCondition(in CertificateSigningRequestCondition, out *CertificateSigningRequestCondition, c *conversion.Cloner) error {
57         out.Type = in.Type
58         out.Reason = in.Reason
59         out.Message = in.Message
60         out.LastUpdateTime = in.LastUpdateTime.DeepCopy()
61         return nil
62 }
63
64 func DeepCopy_v1alpha1_CertificateSigningRequestList(in CertificateSigningRequestList, out *CertificateSigningRequestList, c *conversion.Cloner) error {
65         out.TypeMeta = in.TypeMeta
66         out.ListMeta = in.ListMeta
67         if in.Items != nil {
68                 in, out := in.Items, &out.Items
69                 *out = make([]CertificateSigningRequest, len(in))
70                 for i := range in {
71                         if err := DeepCopy_v1alpha1_CertificateSigningRequest(in[i], &(*out)[i], c); err != nil {
72                                 return err
73                         }
74                 }
75         } else {
76                 out.Items = nil
77         }
78         return nil
79 }
80
81 func DeepCopy_v1alpha1_CertificateSigningRequestSpec(in CertificateSigningRequestSpec, out *CertificateSigningRequestSpec, c *conversion.Cloner) error {
82         if in.Request != nil {
83                 in, out := in.Request, &out.Request
84                 *out = make([]byte, len(in))
85                 copy(*out, in)
86         } else {
87                 out.Request = nil
88         }
89         out.Username = in.Username
90         out.UID = in.UID
91         if in.Groups != nil {
92                 in, out := in.Groups, &out.Groups
93                 *out = make([]string, len(in))
94                 copy(*out, in)
95         } else {
96                 out.Groups = nil
97         }
98         return nil
99 }
100
101 func DeepCopy_v1alpha1_CertificateSigningRequestStatus(in CertificateSigningRequestStatus, out *CertificateSigningRequestStatus, c *conversion.Cloner) error {
102         if in.Conditions != nil {
103                 in, out := in.Conditions, &out.Conditions
104                 *out = make([]CertificateSigningRequestCondition, len(in))
105                 for i := range in {
106                         if err := DeepCopy_v1alpha1_CertificateSigningRequestCondition(in[i], &(*out)[i], c); err != nil {
107                                 return err
108                         }
109                 }
110         } else {
111                 out.Conditions = nil
112         }
113         if in.Certificate != nil {
114                 in, out := in.Certificate, &out.Certificate
115                 *out = make([]byte, len(in))
116                 copy(*out, in)
117         } else {
118                 out.Certificate = nil
119         }
120         return nil
121 }