IsDigestReference reports whether the given reference pins a specific image digest (e.g. "repo@sha256:abc...").
(registryRef string)
| 50 | // IsDigestReference reports whether the given reference pins a specific |
| 51 | // image digest (e.g. "repo@sha256:abc..."). |
| 52 | func IsDigestReference(registryRef string) bool { |
| 53 | ref, err := name.ParseReference(registryRef) |
| 54 | if err != nil { |
| 55 | return false |
| 56 | } |
| 57 | _, ok := ref.(name.Digest) |
| 58 | return ok |
| 59 | } |
| 60 | |
| 61 | // Pull pulls an artifact from a registry and stores it in the content store. |
| 62 | // |
no outgoing calls