MCPcopy Create free account
hub / github.com/containers/image / Reference

Method Reference

types/types.go:249–249  ·  view source on GitHub ↗

Reference returns the reference used to set up this source, _as specified by the user_ (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image.

()

Source from the content-addressed store, hash-verified

247 // Reference returns the reference used to set up this source, _as specified by the user_
248 // (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image.
249 Reference() ImageReference
250 // Close removes resources associated with an initialized ImageSource, if any.
251 Close() error
252 // GetManifest returns the image's manifest along with its MIME type (which may be empty when it can't be determined but the manifest is available).

Callers 15

TestWriteReadFunction · 0.95
TestSourceReferenceFunction · 0.95
copyMultipleImagesMethod · 0.65
sourceSignaturesMethod · 0.65
createSignaturesMethod · 0.65
copySingleImageMethod · 0.65
copyLayersMethod · 0.65
ReferenceMethod · 0.65

Implementers 1

ForbiddenImageSourceinternal/testing/mocks/image_source.go

Calls

no outgoing calls

Tested by 4

TestWriteReadFunction · 0.76
TestSourceReferenceFunction · 0.76
TestSerializationFunction · 0.52