func autoConvert_v1_RepositoryImportStatus_To_api_RepositoryImportStatus(in *RepositoryImportStatus, out *image_api.RepositoryImportStatus, s conversion.Scope) error { if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { defaulting.(func(*RepositoryImportStatus))(in) } // TODO: Inefficient conversion - can we improve it? if err := s.Convert(&in.Status, &out.Status, 0); err != nil { return err } if in.Images != nil { in, out := &in.Images, &out.Images *out = make([]image_api.ImageImportStatus, len(*in)) for i := range *in { if err := Convert_v1_ImageImportStatus_To_api_ImageImportStatus(&(*in)[i], &(*out)[i], s); err != nil { return err } } } else { out.Images = nil } if in.AdditionalTags != nil { in, out := &in.AdditionalTags, &out.AdditionalTags *out = make([]string, len(*in)) copy(*out, *in) } else { out.AdditionalTags = nil } return nil }
func autoConvert_v1_RepositoryImportStatus_To_api_RepositoryImportStatus(in *RepositoryImportStatus, out *api.RepositoryImportStatus, s conversion.Scope) error { out.Status = in.Status if in.Images != nil { in, out := &in.Images, &out.Images *out = make([]api.ImageImportStatus, len(*in)) for i := range *in { if err := Convert_v1_ImageImportStatus_To_api_ImageImportStatus(&(*in)[i], &(*out)[i], s); err != nil { return err } } } else { out.Images = nil } out.AdditionalTags = in.AdditionalTags return nil }