func DigestOrImageMatch(image, imageID string) bool {
	if d, err := ParseDigest(image); err == nil {
		return strings.HasPrefix(d.Hex(), imageID) || strings.HasPrefix(image, imageID)
	}
	return strings.HasPrefix(image, imageID)
}
// DigestOrImageMatch matches the digest in the image name.
DigestOrImageMatch matches the digest in the image name.
// DigestOrImageMatch matches the digest in the image name .
func DigestOrImageMatch(image, imageID string) bool {
	if d, err := ParseDigest(image); err == nil {
		return strings.HasPrefix(d.Hex(), imageID) || strings.HasPrefix(image, imageID)
	}
	return strings.HasPrefix(image, imageID)
}
func DigestOrImageMatch ( image , imageID string ) bool { if d , err := ParseDigest ( image ) ; err == nil { return strings . HasPrefix ( d . Hex ( ) , imageID ) || strings . HasPrefix ( image , imageID ) } return strings . HasPrefix ( image , imageID ) }
DigestOrImageMatch matches the digest in the image name.
DigestOrImageMatch matches the digest in the image name .