func ParseDockerImageReference(spec string) (imagev1.DockerImageReference, error) {
	ref, err := imagereference.Parse(spec)
	if err != nil {
		return imagev1.DockerImageReference{}, err
	}
	return imagev1.DockerImageReference{
		Registry:  ref.Registry,
		Namespace: ref.Namespace,
		Name:      ref.Name,
		Tag:       ref.Tag,
		ID:        ref.ID,
	}, nil
}
// ParseDockerImageReference parses a Docker pull spec string into a
// DockerImageReference.
ParseDockerImageReference parses a Docker pull spec string into a
DockerImageReference.
// ParseDockerImageReference parses a Docker pull spec string into a // DockerImageReference .
func ParseDockerImageReference(spec string) (imagev1.DockerImageReference, error) {
	ref, err := imagereference.Parse(spec)
	if err != nil {
		return imagev1.DockerImageReference{}, err
	}
	return imagev1.DockerImageReference{
		Registry:  ref.Registry,
		Namespace: ref.Namespace,
		Name:      ref.Name,
		Tag:       ref.Tag,
		ID:        ref.ID,
	}, nil
}
func ParseDockerImageReference ( spec string ) ( imagev1 . DockerImageReference , error ) { ref , err := imagereference . Parse ( spec ) if err != nil { return imagev1 . DockerImageReference { } , err } return imagev1 . DockerImageReference { Registry : ref . Registry , Namespace : ref . Namespace , Name : ref . Name , Tag : ref . Tag , ID : ref . ID , } , nil }
ParseDockerImageReference parses a Docker pull spec string into a
DockerImageReference.
ParseDockerImageReference parses a Docker pull spec string into a DockerImageReference .