k8s.io/kubernetes@v1.29.3/pkg/apis/abac/v0/zz_generated.conversion.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright The Kubernetes Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 20 // Code generated by conversion-gen. DO NOT EDIT. 21 22 package v0 23 24 import ( 25 conversion "k8s.io/apimachinery/pkg/conversion" 26 runtime "k8s.io/apimachinery/pkg/runtime" 27 abac "k8s.io/kubernetes/pkg/apis/abac" 28 ) 29 30 func init() { 31 localSchemeBuilder.Register(RegisterConversions) 32 } 33 34 // RegisterConversions adds conversion functions to the given scheme. 35 // Public to allow building arbitrary schemes. 36 func RegisterConversions(s *runtime.Scheme) error { 37 if err := s.AddConversionFunc((*Policy)(nil), (*abac.Policy)(nil), func(a, b interface{}, scope conversion.Scope) error { 38 return Convert_v0_Policy_To_abac_Policy(a.(*Policy), b.(*abac.Policy), scope) 39 }); err != nil { 40 return err 41 } 42 return nil 43 }