func DeepCopy_v1_RepositoryImportStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
	{
		in := in.(*RepositoryImportStatus)
		out := out.(*RepositoryImportStatus)
		if err := unversioned.DeepCopy_unversioned_Status(&in.Status, &out.Status, c); err != nil {
			return err
		}
		if in.Images != nil {
			in, out := &in.Images, &out.Images
			*out = make([]ImageImportStatus, len(*in))
			for i := range *in {
				if err := DeepCopy_v1_ImageImportStatus(&(*in)[i], &(*out)[i], c); 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
	}
}
Esempio n. 2
0
func DeepCopy_api_ImageImportStatus(in ImageImportStatus, out *ImageImportStatus, c *conversion.Cloner) error {
	out.Tag = in.Tag
	if err := unversioned.DeepCopy_unversioned_Status(in.Status, &out.Status, c); err != nil {
		return err
	}
	if in.Image != nil {
		in, out := in.Image, &out.Image
		*out = new(Image)
		if err := DeepCopy_api_Image(*in, *out, c); err != nil {
			return err
		}
	} else {
		out.Image = nil
	}
	return nil
}
func DeepCopy_v1_ImageImportStatus(in interface{}, out interface{}, c *conversion.Cloner) error {
	{
		in := in.(*ImageImportStatus)
		out := out.(*ImageImportStatus)
		if err := unversioned.DeepCopy_unversioned_Status(&in.Status, &out.Status, c); err != nil {
			return err
		}
		if in.Image != nil {
			in, out := &in.Image, &out.Image
			*out = new(Image)
			if err := DeepCopy_v1_Image(*in, *out, c); err != nil {
				return err
			}
		} else {
			out.Image = nil
		}
		out.Tag = in.Tag
		return nil
	}
}
Esempio n. 4
0
func DeepCopy_api_RepositoryImportStatus(in RepositoryImportStatus, out *RepositoryImportStatus, c *conversion.Cloner) error {
	if err := unversioned.DeepCopy_unversioned_Status(in.Status, &out.Status, c); err != nil {
		return err
	}
	if in.Images != nil {
		in, out := in.Images, &out.Images
		*out = make([]ImageImportStatus, len(in))
		for i := range in {
			if err := DeepCopy_api_ImageImportStatus(in[i], &(*out)[i], c); 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
}