MCPcopy Create free account
hub / github.com/containers/common / Digest

Method Digest

libimage/image.go:132–134  ·  view source on GitHub ↗

Digest is a digest value that we can use to locate the image, if one was specified at creation-time. Typically it is the digest of one among possibly many digests that we have stored for the image, so many applications are better off using the entire list returned by Digests().

()

Source from the content-addressed store, hash-verified

130// possibly many digests that we have stored for the image, so many
131// applications are better off using the entire list returned by Digests().
132func (i *Image) Digest() digest.Digest {
133 return i.storageImage.Digest
134}
135
136// Digests is a list of digest values of the image's manifests, and possibly a
137// manually-specified value, that we can use to locate the image. If Digest is

Callers 15

InspectMethod · 0.95
RepoDigestsMethod · 0.95
TestImageFunctionsFunction · 0.80
imagesIDsForManifestMethod · 0.80
LookupInstanceMethod · 0.80
PushMethod · 0.80
AddMethod · 0.80
TestAddRemoveFunction · 0.80
TestSupplementedFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestImageFunctionsFunction · 0.64
TestAddRemoveFunction · 0.64
TestSupplementedFunction · 0.64
TestAddInstanceFunction · 0.64