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

Method StorageReference

libimage/image.go:877–887  ·  view source on GitHub ↗

StorageReference returns the image's reference to the containers storage using the image ID.

()

Source from the content-addressed store, hash-verified

875// StorageReference returns the image's reference to the containers storage
876// using the image ID.
877func (i *Image) StorageReference() (types.ImageReference, error) {
878 if i.storageReference != nil {
879 return i.storageReference, nil
880 }
881 ref, err := storageTransport.Transport.ParseStoreReference(i.runtime.store, "@"+i.ID())
882 if err != nil {
883 return nil, err
884 }
885 i.storageReference = ref
886 return ref, nil
887}
888
889// source returns the possibly cached image reference.
890func (i *Image) source(ctx context.Context) (types.ImageSource, error) {

Callers 9

inspectInfoMethod · 0.95
isCorruptedMethod · 0.95
sourceMethod · 0.95
rawConfigBlobMethod · 0.95
IsManifestListMethod · 0.95
toOCIMethod · 0.95
PushMethod · 0.80
saveSingleImageMethod · 0.80
saveDockerArchiveMethod · 0.80

Calls 1

IDMethod · 0.95

Tested by

no test coverage detected