Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 1 | // +build !ignore_autogenerated |
| 2 | |
| 3 | /* |
| 4 | Copyright 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 | // Code generated by conversion-gen. DO NOT EDIT. |
| 20 | |
| 21 | package v1alpha1 |
| 22 | |
| 23 | import ( |
| 24 | unsafe "unsafe" |
| 25 | |
| 26 | v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 27 | conversion "k8s.io/apimachinery/pkg/conversion" |
| 28 | runtime "k8s.io/apimachinery/pkg/runtime" |
| 29 | clientauthentication "k8s.io/client-go/pkg/apis/clientauthentication" |
| 30 | ) |
| 31 | |
| 32 | func init() { |
| 33 | localSchemeBuilder.Register(RegisterConversions) |
| 34 | } |
| 35 | |
| 36 | // RegisterConversions adds conversion functions to the given scheme. |
| 37 | // Public to allow building arbitrary schemes. |
| 38 | func RegisterConversions(s *runtime.Scheme) error { |
| 39 | if err := s.AddGeneratedConversionFunc((*ExecCredential)(nil), (*clientauthentication.ExecCredential)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 40 | return Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(a.(*ExecCredential), b.(*clientauthentication.ExecCredential), scope) |
| 41 | }); err != nil { |
| 42 | return err |
| 43 | } |
| 44 | if err := s.AddGeneratedConversionFunc((*clientauthentication.ExecCredential)(nil), (*ExecCredential)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 45 | return Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(a.(*clientauthentication.ExecCredential), b.(*ExecCredential), scope) |
| 46 | }); err != nil { |
| 47 | return err |
| 48 | } |
| 49 | if err := s.AddGeneratedConversionFunc((*ExecCredentialSpec)(nil), (*clientauthentication.ExecCredentialSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 50 | return Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(a.(*ExecCredentialSpec), b.(*clientauthentication.ExecCredentialSpec), scope) |
| 51 | }); err != nil { |
| 52 | return err |
| 53 | } |
| 54 | if err := s.AddGeneratedConversionFunc((*clientauthentication.ExecCredentialSpec)(nil), (*ExecCredentialSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 55 | return Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(a.(*clientauthentication.ExecCredentialSpec), b.(*ExecCredentialSpec), scope) |
| 56 | }); err != nil { |
| 57 | return err |
| 58 | } |
| 59 | if err := s.AddGeneratedConversionFunc((*ExecCredentialStatus)(nil), (*clientauthentication.ExecCredentialStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 60 | return Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(a.(*ExecCredentialStatus), b.(*clientauthentication.ExecCredentialStatus), scope) |
| 61 | }); err != nil { |
| 62 | return err |
| 63 | } |
| 64 | if err := s.AddGeneratedConversionFunc((*clientauthentication.ExecCredentialStatus)(nil), (*ExecCredentialStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 65 | return Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(a.(*clientauthentication.ExecCredentialStatus), b.(*ExecCredentialStatus), scope) |
| 66 | }); err != nil { |
| 67 | return err |
| 68 | } |
| 69 | if err := s.AddGeneratedConversionFunc((*Response)(nil), (*clientauthentication.Response)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 70 | return Convert_v1alpha1_Response_To_clientauthentication_Response(a.(*Response), b.(*clientauthentication.Response), scope) |
| 71 | }); err != nil { |
| 72 | return err |
| 73 | } |
| 74 | if err := s.AddGeneratedConversionFunc((*clientauthentication.Response)(nil), (*Response)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 75 | return Convert_clientauthentication_Response_To_v1alpha1_Response(a.(*clientauthentication.Response), b.(*Response), scope) |
| 76 | }); err != nil { |
| 77 | return err |
| 78 | } |
| 79 | return nil |
| 80 | } |
| 81 | |
| 82 | func autoConvert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in *ExecCredential, out *clientauthentication.ExecCredential, s conversion.Scope) error { |
| 83 | if err := Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(&in.Spec, &out.Spec, s); err != nil { |
| 84 | return err |
| 85 | } |
| 86 | out.Status = (*clientauthentication.ExecCredentialStatus)(unsafe.Pointer(in.Status)) |
| 87 | return nil |
| 88 | } |
| 89 | |
| 90 | // Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential is an autogenerated conversion function. |
| 91 | func Convert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in *ExecCredential, out *clientauthentication.ExecCredential, s conversion.Scope) error { |
| 92 | return autoConvert_v1alpha1_ExecCredential_To_clientauthentication_ExecCredential(in, out, s) |
| 93 | } |
| 94 | |
| 95 | func autoConvert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in *clientauthentication.ExecCredential, out *ExecCredential, s conversion.Scope) error { |
| 96 | if err := Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(&in.Spec, &out.Spec, s); err != nil { |
| 97 | return err |
| 98 | } |
| 99 | out.Status = (*ExecCredentialStatus)(unsafe.Pointer(in.Status)) |
| 100 | return nil |
| 101 | } |
| 102 | |
| 103 | // Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential is an autogenerated conversion function. |
| 104 | func Convert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in *clientauthentication.ExecCredential, out *ExecCredential, s conversion.Scope) error { |
| 105 | return autoConvert_clientauthentication_ExecCredential_To_v1alpha1_ExecCredential(in, out, s) |
| 106 | } |
| 107 | |
| 108 | func autoConvert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in *ExecCredentialSpec, out *clientauthentication.ExecCredentialSpec, s conversion.Scope) error { |
| 109 | out.Response = (*clientauthentication.Response)(unsafe.Pointer(in.Response)) |
| 110 | out.Interactive = in.Interactive |
| 111 | return nil |
| 112 | } |
| 113 | |
| 114 | // Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec is an autogenerated conversion function. |
| 115 | func Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in *ExecCredentialSpec, out *clientauthentication.ExecCredentialSpec, s conversion.Scope) error { |
| 116 | return autoConvert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in, out, s) |
| 117 | } |
| 118 | |
| 119 | func autoConvert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in *clientauthentication.ExecCredentialSpec, out *ExecCredentialSpec, s conversion.Scope) error { |
| 120 | out.Response = (*Response)(unsafe.Pointer(in.Response)) |
| 121 | out.Interactive = in.Interactive |
| 122 | return nil |
| 123 | } |
| 124 | |
| 125 | // Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec is an autogenerated conversion function. |
| 126 | func Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in *clientauthentication.ExecCredentialSpec, out *ExecCredentialSpec, s conversion.Scope) error { |
| 127 | return autoConvert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in, out, s) |
| 128 | } |
| 129 | |
| 130 | func autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error { |
| 131 | out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp)) |
| 132 | out.Token = in.Token |
| 133 | out.ClientCertificateData = in.ClientCertificateData |
| 134 | out.ClientKeyData = in.ClientKeyData |
| 135 | return nil |
| 136 | } |
| 137 | |
| 138 | // Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus is an autogenerated conversion function. |
| 139 | func Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error { |
| 140 | return autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in, out, s) |
| 141 | } |
| 142 | |
| 143 | func autoConvert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in *clientauthentication.ExecCredentialStatus, out *ExecCredentialStatus, s conversion.Scope) error { |
| 144 | out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp)) |
| 145 | out.Token = in.Token |
| 146 | out.ClientCertificateData = in.ClientCertificateData |
| 147 | out.ClientKeyData = in.ClientKeyData |
| 148 | return nil |
| 149 | } |
| 150 | |
| 151 | // Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus is an autogenerated conversion function. |
| 152 | func Convert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in *clientauthentication.ExecCredentialStatus, out *ExecCredentialStatus, s conversion.Scope) error { |
| 153 | return autoConvert_clientauthentication_ExecCredentialStatus_To_v1alpha1_ExecCredentialStatus(in, out, s) |
| 154 | } |
| 155 | |
| 156 | func autoConvert_v1alpha1_Response_To_clientauthentication_Response(in *Response, out *clientauthentication.Response, s conversion.Scope) error { |
| 157 | out.Header = *(*map[string][]string)(unsafe.Pointer(&in.Header)) |
| 158 | out.Code = in.Code |
| 159 | return nil |
| 160 | } |
| 161 | |
| 162 | // Convert_v1alpha1_Response_To_clientauthentication_Response is an autogenerated conversion function. |
| 163 | func Convert_v1alpha1_Response_To_clientauthentication_Response(in *Response, out *clientauthentication.Response, s conversion.Scope) error { |
| 164 | return autoConvert_v1alpha1_Response_To_clientauthentication_Response(in, out, s) |
| 165 | } |
| 166 | |
| 167 | func autoConvert_clientauthentication_Response_To_v1alpha1_Response(in *clientauthentication.Response, out *Response, s conversion.Scope) error { |
| 168 | out.Header = *(*map[string][]string)(unsafe.Pointer(&in.Header)) |
| 169 | out.Code = in.Code |
| 170 | return nil |
| 171 | } |
| 172 | |
| 173 | // Convert_clientauthentication_Response_To_v1alpha1_Response is an autogenerated conversion function. |
| 174 | func Convert_clientauthentication_Response_To_v1alpha1_Response(in *clientauthentication.Response, out *Response, s conversion.Scope) error { |
| 175 | return autoConvert_clientauthentication_Response_To_v1alpha1_Response(in, out, s) |
| 176 | } |