func autoConvert_v1_TemplateList_To_api_TemplateList(in *TemplateList, out *template_api.TemplateList, s conversion.Scope) error { if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { return err } if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { return err } if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]template_api.Template, len(*in)) for i := range *in { if err := Convert_v1_Template_To_api_Template(&(*in)[i], &(*out)[i], s); err != nil { return err } } } else { out.Items = nil } return nil }
func autoConvert_v1_TemplateList_To_api_TemplateList(in *TemplateList, out *template_api.TemplateList, s conversion.Scope) error { if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { defaulting.(func(*TemplateList))(in) } if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { return err } if err := api.Convert_unversioned_ListMeta_To_unversioned_ListMeta(&in.ListMeta, &out.ListMeta, s); err != nil { return err } if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]template_api.Template, len(*in)) for i := range *in { if err := Convert_v1_Template_To_api_Template(&(*in)[i], &(*out)[i], s); err != nil { return err } } } else { out.Items = nil } return nil }