MCPcopy Index your code
hub / github.com/docker/docker-agent / IsDigestReference

Function IsDigestReference

pkg/remote/pull.go:52–59  ·  view source on GitHub ↗

IsDigestReference reports whether the given reference pins a specific image digest (e.g. "repo@sha256:abc...").

(registryRef string)

Source from the content-addressed store, hash-verified

50// IsDigestReference reports whether the given reference pins a specific
51// image digest (e.g. "repo@sha256:abc...").
52func 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//

Callers 4

readMethod · 0.92
loadExternalAgentFunction · 0.92
TestIsDigestReferenceFunction · 0.85

Calls

no outgoing calls