k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/pkg/apis/authentication/v1/conversion.go (about) 1 /* 2 Copyright 2017 The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package v1 18 19 import ( 20 v1 "k8s.io/api/authentication/v1" 21 conversion "k8s.io/apimachinery/pkg/conversion" 22 authentication "k8s.io/kubernetes/pkg/apis/authentication" 23 ) 24 25 // Convert_v1_UserInfo_To_authentication_UserInfo is defined outside the autogenerated file for use by other API packages 26 // This is needed because it is referenced from other APIs, but is invisible at code-generation time because of the build tags. 27 func Convert_v1_UserInfo_To_authentication_UserInfo(in *v1.UserInfo, out *authentication.UserInfo, s conversion.Scope) error { 28 return autoConvert_v1_UserInfo_To_authentication_UserInfo(in, out, s) 29 } 30 31 // Convert_authentication_UserInfo_To_v1_UserInfo is defined outside the autogenerated file for use by other API packages 32 // This is needed because it is referenced from other APIs, but is invisible at code-generation time because of the build tags. 33 func Convert_authentication_UserInfo_To_v1_UserInfo(in *authentication.UserInfo, out *v1.UserInfo, s conversion.Scope) error { 34 return autoConvert_authentication_UserInfo_To_v1_UserInfo(in, out, s) 35 }