/** * Returns {@code true} if the {@link ImageReference} uses a SHA-256 digest as its tag; {@code * false} if not. * * @return {@code true} if tag is a SHA-256 digest; {@code false} if not */ public bool IsTagDigest() { return(DescriptorDigest.IsValidDigest(tag)); }
/** * Returns {@code true} if {@code tag} is a valid tag string. For example, a valid tag could be * {@code v120.5-release}. * * @param tag the tag to check * @return {@code true} if is a valid tag; {@code false} otherwise */ public static bool IsValidTag(string tag) { return(IsValidTagName(tag) || DescriptorDigest.IsValidDigest(tag)); }