Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [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 v1beta1 |
| 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(scheme *runtime.Scheme) error { |
| 39 | return scheme.AddGeneratedConversionFuncs( |
| 40 | Convert_v1beta1_ExecCredential_To_clientauthentication_ExecCredential, |
| 41 | Convert_clientauthentication_ExecCredential_To_v1beta1_ExecCredential, |
| 42 | Convert_v1beta1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec, |
| 43 | Convert_clientauthentication_ExecCredentialSpec_To_v1beta1_ExecCredentialSpec, |
| 44 | Convert_v1beta1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus, |
| 45 | Convert_clientauthentication_ExecCredentialStatus_To_v1beta1_ExecCredentialStatus, |
| 46 | ) |
| 47 | } |
| 48 | |
| 49 | func autoConvert_v1beta1_ExecCredential_To_clientauthentication_ExecCredential(in *ExecCredential, out *clientauthentication.ExecCredential, s conversion.Scope) error { |
| 50 | if err := Convert_v1beta1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(&in.Spec, &out.Spec, s); err != nil { |
| 51 | return err |
| 52 | } |
| 53 | out.Status = (*clientauthentication.ExecCredentialStatus)(unsafe.Pointer(in.Status)) |
| 54 | return nil |
| 55 | } |
| 56 | |
| 57 | // Convert_v1beta1_ExecCredential_To_clientauthentication_ExecCredential is an autogenerated conversion function. |
| 58 | func Convert_v1beta1_ExecCredential_To_clientauthentication_ExecCredential(in *ExecCredential, out *clientauthentication.ExecCredential, s conversion.Scope) error { |
| 59 | return autoConvert_v1beta1_ExecCredential_To_clientauthentication_ExecCredential(in, out, s) |
| 60 | } |
| 61 | |
| 62 | func autoConvert_clientauthentication_ExecCredential_To_v1beta1_ExecCredential(in *clientauthentication.ExecCredential, out *ExecCredential, s conversion.Scope) error { |
| 63 | if err := Convert_clientauthentication_ExecCredentialSpec_To_v1beta1_ExecCredentialSpec(&in.Spec, &out.Spec, s); err != nil { |
| 64 | return err |
| 65 | } |
| 66 | out.Status = (*ExecCredentialStatus)(unsafe.Pointer(in.Status)) |
| 67 | return nil |
| 68 | } |
| 69 | |
| 70 | // Convert_clientauthentication_ExecCredential_To_v1beta1_ExecCredential is an autogenerated conversion function. |
| 71 | func Convert_clientauthentication_ExecCredential_To_v1beta1_ExecCredential(in *clientauthentication.ExecCredential, out *ExecCredential, s conversion.Scope) error { |
| 72 | return autoConvert_clientauthentication_ExecCredential_To_v1beta1_ExecCredential(in, out, s) |
| 73 | } |
| 74 | |
| 75 | func autoConvert_v1beta1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in *ExecCredentialSpec, out *clientauthentication.ExecCredentialSpec, s conversion.Scope) error { |
| 76 | return nil |
| 77 | } |
| 78 | |
| 79 | // Convert_v1beta1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec is an autogenerated conversion function. |
| 80 | func Convert_v1beta1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in *ExecCredentialSpec, out *clientauthentication.ExecCredentialSpec, s conversion.Scope) error { |
| 81 | return autoConvert_v1beta1_ExecCredentialSpec_To_clientauthentication_ExecCredentialSpec(in, out, s) |
| 82 | } |
| 83 | |
| 84 | func autoConvert_clientauthentication_ExecCredentialSpec_To_v1beta1_ExecCredentialSpec(in *clientauthentication.ExecCredentialSpec, out *ExecCredentialSpec, s conversion.Scope) error { |
| 85 | // WARNING: in.Response requires manual conversion: does not exist in peer-type |
| 86 | // WARNING: in.Interactive requires manual conversion: does not exist in peer-type |
| 87 | return nil |
| 88 | } |
| 89 | |
| 90 | func autoConvert_v1beta1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error { |
| 91 | out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp)) |
| 92 | out.Token = in.Token |
| 93 | out.ClientCertificateData = in.ClientCertificateData |
| 94 | out.ClientKeyData = in.ClientKeyData |
| 95 | return nil |
| 96 | } |
| 97 | |
| 98 | // Convert_v1beta1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus is an autogenerated conversion function. |
| 99 | func Convert_v1beta1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error { |
| 100 | return autoConvert_v1beta1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in, out, s) |
| 101 | } |
| 102 | |
| 103 | func autoConvert_clientauthentication_ExecCredentialStatus_To_v1beta1_ExecCredentialStatus(in *clientauthentication.ExecCredentialStatus, out *ExecCredentialStatus, s conversion.Scope) error { |
| 104 | out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp)) |
| 105 | out.Token = in.Token |
| 106 | out.ClientCertificateData = in.ClientCertificateData |
| 107 | out.ClientKeyData = in.ClientKeyData |
| 108 | return nil |
| 109 | } |
| 110 | |
| 111 | // Convert_clientauthentication_ExecCredentialStatus_To_v1beta1_ExecCredentialStatus is an autogenerated conversion function. |
| 112 | func Convert_clientauthentication_ExecCredentialStatus_To_v1beta1_ExecCredentialStatus(in *clientauthentication.ExecCredentialStatus, out *ExecCredentialStatus, s conversion.Scope) error { |
| 113 | return autoConvert_clientauthentication_ExecCredentialStatus_To_v1beta1_ExecCredentialStatus(in, out, s) |
| 114 | } |