Exemplo n.º 1
0
func DeepCopy_api_TemplateImage(in TemplateImage, out *TemplateImage, c *conversion.Cloner) error {
	out.Image = in.Image
	if in.Ref != nil {
		in, out := in.Ref, &out.Ref
		*out = new(image_api.DockerImageReference)
		if err := image_api.DeepCopy_api_DockerImageReference(*in, *out, c); err != nil {
			return err
		}
	} else {
		out.Ref = nil
	}
	if in.From != nil {
		in, out := in.From, &out.From
		*out = new(api.ObjectReference)
		if err := api.DeepCopy_api_ObjectReference(*in, *out, c); err != nil {
			return err
		}
	} else {
		out.From = nil
	}
	if in.Container != nil {
		in, out := in.Container, &out.Container
		*out = new(api.Container)
		if err := api.DeepCopy_api_Container(*in, *out, c); err != nil {
			return err
		}
	} else {
		out.Container = nil
	}
	return nil
}
func DeepCopy_api_TemplateImage(in interface{}, out interface{}, c *conversion.Cloner) error {
	{
		in := in.(*TemplateImage)
		out := out.(*TemplateImage)
		out.Image = in.Image
		if in.Ref != nil {
			in, out := &in.Ref, &out.Ref
			*out = new(image_api.DockerImageReference)
			**out = **in
		} else {
			out.Ref = nil
		}
		if in.From != nil {
			in, out := &in.From, &out.From
			*out = new(pkg_api.ObjectReference)
			**out = **in
		} else {
			out.From = nil
		}
		if in.Container != nil {
			in, out := &in.Container, &out.Container
			*out = new(pkg_api.Container)
			if err := pkg_api.DeepCopy_api_Container(*in, *out, c); err != nil {
				return err
			}
		} else {
			out.Container = nil
		}
		return nil
	}
}