func autoConvert_v1_ImageImportStatus_To_api_ImageImportStatus(in *ImageImportStatus, out *api.ImageImportStatus, s conversion.Scope) error {
	out.Status = in.Status
	if in.Image != nil {
		in, out := &in.Image, &out.Image
		*out = new(api.Image)
		if err := Convert_v1_Image_To_api_Image(*in, *out, s); err != nil {
			return err
		}
	} else {
		out.Image = nil
	}
	out.Tag = in.Tag
	return nil
}
示例#2
0
func autoConvert_v1_ImageImportStatus_To_api_ImageImportStatus(in *ImageImportStatus, out *image_api.ImageImportStatus, s conversion.Scope) error {
	// TODO: Inefficient conversion - can we improve it?
	if err := s.Convert(&in.Status, &out.Status, 0); err != nil {
		return err
	}
	if in.Image != nil {
		in, out := &in.Image, &out.Image
		*out = new(image_api.Image)
		if err := Convert_v1_Image_To_api_Image(*in, *out, s); err != nil {
			return err
		}
	} else {
		out.Image = nil
	}
	out.Tag = in.Tag
	return nil
}
func autoConvert_v1_ImageImportStatus_To_api_ImageImportStatus(in *ImageImportStatus, out *image_api.ImageImportStatus, s conversion.Scope) error {
	if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
		defaulting.(func(*ImageImportStatus))(in)
	}
	// TODO: Inefficient conversion - can we improve it?
	if err := s.Convert(&in.Status, &out.Status, 0); err != nil {
		return err
	}
	if in.Image != nil {
		in, out := &in.Image, &out.Image
		*out = new(image_api.Image)
		if err := Convert_v1_Image_To_api_Image(*in, *out, s); err != nil {
			return err
		}
	} else {
		out.Image = nil
	}
	out.Tag = in.Tag
	return nil
}