func autoConvert_v1_GroupList_To_api_GroupList(in *GroupList, out *api.GroupList, s conversion.Scope) error { if err := pkg_api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { return err } if err := pkg_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([]api.Group, len(*in)) for i := range *in { if err := Convert_v1_Group_To_api_Group(&(*in)[i], &(*out)[i], s); err != nil { return err } } } else { out.Items = nil } return nil }
func autoConvert_v1_GroupList_To_api_GroupList(in *GroupList, out *user_api.GroupList, s conversion.Scope) error { if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { defaulting.(func(*GroupList))(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([]user_api.Group, len(*in)) for i := range *in { if err := Convert_v1_Group_To_api_Group(&(*in)[i], &(*out)[i], s); err != nil { return err } } } else { out.Items = nil } return nil }