// IsImageMatched returns true if the value of t is identical to the // image name in the full image name and tag as given by s. func IsImageMatched(s, t string) bool { … } // Split separates and returns the name and tag parts // from the image string using either colon `:` or at `@` separators. // image reference pattern: [[host[:port]/]component/]component[:tag][@digest] func Split(imageName string) (name string, tag string, digest string) { … }