func (ef *Filter) isImageIncluded(eventID string, eventFrom string) bool {
	stripTag := func(image string) string {
		repo, _ := parsers.ParseRepositoryTag(image)
		return repo
	}

	return isFieldIncluded(eventID, ef.filter["image"]) ||
		isFieldIncluded(eventFrom, ef.filter["image"]) ||
		isFieldIncluded(stripTag(eventID), ef.filter["image"]) ||
		isFieldIncluded(stripTag(eventFrom), ef.filter["image"])
}
// The image filter will be matched against both event.ID (for image events)
// and event.From (for container events), so that any container that was created
// from an image will be included in the image events. Also compare both
// against the stripped repo name without any tags.
The image filter will be matched against both event.ID (for image events)
and event.From (for container events), so that any container that was created
from an image will be included in the image events. Also compare both
against the stripped repo name without any tags.
// The image filter will be matched against both event . ID ( for image events ) // and event . From ( for container events ) so that any container that was created // from an image will be included in the image events . Also compare both // against the stripped repo name without any tags .
func (ef *Filter) isImageIncluded(eventID string, eventFrom string) bool {
	stripTag := func(image string) string {
		repo, _ := parsers.ParseRepositoryTag(image)
		return repo
	}
	return isFieldIncluded(eventID, ef.filter["image"]) ||
		isFieldIncluded(eventFrom, ef.filter["image"]) ||
		isFieldIncluded(stripTag(eventID), ef.filter["image"]) ||
		isFieldIncluded(stripTag(eventFrom), ef.filter["image"])
}
func ( ef * Filter ) isImageIncluded ( eventID string , eventFrom string ) bool { stripTag := func ( image string ) string { repo , _ := parsers . ParseRepositoryTag ( image ) return repo } return isFieldIncluded ( eventID , ef . filter [ " " ] ) || isFieldIncluded ( eventFrom , ef . filter [ " " ] ) || isFieldIncluded ( stripTag ( eventID ) , ef . filter [ " " ] ) || isFieldIncluded ( stripTag ( eventFrom ) , ef . filter [ " " ] ) }
The image filter will be matched against both event.ID (for image events)
and event.From (for container events), so that any container that was created
from an image will be included in the image events.
The image filter will be matched against both event . ID ( for image events ) and event . From ( for container events ) so that any container that was created from an image will be included in the image events .